ultracart_api 3.4.8 → 3.4.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -4
- data/docs/PaymentsConfiguration.md +4 -4
- 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 -13
- data/docs/PaymentsConfigurationCreditCard.md +11 -8
- data/docs/PaymentsConfigurationEcheck.md +3 -3
- data/docs/PaymentsConfigurationLoanHero.md +4 -4
- data/docs/PaymentsConfigurationMoneyOrder.md +3 -1
- data/docs/PaymentsConfigurationPayPal.md +28 -28
- data/docs/PaymentsConfigurationPurchaseOrder.md +3 -3
- data/docs/PaymentsConfigurationQuoteRequest.md +2 -2
- data/docs/PaymentsConfigurationRestrictions.md +12 -12
- data/docs/PaymentsConfigurationSezzle.md +8 -7
- data/docs/PaymentsConfigurationWePay.md +26 -26
- data/docs/PaymentsConfigurationWireTransfer.md +10 -10
- data/lib/ultracart_api/models/payments_configuration.rb +41 -40
- 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 +71 -68
- data/lib/ultracart_api/models/payments_configuration_cod.rb +39 -34
- data/lib/ultracart_api/models/payments_configuration_credit_card.rb +71 -33
- data/lib/ultracart_api/models/payments_configuration_echeck.rb +22 -19
- data/lib/ultracart_api/models/payments_configuration_loan_hero.rb +23 -19
- data/lib/ultracart_api/models/payments_configuration_money_order.rb +25 -4
- 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 +48 -36
- data/lib/ultracart_api/models/payments_configuration_sezzle.rb +97 -46
- 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 +2 -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,51 +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 :check_deposit_to_account
|
20
|
+
# Optional Quickbooks accounting code
|
21
|
+
attr_accessor :accounting_code
|
22
22
|
|
23
|
+
# This is who the customer makes the check out to
|
23
24
|
attr_accessor :checks_payable_to
|
24
25
|
|
26
|
+
# Optional Quickbooks deposit to account
|
27
|
+
attr_accessor :deposit_to_account
|
28
|
+
|
29
|
+
# MailTo address line 1
|
25
30
|
attr_accessor :mail_to_address1
|
26
31
|
|
32
|
+
# MailTo address line 2
|
27
33
|
attr_accessor :mail_to_address2
|
28
34
|
|
35
|
+
# MailTo city
|
29
36
|
attr_accessor :mail_to_city
|
30
37
|
|
38
|
+
# MailTo country
|
31
39
|
attr_accessor :mail_to_country
|
32
40
|
|
41
|
+
# MailTo name
|
33
42
|
attr_accessor :mail_to_name
|
34
43
|
|
35
|
-
|
36
|
-
|
37
|
-
attr_accessor :mail_to_zip
|
44
|
+
# MailTo postal code
|
45
|
+
attr_accessor :mail_to_postal_code
|
38
46
|
|
39
|
-
|
40
|
-
|
41
|
-
attr_accessor :money_order_deposit_to_account
|
47
|
+
# MailTo store
|
48
|
+
attr_accessor :mail_to_store
|
42
49
|
|
43
50
|
attr_accessor :restrictions
|
44
51
|
|
52
|
+
# Test methods for this payment method
|
53
|
+
attr_accessor :test_methods
|
54
|
+
|
45
55
|
# Attribute mapping from ruby-style variable name to JSON key.
|
46
56
|
def self.attribute_map
|
47
57
|
{
|
48
|
-
:'accept_check_orders' => :'
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'mail_to_address1' => :'
|
53
|
-
:'mail_to_address2' => :'
|
54
|
-
:'mail_to_city' => :'
|
55
|
-
:'mail_to_country' => :'
|
56
|
-
:'mail_to_name' => :'
|
57
|
-
:'
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'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'
|
62
71
|
}
|
63
72
|
end
|
64
73
|
|
@@ -66,19 +75,18 @@ module UltracartClient
|
|
66
75
|
def self.swagger_types
|
67
76
|
{
|
68
77
|
:'accept_check_orders' => :'BOOLEAN',
|
69
|
-
:'
|
70
|
-
:'check_deposit_to_account' => :'String',
|
78
|
+
:'accounting_code' => :'String',
|
71
79
|
:'checks_payable_to' => :'String',
|
80
|
+
:'deposit_to_account' => :'String',
|
72
81
|
:'mail_to_address1' => :'String',
|
73
82
|
:'mail_to_address2' => :'String',
|
74
83
|
:'mail_to_city' => :'String',
|
75
84
|
:'mail_to_country' => :'String',
|
76
85
|
:'mail_to_name' => :'String',
|
77
|
-
:'
|
78
|
-
:'
|
79
|
-
:'
|
80
|
-
:'
|
81
|
-
:'restrictions' => :'PaymentsConfigurationRestrictions'
|
86
|
+
:'mail_to_postal_code' => :'String',
|
87
|
+
:'mail_to_store' => :'String',
|
88
|
+
:'restrictions' => :'PaymentsConfigurationRestrictions',
|
89
|
+
:'test_methods' => :'Object'
|
82
90
|
}
|
83
91
|
end
|
84
92
|
|
@@ -90,61 +98,57 @@ module UltracartClient
|
|
90
98
|
# convert string to symbol for hash key
|
91
99
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
92
100
|
|
93
|
-
if attributes.has_key?(:'
|
94
|
-
self.accept_check_orders = attributes[:'
|
101
|
+
if attributes.has_key?(:'accept_check_orders')
|
102
|
+
self.accept_check_orders = attributes[:'accept_check_orders']
|
95
103
|
end
|
96
104
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
self.
|
105
|
+
if attributes.has_key?(:'accounting_code')
|
106
|
+
self.accounting_code = attributes[:'accounting_code']
|
99
107
|
end
|
100
108
|
|
101
|
-
if attributes.has_key?(:'
|
102
|
-
self.
|
109
|
+
if attributes.has_key?(:'checks_payable_to')
|
110
|
+
self.checks_payable_to = attributes[:'checks_payable_to']
|
103
111
|
end
|
104
112
|
|
105
|
-
if attributes.has_key?(:'
|
106
|
-
self.
|
113
|
+
if attributes.has_key?(:'deposit_to_account')
|
114
|
+
self.deposit_to_account = attributes[:'deposit_to_account']
|
107
115
|
end
|
108
116
|
|
109
|
-
if attributes.has_key?(:'
|
110
|
-
self.mail_to_address1 = attributes[:'
|
117
|
+
if attributes.has_key?(:'mail_to_address1')
|
118
|
+
self.mail_to_address1 = attributes[:'mail_to_address1']
|
111
119
|
end
|
112
120
|
|
113
|
-
if attributes.has_key?(:'
|
114
|
-
self.mail_to_address2 = attributes[:'
|
121
|
+
if attributes.has_key?(:'mail_to_address2')
|
122
|
+
self.mail_to_address2 = attributes[:'mail_to_address2']
|
115
123
|
end
|
116
124
|
|
117
|
-
if attributes.has_key?(:'
|
118
|
-
self.mail_to_city = attributes[:'
|
125
|
+
if attributes.has_key?(:'mail_to_city')
|
126
|
+
self.mail_to_city = attributes[:'mail_to_city']
|
119
127
|
end
|
120
128
|
|
121
|
-
if attributes.has_key?(:'
|
122
|
-
self.mail_to_country = attributes[:'
|
129
|
+
if attributes.has_key?(:'mail_to_country')
|
130
|
+
self.mail_to_country = attributes[:'mail_to_country']
|
123
131
|
end
|
124
132
|
|
125
|
-
if attributes.has_key?(:'
|
126
|
-
self.mail_to_name = attributes[:'
|
133
|
+
if attributes.has_key?(:'mail_to_name')
|
134
|
+
self.mail_to_name = attributes[:'mail_to_name']
|
127
135
|
end
|
128
136
|
|
129
|
-
if attributes.has_key?(:'
|
130
|
-
self.
|
137
|
+
if attributes.has_key?(:'mail_to_postal_code')
|
138
|
+
self.mail_to_postal_code = attributes[:'mail_to_postal_code']
|
131
139
|
end
|
132
140
|
|
133
|
-
if attributes.has_key?(:'
|
134
|
-
self.
|
135
|
-
end
|
136
|
-
|
137
|
-
if attributes.has_key?(:'moneyOrderAccountingCode')
|
138
|
-
self.money_order_accounting_code = attributes[:'moneyOrderAccountingCode']
|
139
|
-
end
|
140
|
-
|
141
|
-
if attributes.has_key?(:'moneyOrderDepositToAccount')
|
142
|
-
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']
|
143
143
|
end
|
144
144
|
|
145
145
|
if attributes.has_key?(:'restrictions')
|
146
146
|
self.restrictions = attributes[:'restrictions']
|
147
147
|
end
|
148
|
+
|
149
|
+
if attributes.has_key?(:'test_methods')
|
150
|
+
self.test_methods = attributes[:'test_methods']
|
151
|
+
end
|
148
152
|
end
|
149
153
|
|
150
154
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -166,19 +170,18 @@ module UltracartClient
|
|
166
170
|
return true if self.equal?(o)
|
167
171
|
self.class == o.class &&
|
168
172
|
accept_check_orders == o.accept_check_orders &&
|
169
|
-
|
170
|
-
check_deposit_to_account == o.check_deposit_to_account &&
|
173
|
+
accounting_code == o.accounting_code &&
|
171
174
|
checks_payable_to == o.checks_payable_to &&
|
175
|
+
deposit_to_account == o.deposit_to_account &&
|
172
176
|
mail_to_address1 == o.mail_to_address1 &&
|
173
177
|
mail_to_address2 == o.mail_to_address2 &&
|
174
178
|
mail_to_city == o.mail_to_city &&
|
175
179
|
mail_to_country == o.mail_to_country &&
|
176
180
|
mail_to_name == o.mail_to_name &&
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
restrictions == o.restrictions
|
181
|
+
mail_to_postal_code == o.mail_to_postal_code &&
|
182
|
+
mail_to_store == o.mail_to_store &&
|
183
|
+
restrictions == o.restrictions &&
|
184
|
+
test_methods == o.test_methods
|
182
185
|
end
|
183
186
|
|
184
187
|
# @see the `==` method
|
@@ -190,7 +193,7 @@ module UltracartClient
|
|
190
193
|
# Calculates hash code according to all attributes.
|
191
194
|
# @return [Fixnum] Hash code
|
192
195
|
def hash
|
193
|
-
[accept_check_orders,
|
196
|
+
[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
|
194
197
|
end
|
195
198
|
|
196
199
|
# 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,47 +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
|
|
38
|
+
# Restrictions for this payment method
|
39
|
+
attr_accessor :restrictions
|
40
|
+
|
41
|
+
# UltraCart will send customers emails to update their credit card if the card is declined
|
31
42
|
attr_accessor :send_customer_billing_update_on_decline
|
32
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
|
+
|
33
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
51
|
def self.attribute_map
|
35
52
|
{
|
36
|
-
:'
|
37
|
-
:'billed_by' => :'
|
38
|
-
:'charge_during_checkout' => :'
|
39
|
-
:'collect_cvv2' => :'
|
40
|
-
:'
|
41
|
-
:'failed_attempts' => :'
|
42
|
-
:'hide_connect_single_gateway' => :'
|
43
|
-
:'
|
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'
|
44
64
|
}
|
45
65
|
end
|
46
66
|
|
47
67
|
# Attribute type mapping.
|
48
68
|
def self.swagger_types
|
49
69
|
{
|
50
|
-
:'
|
70
|
+
:'accept_credit_card' => :'BOOLEAN',
|
51
71
|
:'billed_by' => :'String',
|
52
72
|
:'charge_during_checkout' => :'BOOLEAN',
|
53
73
|
:'collect_cvv2' => :'BOOLEAN',
|
54
|
-
:'
|
74
|
+
:'configured_gateway_details' => :'String',
|
55
75
|
:'failed_attempts' => :'String',
|
56
76
|
:'hide_connect_single_gateway' => :'BOOLEAN',
|
57
|
-
:'
|
77
|
+
:'restrictions' => :'Object',
|
78
|
+
:'send_customer_billing_update_on_decline' => :'BOOLEAN',
|
79
|
+
:'supported_cards' => :'Object',
|
80
|
+
:'test_methods' => :'Object'
|
58
81
|
}
|
59
82
|
end
|
60
83
|
|
@@ -66,36 +89,48 @@ module UltracartClient
|
|
66
89
|
# convert string to symbol for hash key
|
67
90
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
91
|
|
69
|
-
if attributes.has_key?(:'
|
70
|
-
self.
|
92
|
+
if attributes.has_key?(:'accept_credit_card')
|
93
|
+
self.accept_credit_card = attributes[:'accept_credit_card']
|
94
|
+
end
|
95
|
+
|
96
|
+
if attributes.has_key?(:'billed_by')
|
97
|
+
self.billed_by = attributes[:'billed_by']
|
98
|
+
end
|
99
|
+
|
100
|
+
if attributes.has_key?(:'charge_during_checkout')
|
101
|
+
self.charge_during_checkout = attributes[:'charge_during_checkout']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.has_key?(:'collect_cvv2')
|
105
|
+
self.collect_cvv2 = attributes[:'collect_cvv2']
|
71
106
|
end
|
72
107
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
108
|
+
if attributes.has_key?(:'configured_gateway_details')
|
109
|
+
self.configured_gateway_details = attributes[:'configured_gateway_details']
|
75
110
|
end
|
76
111
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
self.
|
112
|
+
if attributes.has_key?(:'failed_attempts')
|
113
|
+
self.failed_attempts = attributes[:'failed_attempts']
|
79
114
|
end
|
80
115
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
self.
|
116
|
+
if attributes.has_key?(:'hide_connect_single_gateway')
|
117
|
+
self.hide_connect_single_gateway = attributes[:'hide_connect_single_gateway']
|
83
118
|
end
|
84
119
|
|
85
|
-
if attributes.has_key?(:'
|
86
|
-
self.
|
120
|
+
if attributes.has_key?(:'restrictions')
|
121
|
+
self.restrictions = attributes[:'restrictions']
|
87
122
|
end
|
88
123
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
124
|
+
if attributes.has_key?(:'send_customer_billing_update_on_decline')
|
125
|
+
self.send_customer_billing_update_on_decline = attributes[:'send_customer_billing_update_on_decline']
|
91
126
|
end
|
92
127
|
|
93
|
-
if attributes.has_key?(:'
|
94
|
-
self.
|
128
|
+
if attributes.has_key?(:'supported_cards')
|
129
|
+
self.supported_cards = attributes[:'supported_cards']
|
95
130
|
end
|
96
131
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
self.
|
132
|
+
if attributes.has_key?(:'test_methods')
|
133
|
+
self.test_methods = attributes[:'test_methods']
|
99
134
|
end
|
100
135
|
end
|
101
136
|
|
@@ -117,14 +152,17 @@ module UltracartClient
|
|
117
152
|
def ==(o)
|
118
153
|
return true if self.equal?(o)
|
119
154
|
self.class == o.class &&
|
120
|
-
|
155
|
+
accept_credit_card == o.accept_credit_card &&
|
121
156
|
billed_by == o.billed_by &&
|
122
157
|
charge_during_checkout == o.charge_during_checkout &&
|
123
158
|
collect_cvv2 == o.collect_cvv2 &&
|
124
|
-
|
159
|
+
configured_gateway_details == o.configured_gateway_details &&
|
125
160
|
failed_attempts == o.failed_attempts &&
|
126
161
|
hide_connect_single_gateway == o.hide_connect_single_gateway &&
|
127
|
-
|
162
|
+
restrictions == o.restrictions &&
|
163
|
+
send_customer_billing_update_on_decline == o.send_customer_billing_update_on_decline &&
|
164
|
+
supported_cards == o.supported_cards &&
|
165
|
+
test_methods == o.test_methods
|
128
166
|
end
|
129
167
|
|
130
168
|
# @see the `==` method
|
@@ -136,7 +174,7 @@ module UltracartClient
|
|
136
174
|
# Calculates hash code according to all attributes.
|
137
175
|
# @return [Fixnum] Hash code
|
138
176
|
def hash
|
139
|
-
[
|
177
|
+
[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
|
140
178
|
end
|
141
179
|
|
142
180
|
# Builds the object from hash
|