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.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -4
  3. data/docs/PaymentsConfiguration.md +4 -4
  4. data/docs/PaymentsConfigurationAffirm.md +7 -7
  5. data/docs/PaymentsConfigurationAmazon.md +7 -7
  6. data/docs/PaymentsConfigurationCOD.md +5 -5
  7. data/docs/PaymentsConfigurationCash.md +1 -1
  8. data/docs/PaymentsConfigurationCheck.md +12 -13
  9. data/docs/PaymentsConfigurationCreditCard.md +11 -8
  10. data/docs/PaymentsConfigurationEcheck.md +3 -3
  11. data/docs/PaymentsConfigurationLoanHero.md +4 -4
  12. data/docs/PaymentsConfigurationMoneyOrder.md +3 -1
  13. data/docs/PaymentsConfigurationPayPal.md +28 -28
  14. data/docs/PaymentsConfigurationPurchaseOrder.md +3 -3
  15. data/docs/PaymentsConfigurationQuoteRequest.md +2 -2
  16. data/docs/PaymentsConfigurationRestrictions.md +12 -12
  17. data/docs/PaymentsConfigurationSezzle.md +8 -7
  18. data/docs/PaymentsConfigurationWePay.md +26 -26
  19. data/docs/PaymentsConfigurationWireTransfer.md +10 -10
  20. data/lib/ultracart_api/models/payments_configuration.rb +41 -40
  21. data/lib/ultracart_api/models/payments_configuration_affirm.rb +81 -40
  22. data/lib/ultracart_api/models/payments_configuration_amazon.rb +51 -44
  23. data/lib/ultracart_api/models/payments_configuration_cash.rb +4 -3
  24. data/lib/ultracart_api/models/payments_configuration_check.rb +71 -68
  25. data/lib/ultracart_api/models/payments_configuration_cod.rb +39 -34
  26. data/lib/ultracart_api/models/payments_configuration_credit_card.rb +71 -33
  27. data/lib/ultracart_api/models/payments_configuration_echeck.rb +22 -19
  28. data/lib/ultracart_api/models/payments_configuration_loan_hero.rb +23 -19
  29. data/lib/ultracart_api/models/payments_configuration_money_order.rb +25 -4
  30. data/lib/ultracart_api/models/payments_configuration_pay_pal.rb +270 -172
  31. data/lib/ultracart_api/models/payments_configuration_purchase_order.rb +19 -16
  32. data/lib/ultracart_api/models/payments_configuration_quote_request.rb +12 -10
  33. data/lib/ultracart_api/models/payments_configuration_restrictions.rb +48 -36
  34. data/lib/ultracart_api/models/payments_configuration_sezzle.rb +97 -46
  35. data/lib/ultracart_api/models/payments_configuration_we_pay.rb +186 -160
  36. data/lib/ultracart_api/models/payments_configuration_wire_transfer.rb +71 -61
  37. data/lib/ultracart_api/version.rb +1 -1
  38. 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' => :'acceptCash',
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?(:'acceptCash')
46
- self.accept_cash = attributes[:'acceptCash']
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
- attr_accessor :check_accounting_code
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
- attr_accessor :mail_to_state
36
-
37
- attr_accessor :mail_to_zip
44
+ # MailTo postal code
45
+ attr_accessor :mail_to_postal_code
38
46
 
39
- attr_accessor :money_order_accounting_code
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' => :'acceptCheckOrders',
49
- :'check_accounting_code' => :'checkAccountingCode',
50
- :'check_deposit_to_account' => :'checkDepositToAccount',
51
- :'checks_payable_to' => :'checksPayableTo',
52
- :'mail_to_address1' => :'mailToAddress1',
53
- :'mail_to_address2' => :'mailToAddress2',
54
- :'mail_to_city' => :'mailToCity',
55
- :'mail_to_country' => :'mailToCountry',
56
- :'mail_to_name' => :'mailToName',
57
- :'mail_to_state' => :'mailToState',
58
- :'mail_to_zip' => :'mailToZip',
59
- :'money_order_accounting_code' => :'moneyOrderAccountingCode',
60
- :'money_order_deposit_to_account' => :'moneyOrderDepositToAccount',
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
- :'check_accounting_code' => :'String',
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
- :'mail_to_state' => :'String',
78
- :'mail_to_zip' => :'String',
79
- :'money_order_accounting_code' => :'String',
80
- :'money_order_deposit_to_account' => :'String',
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?(:'acceptCheckOrders')
94
- self.accept_check_orders = attributes[:'acceptCheckOrders']
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?(:'checkAccountingCode')
98
- self.check_accounting_code = attributes[:'checkAccountingCode']
105
+ if attributes.has_key?(:'accounting_code')
106
+ self.accounting_code = attributes[:'accounting_code']
99
107
  end
100
108
 
101
- if attributes.has_key?(:'checkDepositToAccount')
102
- self.check_deposit_to_account = attributes[:'checkDepositToAccount']
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?(:'checksPayableTo')
106
- self.checks_payable_to = attributes[:'checksPayableTo']
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?(:'mailToAddress1')
110
- self.mail_to_address1 = attributes[:'mailToAddress1']
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?(:'mailToAddress2')
114
- self.mail_to_address2 = attributes[:'mailToAddress2']
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?(:'mailToCity')
118
- self.mail_to_city = attributes[:'mailToCity']
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?(:'mailToCountry')
122
- self.mail_to_country = attributes[:'mailToCountry']
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?(:'mailToName')
126
- self.mail_to_name = attributes[:'mailToName']
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?(:'mailToState')
130
- self.mail_to_state = attributes[:'mailToState']
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?(:'mailToZip')
134
- self.mail_to_zip = attributes[:'mailToZip']
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
- check_accounting_code == o.check_accounting_code &&
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
- mail_to_state == o.mail_to_state &&
178
- mail_to_zip == o.mail_to_zip &&
179
- money_order_accounting_code == o.money_order_accounting_code &&
180
- money_order_deposit_to_account == o.money_order_deposit_to_account &&
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, check_accounting_code, check_deposit_to_account, checks_payable_to, mail_to_address1, mail_to_address2, mail_to_city, mail_to_country, mail_to_name, mail_to_state, mail_to_zip, money_order_accounting_code, money_order_deposit_to_account, restrictions].hash
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
- attr_accessor :cod_approved_customers_only
20
+ # If true, only approved customers may pay with COD
21
+ attr_accessor :approved_customers_only
20
22
 
21
- attr_accessor :cod_surcharge_accounting_code
23
+ attr_accessor :restrictions
22
24
 
23
- attr_accessor :cod_surcharge_fee
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
- attr_accessor :cod_surcharge_perc
28
+ # Additional cost for using COD
29
+ attr_accessor :surcharge_fee
26
30
 
27
- attr_accessor :restrictions
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' => :'acceptCod',
33
- :'cod_approved_customers_only' => :'codApprovedCustomersOnly',
34
- :'cod_surcharge_accounting_code' => :'codSurchargeAccountingCode',
35
- :'cod_surcharge_fee' => :'codSurchargeFee',
36
- :'cod_surcharge_perc' => :'codSurchargePerc',
37
- :'restrictions' => :'restrictions'
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
- :'cod_approved_customers_only' => :'BOOLEAN',
46
- :'cod_surcharge_accounting_code' => :'String',
47
- :'cod_surcharge_fee' => :'String',
48
- :'cod_surcharge_perc' => :'String',
49
- :'restrictions' => :'PaymentsConfigurationRestrictions'
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?(:'acceptCod')
62
- self.accept_cod = attributes[:'acceptCod']
66
+ if attributes.has_key?(:'accept_cod')
67
+ self.accept_cod = attributes[:'accept_cod']
63
68
  end
64
69
 
65
- if attributes.has_key?(:'codApprovedCustomersOnly')
66
- self.cod_approved_customers_only = attributes[:'codApprovedCustomersOnly']
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?(:'codSurchargeAccountingCode')
70
- self.cod_surcharge_accounting_code = attributes[:'codSurchargeAccountingCode']
74
+ if attributes.has_key?(:'restrictions')
75
+ self.restrictions = attributes[:'restrictions']
71
76
  end
72
77
 
73
- if attributes.has_key?(:'codSurchargeFee')
74
- self.cod_surcharge_fee = attributes[:'codSurchargeFee']
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?(:'codSurchargePerc')
78
- self.cod_surcharge_perc = attributes[:'codSurchargePerc']
82
+ if attributes.has_key?(:'surcharge_fee')
83
+ self.surcharge_fee = attributes[:'surcharge_fee']
79
84
  end
80
85
 
81
- if attributes.has_key?(:'restrictions')
82
- self.restrictions = attributes[:'restrictions']
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
- cod_approved_customers_only == o.cod_approved_customers_only &&
106
- cod_surcharge_accounting_code == o.cod_surcharge_accounting_code &&
107
- cod_surcharge_fee == o.cod_surcharge_fee &&
108
- cod_surcharge_perc == o.cod_surcharge_perc &&
109
- restrictions == o.restrictions
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, cod_approved_customers_only, cod_surcharge_accounting_code, cod_surcharge_fee, cod_surcharge_perc, restrictions].hash
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
- attr_accessor :accept_credit_cards
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
- attr_accessor :configured_gateways_details
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
- :'accept_credit_cards' => :'acceptCreditCards',
37
- :'billed_by' => :'billedBy',
38
- :'charge_during_checkout' => :'chargeDuringCheckout',
39
- :'collect_cvv2' => :'collectCvv2',
40
- :'configured_gateways_details' => :'configuredGatewaysDetails',
41
- :'failed_attempts' => :'failedAttempts',
42
- :'hide_connect_single_gateway' => :'hideConnectSingleGateway',
43
- :'send_customer_billing_update_on_decline' => :'sendCustomerBillingUpdateOnDecline'
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
- :'accept_credit_cards' => :'BOOLEAN',
70
+ :'accept_credit_card' => :'BOOLEAN',
51
71
  :'billed_by' => :'String',
52
72
  :'charge_during_checkout' => :'BOOLEAN',
53
73
  :'collect_cvv2' => :'BOOLEAN',
54
- :'configured_gateways_details' => :'String',
74
+ :'configured_gateway_details' => :'String',
55
75
  :'failed_attempts' => :'String',
56
76
  :'hide_connect_single_gateway' => :'BOOLEAN',
57
- :'send_customer_billing_update_on_decline' => :'BOOLEAN'
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?(:'acceptCreditCards')
70
- self.accept_credit_cards = attributes[:'acceptCreditCards']
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?(:'billedBy')
74
- self.billed_by = attributes[:'billedBy']
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?(:'chargeDuringCheckout')
78
- self.charge_during_checkout = attributes[:'chargeDuringCheckout']
112
+ if attributes.has_key?(:'failed_attempts')
113
+ self.failed_attempts = attributes[:'failed_attempts']
79
114
  end
80
115
 
81
- if attributes.has_key?(:'collectCvv2')
82
- self.collect_cvv2 = attributes[:'collectCvv2']
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?(:'configuredGatewaysDetails')
86
- self.configured_gateways_details = attributes[:'configuredGatewaysDetails']
120
+ if attributes.has_key?(:'restrictions')
121
+ self.restrictions = attributes[:'restrictions']
87
122
  end
88
123
 
89
- if attributes.has_key?(:'failedAttempts')
90
- self.failed_attempts = attributes[:'failedAttempts']
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?(:'hideConnectSingleGateway')
94
- self.hide_connect_single_gateway = attributes[:'hideConnectSingleGateway']
128
+ if attributes.has_key?(:'supported_cards')
129
+ self.supported_cards = attributes[:'supported_cards']
95
130
  end
96
131
 
97
- if attributes.has_key?(:'sendCustomerBillingUpdateOnDecline')
98
- self.send_customer_billing_update_on_decline = attributes[:'sendCustomerBillingUpdateOnDecline']
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
- accept_credit_cards == o.accept_credit_cards &&
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
- configured_gateways_details == o.configured_gateways_details &&
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
- send_customer_billing_update_on_decline == o.send_customer_billing_update_on_decline
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
- [accept_credit_cards, billed_by, charge_during_checkout, collect_cvv2, configured_gateways_details, failed_attempts, hide_connect_single_gateway, send_customer_billing_update_on_decline].hash
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