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
@@ -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' => :'Array<PaymentsConfigurationTestMethod>'
82
90
  }
83
91
  end
84
92
 
@@ -90,61 +98,59 @@ 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']
95
- end
96
-
97
- if attributes.has_key?(:'checkAccountingCode')
98
- self.check_accounting_code = attributes[:'checkAccountingCode']
99
- end
100
-
101
- if attributes.has_key?(:'checkDepositToAccount')
102
- self.check_deposit_to_account = attributes[:'checkDepositToAccount']
101
+ if attributes.has_key?(:'accept_check_orders')
102
+ self.accept_check_orders = attributes[:'accept_check_orders']
103
103
  end
104
104
 
105
- if attributes.has_key?(:'checksPayableTo')
106
- self.checks_payable_to = attributes[:'checksPayableTo']
105
+ if attributes.has_key?(:'accounting_code')
106
+ self.accounting_code = attributes[:'accounting_code']
107
107
  end
108
108
 
109
- if attributes.has_key?(:'mailToAddress1')
110
- self.mail_to_address1 = attributes[:'mailToAddress1']
109
+ if attributes.has_key?(:'checks_payable_to')
110
+ self.checks_payable_to = attributes[:'checks_payable_to']
111
111
  end
112
112
 
113
- if attributes.has_key?(:'mailToAddress2')
114
- self.mail_to_address2 = attributes[:'mailToAddress2']
113
+ if attributes.has_key?(:'deposit_to_account')
114
+ self.deposit_to_account = attributes[:'deposit_to_account']
115
115
  end
116
116
 
117
- if attributes.has_key?(:'mailToCity')
118
- self.mail_to_city = attributes[:'mailToCity']
117
+ if attributes.has_key?(:'mail_to_address1')
118
+ self.mail_to_address1 = attributes[:'mail_to_address1']
119
119
  end
120
120
 
121
- if attributes.has_key?(:'mailToCountry')
122
- self.mail_to_country = attributes[:'mailToCountry']
121
+ if attributes.has_key?(:'mail_to_address2')
122
+ self.mail_to_address2 = attributes[:'mail_to_address2']
123
123
  end
124
124
 
125
- if attributes.has_key?(:'mailToName')
126
- self.mail_to_name = attributes[:'mailToName']
125
+ if attributes.has_key?(:'mail_to_city')
126
+ self.mail_to_city = attributes[:'mail_to_city']
127
127
  end
128
128
 
129
- if attributes.has_key?(:'mailToState')
130
- self.mail_to_state = attributes[:'mailToState']
129
+ if attributes.has_key?(:'mail_to_country')
130
+ self.mail_to_country = attributes[:'mail_to_country']
131
131
  end
132
132
 
133
- if attributes.has_key?(:'mailToZip')
134
- self.mail_to_zip = attributes[:'mailToZip']
133
+ if attributes.has_key?(:'mail_to_name')
134
+ self.mail_to_name = attributes[:'mail_to_name']
135
135
  end
136
136
 
137
- if attributes.has_key?(:'moneyOrderAccountingCode')
138
- self.money_order_accounting_code = attributes[:'moneyOrderAccountingCode']
137
+ if attributes.has_key?(:'mail_to_postal_code')
138
+ self.mail_to_postal_code = attributes[:'mail_to_postal_code']
139
139
  end
140
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
+ if (value = attributes[:'test_methods']).is_a?(Array)
151
+ self.test_methods = value
152
+ end
153
+ end
148
154
  end
149
155
 
150
156
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,19 +172,18 @@ module UltracartClient
166
172
  return true if self.equal?(o)
167
173
  self.class == o.class &&
168
174
  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 &&
175
+ accounting_code == o.accounting_code &&
171
176
  checks_payable_to == o.checks_payable_to &&
177
+ deposit_to_account == o.deposit_to_account &&
172
178
  mail_to_address1 == o.mail_to_address1 &&
173
179
  mail_to_address2 == o.mail_to_address2 &&
174
180
  mail_to_city == o.mail_to_city &&
175
181
  mail_to_country == o.mail_to_country &&
176
182
  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
183
+ mail_to_postal_code == o.mail_to_postal_code &&
184
+ mail_to_store == o.mail_to_store &&
185
+ restrictions == o.restrictions &&
186
+ test_methods == o.test_methods
182
187
  end
183
188
 
184
189
  # @see the `==` method
@@ -190,7 +195,7 @@ module UltracartClient
190
195
  # Calculates hash code according to all attributes.
191
196
  # @return [Fixnum] Hash code
192
197
  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
198
+ [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
199
  end
195
200
 
196
201
  # 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',
55
- :'failed_attempts' => :'String',
74
+ :'configured_gateway_details' => :'String',
75
+ :'failed_attempts' => :'Integer',
56
76
  :'hide_connect_single_gateway' => :'BOOLEAN',
57
- :'send_customer_billing_update_on_decline' => :'BOOLEAN'
77
+ :'restrictions' => :'Array<PaymentsConfigurationRestrictions>',
78
+ :'send_customer_billing_update_on_decline' => :'BOOLEAN',
79
+ :'supported_cards' => :'Array<PaymentsConfigurationCreditCardType>',
80
+ :'test_methods' => :'Array<PaymentsConfigurationTestMethod>'
58
81
  }
59
82
  end
60
83
 
@@ -66,36 +89,54 @@ 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
+ if (value = attributes[:'restrictions']).is_a?(Array)
122
+ self.restrictions = value
123
+ end
87
124
  end
88
125
 
89
- if attributes.has_key?(:'failedAttempts')
90
- self.failed_attempts = attributes[:'failedAttempts']
126
+ if attributes.has_key?(:'send_customer_billing_update_on_decline')
127
+ self.send_customer_billing_update_on_decline = attributes[:'send_customer_billing_update_on_decline']
91
128
  end
92
129
 
93
- if attributes.has_key?(:'hideConnectSingleGateway')
94
- self.hide_connect_single_gateway = attributes[:'hideConnectSingleGateway']
130
+ if attributes.has_key?(:'supported_cards')
131
+ if (value = attributes[:'supported_cards']).is_a?(Array)
132
+ self.supported_cards = value
133
+ end
95
134
  end
96
135
 
97
- if attributes.has_key?(:'sendCustomerBillingUpdateOnDecline')
98
- self.send_customer_billing_update_on_decline = attributes[:'sendCustomerBillingUpdateOnDecline']
136
+ if attributes.has_key?(:'test_methods')
137
+ if (value = attributes[:'test_methods']).is_a?(Array)
138
+ self.test_methods = value
139
+ end
99
140
  end
100
141
  end
101
142
 
@@ -117,14 +158,17 @@ module UltracartClient
117
158
  def ==(o)
118
159
  return true if self.equal?(o)
119
160
  self.class == o.class &&
120
- accept_credit_cards == o.accept_credit_cards &&
161
+ accept_credit_card == o.accept_credit_card &&
121
162
  billed_by == o.billed_by &&
122
163
  charge_during_checkout == o.charge_during_checkout &&
123
164
  collect_cvv2 == o.collect_cvv2 &&
124
- configured_gateways_details == o.configured_gateways_details &&
165
+ configured_gateway_details == o.configured_gateway_details &&
125
166
  failed_attempts == o.failed_attempts &&
126
167
  hide_connect_single_gateway == o.hide_connect_single_gateway &&
127
- send_customer_billing_update_on_decline == o.send_customer_billing_update_on_decline
168
+ restrictions == o.restrictions &&
169
+ send_customer_billing_update_on_decline == o.send_customer_billing_update_on_decline &&
170
+ supported_cards == o.supported_cards &&
171
+ test_methods == o.test_methods
128
172
  end
129
173
 
130
174
  # @see the `==` method
@@ -136,7 +180,7 @@ module UltracartClient
136
180
  # Calculates hash code according to all attributes.
137
181
  # @return [Fixnum] Hash code
138
182
  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
183
+ [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
184
  end
141
185
 
142
186
  # Builds the object from hash