Passed
Push — bugfix/supesc-227-extend-the-c... ( e9d93f...2249c4 )
by Ihor
08:00
created

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