ultracart_api 3.4.8 → 3.4.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
@@ -3,16 +3,16 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**accept_wire_transfer** | **BOOLEAN** |
|
6
|
+
**accept_wire_transfer** | **BOOLEAN** | Master flag indicating this merchant accepts wire transfers | [optional]
|
7
|
+
**account_number** | **String** | account_number | [optional]
|
8
|
+
**accounting_code** | **String** | Optional Quickbooks accounting code | [optional]
|
9
|
+
**bank_address** | **String** | Bank address | [optional]
|
10
|
+
**deposit_to_account** | **String** | Optional Quickbooks deposit to account | [optional]
|
11
|
+
**intermediate_routing_number** | **String** | Intermediate routing number | [optional]
|
7
12
|
**restrictions** | [**PaymentsConfigurationRestrictions**](PaymentsConfigurationRestrictions.md) | | [optional]
|
8
|
-
**
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**
|
12
|
-
**wire_transfer_intermediate_routing_number** | **String** | | [optional]
|
13
|
-
**wire_transfer_routing_number** | **String** | | [optional]
|
14
|
-
**wire_transfer_surcharge_accounting_code** | **String** | | [optional]
|
15
|
-
**wire_transfer_surcharge_fee** | **String** | | [optional]
|
16
|
-
**wire_transfer_surcharge_perc** | **String** | | [optional]
|
13
|
+
**routing_number** | **String** | Routing number | [optional]
|
14
|
+
**surcharge_accounting_code** | **String** | If a surcharge is present and this merchant is integrated with Quickbooks, this is the accounting code for the surcharge amount | [optional]
|
15
|
+
**surcharge_fee** | **String** | surcharge_fee | [optional]
|
16
|
+
**surcharge_percentage** | **String** | surcharge_percentage | [optional]
|
17
17
|
|
18
18
|
|
@@ -26,13 +26,13 @@ module UltracartClient
|
|
26
26
|
|
27
27
|
attr_accessor :credit_card
|
28
28
|
|
29
|
-
attr_accessor :
|
29
|
+
attr_accessor :echeck
|
30
30
|
|
31
31
|
attr_accessor :loan_hero
|
32
32
|
|
33
33
|
attr_accessor :money_order
|
34
34
|
|
35
|
-
attr_accessor :
|
35
|
+
attr_accessor :paypal
|
36
36
|
|
37
37
|
attr_accessor :purchase_order
|
38
38
|
|
@@ -40,13 +40,14 @@ module UltracartClient
|
|
40
40
|
|
41
41
|
attr_accessor :sezzle
|
42
42
|
|
43
|
+
# Internal flag used to determine if accounting codes should be shown on the screen or not. This flag is true if the merchant has a Quickbooks integration configured.
|
43
44
|
attr_accessor :show_accounting_code
|
44
45
|
|
45
46
|
attr_accessor :switch_to_sub_tab
|
46
47
|
|
47
48
|
attr_accessor :switch_to_tab
|
48
49
|
|
49
|
-
attr_accessor :
|
50
|
+
attr_accessor :ultracart_payments_wepay
|
50
51
|
|
51
52
|
attr_accessor :wire_transfer
|
52
53
|
|
@@ -58,19 +59,19 @@ module UltracartClient
|
|
58
59
|
:'cash' => :'cash',
|
59
60
|
:'check' => :'check',
|
60
61
|
:'cod' => :'cod',
|
61
|
-
:'credit_card' => :'
|
62
|
-
:'
|
63
|
-
:'loan_hero' => :'
|
64
|
-
:'money_order' => :'
|
65
|
-
:'
|
66
|
-
:'purchase_order' => :'
|
67
|
-
:'quote_request' => :'
|
62
|
+
:'credit_card' => :'credit_card',
|
63
|
+
:'echeck' => :'echeck',
|
64
|
+
:'loan_hero' => :'loan_hero',
|
65
|
+
:'money_order' => :'money_order',
|
66
|
+
:'paypal' => :'paypal',
|
67
|
+
:'purchase_order' => :'purchase_order',
|
68
|
+
:'quote_request' => :'quote_request',
|
68
69
|
:'sezzle' => :'sezzle',
|
69
|
-
:'show_accounting_code' => :'
|
70
|
+
:'show_accounting_code' => :'show_accounting_code',
|
70
71
|
:'switch_to_sub_tab' => :'switchToSubTab',
|
71
72
|
:'switch_to_tab' => :'switchToTab',
|
72
|
-
:'
|
73
|
-
:'wire_transfer' => :'
|
73
|
+
:'ultracart_payments_wepay' => :'ultracart_payments_wepay',
|
74
|
+
:'wire_transfer' => :'wire_transfer'
|
74
75
|
}
|
75
76
|
end
|
76
77
|
|
@@ -83,17 +84,17 @@ module UltracartClient
|
|
83
84
|
:'check' => :'PaymentsConfigurationCheck',
|
84
85
|
:'cod' => :'PaymentsConfigurationCOD',
|
85
86
|
:'credit_card' => :'PaymentsConfigurationCreditCard',
|
86
|
-
:'
|
87
|
+
:'echeck' => :'PaymentsConfigurationEcheck',
|
87
88
|
:'loan_hero' => :'PaymentsConfigurationLoanHero',
|
88
89
|
:'money_order' => :'PaymentsConfigurationMoneyOrder',
|
89
|
-
:'
|
90
|
+
:'paypal' => :'PaymentsConfigurationPayPal',
|
90
91
|
:'purchase_order' => :'PaymentsConfigurationPurchaseOrder',
|
91
92
|
:'quote_request' => :'PaymentsConfigurationQuoteRequest',
|
92
93
|
:'sezzle' => :'PaymentsConfigurationSezzle',
|
93
94
|
:'show_accounting_code' => :'BOOLEAN',
|
94
95
|
:'switch_to_sub_tab' => :'String',
|
95
96
|
:'switch_to_tab' => :'String',
|
96
|
-
:'
|
97
|
+
:'ultracart_payments_wepay' => :'PaymentsConfigurationWePay',
|
97
98
|
:'wire_transfer' => :'PaymentsConfigurationWireTransfer'
|
98
99
|
}
|
99
100
|
end
|
@@ -126,40 +127,40 @@ module UltracartClient
|
|
126
127
|
self.cod = attributes[:'cod']
|
127
128
|
end
|
128
129
|
|
129
|
-
if attributes.has_key?(:'
|
130
|
-
self.credit_card = attributes[:'
|
130
|
+
if attributes.has_key?(:'credit_card')
|
131
|
+
self.credit_card = attributes[:'credit_card']
|
131
132
|
end
|
132
133
|
|
133
|
-
if attributes.has_key?(:'
|
134
|
-
self.
|
134
|
+
if attributes.has_key?(:'echeck')
|
135
|
+
self.echeck = attributes[:'echeck']
|
135
136
|
end
|
136
137
|
|
137
|
-
if attributes.has_key?(:'
|
138
|
-
self.loan_hero = attributes[:'
|
138
|
+
if attributes.has_key?(:'loan_hero')
|
139
|
+
self.loan_hero = attributes[:'loan_hero']
|
139
140
|
end
|
140
141
|
|
141
|
-
if attributes.has_key?(:'
|
142
|
-
self.money_order = attributes[:'
|
142
|
+
if attributes.has_key?(:'money_order')
|
143
|
+
self.money_order = attributes[:'money_order']
|
143
144
|
end
|
144
145
|
|
145
|
-
if attributes.has_key?(:'
|
146
|
-
self.
|
146
|
+
if attributes.has_key?(:'paypal')
|
147
|
+
self.paypal = attributes[:'paypal']
|
147
148
|
end
|
148
149
|
|
149
|
-
if attributes.has_key?(:'
|
150
|
-
self.purchase_order = attributes[:'
|
150
|
+
if attributes.has_key?(:'purchase_order')
|
151
|
+
self.purchase_order = attributes[:'purchase_order']
|
151
152
|
end
|
152
153
|
|
153
|
-
if attributes.has_key?(:'
|
154
|
-
self.quote_request = attributes[:'
|
154
|
+
if attributes.has_key?(:'quote_request')
|
155
|
+
self.quote_request = attributes[:'quote_request']
|
155
156
|
end
|
156
157
|
|
157
158
|
if attributes.has_key?(:'sezzle')
|
158
159
|
self.sezzle = attributes[:'sezzle']
|
159
160
|
end
|
160
161
|
|
161
|
-
if attributes.has_key?(:'
|
162
|
-
self.show_accounting_code = attributes[:'
|
162
|
+
if attributes.has_key?(:'show_accounting_code')
|
163
|
+
self.show_accounting_code = attributes[:'show_accounting_code']
|
163
164
|
end
|
164
165
|
|
165
166
|
if attributes.has_key?(:'switchToSubTab')
|
@@ -170,12 +171,12 @@ module UltracartClient
|
|
170
171
|
self.switch_to_tab = attributes[:'switchToTab']
|
171
172
|
end
|
172
173
|
|
173
|
-
if attributes.has_key?(:'
|
174
|
-
self.
|
174
|
+
if attributes.has_key?(:'ultracart_payments_wepay')
|
175
|
+
self.ultracart_payments_wepay = attributes[:'ultracart_payments_wepay']
|
175
176
|
end
|
176
177
|
|
177
|
-
if attributes.has_key?(:'
|
178
|
-
self.wire_transfer = attributes[:'
|
178
|
+
if attributes.has_key?(:'wire_transfer')
|
179
|
+
self.wire_transfer = attributes[:'wire_transfer']
|
179
180
|
end
|
180
181
|
end
|
181
182
|
|
@@ -203,17 +204,17 @@ module UltracartClient
|
|
203
204
|
check == o.check &&
|
204
205
|
cod == o.cod &&
|
205
206
|
credit_card == o.credit_card &&
|
206
|
-
|
207
|
+
echeck == o.echeck &&
|
207
208
|
loan_hero == o.loan_hero &&
|
208
209
|
money_order == o.money_order &&
|
209
|
-
|
210
|
+
paypal == o.paypal &&
|
210
211
|
purchase_order == o.purchase_order &&
|
211
212
|
quote_request == o.quote_request &&
|
212
213
|
sezzle == o.sezzle &&
|
213
214
|
show_accounting_code == o.show_accounting_code &&
|
214
215
|
switch_to_sub_tab == o.switch_to_sub_tab &&
|
215
216
|
switch_to_tab == o.switch_to_tab &&
|
216
|
-
|
217
|
+
ultracart_payments_wepay == o.ultracart_payments_wepay &&
|
217
218
|
wire_transfer == o.wire_transfer
|
218
219
|
end
|
219
220
|
|
@@ -226,7 +227,7 @@ module UltracartClient
|
|
226
227
|
# Calculates hash code according to all attributes.
|
227
228
|
# @return [Fixnum] Hash code
|
228
229
|
def hash
|
229
|
-
[affirm, amazon, cash, check, cod, credit_card,
|
230
|
+
[affirm, amazon, cash, check, cod, credit_card, echeck, loan_hero, money_order, paypal, purchase_order, quote_request, sezzle, show_accounting_code, switch_to_sub_tab, switch_to_tab, ultracart_payments_wepay, wire_transfer].hash
|
230
231
|
end
|
231
232
|
|
232
233
|
# Builds the object from hash
|
@@ -14,32 +14,61 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class PaymentsConfigurationAffirm
|
17
|
+
# Master flag indicating this merchant accepts Affirm payments
|
17
18
|
attr_accessor :accept_affirm
|
18
19
|
|
19
|
-
|
20
|
+
# Optional Quickbooks code for this payment method
|
21
|
+
attr_accessor :accounting_code
|
20
22
|
|
21
|
-
|
23
|
+
# Optional Quickbooks Deposit to Account value
|
24
|
+
attr_accessor :deposit_to_account
|
22
25
|
|
23
|
-
|
26
|
+
# Environment
|
27
|
+
attr_accessor :environment
|
24
28
|
|
25
|
-
|
29
|
+
# Financial product key
|
30
|
+
attr_accessor :financial_product_key
|
26
31
|
|
27
|
-
|
32
|
+
# Private API key
|
33
|
+
attr_accessor :private_api_key
|
28
34
|
|
29
|
-
|
35
|
+
# Public API key
|
36
|
+
attr_accessor :public_api_key
|
30
37
|
|
31
38
|
attr_accessor :restrictions
|
32
39
|
|
40
|
+
class EnumAttributeValidator
|
41
|
+
attr_reader :datatype
|
42
|
+
attr_reader :allowable_values
|
43
|
+
|
44
|
+
def initialize(datatype, allowable_values)
|
45
|
+
@allowable_values = allowable_values.map do |value|
|
46
|
+
case datatype.to_s
|
47
|
+
when /Integer/i
|
48
|
+
value.to_i
|
49
|
+
when /Float/i
|
50
|
+
value.to_f
|
51
|
+
else
|
52
|
+
value
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
def valid?(value)
|
58
|
+
!value || allowable_values.include?(value)
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
33
62
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
63
|
def self.attribute_map
|
35
64
|
{
|
36
|
-
:'accept_affirm' => :'
|
37
|
-
:'
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'
|
42
|
-
:'
|
65
|
+
:'accept_affirm' => :'accept_affirm',
|
66
|
+
:'accounting_code' => :'accounting_code',
|
67
|
+
:'deposit_to_account' => :'deposit_to_account',
|
68
|
+
:'environment' => :'environment',
|
69
|
+
:'financial_product_key' => :'financial_product_key',
|
70
|
+
:'private_api_key' => :'private_api_key',
|
71
|
+
:'public_api_key' => :'public_api_key',
|
43
72
|
:'restrictions' => :'restrictions'
|
44
73
|
}
|
45
74
|
end
|
@@ -48,12 +77,12 @@ module UltracartClient
|
|
48
77
|
def self.swagger_types
|
49
78
|
{
|
50
79
|
:'accept_affirm' => :'BOOLEAN',
|
51
|
-
:'
|
52
|
-
:'
|
53
|
-
:'
|
54
|
-
:'
|
55
|
-
:'
|
56
|
-
:'
|
80
|
+
:'accounting_code' => :'String',
|
81
|
+
:'deposit_to_account' => :'String',
|
82
|
+
:'environment' => :'String',
|
83
|
+
:'financial_product_key' => :'String',
|
84
|
+
:'private_api_key' => :'String',
|
85
|
+
:'public_api_key' => :'String',
|
57
86
|
:'restrictions' => :'PaymentsConfigurationRestrictions'
|
58
87
|
}
|
59
88
|
end
|
@@ -66,32 +95,32 @@ module UltracartClient
|
|
66
95
|
# convert string to symbol for hash key
|
67
96
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
97
|
|
69
|
-
if attributes.has_key?(:'
|
70
|
-
self.accept_affirm = attributes[:'
|
98
|
+
if attributes.has_key?(:'accept_affirm')
|
99
|
+
self.accept_affirm = attributes[:'accept_affirm']
|
71
100
|
end
|
72
101
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
102
|
+
if attributes.has_key?(:'accounting_code')
|
103
|
+
self.accounting_code = attributes[:'accounting_code']
|
75
104
|
end
|
76
105
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
self.
|
106
|
+
if attributes.has_key?(:'deposit_to_account')
|
107
|
+
self.deposit_to_account = attributes[:'deposit_to_account']
|
79
108
|
end
|
80
109
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
self.
|
110
|
+
if attributes.has_key?(:'environment')
|
111
|
+
self.environment = attributes[:'environment']
|
83
112
|
end
|
84
113
|
|
85
|
-
if attributes.has_key?(:'
|
86
|
-
self.
|
114
|
+
if attributes.has_key?(:'financial_product_key')
|
115
|
+
self.financial_product_key = attributes[:'financial_product_key']
|
87
116
|
end
|
88
117
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
118
|
+
if attributes.has_key?(:'private_api_key')
|
119
|
+
self.private_api_key = attributes[:'private_api_key']
|
91
120
|
end
|
92
121
|
|
93
|
-
if attributes.has_key?(:'
|
94
|
-
self.
|
122
|
+
if attributes.has_key?(:'public_api_key')
|
123
|
+
self.public_api_key = attributes[:'public_api_key']
|
95
124
|
end
|
96
125
|
|
97
126
|
if attributes.has_key?(:'restrictions')
|
@@ -109,21 +138,33 @@ module UltracartClient
|
|
109
138
|
# Check to see if the all the properties in the model are valid
|
110
139
|
# @return true if the model is valid
|
111
140
|
def valid?
|
141
|
+
environment_validator = EnumAttributeValidator.new('String', ['Live', 'Sandbox'])
|
142
|
+
return false unless environment_validator.valid?(@environment)
|
112
143
|
true
|
113
144
|
end
|
114
145
|
|
146
|
+
# Custom attribute writer method checking allowed values (enum).
|
147
|
+
# @param [Object] environment Object to be assigned
|
148
|
+
def environment=(environment)
|
149
|
+
validator = EnumAttributeValidator.new('String', ['Live', 'Sandbox'])
|
150
|
+
unless validator.valid?(environment)
|
151
|
+
fail ArgumentError, 'invalid value for "environment", must be one of #{validator.allowable_values}.'
|
152
|
+
end
|
153
|
+
@environment = environment
|
154
|
+
end
|
155
|
+
|
115
156
|
# Checks equality by comparing each attribute.
|
116
157
|
# @param [Object] Object to be compared
|
117
158
|
def ==(o)
|
118
159
|
return true if self.equal?(o)
|
119
160
|
self.class == o.class &&
|
120
161
|
accept_affirm == o.accept_affirm &&
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
162
|
+
accounting_code == o.accounting_code &&
|
163
|
+
deposit_to_account == o.deposit_to_account &&
|
164
|
+
environment == o.environment &&
|
165
|
+
financial_product_key == o.financial_product_key &&
|
166
|
+
private_api_key == o.private_api_key &&
|
167
|
+
public_api_key == o.public_api_key &&
|
127
168
|
restrictions == o.restrictions
|
128
169
|
end
|
129
170
|
|
@@ -136,7 +177,7 @@ module UltracartClient
|
|
136
177
|
# Calculates hash code according to all attributes.
|
137
178
|
# @return [Fixnum] Hash code
|
138
179
|
def hash
|
139
|
-
[accept_affirm,
|
180
|
+
[accept_affirm, accounting_code, deposit_to_account, environment, financial_product_key, private_api_key, public_api_key, restrictions].hash
|
140
181
|
end
|
141
182
|
|
142
183
|
# Builds the object from hash
|
@@ -14,33 +14,40 @@ require 'date'
|
|
14
14
|
|
15
15
|
module UltracartClient
|
16
16
|
class PaymentsConfigurationAmazon
|
17
|
+
# Master flag to determine if this merchant accepts Pay by Amazon
|
17
18
|
attr_accessor :accept_amazon
|
18
19
|
|
19
|
-
|
20
|
+
# Amazon access key ID
|
21
|
+
attr_accessor :access_key_id
|
20
22
|
|
21
|
-
|
22
|
-
|
23
|
-
attr_accessor :amazon_deposit_to_account
|
23
|
+
# Optional accounting code for use with Quickbooks integrations
|
24
|
+
attr_accessor :accounting_code
|
24
25
|
|
26
|
+
# Amazon merchant ID
|
25
27
|
attr_accessor :amazon_merchant_id
|
26
28
|
|
27
|
-
|
28
|
-
|
29
|
-
attr_accessor :amazon_secret_access_key
|
29
|
+
# Optional deposit to account field for use with Quickbooks integrations
|
30
|
+
attr_accessor :deposit_to_account
|
30
31
|
|
31
32
|
attr_accessor :restrictions
|
32
33
|
|
34
|
+
# True if transactions should run against the Amazon sandbox. Useful for testing not configurations
|
35
|
+
attr_accessor :sandbox
|
36
|
+
|
37
|
+
# Amazon secret access key
|
38
|
+
attr_accessor :secret_access_key
|
39
|
+
|
33
40
|
# Attribute mapping from ruby-style variable name to JSON key.
|
34
41
|
def self.attribute_map
|
35
42
|
{
|
36
|
-
:'accept_amazon' => :'
|
37
|
-
:'
|
38
|
-
:'
|
39
|
-
:'
|
40
|
-
:'
|
41
|
-
:'
|
42
|
-
:'
|
43
|
-
:'
|
43
|
+
:'accept_amazon' => :'accept_amazon',
|
44
|
+
:'access_key_id' => :'access_key_id',
|
45
|
+
:'accounting_code' => :'accounting_code',
|
46
|
+
:'amazon_merchant_id' => :'amazon_merchant_id',
|
47
|
+
:'deposit_to_account' => :'deposit_to_account',
|
48
|
+
:'restrictions' => :'restrictions',
|
49
|
+
:'sandbox' => :'sandbox',
|
50
|
+
:'secret_access_key' => :'secret_access_key'
|
44
51
|
}
|
45
52
|
end
|
46
53
|
|
@@ -48,13 +55,13 @@ module UltracartClient
|
|
48
55
|
def self.swagger_types
|
49
56
|
{
|
50
57
|
:'accept_amazon' => :'BOOLEAN',
|
51
|
-
:'
|
52
|
-
:'
|
53
|
-
:'amazon_deposit_to_account' => :'String',
|
58
|
+
:'access_key_id' => :'String',
|
59
|
+
:'accounting_code' => :'String',
|
54
60
|
:'amazon_merchant_id' => :'String',
|
55
|
-
:'
|
56
|
-
:'
|
57
|
-
:'
|
61
|
+
:'deposit_to_account' => :'String',
|
62
|
+
:'restrictions' => :'PaymentsConfigurationRestrictions',
|
63
|
+
:'sandbox' => :'BOOLEAN',
|
64
|
+
:'secret_access_key' => :'String'
|
58
65
|
}
|
59
66
|
end
|
60
67
|
|
@@ -66,36 +73,36 @@ module UltracartClient
|
|
66
73
|
# convert string to symbol for hash key
|
67
74
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
68
75
|
|
69
|
-
if attributes.has_key?(:'
|
70
|
-
self.accept_amazon = attributes[:'
|
76
|
+
if attributes.has_key?(:'accept_amazon')
|
77
|
+
self.accept_amazon = attributes[:'accept_amazon']
|
71
78
|
end
|
72
79
|
|
73
|
-
if attributes.has_key?(:'
|
74
|
-
self.
|
80
|
+
if attributes.has_key?(:'access_key_id')
|
81
|
+
self.access_key_id = attributes[:'access_key_id']
|
75
82
|
end
|
76
83
|
|
77
|
-
if attributes.has_key?(:'
|
78
|
-
self.
|
84
|
+
if attributes.has_key?(:'accounting_code')
|
85
|
+
self.accounting_code = attributes[:'accounting_code']
|
79
86
|
end
|
80
87
|
|
81
|
-
if attributes.has_key?(:'
|
82
|
-
self.
|
88
|
+
if attributes.has_key?(:'amazon_merchant_id')
|
89
|
+
self.amazon_merchant_id = attributes[:'amazon_merchant_id']
|
83
90
|
end
|
84
91
|
|
85
|
-
if attributes.has_key?(:'
|
86
|
-
self.
|
92
|
+
if attributes.has_key?(:'deposit_to_account')
|
93
|
+
self.deposit_to_account = attributes[:'deposit_to_account']
|
87
94
|
end
|
88
95
|
|
89
|
-
if attributes.has_key?(:'
|
90
|
-
self.
|
96
|
+
if attributes.has_key?(:'restrictions')
|
97
|
+
self.restrictions = attributes[:'restrictions']
|
91
98
|
end
|
92
99
|
|
93
|
-
if attributes.has_key?(:'
|
94
|
-
self.
|
100
|
+
if attributes.has_key?(:'sandbox')
|
101
|
+
self.sandbox = attributes[:'sandbox']
|
95
102
|
end
|
96
103
|
|
97
|
-
if attributes.has_key?(:'
|
98
|
-
self.
|
104
|
+
if attributes.has_key?(:'secret_access_key')
|
105
|
+
self.secret_access_key = attributes[:'secret_access_key']
|
99
106
|
end
|
100
107
|
end
|
101
108
|
|
@@ -118,13 +125,13 @@ module UltracartClient
|
|
118
125
|
return true if self.equal?(o)
|
119
126
|
self.class == o.class &&
|
120
127
|
accept_amazon == o.accept_amazon &&
|
121
|
-
|
122
|
-
|
123
|
-
amazon_deposit_to_account == o.amazon_deposit_to_account &&
|
128
|
+
access_key_id == o.access_key_id &&
|
129
|
+
accounting_code == o.accounting_code &&
|
124
130
|
amazon_merchant_id == o.amazon_merchant_id &&
|
125
|
-
|
126
|
-
|
127
|
-
|
131
|
+
deposit_to_account == o.deposit_to_account &&
|
132
|
+
restrictions == o.restrictions &&
|
133
|
+
sandbox == o.sandbox &&
|
134
|
+
secret_access_key == o.secret_access_key
|
128
135
|
end
|
129
136
|
|
130
137
|
# @see the `==` method
|
@@ -136,7 +143,7 @@ module UltracartClient
|
|
136
143
|
# Calculates hash code according to all attributes.
|
137
144
|
# @return [Fixnum] Hash code
|
138
145
|
def hash
|
139
|
-
[accept_amazon,
|
146
|
+
[accept_amazon, access_key_id, accounting_code, amazon_merchant_id, deposit_to_account, restrictions, sandbox, secret_access_key].hash
|
140
147
|
end
|
141
148
|
|
142
149
|
# Builds the object from hash
|