AdyenApiConfig::getCaptureActionUrl()   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\AdyenApi;
9
10
use Spryker\Zed\Kernel\AbstractBundleConfig;
11
use SprykerEco\Shared\AdyenApi\AdyenApiConstants;
12
13
class AdyenApiConfig extends AbstractBundleConfig
14
{
15
    /**
16
     * @return string
17
     */
18
    public function getApiKey(): string
19
    {
20
        return $this->get(AdyenApiConstants::API_KEY);
21
    }
22
23
    /**
24
     * @return string
25
     */
26
    public function getPaymentMethodsActionUrl(): string
27
    {
28
        return $this->get(AdyenApiConstants::GET_PAYMENT_METHODS_ACTION_URL);
29
    }
30
31
    /**
32
     * @return string
33
     */
34
    public function getMakePaymentActionUrl(): string
35
    {
36
        return $this->get(AdyenApiConstants::MAKE_PAYMENT_ACTION_URL);
37
    }
38
39
    /**
40
     * @return string
41
     */
42
    public function getPaymentsDetailsActionUrl(): string
43
    {
44
        return $this->get(AdyenApiConstants::PAYMENTS_DETAILS_ACTION_URL);
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getAuthorizeActionUrl(): string
51
    {
52
        return $this->get(AdyenApiConstants::AUTHORIZE_ACTION_URL);
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getAuthorize3dActionUrl(): string
59
    {
60
        return $this->get(AdyenApiConstants::AUTHORIZE_3D_ACTION_URL);
61
    }
62
63
    /**
64
     * @return string
65
     */
66
    public function getCaptureActionUrl(): string
67
    {
68
        return $this->get(AdyenApiConstants::CAPTURE_ACTION_URL);
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getCancelActionUrl(): string
75
    {
76
        return $this->get(AdyenApiConstants::CANCEL_ACTION_URL);
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getRefundActionUrl(): string
83
    {
84
        return $this->get(AdyenApiConstants::REFUND_ACTION_URL);
85
    }
86
87
    /**
88
     * @return string
89
     */
90
    public function getCancelOrRefundActionUrl(): string
91
    {
92
        return $this->get(AdyenApiConstants::CANCEL_OR_REFUND_ACTION_URL);
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getTechnicalCancelActionUrl(): string
99
    {
100
        return $this->get(AdyenApiConstants::TECHNICAL_CANCEL_ACTION_URL);
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function getAdjustAuthorizationActionUrl(): string
107
    {
108
        return $this->get(AdyenApiConstants::ADJUST_AUTHORIZATION_ACTION_URL);
109
    }
110
}
111