CrefoPayConfig   A
last analyzed

Complexity

Total Complexity 21

Size/Duplication

Total Lines 343
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 21
eloc 44
c 1
b 0
f 0
dl 0
loc 343
rs 10

21 Methods

Rating   Name   Duplication   Size   Complexity  
A getCrefoPayPaymentMethodCreditCard3D() 0 3 1
A getProductRiskClass() 0 3 1
A getCrefoPayPaymentMethodCreditCard() 0 3 1
A getUserRiskClass() 0 3 1
A getCrefoPayPaymentMethodPrepaid() 0 3 1
A getExternalPaymentMethodSofort() 0 3 1
A getExternalPaymentMethodDirectDebit() 0 3 1
A getExternalPaymentMethodBill() 0 3 1
A getProductTypeDefault() 0 3 1
A getCrefoPayPaymentMethodPayPal() 0 3 1
A getProviderName() 0 3 1
A getExternalPaymentMethodCreditCard() 0 3 1
A getCrefoPayPaymentMethodBill() 0 3 1
A getCrefoPayPaymentMethodDirectDebit() 0 3 1
A getCrefoPayPaymentMethodSofort() 0 3 1
A getCrefoPayPaymentMethodCashOnDelivery() 0 3 1
A getExternalPaymentMethodPrepaid() 0 3 1
A getExternalPaymentMethodCreditCard3D() 0 3 1
A getExternalPaymentMethodCashOnDelivery() 0 3 1
A getProductTypeShippingCosts() 0 3 1
A getExternalPaymentMethodPayPal() 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\Shared\CrefoPay;
9
10
use Spryker\Shared\Kernel\AbstractBundleConfig;
11
12
class CrefoPayConfig extends AbstractBundleConfig
13
{
14
    /**
15
     * @api
16
     *
17
     * @var string
18
     */
19
    public const PROVIDER_NAME = 'crefoPay';
20
21
    /**
22
     * @api
23
     *
24
     * @var string
25
     */
26
    public const CREFO_PAY_PAYMENT_METHOD_BILL = 'crefoPayBill';
27
28
    /**
29
     * @api
30
     *
31
     * @var string
32
     */
33
    public const CREFO_PAY_PAYMENT_METHOD_CASH_ON_DELIVERY = 'crefoPayCashOnDelivery';
34
35
    /**
36
     * @api
37
     *
38
     * @var string
39
     */
40
    public const CREFO_PAY_PAYMENT_METHOD_DIRECT_DEBIT = 'crefoPayDirectDebit';
41
42
    /**
43
     * @api
44
     *
45
     * @var string
46
     */
47
    public const CREFO_PAY_PAYMENT_METHOD_PAY_PAL = 'crefoPayPayPal';
48
49
    /**
50
     * @api
51
     *
52
     * @var string
53
     */
54
    public const CREFO_PAY_PAYMENT_METHOD_PREPAID = 'crefoPayPrepaid';
55
56
    /**
57
     * @api
58
     *
59
     * @var string
60
     */
61
    public const CREFO_PAY_PAYMENT_METHOD_SOFORT = 'crefoPaySofort';
62
63
    /**
64
     * @api
65
     *
66
     * @var string
67
     */
68
    public const CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD = 'crefoPayCreditCard';
69
70
    /**
71
     * @api
72
     *
73
     * @var string
74
     */
75
    public const CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD_3D = 'crefoPayCreditCard3D';
76
77
    /**
78
     * Possible values:
79
     * 0 -> trusted user
80
     * 1 -> default risk user
81
     * 2 -> high risk user
82
     *
83
     * @var int
84
     */
85
    protected const USER_RISK_CLASS = 1;
86
87
    /**
88
     * @var string
89
     */
90
    protected const PRODUCT_TYPE_DEFAULT = 'DEFAULT';
91
92
    /**
93
     * @var string
94
     */
95
    protected const PRODUCT_TYPE_SHIPPING_COSTS = 'SHIPPINGCOSTS';
96
97
    /**
98
     * @var string
99
     */
100
    protected const PRODUCT_TYPE_COUPON = 'COUPON';
101
102
    /**
103
     * @var int
104
     */
105
    protected const PRODUCT_RISK_CLASS = 1;
106
107
    /**
108
     * @var string
109
     */
110
    protected const EXTERNAL_PAYMENT_METHOD_BILL = 'BILL';
111
112
    /**
113
     * @var string
114
     */
115
    protected const EXTERNAL_PAYMENT_METHOD_CASH_ON_DELIVERY = 'COD';
116
117
    /**
118
     * @var string
119
     */
120
    protected const EXTERNAL_PAYMENT_METHOD_DIRECT_DEBIT = 'DD';
121
122
    /**
123
     * @var string
124
     */
125
    protected const EXTERNAL_PAYMENT_METHOD_PAYPAL = 'PAYPAL';
126
127
    /**
128
     * @var string
129
     */
130
    protected const EXTERNAL_PAYMENT_METHOD_PREPAID = 'PREPAID';
131
132
    /**
133
     * @var string
134
     */
135
    protected const EXTERNAL_PAYMENT_METHOD_SOFORT = 'SU';
136
137
    /**
138
     * @var string
139
     */
140
    protected const EXTERNAL_PAYMENT_METHOD_CREDIT_CARD = 'CC';
141
142
    /**
143
     * @var string
144
     */
145
    protected const EXTERNAL_PAYMENT_METHOD_CREDIT_CARD_3D = 'CC3D';
146
147
    /**
148
     * @api
149
     *
150
     * @return string
151
     */
152
    public function getProviderName(): string
153
    {
154
        return static::PROVIDER_NAME;
155
    }
156
157
    /**
158
     * @api
159
     *
160
     * @return int
161
     */
162
    public function getUserRiskClass(): int
163
    {
164
        return static::USER_RISK_CLASS;
165
    }
166
167
    /**
168
     * @api
169
     *
170
     * @return string
171
     */
172
    public function getProductTypeDefault(): string
173
    {
174
        return static::PRODUCT_TYPE_DEFAULT;
175
    }
176
177
    /**
178
     * @api
179
     *
180
     * @return string
181
     */
182
    public function getProductTypeShippingCosts(): string
183
    {
184
        return static::PRODUCT_TYPE_SHIPPING_COSTS;
185
    }
186
187
    /**
188
     * @api
189
     *
190
     * @return int
191
     */
192
    public function getProductRiskClass(): int
193
    {
194
        return static::PRODUCT_RISK_CLASS;
195
    }
196
197
    /**
198
     * @api
199
     *
200
     * @return string
201
     */
202
    public function getExternalPaymentMethodBill(): string
203
    {
204
        return static::EXTERNAL_PAYMENT_METHOD_BILL;
205
    }
206
207
    /**
208
     * @api
209
     *
210
     * @return string
211
     */
212
    public function getExternalPaymentMethodCashOnDelivery(): string
213
    {
214
        return static::EXTERNAL_PAYMENT_METHOD_CASH_ON_DELIVERY;
215
    }
216
217
    /**
218
     * @api
219
     *
220
     * @return string
221
     */
222
    public function getExternalPaymentMethodDirectDebit(): string
223
    {
224
        return static::EXTERNAL_PAYMENT_METHOD_DIRECT_DEBIT;
225
    }
226
227
    /**
228
     * @api
229
     *
230
     * @return string
231
     */
232
    public function getExternalPaymentMethodPayPal(): string
233
    {
234
        return static::EXTERNAL_PAYMENT_METHOD_PAYPAL;
235
    }
236
237
    /**
238
     * @api
239
     *
240
     * @return string
241
     */
242
    public function getExternalPaymentMethodPrepaid(): string
243
    {
244
        return static::EXTERNAL_PAYMENT_METHOD_PREPAID;
245
    }
246
247
    /**
248
     * @api
249
     *
250
     * @return string
251
     */
252
    public function getExternalPaymentMethodSofort(): string
253
    {
254
        return static::EXTERNAL_PAYMENT_METHOD_SOFORT;
255
    }
256
257
    /**
258
     * @api
259
     *
260
     * @return string
261
     */
262
    public function getExternalPaymentMethodCreditCard(): string
263
    {
264
        return static::EXTERNAL_PAYMENT_METHOD_CREDIT_CARD;
265
    }
266
267
    /**
268
     * @api
269
     *
270
     * @return string
271
     */
272
    public function getExternalPaymentMethodCreditCard3D(): string
273
    {
274
        return static::EXTERNAL_PAYMENT_METHOD_CREDIT_CARD_3D;
275
    }
276
277
    /**
278
     * @api
279
     *
280
     * @return string
281
     */
282
    public function getCrefoPayPaymentMethodBill(): string
283
    {
284
        return static::CREFO_PAY_PAYMENT_METHOD_BILL;
285
    }
286
287
    /**
288
     * @api
289
     *
290
     * @return string
291
     */
292
    public function getCrefoPayPaymentMethodCashOnDelivery(): string
293
    {
294
        return static::CREFO_PAY_PAYMENT_METHOD_CASH_ON_DELIVERY;
295
    }
296
297
    /**
298
     * @api
299
     *
300
     * @return string
301
     */
302
    public function getCrefoPayPaymentMethodDirectDebit(): string
303
    {
304
        return static::CREFO_PAY_PAYMENT_METHOD_DIRECT_DEBIT;
305
    }
306
307
    /**
308
     * @api
309
     *
310
     * @return string
311
     */
312
    public function getCrefoPayPaymentMethodPayPal(): string
313
    {
314
        return static::CREFO_PAY_PAYMENT_METHOD_PAY_PAL;
315
    }
316
317
    /**
318
     * @api
319
     *
320
     * @return string
321
     */
322
    public function getCrefoPayPaymentMethodPrepaid(): string
323
    {
324
        return static::CREFO_PAY_PAYMENT_METHOD_PREPAID;
325
    }
326
327
    /**
328
     * @api
329
     *
330
     * @return string
331
     */
332
    public function getCrefoPayPaymentMethodSofort(): string
333
    {
334
        return static::CREFO_PAY_PAYMENT_METHOD_SOFORT;
335
    }
336
337
    /**
338
     * @api
339
     *
340
     * @return string
341
     */
342
    public function getCrefoPayPaymentMethodCreditCard(): string
343
    {
344
        return static::CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD;
345
    }
346
347
    /**
348
     * @api
349
     *
350
     * @return string
351
     */
352
    public function getCrefoPayPaymentMethodCreditCard3D(): string
353
    {
354
        return static::CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD_3D;
355
    }
356
}
357