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.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -4
  3. data/docs/EmailList.md +1 -0
  4. data/docs/EmailListSegmentFolder.md +12 -0
  5. data/docs/EmailListSegmentFolderResponse.md +12 -0
  6. data/docs/EmailListSegmentFoldersResponse.md +12 -0
  7. data/docs/EmailSegment.md +1 -0
  8. data/docs/PaymentsConfiguration.md +5 -3
  9. data/docs/PaymentsConfigurationAffirm.md +7 -7
  10. data/docs/PaymentsConfigurationAmazon.md +7 -7
  11. data/docs/PaymentsConfigurationCOD.md +5 -5
  12. data/docs/PaymentsConfigurationCash.md +1 -1
  13. data/docs/PaymentsConfigurationCheck.md +12 -17
  14. data/docs/PaymentsConfigurationCreditCard.md +11 -9
  15. data/docs/PaymentsConfigurationEcheck.md +11 -0
  16. data/docs/PaymentsConfigurationLoanHero.md +4 -4
  17. data/docs/PaymentsConfigurationMoneyOrder.md +11 -0
  18. data/docs/PaymentsConfigurationPayPal.md +28 -28
  19. data/docs/PaymentsConfigurationPurchaseOrder.md +3 -3
  20. data/docs/PaymentsConfigurationQuoteRequest.md +2 -2
  21. data/docs/PaymentsConfigurationRestrictions.md +12 -12
  22. data/docs/PaymentsConfigurationSezzle.md +8 -7
  23. data/docs/PaymentsConfigurationWePay.md +26 -26
  24. data/docs/PaymentsConfigurationWireTransfer.md +10 -10
  25. data/docs/RotatingTransactionGateway.md +4 -3
  26. data/docs/StorefrontApi.md +260 -0
  27. data/lib/ultracart_api.rb +5 -0
  28. data/lib/ultracart_api/api/storefront_api.rb +295 -0
  29. data/lib/ultracart_api/models/email_list.rb +11 -1
  30. data/lib/ultracart_api/models/email_list_segment_folder.rb +240 -0
  31. data/lib/ultracart_api/models/email_list_segment_folder_response.rb +221 -0
  32. data/lib/ultracart_api/models/email_list_segment_folders_response.rb +223 -0
  33. data/lib/ultracart_api/models/email_segment.rb +11 -1
  34. data/lib/ultracart_api/models/payments_configuration.rb +50 -31
  35. data/lib/ultracart_api/models/payments_configuration_affirm.rb +81 -40
  36. data/lib/ultracart_api/models/payments_configuration_amazon.rb +51 -44
  37. data/lib/ultracart_api/models/payments_configuration_cash.rb +4 -3
  38. data/lib/ultracart_api/models/payments_configuration_check.rb +70 -103
  39. data/lib/ultracart_api/models/payments_configuration_cod.rb +39 -34
  40. data/lib/ultracart_api/models/payments_configuration_credit_card.rb +68 -39
  41. data/lib/ultracart_api/models/payments_configuration_echeck.rb +214 -0
  42. data/lib/ultracart_api/models/payments_configuration_loan_hero.rb +23 -19
  43. data/lib/ultracart_api/models/payments_configuration_money_order.rb +214 -0
  44. data/lib/ultracart_api/models/payments_configuration_pay_pal.rb +270 -172
  45. data/lib/ultracart_api/models/payments_configuration_purchase_order.rb +19 -16
  46. data/lib/ultracart_api/models/payments_configuration_quote_request.rb +12 -10
  47. data/lib/ultracart_api/models/payments_configuration_restrictions.rb +48 -36
  48. data/lib/ultracart_api/models/payments_configuration_sezzle.rb +97 -46
  49. data/lib/ultracart_api/models/payments_configuration_we_pay.rb +186 -160
  50. data/lib/ultracart_api/models/payments_configuration_wire_transfer.rb +71 -61
  51. data/lib/ultracart_api/models/rotating_transaction_gateway.rb +13 -3
  52. data/lib/ultracart_api/version.rb +1 -1
  53. metadata +12 -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,63 +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 :accept_e_check
20
-
21
- attr_accessor :accept_money_orders
22
-
23
- attr_accessor :check_accounting_code
24
-
25
- attr_accessor :check_deposit_to_account
20
+ # Optional Quickbooks accounting code
21
+ attr_accessor :accounting_code
26
22
 
23
+ # This is who the customer makes the check out to
27
24
  attr_accessor :checks_payable_to
28
25
 
29
- attr_accessor :e_check_accounting_code
30
-
31
- attr_accessor :e_check_deposit_to_account
26
+ # Optional Quickbooks deposit to account
27
+ attr_accessor :deposit_to_account
32
28
 
29
+ # MailTo address line 1
33
30
  attr_accessor :mail_to_address1
34
31
 
32
+ # MailTo address line 2
35
33
  attr_accessor :mail_to_address2
36
34
 
35
+ # MailTo city
37
36
  attr_accessor :mail_to_city
38
37
 
38
+ # MailTo country
39
39
  attr_accessor :mail_to_country
40
40
 
41
+ # MailTo name
41
42
  attr_accessor :mail_to_name
42
43
 
43
- attr_accessor :mail_to_state
44
-
45
- attr_accessor :mail_to_zip
46
-
47
- attr_accessor :money_order_accounting_code
44
+ # MailTo postal code
45
+ attr_accessor :mail_to_postal_code
48
46
 
49
- attr_accessor :money_order_deposit_to_account
47
+ # MailTo store
48
+ attr_accessor :mail_to_store
50
49
 
51
50
  attr_accessor :restrictions
52
51
 
52
+ # Test methods for this payment method
53
+ attr_accessor :test_methods
54
+
53
55
  # Attribute mapping from ruby-style variable name to JSON key.
54
56
  def self.attribute_map
55
57
  {
56
- :'accept_check_orders' => :'acceptCheckOrders',
57
- :'accept_e_check' => :'acceptECheck',
58
- :'accept_money_orders' => :'acceptMoneyOrders',
59
- :'check_accounting_code' => :'checkAccountingCode',
60
- :'check_deposit_to_account' => :'checkDepositToAccount',
61
- :'checks_payable_to' => :'checksPayableTo',
62
- :'e_check_accounting_code' => :'eCheckAccountingCode',
63
- :'e_check_deposit_to_account' => :'eCheckDepositToAccount',
64
- :'mail_to_address1' => :'mailToAddress1',
65
- :'mail_to_address2' => :'mailToAddress2',
66
- :'mail_to_city' => :'mailToCity',
67
- :'mail_to_country' => :'mailToCountry',
68
- :'mail_to_name' => :'mailToName',
69
- :'mail_to_state' => :'mailToState',
70
- :'mail_to_zip' => :'mailToZip',
71
- :'money_order_accounting_code' => :'moneyOrderAccountingCode',
72
- :'money_order_deposit_to_account' => :'moneyOrderDepositToAccount',
73
- :'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'
74
71
  }
75
72
  end
76
73
 
@@ -78,23 +75,18 @@ module UltracartClient
78
75
  def self.swagger_types
79
76
  {
80
77
  :'accept_check_orders' => :'BOOLEAN',
81
- :'accept_e_check' => :'BOOLEAN',
82
- :'accept_money_orders' => :'BOOLEAN',
83
- :'check_accounting_code' => :'String',
84
- :'check_deposit_to_account' => :'String',
78
+ :'accounting_code' => :'String',
85
79
  :'checks_payable_to' => :'String',
86
- :'e_check_accounting_code' => :'String',
87
- :'e_check_deposit_to_account' => :'String',
80
+ :'deposit_to_account' => :'String',
88
81
  :'mail_to_address1' => :'String',
89
82
  :'mail_to_address2' => :'String',
90
83
  :'mail_to_city' => :'String',
91
84
  :'mail_to_country' => :'String',
92
85
  :'mail_to_name' => :'String',
93
- :'mail_to_state' => :'String',
94
- :'mail_to_zip' => :'String',
95
- :'money_order_accounting_code' => :'String',
96
- :'money_order_deposit_to_account' => :'String',
97
- :'restrictions' => :'PaymentsConfigurationRestrictions'
86
+ :'mail_to_postal_code' => :'String',
87
+ :'mail_to_store' => :'String',
88
+ :'restrictions' => :'PaymentsConfigurationRestrictions',
89
+ :'test_methods' => :'Object'
98
90
  }
99
91
  end
100
92
 
@@ -106,77 +98,57 @@ module UltracartClient
106
98
  # convert string to symbol for hash key
107
99
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
108
100
 
109
- if attributes.has_key?(:'acceptCheckOrders')
110
- self.accept_check_orders = attributes[:'acceptCheckOrders']
111
- end
112
-
113
- if attributes.has_key?(:'acceptECheck')
114
- self.accept_e_check = attributes[:'acceptECheck']
115
- end
116
-
117
- if attributes.has_key?(:'acceptMoneyOrders')
118
- self.accept_money_orders = attributes[:'acceptMoneyOrders']
101
+ if attributes.has_key?(:'accept_check_orders')
102
+ self.accept_check_orders = attributes[:'accept_check_orders']
119
103
  end
120
104
 
121
- if attributes.has_key?(:'checkAccountingCode')
122
- self.check_accounting_code = attributes[:'checkAccountingCode']
105
+ if attributes.has_key?(:'accounting_code')
106
+ self.accounting_code = attributes[:'accounting_code']
123
107
  end
124
108
 
125
- if attributes.has_key?(:'checkDepositToAccount')
126
- self.check_deposit_to_account = attributes[:'checkDepositToAccount']
109
+ if attributes.has_key?(:'checks_payable_to')
110
+ self.checks_payable_to = attributes[:'checks_payable_to']
127
111
  end
128
112
 
129
- if attributes.has_key?(:'checksPayableTo')
130
- self.checks_payable_to = attributes[:'checksPayableTo']
113
+ if attributes.has_key?(:'deposit_to_account')
114
+ self.deposit_to_account = attributes[:'deposit_to_account']
131
115
  end
132
116
 
133
- if attributes.has_key?(:'eCheckAccountingCode')
134
- self.e_check_accounting_code = attributes[:'eCheckAccountingCode']
117
+ if attributes.has_key?(:'mail_to_address1')
118
+ self.mail_to_address1 = attributes[:'mail_to_address1']
135
119
  end
136
120
 
137
- if attributes.has_key?(:'eCheckDepositToAccount')
138
- self.e_check_deposit_to_account = attributes[:'eCheckDepositToAccount']
121
+ if attributes.has_key?(:'mail_to_address2')
122
+ self.mail_to_address2 = attributes[:'mail_to_address2']
139
123
  end
140
124
 
141
- if attributes.has_key?(:'mailToAddress1')
142
- self.mail_to_address1 = attributes[:'mailToAddress1']
125
+ if attributes.has_key?(:'mail_to_city')
126
+ self.mail_to_city = attributes[:'mail_to_city']
143
127
  end
144
128
 
145
- if attributes.has_key?(:'mailToAddress2')
146
- self.mail_to_address2 = attributes[:'mailToAddress2']
129
+ if attributes.has_key?(:'mail_to_country')
130
+ self.mail_to_country = attributes[:'mail_to_country']
147
131
  end
148
132
 
149
- if attributes.has_key?(:'mailToCity')
150
- self.mail_to_city = attributes[:'mailToCity']
133
+ if attributes.has_key?(:'mail_to_name')
134
+ self.mail_to_name = attributes[:'mail_to_name']
151
135
  end
152
136
 
153
- if attributes.has_key?(:'mailToCountry')
154
- self.mail_to_country = attributes[:'mailToCountry']
137
+ if attributes.has_key?(:'mail_to_postal_code')
138
+ self.mail_to_postal_code = attributes[:'mail_to_postal_code']
155
139
  end
156
140
 
157
- if attributes.has_key?(:'mailToName')
158
- self.mail_to_name = attributes[:'mailToName']
159
- end
160
-
161
- if attributes.has_key?(:'mailToState')
162
- self.mail_to_state = attributes[:'mailToState']
163
- end
164
-
165
- if attributes.has_key?(:'mailToZip')
166
- self.mail_to_zip = attributes[:'mailToZip']
167
- end
168
-
169
- if attributes.has_key?(:'moneyOrderAccountingCode')
170
- self.money_order_accounting_code = attributes[:'moneyOrderAccountingCode']
171
- end
172
-
173
- if attributes.has_key?(:'moneyOrderDepositToAccount')
174
- 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']
175
143
  end
176
144
 
177
145
  if attributes.has_key?(:'restrictions')
178
146
  self.restrictions = attributes[:'restrictions']
179
147
  end
148
+
149
+ if attributes.has_key?(:'test_methods')
150
+ self.test_methods = attributes[:'test_methods']
151
+ end
180
152
  end
181
153
 
182
154
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -198,23 +170,18 @@ module UltracartClient
198
170
  return true if self.equal?(o)
199
171
  self.class == o.class &&
200
172
  accept_check_orders == o.accept_check_orders &&
201
- accept_e_check == o.accept_e_check &&
202
- accept_money_orders == o.accept_money_orders &&
203
- check_accounting_code == o.check_accounting_code &&
204
- check_deposit_to_account == o.check_deposit_to_account &&
173
+ accounting_code == o.accounting_code &&
205
174
  checks_payable_to == o.checks_payable_to &&
206
- e_check_accounting_code == o.e_check_accounting_code &&
207
- e_check_deposit_to_account == o.e_check_deposit_to_account &&
175
+ deposit_to_account == o.deposit_to_account &&
208
176
  mail_to_address1 == o.mail_to_address1 &&
209
177
  mail_to_address2 == o.mail_to_address2 &&
210
178
  mail_to_city == o.mail_to_city &&
211
179
  mail_to_country == o.mail_to_country &&
212
180
  mail_to_name == o.mail_to_name &&
213
- mail_to_state == o.mail_to_state &&
214
- mail_to_zip == o.mail_to_zip &&
215
- money_order_accounting_code == o.money_order_accounting_code &&
216
- money_order_deposit_to_account == o.money_order_deposit_to_account &&
217
- 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
218
185
  end
219
186
 
220
187
  # @see the `==` method
@@ -226,7 +193,7 @@ module UltracartClient
226
193
  # Calculates hash code according to all attributes.
227
194
  # @return [Fixnum] Hash code
228
195
  def hash
229
- [accept_check_orders, accept_e_check, accept_money_orders, check_accounting_code, check_deposit_to_account, checks_payable_to, e_check_accounting_code, e_check_deposit_to_account, 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
230
197
  end
231
198
 
232
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,51 +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
 
31
- attr_accessor :immediate_finalize_domains
38
+ # Restrictions for this payment method
39
+ attr_accessor :restrictions
32
40
 
41
+ # UltraCart will send customers emails to update their credit card if the card is declined
33
42
  attr_accessor :send_customer_billing_update_on_decline
34
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
+
35
50
  # Attribute mapping from ruby-style variable name to JSON key.
36
51
  def self.attribute_map
37
52
  {
38
- :'accept_credit_cards' => :'acceptCreditCards',
39
- :'billed_by' => :'billedBy',
40
- :'charge_during_checkout' => :'chargeDuringCheckout',
41
- :'collect_cvv2' => :'collectCvv2',
42
- :'configured_gateways_details' => :'configuredGatewaysDetails',
43
- :'failed_attempts' => :'failedAttempts',
44
- :'hide_connect_single_gateway' => :'hideConnectSingleGateway',
45
- :'immediate_finalize_domains' => :'immediateFinalizeDomains',
46
- :'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'
47
64
  }
48
65
  end
49
66
 
50
67
  # Attribute type mapping.
51
68
  def self.swagger_types
52
69
  {
53
- :'accept_credit_cards' => :'BOOLEAN',
70
+ :'accept_credit_card' => :'BOOLEAN',
54
71
  :'billed_by' => :'String',
55
72
  :'charge_during_checkout' => :'BOOLEAN',
56
73
  :'collect_cvv2' => :'BOOLEAN',
57
- :'configured_gateways_details' => :'String',
74
+ :'configured_gateway_details' => :'String',
58
75
  :'failed_attempts' => :'String',
59
76
  :'hide_connect_single_gateway' => :'BOOLEAN',
60
- :'immediate_finalize_domains' => :'String',
61
- :'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'
62
81
  }
63
82
  end
64
83
 
@@ -70,40 +89,48 @@ module UltracartClient
70
89
  # convert string to symbol for hash key
71
90
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
91
 
73
- if attributes.has_key?(:'acceptCreditCards')
74
- 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']
75
102
  end
76
103
 
77
- if attributes.has_key?(:'billedBy')
78
- self.billed_by = attributes[:'billedBy']
104
+ if attributes.has_key?(:'collect_cvv2')
105
+ self.collect_cvv2 = attributes[:'collect_cvv2']
79
106
  end
80
107
 
81
- if attributes.has_key?(:'chargeDuringCheckout')
82
- self.charge_during_checkout = attributes[:'chargeDuringCheckout']
108
+ if attributes.has_key?(:'configured_gateway_details')
109
+ self.configured_gateway_details = attributes[:'configured_gateway_details']
83
110
  end
84
111
 
85
- if attributes.has_key?(:'collectCvv2')
86
- self.collect_cvv2 = attributes[:'collectCvv2']
112
+ if attributes.has_key?(:'failed_attempts')
113
+ self.failed_attempts = attributes[:'failed_attempts']
87
114
  end
88
115
 
89
- if attributes.has_key?(:'configuredGatewaysDetails')
90
- self.configured_gateways_details = attributes[:'configuredGatewaysDetails']
116
+ if attributes.has_key?(:'hide_connect_single_gateway')
117
+ self.hide_connect_single_gateway = attributes[:'hide_connect_single_gateway']
91
118
  end
92
119
 
93
- if attributes.has_key?(:'failedAttempts')
94
- self.failed_attempts = attributes[:'failedAttempts']
120
+ if attributes.has_key?(:'restrictions')
121
+ self.restrictions = attributes[:'restrictions']
95
122
  end
96
123
 
97
- if attributes.has_key?(:'hideConnectSingleGateway')
98
- self.hide_connect_single_gateway = attributes[:'hideConnectSingleGateway']
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']
99
126
  end
100
127
 
101
- if attributes.has_key?(:'immediateFinalizeDomains')
102
- self.immediate_finalize_domains = attributes[:'immediateFinalizeDomains']
128
+ if attributes.has_key?(:'supported_cards')
129
+ self.supported_cards = attributes[:'supported_cards']
103
130
  end
104
131
 
105
- if attributes.has_key?(:'sendCustomerBillingUpdateOnDecline')
106
- self.send_customer_billing_update_on_decline = attributes[:'sendCustomerBillingUpdateOnDecline']
132
+ if attributes.has_key?(:'test_methods')
133
+ self.test_methods = attributes[:'test_methods']
107
134
  end
108
135
  end
109
136
 
@@ -125,15 +152,17 @@ module UltracartClient
125
152
  def ==(o)
126
153
  return true if self.equal?(o)
127
154
  self.class == o.class &&
128
- accept_credit_cards == o.accept_credit_cards &&
155
+ accept_credit_card == o.accept_credit_card &&
129
156
  billed_by == o.billed_by &&
130
157
  charge_during_checkout == o.charge_during_checkout &&
131
158
  collect_cvv2 == o.collect_cvv2 &&
132
- configured_gateways_details == o.configured_gateways_details &&
159
+ configured_gateway_details == o.configured_gateway_details &&
133
160
  failed_attempts == o.failed_attempts &&
134
161
  hide_connect_single_gateway == o.hide_connect_single_gateway &&
135
- immediate_finalize_domains == o.immediate_finalize_domains &&
136
- 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
137
166
  end
138
167
 
139
168
  # @see the `==` method
@@ -145,7 +174,7 @@ module UltracartClient
145
174
  # Calculates hash code according to all attributes.
146
175
  # @return [Fixnum] Hash code
147
176
  def hash
148
- [accept_credit_cards, billed_by, charge_during_checkout, collect_cvv2, configured_gateways_details, failed_attempts, hide_connect_single_gateway, immediate_finalize_domains, 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
149
178
  end
150
179
 
151
180
  # Builds the object from hash