ultracart_api 3.4.6 → 3.4.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +20 -4
- data/docs/EmailList.md +1 -0
- data/docs/EmailListSegmentFolder.md +12 -0
- data/docs/EmailListSegmentFolderResponse.md +12 -0
- data/docs/EmailListSegmentFoldersResponse.md +12 -0
- data/docs/EmailSegment.md +1 -0
- data/docs/PaymentsConfiguration.md +5 -3
- data/docs/PaymentsConfigurationAffirm.md +7 -7
- data/docs/PaymentsConfigurationAmazon.md +7 -7
- data/docs/PaymentsConfigurationCOD.md +5 -5
- data/docs/PaymentsConfigurationCash.md +1 -1
- data/docs/PaymentsConfigurationCheck.md +12 -17
- data/docs/PaymentsConfigurationCreditCard.md +11 -9
- data/docs/PaymentsConfigurationCreditCardType.md +17 -0
- data/docs/PaymentsConfigurationEcheck.md +11 -0
- data/docs/PaymentsConfigurationLoanHero.md +4 -4
- data/docs/PaymentsConfigurationMoneyOrder.md +11 -0
- data/docs/PaymentsConfigurationPayPal.md +28 -28
- data/docs/PaymentsConfigurationPurchaseOrder.md +3 -3
- data/docs/PaymentsConfigurationQuoteRequest.md +2 -2
- data/docs/PaymentsConfigurationRestrictions.md +14 -12
- data/docs/PaymentsConfigurationRestrictionsTheme.md +10 -0
- data/docs/PaymentsConfigurationSezzle.md +8 -7
- data/docs/PaymentsConfigurationTestMethod.md +18 -0
- data/docs/PaymentsConfigurationWePay.md +26 -26
- data/docs/PaymentsConfigurationWireTransfer.md +10 -10
- data/docs/StorefrontApi.md +260 -0
- data/lib/ultracart_api.rb +8 -0
- data/lib/ultracart_api/api/storefront_api.rb +295 -0
- data/lib/ultracart_api/models/email_list.rb +11 -1
- data/lib/ultracart_api/models/email_list_segment_folder.rb +240 -0
- data/lib/ultracart_api/models/email_list_segment_folder_response.rb +221 -0
- data/lib/ultracart_api/models/email_list_segment_folders_response.rb +223 -0
- data/lib/ultracart_api/models/email_segment.rb +11 -1
- data/lib/ultracart_api/models/payments_configuration.rb +50 -31
- data/lib/ultracart_api/models/payments_configuration_affirm.rb +81 -40
- data/lib/ultracart_api/models/payments_configuration_amazon.rb +51 -44
- data/lib/ultracart_api/models/payments_configuration_cash.rb +4 -3
- data/lib/ultracart_api/models/payments_configuration_check.rb +72 -103
- data/lib/ultracart_api/models/payments_configuration_cod.rb +39 -34
- data/lib/ultracart_api/models/payments_configuration_credit_card.rb +74 -39
- data/lib/ultracart_api/models/payments_configuration_credit_card_type.rb +309 -0
- data/lib/ultracart_api/models/payments_configuration_echeck.rb +214 -0
- data/lib/ultracart_api/models/payments_configuration_loan_hero.rb +23 -19
- data/lib/ultracart_api/models/payments_configuration_money_order.rb +214 -0
- data/lib/ultracart_api/models/payments_configuration_pay_pal.rb +270 -172
- data/lib/ultracart_api/models/payments_configuration_purchase_order.rb +19 -16
- data/lib/ultracart_api/models/payments_configuration_quote_request.rb +12 -10
- data/lib/ultracart_api/models/payments_configuration_restrictions.rb +73 -39
- data/lib/ultracart_api/models/payments_configuration_restrictions_theme.rb +202 -0
- data/lib/ultracart_api/models/payments_configuration_sezzle.rb +99 -46
- data/lib/ultracart_api/models/payments_configuration_test_method.rb +319 -0
- data/lib/ultracart_api/models/payments_configuration_we_pay.rb +186 -160
- data/lib/ultracart_api/models/payments_configuration_wire_transfer.rb +71 -61
- data/lib/ultracart_api/version.rb +1 -1
- metadata +18 -2
@@ -14,6 +14,7 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class PaymentsConfigurationCash
|
17
|
+
# Master flag indicating this merchant accepts cash
|
17
18
|
attr_accessor :accept_cash
|
18
19
|
|
19
20
|
attr_accessor :restrictions
|
@@ -21,7 +22,7 @@ module UltracartClient
|
|
21
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
22
23
|
def self.attribute_map
|
23
24
|
{
|
24
|
-
:'accept_cash' => :'
|
25
|
+
:'accept_cash' => :'accept_cash',
|
25
26
|
:'restrictions' => :'restrictions'
|
26
27
|
}
|
27
28
|
end
|
@@ -42,8 +43,8 @@ module UltracartClient
|
|
42
43
|
# convert string to symbol for hash key
|
43
44
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
44
45
|
|
45
|
-
if attributes.has_key?(:'
|
46
|
-
self.accept_cash = attributes[:'
|
46
|
+
if attributes.has_key?(:'accept_cash')
|
47
|
+
self.accept_cash = attributes[:'accept_cash']
|
47
48
|
end
|
48
49
|
|
49
50
|
if attributes.has_key?(:'restrictions')
|
@@ -14,63 +14,60 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class PaymentsConfigurationCheck
|
17
|
+
# Master flag indicating this merchant accepts paper checks
|
17
18
|
attr_accessor :accept_check_orders
|
18
19
|
|
19
|
-
|
20
|
-
|
21
|
-
attr_accessor :accept_money_orders
|
22
|
-
|
23
|
-
attr_accessor :check_accounting_code
|
24
|
-
|
25
|
-
attr_accessor :check_deposit_to_account
|
20
|
+
# Optional Quickbooks accounting code
|
21
|
+
attr_accessor :accounting_code
|
26
22
|
|
23
|
+
# This is who the customer makes the check out to
|
27
24
|
attr_accessor :checks_payable_to
|
28
25
|
|
29
|
-
|
30
|
-
|
31
|
-
attr_accessor :e_check_deposit_to_account
|
26
|
+
# Optional Quickbooks deposit to account
|
27
|
+
attr_accessor :deposit_to_account
|
32
28
|
|
29
|
+
# MailTo address line 1
|
33
30
|
attr_accessor :mail_to_address1
|
34
31
|
|
32
|
+
# MailTo address line 2
|
35
33
|
attr_accessor :mail_to_address2
|
36
34
|
|
35
|
+
# MailTo city
|
37
36
|
attr_accessor :mail_to_city
|
38
37
|
|
38
|
+
# MailTo country
|
39
39
|
attr_accessor :mail_to_country
|
40
40
|
|
41
|
+
# MailTo name
|
41
42
|
attr_accessor :mail_to_name
|
42
43
|
|
43
|
-
|
44
|
-
|
45
|
-
attr_accessor :mail_to_zip
|
46
|
-
|
47
|
-
attr_accessor :money_order_accounting_code
|
44
|
+
# MailTo postal code
|
45
|
+
attr_accessor :mail_to_postal_code
|
48
46
|
|
49
|
-
|
47
|
+
# MailTo store
|
48
|
+
attr_accessor :mail_to_store
|
50
49
|
|
51
50
|
attr_accessor :restrictions
|
52
51
|
|
52
|
+
# Test methods for this payment method
|
53
|
+
attr_accessor :test_methods
|
54
|
+
|
53
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
54
56
|
def self.attribute_map
|
55
57
|
{
|
56
|
-
:'accept_check_orders' => :'
|
57
|
-
:'
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
62
|
-
:'
|
63
|
-
:'
|
64
|
-
:'
|
65
|
-
:'
|
66
|
-
:'
|
67
|
-
:'
|
68
|
-
:'
|
69
|
-
:'mail_to_state' => :'mailToState',
|
70
|
-
:'mail_to_zip' => :'mailToZip',
|
71
|
-
:'money_order_accounting_code' => :'moneyOrderAccountingCode',
|
72
|
-
:'money_order_deposit_to_account' => :'moneyOrderDepositToAccount',
|
73
|
-
:'restrictions' => :'restrictions'
|
58
|
+
:'accept_check_orders' => :'accept_check_orders',
|
59
|
+
:'accounting_code' => :'accounting_code',
|
60
|
+
:'checks_payable_to' => :'checks_payable_to',
|
61
|
+
:'deposit_to_account' => :'deposit_to_account',
|
62
|
+
:'mail_to_address1' => :'mail_to_address1',
|
63
|
+
:'mail_to_address2' => :'mail_to_address2',
|
64
|
+
:'mail_to_city' => :'mail_to_city',
|
65
|
+
:'mail_to_country' => :'mail_to_country',
|
66
|
+
:'mail_to_name' => :'mail_to_name',
|
67
|
+
:'mail_to_postal_code' => :'mail_to_postal_code',
|
68
|
+
:'mail_to_store' => :'mail_to_store',
|
69
|
+
:'restrictions' => :'restrictions',
|
70
|
+
:'test_methods' => :'test_methods'
|
74
71
|
}
|
75
72
|
end
|
76
73
|
|
@@ -78,23 +75,18 @@ module UltracartClient
|
|
78
75
|
def self.swagger_types
|
79
76
|
{
|
80
77
|
:'accept_check_orders' => :'BOOLEAN',
|
81
|
-
:'
|
82
|
-
:'accept_money_orders' => :'BOOLEAN',
|
83
|
-
:'check_accounting_code' => :'String',
|
84
|
-
:'check_deposit_to_account' => :'String',
|
78
|
+
:'accounting_code' => :'String',
|
85
79
|
:'checks_payable_to' => :'String',
|
86
|
-
:'
|
87
|
-
:'e_check_deposit_to_account' => :'String',
|
80
|
+
:'deposit_to_account' => :'String',
|
88
81
|
:'mail_to_address1' => :'String',
|
89
82
|
:'mail_to_address2' => :'String',
|
90
83
|
:'mail_to_city' => :'String',
|
91
84
|
:'mail_to_country' => :'String',
|
92
85
|
:'mail_to_name' => :'String',
|
93
|
-
:'
|
94
|
-
:'
|
95
|
-
:'
|
96
|
-
:'
|
97
|
-
:'restrictions' => :'PaymentsConfigurationRestrictions'
|
86
|
+
:'mail_to_postal_code' => :'String',
|
87
|
+
:'mail_to_store' => :'String',
|
88
|
+
:'restrictions' => :'PaymentsConfigurationRestrictions',
|
89
|
+
:'test_methods' => :'Array<PaymentsConfigurationTestMethod>'
|
98
90
|
}
|
99
91
|
end
|
100
92
|
|
@@ -106,77 +98,59 @@ module UltracartClient
|
|
106
98
|
# convert string to symbol for hash key
|
107
99
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
108
100
|
|
109
|
-
if attributes.has_key?(:'
|
110
|
-
self.accept_check_orders = attributes[:'
|
111
|
-
end
|
112
|
-
|
113
|
-
if attributes.has_key?(:'acceptECheck')
|
114
|
-
self.accept_e_check = attributes[:'acceptECheck']
|
115
|
-
end
|
116
|
-
|
117
|
-
if attributes.has_key?(:'acceptMoneyOrders')
|
118
|
-
self.accept_money_orders = attributes[:'acceptMoneyOrders']
|
101
|
+
if attributes.has_key?(:'accept_check_orders')
|
102
|
+
self.accept_check_orders = attributes[:'accept_check_orders']
|
119
103
|
end
|
120
104
|
|
121
|
-
if attributes.has_key?(:'
|
122
|
-
self.
|
105
|
+
if attributes.has_key?(:'accounting_code')
|
106
|
+
self.accounting_code = attributes[:'accounting_code']
|
123
107
|
end
|
124
108
|
|
125
|
-
if attributes.has_key?(:'
|
126
|
-
self.
|
109
|
+
if attributes.has_key?(:'checks_payable_to')
|
110
|
+
self.checks_payable_to = attributes[:'checks_payable_to']
|
127
111
|
end
|
128
112
|
|
129
|
-
if attributes.has_key?(:'
|
130
|
-
self.
|
113
|
+
if attributes.has_key?(:'deposit_to_account')
|
114
|
+
self.deposit_to_account = attributes[:'deposit_to_account']
|
131
115
|
end
|
132
116
|
|
133
|
-
if attributes.has_key?(:'
|
134
|
-
self.
|
117
|
+
if attributes.has_key?(:'mail_to_address1')
|
118
|
+
self.mail_to_address1 = attributes[:'mail_to_address1']
|
135
119
|
end
|
136
120
|
|
137
|
-
if attributes.has_key?(:'
|
138
|
-
self.
|
121
|
+
if attributes.has_key?(:'mail_to_address2')
|
122
|
+
self.mail_to_address2 = attributes[:'mail_to_address2']
|
139
123
|
end
|
140
124
|
|
141
|
-
if attributes.has_key?(:'
|
142
|
-
self.
|
125
|
+
if attributes.has_key?(:'mail_to_city')
|
126
|
+
self.mail_to_city = attributes[:'mail_to_city']
|
143
127
|
end
|
144
128
|
|
145
|
-
if attributes.has_key?(:'
|
146
|
-
self.
|
129
|
+
if attributes.has_key?(:'mail_to_country')
|
130
|
+
self.mail_to_country = attributes[:'mail_to_country']
|
147
131
|
end
|
148
132
|
|
149
|
-
if attributes.has_key?(:'
|
150
|
-
self.
|
133
|
+
if attributes.has_key?(:'mail_to_name')
|
134
|
+
self.mail_to_name = attributes[:'mail_to_name']
|
151
135
|
end
|
152
136
|
|
153
|
-
if attributes.has_key?(:'
|
154
|
-
self.
|
137
|
+
if attributes.has_key?(:'mail_to_postal_code')
|
138
|
+
self.mail_to_postal_code = attributes[:'mail_to_postal_code']
|
155
139
|
end
|
156
140
|
|
157
|
-
if attributes.has_key?(:'
|
158
|
-
self.
|
159
|
-
end
|
160
|
-
|
161
|
-
if attributes.has_key?(:'mailToState')
|
162
|
-
self.mail_to_state = attributes[:'mailToState']
|
163
|
-
end
|
164
|
-
|
165
|
-
if attributes.has_key?(:'mailToZip')
|
166
|
-
self.mail_to_zip = attributes[:'mailToZip']
|
167
|
-
end
|
168
|
-
|
169
|
-
if attributes.has_key?(:'moneyOrderAccountingCode')
|
170
|
-
self.money_order_accounting_code = attributes[:'moneyOrderAccountingCode']
|
171
|
-
end
|
172
|
-
|
173
|
-
if attributes.has_key?(:'moneyOrderDepositToAccount')
|
174
|
-
self.money_order_deposit_to_account = attributes[:'moneyOrderDepositToAccount']
|
141
|
+
if attributes.has_key?(:'mail_to_store')
|
142
|
+
self.mail_to_store = attributes[:'mail_to_store']
|
175
143
|
end
|
176
144
|
|
177
145
|
if attributes.has_key?(:'restrictions')
|
178
146
|
self.restrictions = attributes[:'restrictions']
|
179
147
|
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'test_methods')
|
150
|
+
if (value = attributes[:'test_methods']).is_a?(Array)
|
151
|
+
self.test_methods = value
|
152
|
+
end
|
153
|
+
end
|
180
154
|
end
|
181
155
|
|
182
156
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -198,23 +172,18 @@ module UltracartClient
|
|
198
172
|
return true if self.equal?(o)
|
199
173
|
self.class == o.class &&
|
200
174
|
accept_check_orders == o.accept_check_orders &&
|
201
|
-
|
202
|
-
accept_money_orders == o.accept_money_orders &&
|
203
|
-
check_accounting_code == o.check_accounting_code &&
|
204
|
-
check_deposit_to_account == o.check_deposit_to_account &&
|
175
|
+
accounting_code == o.accounting_code &&
|
205
176
|
checks_payable_to == o.checks_payable_to &&
|
206
|
-
|
207
|
-
e_check_deposit_to_account == o.e_check_deposit_to_account &&
|
177
|
+
deposit_to_account == o.deposit_to_account &&
|
208
178
|
mail_to_address1 == o.mail_to_address1 &&
|
209
179
|
mail_to_address2 == o.mail_to_address2 &&
|
210
180
|
mail_to_city == o.mail_to_city &&
|
211
181
|
mail_to_country == o.mail_to_country &&
|
212
182
|
mail_to_name == o.mail_to_name &&
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
restrictions == o.restrictions
|
183
|
+
mail_to_postal_code == o.mail_to_postal_code &&
|
184
|
+
mail_to_store == o.mail_to_store &&
|
185
|
+
restrictions == o.restrictions &&
|
186
|
+
test_methods == o.test_methods
|
218
187
|
end
|
219
188
|
|
220
189
|
# @see the `==` method
|
@@ -226,7 +195,7 @@ module UltracartClient
|
|
226
195
|
# Calculates hash code according to all attributes.
|
227
196
|
# @return [Fixnum] Hash code
|
228
197
|
def hash
|
229
|
-
[accept_check_orders,
|
198
|
+
[accept_check_orders, accounting_code, checks_payable_to, deposit_to_account, mail_to_address1, mail_to_address2, mail_to_city, mail_to_country, mail_to_name, mail_to_postal_code, mail_to_store, restrictions, test_methods].hash
|
230
199
|
end
|
231
200
|
|
232
201
|
# Builds the object from hash
|
@@ -14,27 +14,32 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class PaymentsConfigurationCOD
|
17
|
+
# Master flag indicating this merchant accepts COD
|
17
18
|
attr_accessor :accept_cod
|
18
19
|
|
19
|
-
|
20
|
+
# If true, only approved customers may pay with COD
|
21
|
+
attr_accessor :approved_customers_only
|
20
22
|
|
21
|
-
attr_accessor :
|
23
|
+
attr_accessor :restrictions
|
22
24
|
|
23
|
-
|
25
|
+
# Optional field, if surcharge is set, this is the accounting code the surcharge is tagged with when sent to Quickbooks
|
26
|
+
attr_accessor :surcharge_accounting_code
|
24
27
|
|
25
|
-
|
28
|
+
# Additional cost for using COD
|
29
|
+
attr_accessor :surcharge_fee
|
26
30
|
|
27
|
-
|
31
|
+
# Additional percentage cost for using COD
|
32
|
+
attr_accessor :surcharge_percentage
|
28
33
|
|
29
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
30
35
|
def self.attribute_map
|
31
36
|
{
|
32
|
-
:'accept_cod' => :'
|
33
|
-
:'
|
34
|
-
:'
|
35
|
-
:'
|
36
|
-
:'
|
37
|
-
:'
|
37
|
+
:'accept_cod' => :'accept_cod',
|
38
|
+
:'approved_customers_only' => :'approved_customers_only',
|
39
|
+
:'restrictions' => :'restrictions',
|
40
|
+
:'surcharge_accounting_code' => :'surcharge_accounting_code',
|
41
|
+
:'surcharge_fee' => :'surcharge_fee',
|
42
|
+
:'surcharge_percentage' => :'surcharge_percentage'
|
38
43
|
}
|
39
44
|
end
|
40
45
|
|
@@ -42,11 +47,11 @@ module UltracartClient
|
|
42
47
|
def self.swagger_types
|
43
48
|
{
|
44
49
|
:'accept_cod' => :'BOOLEAN',
|
45
|
-
:'
|
46
|
-
:'
|
47
|
-
:'
|
48
|
-
:'
|
49
|
-
:'
|
50
|
+
:'approved_customers_only' => :'BOOLEAN',
|
51
|
+
:'restrictions' => :'PaymentsConfigurationRestrictions',
|
52
|
+
:'surcharge_accounting_code' => :'String',
|
53
|
+
:'surcharge_fee' => :'String',
|
54
|
+
:'surcharge_percentage' => :'String'
|
50
55
|
}
|
51
56
|
end
|
52
57
|
|
@@ -58,28 +63,28 @@ module UltracartClient
|
|
58
63
|
# convert string to symbol for hash key
|
59
64
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
60
65
|
|
61
|
-
if attributes.has_key?(:'
|
62
|
-
self.accept_cod = attributes[:'
|
66
|
+
if attributes.has_key?(:'accept_cod')
|
67
|
+
self.accept_cod = attributes[:'accept_cod']
|
63
68
|
end
|
64
69
|
|
65
|
-
if attributes.has_key?(:'
|
66
|
-
self.
|
70
|
+
if attributes.has_key?(:'approved_customers_only')
|
71
|
+
self.approved_customers_only = attributes[:'approved_customers_only']
|
67
72
|
end
|
68
73
|
|
69
|
-
if attributes.has_key?(:'
|
70
|
-
self.
|
74
|
+
if attributes.has_key?(:'restrictions')
|
75
|
+
self.restrictions = attributes[:'restrictions']
|
71
76
|
end
|
72
77
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
78
|
+
if attributes.has_key?(:'surcharge_accounting_code')
|
79
|
+
self.surcharge_accounting_code = attributes[:'surcharge_accounting_code']
|
75
80
|
end
|
76
81
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
self.
|
82
|
+
if attributes.has_key?(:'surcharge_fee')
|
83
|
+
self.surcharge_fee = attributes[:'surcharge_fee']
|
79
84
|
end
|
80
85
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
self.
|
86
|
+
if attributes.has_key?(:'surcharge_percentage')
|
87
|
+
self.surcharge_percentage = attributes[:'surcharge_percentage']
|
83
88
|
end
|
84
89
|
end
|
85
90
|
|
@@ -102,11 +107,11 @@ module UltracartClient
|
|
102
107
|
return true if self.equal?(o)
|
103
108
|
self.class == o.class &&
|
104
109
|
accept_cod == o.accept_cod &&
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
+
approved_customers_only == o.approved_customers_only &&
|
111
|
+
restrictions == o.restrictions &&
|
112
|
+
surcharge_accounting_code == o.surcharge_accounting_code &&
|
113
|
+
surcharge_fee == o.surcharge_fee &&
|
114
|
+
surcharge_percentage == o.surcharge_percentage
|
110
115
|
end
|
111
116
|
|
112
117
|
# @see the `==` method
|
@@ -118,7 +123,7 @@ module UltracartClient
|
|
118
123
|
# Calculates hash code according to all attributes.
|
119
124
|
# @return [Fixnum] Hash code
|
120
125
|
def hash
|
121
|
-
[accept_cod,
|
126
|
+
[accept_cod, approved_customers_only, restrictions, surcharge_accounting_code, surcharge_fee, surcharge_percentage].hash
|
122
127
|
end
|
123
128
|
|
124
129
|
# Builds the object from hash
|
@@ -14,51 +14,70 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class PaymentsConfigurationCreditCard
|
17
|
-
|
17
|
+
# Master flag indicating whether this merchant accepts credit card payments
|
18
|
+
attr_accessor :accept_credit_card
|
18
19
|
|
20
|
+
# Description that appears on customer statements
|
19
21
|
attr_accessor :billed_by
|
20
22
|
|
23
|
+
# If false, order will be accepted and placed into Accounts Receivable without charging card first
|
21
24
|
attr_accessor :charge_during_checkout
|
22
25
|
|
26
|
+
# UltraCart will require customer to enter cvv if this is true
|
23
27
|
attr_accessor :collect_cvv2
|
24
28
|
|
25
|
-
|
29
|
+
# Human readable description of the credit card gateway currently configured
|
30
|
+
attr_accessor :configured_gateway_details
|
26
31
|
|
32
|
+
# The number of failed attempts before the order is placed into Accounts Receivable for manual intervention
|
27
33
|
attr_accessor :failed_attempts
|
28
34
|
|
35
|
+
# This internal flag aids the UI in determining which buttons to show.
|
29
36
|
attr_accessor :hide_connect_single_gateway
|
30
37
|
|
31
|
-
|
38
|
+
# Restrictions for this payment method
|
39
|
+
attr_accessor :restrictions
|
32
40
|
|
41
|
+
# UltraCart will send customers emails to update their credit card if the card is declined
|
33
42
|
attr_accessor :send_customer_billing_update_on_decline
|
34
43
|
|
44
|
+
# A list of credit cards the merchant wishes to accept.
|
45
|
+
attr_accessor :supported_cards
|
46
|
+
|
47
|
+
# An array of test methods for placing test orders. The cards defined here may be real or fake, but any order placed with them will be marked as Test orders
|
48
|
+
attr_accessor :test_methods
|
49
|
+
|
35
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
36
51
|
def self.attribute_map
|
37
52
|
{
|
38
|
-
:'
|
39
|
-
:'billed_by' => :'
|
40
|
-
:'charge_during_checkout' => :'
|
41
|
-
:'collect_cvv2' => :'
|
42
|
-
:'
|
43
|
-
:'failed_attempts' => :'
|
44
|
-
:'hide_connect_single_gateway' => :'
|
45
|
-
:'
|
46
|
-
:'send_customer_billing_update_on_decline' => :'
|
53
|
+
:'accept_credit_card' => :'accept_credit_card',
|
54
|
+
:'billed_by' => :'billed_by',
|
55
|
+
:'charge_during_checkout' => :'charge_during_checkout',
|
56
|
+
:'collect_cvv2' => :'collect_cvv2',
|
57
|
+
:'configured_gateway_details' => :'configured_gateway_details',
|
58
|
+
:'failed_attempts' => :'failed_attempts',
|
59
|
+
:'hide_connect_single_gateway' => :'hide_connect_single_gateway',
|
60
|
+
:'restrictions' => :'restrictions',
|
61
|
+
:'send_customer_billing_update_on_decline' => :'send_customer_billing_update_on_decline',
|
62
|
+
:'supported_cards' => :'supported_cards',
|
63
|
+
:'test_methods' => :'test_methods'
|
47
64
|
}
|
48
65
|
end
|
49
66
|
|
50
67
|
# Attribute type mapping.
|
51
68
|
def self.swagger_types
|
52
69
|
{
|
53
|
-
:'
|
70
|
+
:'accept_credit_card' => :'BOOLEAN',
|
54
71
|
:'billed_by' => :'String',
|
55
72
|
:'charge_during_checkout' => :'BOOLEAN',
|
56
73
|
:'collect_cvv2' => :'BOOLEAN',
|
57
|
-
:'
|
74
|
+
:'configured_gateway_details' => :'String',
|
58
75
|
:'failed_attempts' => :'String',
|
59
76
|
:'hide_connect_single_gateway' => :'BOOLEAN',
|
60
|
-
:'
|
61
|
-
:'send_customer_billing_update_on_decline' => :'BOOLEAN'
|
77
|
+
:'restrictions' => :'Array<PaymentsConfigurationRestrictions>',
|
78
|
+
:'send_customer_billing_update_on_decline' => :'BOOLEAN',
|
79
|
+
:'supported_cards' => :'Array<PaymentsConfigurationCreditCardType>',
|
80
|
+
:'test_methods' => :'Array<PaymentsConfigurationTestMethod>'
|
62
81
|
}
|
63
82
|
end
|
64
83
|
|
@@ -70,40 +89,54 @@ module UltracartClient
|
|
70
89
|
# convert string to symbol for hash key
|
71
90
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
72
91
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
92
|
+
if attributes.has_key?(:'accept_credit_card')
|
93
|
+
self.accept_credit_card = attributes[:'accept_credit_card']
|
75
94
|
end
|
76
95
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
self.billed_by = attributes[:'
|
96
|
+
if attributes.has_key?(:'billed_by')
|
97
|
+
self.billed_by = attributes[:'billed_by']
|
79
98
|
end
|
80
99
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
self.charge_during_checkout = attributes[:'
|
100
|
+
if attributes.has_key?(:'charge_during_checkout')
|
101
|
+
self.charge_during_checkout = attributes[:'charge_during_checkout']
|
83
102
|
end
|
84
103
|
|
85
|
-
if attributes.has_key?(:'
|
86
|
-
self.collect_cvv2 = attributes[:'
|
104
|
+
if attributes.has_key?(:'collect_cvv2')
|
105
|
+
self.collect_cvv2 = attributes[:'collect_cvv2']
|
87
106
|
end
|
88
107
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
108
|
+
if attributes.has_key?(:'configured_gateway_details')
|
109
|
+
self.configured_gateway_details = attributes[:'configured_gateway_details']
|
91
110
|
end
|
92
111
|
|
93
|
-
if attributes.has_key?(:'
|
94
|
-
self.failed_attempts = attributes[:'
|
112
|
+
if attributes.has_key?(:'failed_attempts')
|
113
|
+
self.failed_attempts = attributes[:'failed_attempts']
|
95
114
|
end
|
96
115
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
self.hide_connect_single_gateway = attributes[:'
|
116
|
+
if attributes.has_key?(:'hide_connect_single_gateway')
|
117
|
+
self.hide_connect_single_gateway = attributes[:'hide_connect_single_gateway']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.has_key?(:'restrictions')
|
121
|
+
if (value = attributes[:'restrictions']).is_a?(Array)
|
122
|
+
self.restrictions = value
|
123
|
+
end
|
99
124
|
end
|
100
125
|
|
101
|
-
if attributes.has_key?(:'
|
102
|
-
self.
|
126
|
+
if attributes.has_key?(:'send_customer_billing_update_on_decline')
|
127
|
+
self.send_customer_billing_update_on_decline = attributes[:'send_customer_billing_update_on_decline']
|
103
128
|
end
|
104
129
|
|
105
|
-
if attributes.has_key?(:'
|
106
|
-
|
130
|
+
if attributes.has_key?(:'supported_cards')
|
131
|
+
if (value = attributes[:'supported_cards']).is_a?(Array)
|
132
|
+
self.supported_cards = value
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'test_methods')
|
137
|
+
if (value = attributes[:'test_methods']).is_a?(Array)
|
138
|
+
self.test_methods = value
|
139
|
+
end
|
107
140
|
end
|
108
141
|
end
|
109
142
|
|
@@ -125,15 +158,17 @@ module UltracartClient
|
|
125
158
|
def ==(o)
|
126
159
|
return true if self.equal?(o)
|
127
160
|
self.class == o.class &&
|
128
|
-
|
161
|
+
accept_credit_card == o.accept_credit_card &&
|
129
162
|
billed_by == o.billed_by &&
|
130
163
|
charge_during_checkout == o.charge_during_checkout &&
|
131
164
|
collect_cvv2 == o.collect_cvv2 &&
|
132
|
-
|
165
|
+
configured_gateway_details == o.configured_gateway_details &&
|
133
166
|
failed_attempts == o.failed_attempts &&
|
134
167
|
hide_connect_single_gateway == o.hide_connect_single_gateway &&
|
135
|
-
|
136
|
-
send_customer_billing_update_on_decline == o.send_customer_billing_update_on_decline
|
168
|
+
restrictions == o.restrictions &&
|
169
|
+
send_customer_billing_update_on_decline == o.send_customer_billing_update_on_decline &&
|
170
|
+
supported_cards == o.supported_cards &&
|
171
|
+
test_methods == o.test_methods
|
137
172
|
end
|
138
173
|
|
139
174
|
# @see the `==` method
|
@@ -145,7 +180,7 @@ module UltracartClient
|
|
145
180
|
# Calculates hash code according to all attributes.
|
146
181
|
# @return [Fixnum] Hash code
|
147
182
|
def hash
|
148
|
-
[
|
183
|
+
[accept_credit_card, billed_by, charge_during_checkout, collect_cvv2, configured_gateway_details, failed_attempts, hide_connect_single_gateway, restrictions, send_customer_billing_update_on_decline, supported_cards, test_methods].hash
|
149
184
|
end
|
150
185
|
|
151
186
|
# Builds the object from hash
|