Passed
Push — feature/eco-2295/eco-2356-main... ( 709f22...95d1c0 )
by Aleksey
01:08
created

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