Passed
Push — bugfix/supesc-227-extend-the-c... ( 2249c4...7d02e4 )
by Ihor
03:09
created

CrefoPayConfig::getCrefoPayOrderIdLength()   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
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
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
     * @api
131
     *
132
     * @return string
133
     */
134
    public function getProviderName(): string
135
    {
136
        return static::PROVIDER_NAME;
137
    }
138
139
    /**
140
     * @api
141
     *
142
     * @return int
143
     */
144
    public function getUserRiskClass(): int
145
    {
146
        return static::USER_RISK_CLASS;
147
    }
148
149
    /**
150
     * @api
151
     *
152
     * @return string
153
     */
154
    public function getProductTypeDefault(): string
155
    {
156
        return static::PRODUCT_TYPE_DEFAULT;
157
    }
158
159
    /**
160
     * @api
161
     *
162
     * @return string
163
     */
164
    public function getProductTypeShippingCosts(): string
165
    {
166
        return static::PRODUCT_TYPE_SHIPPING_COSTS;
167
    }
168
169
    /**
170
     * @api
171
     *
172
     * @return int
173
     */
174
    public function getProductRiskClass(): int
175
    {
176
        return static::PRODUCT_RISK_CLASS;
177
    }
178
179
    /**
180
     * @api
181
     *
182
     * @return string
183
     */
184
    public function getExternalPaymentMethodBill(): string
185
    {
186
        return static::EXTERNAL_PAYMENT_METHOD_BILL;
187
    }
188
189
    /**
190
     * @api
191
     *
192
     * @return string
193
     */
194
    public function getExternalPaymentMethodCashOnDelivery(): string
195
    {
196
        return static::EXTERNAL_PAYMENT_METHOD_CASH_ON_DELIVERY;
197
    }
198
199
    /**
200
     * @api
201
     *
202
     * @return string
203
     */
204
    public function getExternalPaymentMethodDirectDebit(): string
205
    {
206
        return static::EXTERNAL_PAYMENT_METHOD_DIRECT_DEBIT;
207
    }
208
209
    /**
210
     * @api
211
     *
212
     * @return string
213
     */
214
    public function getExternalPaymentMethodPayPal(): string
215
    {
216
        return static::EXTERNAL_PAYMENT_METHOD_PAYPAL;
217
    }
218
219
    /**
220
     * @api
221
     *
222
     * @return string
223
     */
224
    public function getExternalPaymentMethodPrepaid(): string
225
    {
226
        return static::EXTERNAL_PAYMENT_METHOD_PREPAID;
227
    }
228
229
    /**
230
     * @api
231
     *
232
     * @return string
233
     */
234
    public function getExternalPaymentMethodSofort(): string
235
    {
236
        return static::EXTERNAL_PAYMENT_METHOD_SOFORT;
237
    }
238
239
    /**
240
     * @api
241
     *
242
     * @return string
243
     */
244
    public function getExternalPaymentMethodCreditCard(): string
245
    {
246
        return static::EXTERNAL_PAYMENT_METHOD_CREDIT_CARD;
247
    }
248
249
    /**
250
     * @api
251
     *
252
     * @return string
253
     */
254
    public function getExternalPaymentMethodCreditCard3D(): string
255
    {
256
        return static::EXTERNAL_PAYMENT_METHOD_CREDIT_CARD_3D;
257
    }
258
259
    /**
260
     * @api
261
     *
262
     * @return string
263
     */
264
    public function getCrefoPayPaymentMethodBill(): string
265
    {
266
        return static::CREFO_PAY_PAYMENT_METHOD_BILL;
267
    }
268
269
    /**
270
     * @api
271
     *
272
     * @return string
273
     */
274
    public function getCrefoPayPaymentMethodCashOnDelivery(): string
275
    {
276
        return static::CREFO_PAY_PAYMENT_METHOD_CASH_ON_DELIVERY;
277
    }
278
279
    /**
280
     * @api
281
     *
282
     * @return string
283
     */
284
    public function getCrefoPayPaymentMethodDirectDebit(): string
285
    {
286
        return static::CREFO_PAY_PAYMENT_METHOD_DIRECT_DEBIT;
287
    }
288
289
    /**
290
     * @api
291
     *
292
     * @return string
293
     */
294
    public function getCrefoPayPaymentMethodPayPal(): string
295
    {
296
        return static::CREFO_PAY_PAYMENT_METHOD_PAY_PAL;
297
    }
298
299
    /**
300
     * @api
301
     *
302
     * @return string
303
     */
304
    public function getCrefoPayPaymentMethodPrepaid(): string
305
    {
306
        return static::CREFO_PAY_PAYMENT_METHOD_PREPAID;
307
    }
308
309
    /**
310
     * @api
311
     *
312
     * @return string
313
     */
314
    public function getCrefoPayPaymentMethodSofort(): string
315
    {
316
        return static::CREFO_PAY_PAYMENT_METHOD_SOFORT;
317
    }
318
319
    /**
320
     * @api
321
     *
322
     * @return string
323
     */
324
    public function getCrefoPayPaymentMethodCreditCard(): string
325
    {
326
        return static::CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD;
327
    }
328
329
    /**
330
     * @api
331
     *
332
     * @return string
333
     */
334
    public function getCrefoPayPaymentMethodCreditCard3D(): string
335
    {
336
        return static::CREFO_PAY_PAYMENT_METHOD_CREDIT_CARD_3D;
337
    }
338
}
339