ultracart_api 3.4.8 → 3.4.12

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.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +11 -4
  3. data/docs/EmailWebhookEditorValuesResponse.md +14 -0
  4. data/docs/PaymentsConfiguration.md +4 -4
  5. data/docs/PaymentsConfigurationAffirm.md +7 -7
  6. data/docs/PaymentsConfigurationAmazon.md +7 -7
  7. data/docs/PaymentsConfigurationCOD.md +5 -5
  8. data/docs/PaymentsConfigurationCash.md +1 -1
  9. data/docs/PaymentsConfigurationCheck.md +12 -13
  10. data/docs/PaymentsConfigurationCreditCard.md +11 -8
  11. data/docs/PaymentsConfigurationCreditCardType.md +17 -0
  12. data/docs/PaymentsConfigurationEcheck.md +3 -3
  13. data/docs/PaymentsConfigurationLoanHero.md +4 -4
  14. data/docs/PaymentsConfigurationMoneyOrder.md +3 -1
  15. data/docs/PaymentsConfigurationPayPal.md +28 -28
  16. data/docs/PaymentsConfigurationPurchaseOrder.md +3 -3
  17. data/docs/PaymentsConfigurationQuoteRequest.md +2 -2
  18. data/docs/PaymentsConfigurationRestrictions.md +14 -12
  19. data/docs/PaymentsConfigurationRestrictionsTheme.md +10 -0
  20. data/docs/PaymentsConfigurationSezzle.md +8 -7
  21. data/docs/PaymentsConfigurationTestMethod.md +18 -0
  22. data/docs/PaymentsConfigurationWePay.md +26 -26
  23. data/docs/PaymentsConfigurationWireTransfer.md +10 -10
  24. data/docs/StorefrontApi.md +52 -0
  25. data/lib/ultracart_api.rb +4 -0
  26. data/lib/ultracart_api/api/storefront_api.rb +59 -0
  27. data/lib/ultracart_api/models/email_webhook_editor_values_response.rb +243 -0
  28. data/lib/ultracart_api/models/payments_configuration.rb +41 -40
  29. data/lib/ultracart_api/models/payments_configuration_affirm.rb +81 -40
  30. data/lib/ultracart_api/models/payments_configuration_amazon.rb +51 -44
  31. data/lib/ultracart_api/models/payments_configuration_cash.rb +4 -3
  32. data/lib/ultracart_api/models/payments_configuration_check.rb +73 -68
  33. data/lib/ultracart_api/models/payments_configuration_cod.rb +39 -34
  34. data/lib/ultracart_api/models/payments_configuration_credit_card.rb +78 -34
  35. data/lib/ultracart_api/models/payments_configuration_credit_card_type.rb +309 -0
  36. data/lib/ultracart_api/models/payments_configuration_echeck.rb +22 -19
  37. data/lib/ultracart_api/models/payments_configuration_loan_hero.rb +23 -19
  38. data/lib/ultracart_api/models/payments_configuration_money_order.rb +25 -4
  39. data/lib/ultracart_api/models/payments_configuration_pay_pal.rb +270 -172
  40. data/lib/ultracart_api/models/payments_configuration_purchase_order.rb +19 -16
  41. data/lib/ultracart_api/models/payments_configuration_quote_request.rb +12 -10
  42. data/lib/ultracart_api/models/payments_configuration_restrictions.rb +75 -41
  43. data/lib/ultracart_api/models/payments_configuration_restrictions_theme.rb +202 -0
  44. data/lib/ultracart_api/models/payments_configuration_sezzle.rb +99 -46
  45. data/lib/ultracart_api/models/payments_configuration_test_method.rb +319 -0
  46. data/lib/ultracart_api/models/payments_configuration_we_pay.rb +186 -160
  47. data/lib/ultracart_api/models/payments_configuration_wire_transfer.rb +71 -61
  48. data/lib/ultracart_api/version.rb +1 -1
  49. metadata +10 -2
@@ -26,13 +26,13 @@ module UltracartClient
26
26
 
27
27
  attr_accessor :credit_card
28
28
 
29
- attr_accessor :e_check
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 :pay_pal
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 :we_pay
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' => :'creditCard',
62
- :'e_check' => :'eCheck',
63
- :'loan_hero' => :'loanHero',
64
- :'money_order' => :'moneyOrder',
65
- :'pay_pal' => :'payPal',
66
- :'purchase_order' => :'purchaseOrder',
67
- :'quote_request' => :'quoteRequest',
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' => :'showAccountingCode',
70
+ :'show_accounting_code' => :'show_accounting_code',
70
71
  :'switch_to_sub_tab' => :'switchToSubTab',
71
72
  :'switch_to_tab' => :'switchToTab',
72
- :'we_pay' => :'wePay',
73
- :'wire_transfer' => :'wireTransfer'
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
- :'e_check' => :'PaymentsConfigurationEcheck',
87
+ :'echeck' => :'PaymentsConfigurationEcheck',
87
88
  :'loan_hero' => :'PaymentsConfigurationLoanHero',
88
89
  :'money_order' => :'PaymentsConfigurationMoneyOrder',
89
- :'pay_pal' => :'PaymentsConfigurationPayPal',
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
- :'we_pay' => :'PaymentsConfigurationWePay',
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?(:'creditCard')
130
- self.credit_card = attributes[:'creditCard']
130
+ if attributes.has_key?(:'credit_card')
131
+ self.credit_card = attributes[:'credit_card']
131
132
  end
132
133
 
133
- if attributes.has_key?(:'eCheck')
134
- self.e_check = attributes[:'eCheck']
134
+ if attributes.has_key?(:'echeck')
135
+ self.echeck = attributes[:'echeck']
135
136
  end
136
137
 
137
- if attributes.has_key?(:'loanHero')
138
- self.loan_hero = attributes[:'loanHero']
138
+ if attributes.has_key?(:'loan_hero')
139
+ self.loan_hero = attributes[:'loan_hero']
139
140
  end
140
141
 
141
- if attributes.has_key?(:'moneyOrder')
142
- self.money_order = attributes[:'moneyOrder']
142
+ if attributes.has_key?(:'money_order')
143
+ self.money_order = attributes[:'money_order']
143
144
  end
144
145
 
145
- if attributes.has_key?(:'payPal')
146
- self.pay_pal = attributes[:'payPal']
146
+ if attributes.has_key?(:'paypal')
147
+ self.paypal = attributes[:'paypal']
147
148
  end
148
149
 
149
- if attributes.has_key?(:'purchaseOrder')
150
- self.purchase_order = attributes[:'purchaseOrder']
150
+ if attributes.has_key?(:'purchase_order')
151
+ self.purchase_order = attributes[:'purchase_order']
151
152
  end
152
153
 
153
- if attributes.has_key?(:'quoteRequest')
154
- self.quote_request = attributes[:'quoteRequest']
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?(:'showAccountingCode')
162
- self.show_accounting_code = attributes[:'showAccountingCode']
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?(:'wePay')
174
- self.we_pay = attributes[:'wePay']
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?(:'wireTransfer')
178
- self.wire_transfer = attributes[:'wireTransfer']
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
- e_check == o.e_check &&
207
+ echeck == o.echeck &&
207
208
  loan_hero == o.loan_hero &&
208
209
  money_order == o.money_order &&
209
- pay_pal == o.pay_pal &&
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
- we_pay == o.we_pay &&
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, e_check, loan_hero, money_order, pay_pal, purchase_order, quote_request, sezzle, show_accounting_code, switch_to_sub_tab, switch_to_tab, we_pay, wire_transfer].hash
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
- attr_accessor :affirm_accounting_code
20
+ # Optional Quickbooks code for this payment method
21
+ attr_accessor :accounting_code
20
22
 
21
- attr_accessor :affirm_deposit_to_account
23
+ # Optional Quickbooks Deposit to Account value
24
+ attr_accessor :deposit_to_account
22
25
 
23
- attr_accessor :affirm_environment
26
+ # Environment
27
+ attr_accessor :environment
24
28
 
25
- attr_accessor :affirm_financial_product_key
29
+ # Financial product key
30
+ attr_accessor :financial_product_key
26
31
 
27
- attr_accessor :affirm_private_api_key
32
+ # Private API key
33
+ attr_accessor :private_api_key
28
34
 
29
- attr_accessor :affirm_public_api_key
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' => :'acceptAffirm',
37
- :'affirm_accounting_code' => :'affirmAccountingCode',
38
- :'affirm_deposit_to_account' => :'affirmDepositToAccount',
39
- :'affirm_environment' => :'affirmEnvironment',
40
- :'affirm_financial_product_key' => :'affirmFinancialProductKey',
41
- :'affirm_private_api_key' => :'affirmPrivateApiKey',
42
- :'affirm_public_api_key' => :'affirmPublicApiKey',
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
- :'affirm_accounting_code' => :'String',
52
- :'affirm_deposit_to_account' => :'String',
53
- :'affirm_environment' => :'String',
54
- :'affirm_financial_product_key' => :'String',
55
- :'affirm_private_api_key' => :'String',
56
- :'affirm_public_api_key' => :'String',
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?(:'acceptAffirm')
70
- self.accept_affirm = attributes[:'acceptAffirm']
98
+ if attributes.has_key?(:'accept_affirm')
99
+ self.accept_affirm = attributes[:'accept_affirm']
71
100
  end
72
101
 
73
- if attributes.has_key?(:'affirmAccountingCode')
74
- self.affirm_accounting_code = attributes[:'affirmAccountingCode']
102
+ if attributes.has_key?(:'accounting_code')
103
+ self.accounting_code = attributes[:'accounting_code']
75
104
  end
76
105
 
77
- if attributes.has_key?(:'affirmDepositToAccount')
78
- self.affirm_deposit_to_account = attributes[:'affirmDepositToAccount']
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?(:'affirmEnvironment')
82
- self.affirm_environment = attributes[:'affirmEnvironment']
110
+ if attributes.has_key?(:'environment')
111
+ self.environment = attributes[:'environment']
83
112
  end
84
113
 
85
- if attributes.has_key?(:'affirmFinancialProductKey')
86
- self.affirm_financial_product_key = attributes[:'affirmFinancialProductKey']
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?(:'affirmPrivateApiKey')
90
- self.affirm_private_api_key = attributes[:'affirmPrivateApiKey']
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?(:'affirmPublicApiKey')
94
- self.affirm_public_api_key = attributes[:'affirmPublicApiKey']
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
- affirm_accounting_code == o.affirm_accounting_code &&
122
- affirm_deposit_to_account == o.affirm_deposit_to_account &&
123
- affirm_environment == o.affirm_environment &&
124
- affirm_financial_product_key == o.affirm_financial_product_key &&
125
- affirm_private_api_key == o.affirm_private_api_key &&
126
- affirm_public_api_key == o.affirm_public_api_key &&
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, affirm_accounting_code, affirm_deposit_to_account, affirm_environment, affirm_financial_product_key, affirm_private_api_key, affirm_public_api_key, restrictions].hash
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
- attr_accessor :amazon_access_key_id
20
+ # Amazon access key ID
21
+ attr_accessor :access_key_id
20
22
 
21
- attr_accessor :amazon_accounting_code
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
- attr_accessor :amazon_sandbox
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' => :'acceptAmazon',
37
- :'amazon_access_key_id' => :'amazonAccessKeyId',
38
- :'amazon_accounting_code' => :'amazonAccountingCode',
39
- :'amazon_deposit_to_account' => :'amazonDepositToAccount',
40
- :'amazon_merchant_id' => :'amazonMerchantId',
41
- :'amazon_sandbox' => :'amazonSandbox',
42
- :'amazon_secret_access_key' => :'amazonSecretAccessKey',
43
- :'restrictions' => :'restrictions'
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
- :'amazon_access_key_id' => :'String',
52
- :'amazon_accounting_code' => :'String',
53
- :'amazon_deposit_to_account' => :'String',
58
+ :'access_key_id' => :'String',
59
+ :'accounting_code' => :'String',
54
60
  :'amazon_merchant_id' => :'String',
55
- :'amazon_sandbox' => :'BOOLEAN',
56
- :'amazon_secret_access_key' => :'String',
57
- :'restrictions' => :'PaymentsConfigurationRestrictions'
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?(:'acceptAmazon')
70
- self.accept_amazon = attributes[:'acceptAmazon']
76
+ if attributes.has_key?(:'accept_amazon')
77
+ self.accept_amazon = attributes[:'accept_amazon']
71
78
  end
72
79
 
73
- if attributes.has_key?(:'amazonAccessKeyId')
74
- self.amazon_access_key_id = attributes[:'amazonAccessKeyId']
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?(:'amazonAccountingCode')
78
- self.amazon_accounting_code = attributes[:'amazonAccountingCode']
84
+ if attributes.has_key?(:'accounting_code')
85
+ self.accounting_code = attributes[:'accounting_code']
79
86
  end
80
87
 
81
- if attributes.has_key?(:'amazonDepositToAccount')
82
- self.amazon_deposit_to_account = attributes[:'amazonDepositToAccount']
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?(:'amazonMerchantId')
86
- self.amazon_merchant_id = attributes[:'amazonMerchantId']
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?(:'amazonSandbox')
90
- self.amazon_sandbox = attributes[:'amazonSandbox']
96
+ if attributes.has_key?(:'restrictions')
97
+ self.restrictions = attributes[:'restrictions']
91
98
  end
92
99
 
93
- if attributes.has_key?(:'amazonSecretAccessKey')
94
- self.amazon_secret_access_key = attributes[:'amazonSecretAccessKey']
100
+ if attributes.has_key?(:'sandbox')
101
+ self.sandbox = attributes[:'sandbox']
95
102
  end
96
103
 
97
- if attributes.has_key?(:'restrictions')
98
- self.restrictions = attributes[:'restrictions']
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
- amazon_access_key_id == o.amazon_access_key_id &&
122
- amazon_accounting_code == o.amazon_accounting_code &&
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
- amazon_sandbox == o.amazon_sandbox &&
126
- amazon_secret_access_key == o.amazon_secret_access_key &&
127
- restrictions == o.restrictions
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, amazon_access_key_id, amazon_accounting_code, amazon_deposit_to_account, amazon_merchant_id, amazon_sandbox, amazon_secret_access_key, restrictions].hash
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