ultracart_api 3.4.5 → 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 +17 -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/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 +12 -12
- data/docs/PaymentsConfigurationSezzle.md +8 -7
- data/docs/PaymentsConfigurationWePay.md +26 -26
- data/docs/PaymentsConfigurationWireTransfer.md +10 -10
- data/docs/RotatingTransactionGateway.md +4 -3
- data/docs/StorefrontApi.md +260 -0
- data/lib/ultracart_api.rb +5 -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 +70 -103
- data/lib/ultracart_api/models/payments_configuration_cod.rb +39 -34
- data/lib/ultracart_api/models/payments_configuration_credit_card.rb +68 -39
- 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 +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/models/rotating_transaction_gateway.rb +13 -3
- data/lib/ultracart_api/version.rb +1 -1
- metadata +12 -2
@@ -26,9 +26,13 @@ module UltracartClient
|
|
26
26
|
|
27
27
|
attr_accessor :credit_card
|
28
28
|
|
29
|
+
attr_accessor :echeck
|
30
|
+
|
29
31
|
attr_accessor :loan_hero
|
30
32
|
|
31
|
-
attr_accessor :
|
33
|
+
attr_accessor :money_order
|
34
|
+
|
35
|
+
attr_accessor :paypal
|
32
36
|
|
33
37
|
attr_accessor :purchase_order
|
34
38
|
|
@@ -36,13 +40,14 @@ module UltracartClient
|
|
36
40
|
|
37
41
|
attr_accessor :sezzle
|
38
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.
|
39
44
|
attr_accessor :show_accounting_code
|
40
45
|
|
41
46
|
attr_accessor :switch_to_sub_tab
|
42
47
|
|
43
48
|
attr_accessor :switch_to_tab
|
44
49
|
|
45
|
-
attr_accessor :
|
50
|
+
attr_accessor :ultracart_payments_wepay
|
46
51
|
|
47
52
|
attr_accessor :wire_transfer
|
48
53
|
|
@@ -54,17 +59,19 @@ module UltracartClient
|
|
54
59
|
:'cash' => :'cash',
|
55
60
|
:'check' => :'check',
|
56
61
|
:'cod' => :'cod',
|
57
|
-
:'credit_card' => :'
|
58
|
-
:'
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
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',
|
62
69
|
:'sezzle' => :'sezzle',
|
63
|
-
:'show_accounting_code' => :'
|
70
|
+
:'show_accounting_code' => :'show_accounting_code',
|
64
71
|
:'switch_to_sub_tab' => :'switchToSubTab',
|
65
72
|
:'switch_to_tab' => :'switchToTab',
|
66
|
-
:'
|
67
|
-
:'wire_transfer' => :'
|
73
|
+
:'ultracart_payments_wepay' => :'ultracart_payments_wepay',
|
74
|
+
:'wire_transfer' => :'wire_transfer'
|
68
75
|
}
|
69
76
|
end
|
70
77
|
|
@@ -77,15 +84,17 @@ module UltracartClient
|
|
77
84
|
:'check' => :'PaymentsConfigurationCheck',
|
78
85
|
:'cod' => :'PaymentsConfigurationCOD',
|
79
86
|
:'credit_card' => :'PaymentsConfigurationCreditCard',
|
87
|
+
:'echeck' => :'PaymentsConfigurationEcheck',
|
80
88
|
:'loan_hero' => :'PaymentsConfigurationLoanHero',
|
81
|
-
:'
|
89
|
+
:'money_order' => :'PaymentsConfigurationMoneyOrder',
|
90
|
+
:'paypal' => :'PaymentsConfigurationPayPal',
|
82
91
|
:'purchase_order' => :'PaymentsConfigurationPurchaseOrder',
|
83
92
|
:'quote_request' => :'PaymentsConfigurationQuoteRequest',
|
84
93
|
:'sezzle' => :'PaymentsConfigurationSezzle',
|
85
94
|
:'show_accounting_code' => :'BOOLEAN',
|
86
95
|
:'switch_to_sub_tab' => :'String',
|
87
96
|
:'switch_to_tab' => :'String',
|
88
|
-
:'
|
97
|
+
:'ultracart_payments_wepay' => :'PaymentsConfigurationWePay',
|
89
98
|
:'wire_transfer' => :'PaymentsConfigurationWireTransfer'
|
90
99
|
}
|
91
100
|
end
|
@@ -118,32 +127,40 @@ module UltracartClient
|
|
118
127
|
self.cod = attributes[:'cod']
|
119
128
|
end
|
120
129
|
|
121
|
-
if attributes.has_key?(:'
|
122
|
-
self.credit_card = attributes[:'
|
130
|
+
if attributes.has_key?(:'credit_card')
|
131
|
+
self.credit_card = attributes[:'credit_card']
|
132
|
+
end
|
133
|
+
|
134
|
+
if attributes.has_key?(:'echeck')
|
135
|
+
self.echeck = attributes[:'echeck']
|
136
|
+
end
|
137
|
+
|
138
|
+
if attributes.has_key?(:'loan_hero')
|
139
|
+
self.loan_hero = attributes[:'loan_hero']
|
123
140
|
end
|
124
141
|
|
125
|
-
if attributes.has_key?(:'
|
126
|
-
self.
|
142
|
+
if attributes.has_key?(:'money_order')
|
143
|
+
self.money_order = attributes[:'money_order']
|
127
144
|
end
|
128
145
|
|
129
|
-
if attributes.has_key?(:'
|
130
|
-
self.
|
146
|
+
if attributes.has_key?(:'paypal')
|
147
|
+
self.paypal = attributes[:'paypal']
|
131
148
|
end
|
132
149
|
|
133
|
-
if attributes.has_key?(:'
|
134
|
-
self.purchase_order = attributes[:'
|
150
|
+
if attributes.has_key?(:'purchase_order')
|
151
|
+
self.purchase_order = attributes[:'purchase_order']
|
135
152
|
end
|
136
153
|
|
137
|
-
if attributes.has_key?(:'
|
138
|
-
self.quote_request = attributes[:'
|
154
|
+
if attributes.has_key?(:'quote_request')
|
155
|
+
self.quote_request = attributes[:'quote_request']
|
139
156
|
end
|
140
157
|
|
141
158
|
if attributes.has_key?(:'sezzle')
|
142
159
|
self.sezzle = attributes[:'sezzle']
|
143
160
|
end
|
144
161
|
|
145
|
-
if attributes.has_key?(:'
|
146
|
-
self.show_accounting_code = attributes[:'
|
162
|
+
if attributes.has_key?(:'show_accounting_code')
|
163
|
+
self.show_accounting_code = attributes[:'show_accounting_code']
|
147
164
|
end
|
148
165
|
|
149
166
|
if attributes.has_key?(:'switchToSubTab')
|
@@ -154,12 +171,12 @@ module UltracartClient
|
|
154
171
|
self.switch_to_tab = attributes[:'switchToTab']
|
155
172
|
end
|
156
173
|
|
157
|
-
if attributes.has_key?(:'
|
158
|
-
self.
|
174
|
+
if attributes.has_key?(:'ultracart_payments_wepay')
|
175
|
+
self.ultracart_payments_wepay = attributes[:'ultracart_payments_wepay']
|
159
176
|
end
|
160
177
|
|
161
|
-
if attributes.has_key?(:'
|
162
|
-
self.wire_transfer = attributes[:'
|
178
|
+
if attributes.has_key?(:'wire_transfer')
|
179
|
+
self.wire_transfer = attributes[:'wire_transfer']
|
163
180
|
end
|
164
181
|
end
|
165
182
|
|
@@ -187,15 +204,17 @@ module UltracartClient
|
|
187
204
|
check == o.check &&
|
188
205
|
cod == o.cod &&
|
189
206
|
credit_card == o.credit_card &&
|
207
|
+
echeck == o.echeck &&
|
190
208
|
loan_hero == o.loan_hero &&
|
191
|
-
|
209
|
+
money_order == o.money_order &&
|
210
|
+
paypal == o.paypal &&
|
192
211
|
purchase_order == o.purchase_order &&
|
193
212
|
quote_request == o.quote_request &&
|
194
213
|
sezzle == o.sezzle &&
|
195
214
|
show_accounting_code == o.show_accounting_code &&
|
196
215
|
switch_to_sub_tab == o.switch_to_sub_tab &&
|
197
216
|
switch_to_tab == o.switch_to_tab &&
|
198
|
-
|
217
|
+
ultracart_payments_wepay == o.ultracart_payments_wepay &&
|
199
218
|
wire_transfer == o.wire_transfer
|
200
219
|
end
|
201
220
|
|
@@ -208,7 +227,7 @@ module UltracartClient
|
|
208
227
|
# Calculates hash code according to all attributes.
|
209
228
|
# @return [Fixnum] Hash code
|
210
229
|
def hash
|
211
|
-
[affirm, amazon, cash, check, cod, credit_card, loan_hero,
|
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
|
212
231
|
end
|
213
232
|
|
214
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
|