|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
/** |
|
4
|
|
|
* PAYONE Magento 2 Connector is free software: you can redistribute it and/or modify |
|
5
|
|
|
* it under the terms of the GNU Lesser General Public License as published by |
|
6
|
|
|
* the Free Software Foundation, either version 3 of the License, or |
|
7
|
|
|
* (at your option) any later version. |
|
8
|
|
|
* |
|
9
|
|
|
* PAYONE Magento 2 Connector is distributed in the hope that it will be useful, |
|
10
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
11
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
12
|
|
|
* GNU Lesser General Public License for more details. |
|
13
|
|
|
* |
|
14
|
|
|
* You should have received a copy of the GNU Lesser General Public License |
|
15
|
|
|
* along with PAYONE Magento 2 Connector. If not, see <http://www.gnu.org/licenses/>. |
|
16
|
|
|
* |
|
17
|
|
|
* PHP version 5 |
|
18
|
|
|
* |
|
19
|
|
|
* @category Payone |
|
20
|
|
|
* @package Payone_Magento2_Plugin |
|
21
|
|
|
* @author FATCHIP GmbH <[email protected]> |
|
22
|
|
|
* @copyright 2003 - 2020 Payone GmbH |
|
23
|
|
|
* @license <http://www.gnu.org/licenses/> GNU Lesser General Public License |
|
24
|
|
|
* @link http://www.payone.de |
|
25
|
|
|
*/ |
|
26
|
|
|
|
|
27
|
|
|
namespace Payone\Core\Setup\Tables; |
|
28
|
|
|
|
|
29
|
|
|
use Magento\Framework\DB\Ddl\Table; |
|
|
|
|
|
|
30
|
|
|
|
|
31
|
|
|
/** |
|
32
|
|
|
* Class defining the data needed to create the payone_ratepay_profile_config table |
|
33
|
|
|
*/ |
|
34
|
|
|
class RatepayProfileConfig |
|
35
|
|
|
{ |
|
36
|
|
|
const TABLE_RATEPAY_PROFILE_CONFIG = 'payone_ratepay_profile_config'; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Table data needed to create the new table payone_ratepay_profile_config |
|
40
|
|
|
* |
|
41
|
|
|
* @var array |
|
42
|
|
|
*/ |
|
43
|
|
|
protected static $aTableData = [ |
|
44
|
|
|
'title' => self::TABLE_RATEPAY_PROFILE_CONFIG, |
|
45
|
|
|
'columns' => [ |
|
46
|
|
|
'shop_id' => ['type' => Table::TYPE_INTEGER, 'length' => null, 'option' => ['identity' => true, 'unsigned' => true, 'nullable' => false, 'primary' => true]], |
|
47
|
|
|
'profile_id' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
48
|
|
|
'merchant_name' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
49
|
|
|
'merchant_status' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
50
|
|
|
'shop_name' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
51
|
|
|
'name' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
52
|
|
|
'currency' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
53
|
|
|
'type' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
54
|
|
|
'activation_status_elv' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
55
|
|
|
'activation_status_installment' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
56
|
|
|
'activation_status_invoice' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
57
|
|
|
'activation_status_prepayment' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
58
|
|
|
'amount_min_longrun' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
59
|
|
|
'b2b_pq_full' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
60
|
|
|
'b2b_pq_light' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
61
|
|
|
'b2b_elv' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
62
|
|
|
'b2b_installment' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
63
|
|
|
'b2b_invoice' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
64
|
|
|
'b2b_prepayment' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
65
|
|
|
'country_code_billing' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
66
|
|
|
'country_code_delivery' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
67
|
|
|
'delivery_address_pq_full' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
68
|
|
|
'delivery_address_pq_light' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
69
|
|
|
'delivery_address_elv' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
70
|
|
|
'delivery_address_installment' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
71
|
|
|
'delivery_address_invoice' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
72
|
|
|
'delivery_address_prepayment' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
73
|
|
|
'device_fingerprint_snippet_id' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
74
|
|
|
'eligibility_device_fingerprint' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
75
|
|
|
'eligibility_ratepay_elv' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
76
|
|
|
'eligibility_ratepay_installment' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
77
|
|
|
'eligibility_ratepay_invoice' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
78
|
|
|
'eligibility_ratepay_pq_full' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
79
|
|
|
'eligibility_ratepay_pq_light' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
80
|
|
|
'eligibility_ratepay_prepayment' => ['type' => Table::TYPE_INTEGER, 'length' => 1, 'option' => ['nullable' => true, 'default' => NULL]], |
|
81
|
|
|
'interest_rate_merchant_towards_bank' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
82
|
|
|
'interestrate_default' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
83
|
|
|
'interestrate_max' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
84
|
|
|
'interestrate_min' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
85
|
|
|
'min_difference_dueday' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
86
|
|
|
'month_allowed' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
87
|
|
|
'month_longrun' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
88
|
|
|
'month_number_max' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
89
|
|
|
'month_number_min' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
90
|
|
|
'payment_amount' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
91
|
|
|
'payment_firstday' => ['type' => Table::TYPE_INTEGER, 'length' => 2, 'option' => ['nullable' => true, 'default' => NULL]], |
|
92
|
|
|
'payment_lastrate' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
93
|
|
|
'rate_min_longrun' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
94
|
|
|
'rate_min_normal' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
95
|
|
|
'service_charge' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
96
|
|
|
'tx_limit_elv_max' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
97
|
|
|
'tx_limit_elv_min' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
98
|
|
|
'tx_limit_installment_max' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
99
|
|
|
'tx_limit_installment_min' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
100
|
|
|
'tx_limit_invoice_max' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
101
|
|
|
'tx_limit_invoice_min' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
102
|
|
|
'tx_limit_prepayment_max' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
103
|
|
|
'tx_limit_prepayment_min' => ['type' => Table::TYPE_DECIMAL, 'length' => '20,4', 'option' => ['nullable' => true, 'default' => NULL]], |
|
104
|
|
|
'valid_payment_firstdays' => ['type' => Table::TYPE_TEXT, 'length' => 32, 'option' => ['nullable' => true, 'default' => NULL]], |
|
105
|
|
|
], |
|
106
|
|
|
'comment' => 'Ratepay profile configuration' |
|
107
|
|
|
]; |
|
108
|
|
|
|
|
109
|
|
|
/** |
|
110
|
|
|
* Return the table data needed to create this table |
|
111
|
|
|
* |
|
112
|
|
|
* @return array |
|
113
|
|
|
*/ |
|
114
|
|
|
public static function getData() |
|
115
|
|
|
{ |
|
116
|
|
|
return self::$aTableData; |
|
117
|
|
|
} |
|
118
|
|
|
} |
|
119
|
|
|
|
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths