AdyenApiConfig   A
last analyzed

Complexity

Total Complexity 12

Size/Duplication

Total Lines 96
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 13
c 1
b 0
f 0
dl 0
loc 96
rs 10
wmc 12

12 Methods

Rating   Name   Duplication   Size   Complexity  
A getRefundActionUrl() 0 3 1
A getAdjustAuthorizationActionUrl() 0 3 1
A getCaptureActionUrl() 0 3 1
A getCancelOrRefundActionUrl() 0 3 1
A getCancelActionUrl() 0 3 1
A getPaymentsDetailsActionUrl() 0 3 1
A getApiKey() 0 3 1
A getTechnicalCancelActionUrl() 0 3 1
A getMakePaymentActionUrl() 0 3 1
A getAuthorize3dActionUrl() 0 3 1
A getPaymentMethodsActionUrl() 0 3 1
A getAuthorizeActionUrl() 0 3 1
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