CrefoPayApiConfig::getFinishApiEndpoint()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * MIT License
5
 * For full license information, please view the LICENSE file that was distributed with this source code.
6
 */
7
8
namespace SprykerEco\Zed\CrefoPayApi;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\CrefoPayApi\CrefoPayApiConstants;
12
13
class CrefoPayApiConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @api
17
     *
18
     * @return string
19
     */
20
    public function getCreateTransactionApiEndpoint(): string
21
    {
22
        return $this->get(CrefoPayApiConstants::CREATE_TRANSACTION_API_ENDPOINT);
23
    }
24
25
    /**
26
     * @api
27
     *
28
     * @return string
29
     */
30
    public function getReserveApiEndpoint(): string
31
    {
32
        return $this->get(CrefoPayApiConstants::RESERVE_API_ENDPOINT);
33
    }
34
35
    /**
36
     * @api
37
     *
38
     * @return string
39
     */
40
    public function getCaptureApiEndpoint(): string
41
    {
42
        return $this->get(CrefoPayApiConstants::CAPTURE_API_ENDPOINT);
43
    }
44
45
    /**
46
     * @api
47
     *
48
     * @return string
49
     */
50
    public function getCancelApiEndpoint(): string
51
    {
52
        return $this->get(CrefoPayApiConstants::CANCEL_API_ENDPOINT);
53
    }
54
55
    /**
56
     * @api
57
     *
58
     * @return string
59
     */
60
    public function getRefundApiEndpoint(): string
61
    {
62
        return $this->get(CrefoPayApiConstants::REFUND_API_ENDPOINT);
63
    }
64
65
    /**
66
     * @api
67
     *
68
     * @return string
69
     */
70
    public function getFinishApiEndpoint(): string
71
    {
72
        return $this->get(CrefoPayApiConstants::FINISH_API_ENDPOINT);
73
    }
74
}
75