Passed
Push — bugfix/supesc-227-extend-the-c... ( d3c092...407b0f )
by
unknown
05:41 queued 01:11
created

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