Passed
Push — feature/eco-2295/eco-2356-main... ( 8009c8...d55ff2 )
by Aleksey
01:22
created

CrefoPayConfig::getIntegrationType()   A

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\Shared\CrefoPay;
9
10
use Spryker\Shared\Kernel\AbstractBundleConfig;
0 ignored issues
show
Bug introduced by
The type Spryker\Shared\Kernel\AbstractBundleConfig was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
11
12
class CrefoPayConfig extends AbstractBundleConfig
13
{
14
    public const PROVIDER_NAME = 'crefoPay';
15
16
    public const CONTEXT = 'ONLINE'; //Possible values: ONLINE, OFFLINE.
17
    public const USER_TYPE = 'PRIVATE'; //Possible values: PRIVATE, BUSINESS.
18
    public const USER_RISK_CLASS = 1; //Possible values: 0 -> trusted user, 1 -> default risk user, 2 -> high risk user.
19
    public const PRODUCT_TYPE_DEFAULT = 'DEFAULT';
20
    public const PRODUCT_TYPE_SHIPPING_COSTS = 'SHIPPINGCOSTS';
21
    public const PRODUCT_TYPE_COUPON = 'COUPON';
22
    public const PRODUCT_RISK_CLASS = 1;
23
24
    public const EXTERNAL_PAYMENT_METHOD_BILL = 'BILL';
25
    public const EXTERNAL_PAYMENT_METHOD_CASH_ON_DELIVERY = 'COD';
26
    public const EXTERNAL_PAYMENT_METHOD_DIRECT_DEBIT = 'DD';
27
    public const EXTERNAL_PAYMENT_METHOD_PAYPAL = 'PAYPAL';
28
    public const EXTERNAL_PAYMENT_METHOD_PREPAID = 'PREPAID';
29
    public const EXTERNAL_PAYMENT_METHOD_SOFORT = 'SU';
30
    public const EXTERNAL_PAYMENT_METHOD_CREDIT_CARD = 'CC';
31
    public const EXTERNAL_PAYMENT_METHOD_CREDIT_CARD_3D = 'CC3D';
32
33
    public const CREFO_PAY_PAYMENT_METHOD_BILL = 'crefoPayBill';
34
    public const CREFO_PAY_PAYMENT_METHOD_CASH_ON_DELIVERY = 'crefoPayCashOnDelivery';
35
    public const CREFO_PAY_PAYMENT_METHOD_DIRECT_DEBIT = 'crefoPayDirectDebit';
36
    public const CREFO_PAY_PAYMENT_METHOD_PAY_PAL = 'crefoPayPayPal';
37
    public const CREFO_PAY_PAYMENT_METHOD_PREPAID = 'crefoPayPrepaid';
38
    public const CREFO_PAY_PAYMENT_METHOD_SOFORT = 'crefoPaySofort';
39
    public const CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD = 'crefoPayCreditCard';
40
    public const CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD_3D = 'crefoPayCreditCard3D';
41
42
    public function getProviderName(): string
43
    {
44
        return static::PROVIDER_NAME;
45
    }
46
47
    /**
48
     * @return string
49
     */
50
    public function getContext(): string
51
    {
52
        return static::CONTEXT;
53
    }
54
55
    /**
56
     * @return string
57
     */
58
    public function getUserType(): string
59
    {
60
        return static::USER_TYPE;
61
    }
62
63
    /**
64
     * @return int
65
     */
66
    public function getUserRiskClass(): int
67
    {
68
        return static::USER_RISK_CLASS;
69
    }
70
71
    /**
72
     * @return string
73
     */
74
    public function getProductTypeDefault(): string
75
    {
76
        return static::PRODUCT_TYPE_DEFAULT;
77
    }
78
79
    /**
80
     * @return string
81
     */
82
    public function getProductTypeShippingCosts(): string
83
    {
84
        return static::PRODUCT_TYPE_SHIPPING_COSTS;
85
    }
86
87
    /**
88
     * @return int
89
     */
90
    public function getProductRiskClass(): int
91
    {
92
        return static::PRODUCT_RISK_CLASS;
93
    }
94
95
    /**
96
     * @return string
97
     */
98
    public function getExternalPaymentMethodBill(): string
99
    {
100
        return static::EXTERNAL_PAYMENT_METHOD_BILL;
101
    }
102
103
    /**
104
     * @return string
105
     */
106
    public function getExternalPaymentMethodCashOnDelivery(): string
107
    {
108
        return static::EXTERNAL_PAYMENT_METHOD_CASH_ON_DELIVERY;
109
    }
110
111
    /**
112
     * @return string
113
     */
114
    public function getExternalPaymentMethodDirectDebit(): string
115
    {
116
        return static::EXTERNAL_PAYMENT_METHOD_DIRECT_DEBIT;
117
    }
118
119
    /**
120
     * @return string
121
     */
122
    public function getExternalPaymentMethodPayPal(): string
123
    {
124
        return static::EXTERNAL_PAYMENT_METHOD_PAYPAL;
125
    }
126
127
    /**
128
     * @return string
129
     */
130
    public function getExternalPaymentMethodPrepaid(): string
131
    {
132
        return static::EXTERNAL_PAYMENT_METHOD_PREPAID;
133
    }
134
135
    /**
136
     * @return string
137
     */
138
    public function getExternalPaymentMethodSofort(): string
139
    {
140
        return static::EXTERNAL_PAYMENT_METHOD_SOFORT;
141
    }
142
143
    /**
144
     * @return string
145
     */
146
    public function getExternalPaymentMethodCreditCard(): string
147
    {
148
        return static::EXTERNAL_PAYMENT_METHOD_CREDIT_CARD;
149
    }
150
151
    /**
152
     * @return string
153
     */
154
    public function getExternalPaymentMethodCreditCard3D(): string
155
    {
156
        return static::EXTERNAL_PAYMENT_METHOD_CREDIT_CARD_3D;
157
    }
158
159
    /**
160
     * @return string
161
     */
162
    public function getCrefoPayPaymentMethodBill(): string
163
    {
164
        return static::CREFO_PAY_PAYMENT_METHOD_BILL;
165
    }
166
167
    /**
168
     * @return string
169
     */
170
    public function getCrefoPayPaymentMethodCashOnDelivery(): string
171
    {
172
        return static::CREFO_PAY_PAYMENT_METHOD_CASH_ON_DELIVERY;
173
    }
174
175
    /**
176
     * @return string
177
     */
178
    public function getCrefoPayPaymentMethodDirectDebit(): string
179
    {
180
        return static::CREFO_PAY_PAYMENT_METHOD_DIRECT_DEBIT;
181
    }
182
183
    /**
184
     * @return string
185
     */
186
    public function getCrefoPayPaymentMethodPayPal(): string
187
    {
188
        return static::CREFO_PAY_PAYMENT_METHOD_PAY_PAL;
189
    }
190
191
    /**
192
     * @return string
193
     */
194
    public function getCrefoPayPaymentMethodPrepaid(): string
195
    {
196
        return static::CREFO_PAY_PAYMENT_METHOD_PREPAID;
197
    }
198
199
    /**
200
     * @return string
201
     */
202
    public function getCrefoPayPaymentMethodSofort(): string
203
    {
204
        return static::CREFO_PAY_PAYMENT_METHOD_SOFORT;
205
    }
206
207
    /**
208
     * @return string
209
     */
210
    public function getCrefoPayPaymentMethodCreditCard(): string
211
    {
212
        return static::CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD;
213
    }
214
215
    /**
216
     * @return string
217
     */
218
    public function getCrefoPayPaymentMethodCreditCard3D(): string
219
    {
220
        return static::CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD_3D;
221
    }
222
}
223