ultracart_api 3.10.14 → 3.10.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +49 -97
  3. data/docs/ChannelPartnerApi.md +51 -0
  4. data/docs/{DelayAutoOrdersResponse.md → ChannelPartnerEstimateTaxResponse.md} +2 -2
  5. data/lib/ultracart_api/api/channel_partner_api.rb +55 -0
  6. data/lib/ultracart_api/models/{stripe_connect_response.rb → channel_partner_estimate_tax_response.rb} +8 -8
  7. data/lib/ultracart_api/version.rb +1 -1
  8. data/lib/ultracart_api.rb +1 -39
  9. metadata +4 -80
  10. data/docs/ConfigurationApi.md +0 -756
  11. data/docs/PaymentsConfiguration.md +0 -24
  12. data/docs/PaymentsConfigurationAffirm.md +0 -15
  13. data/docs/PaymentsConfigurationAmazon.md +0 -15
  14. data/docs/PaymentsConfigurationCOD.md +0 -13
  15. data/docs/PaymentsConfigurationCash.md +0 -9
  16. data/docs/PaymentsConfigurationCheck.md +0 -19
  17. data/docs/PaymentsConfigurationCreditCard.md +0 -17
  18. data/docs/PaymentsConfigurationCreditCardType.md +0 -18
  19. data/docs/PaymentsConfigurationEcheck.md +0 -12
  20. data/docs/PaymentsConfigurationInsurance.md +0 -9
  21. data/docs/PaymentsConfigurationLoanHero.md +0 -12
  22. data/docs/PaymentsConfigurationMoneyOrder.md +0 -11
  23. data/docs/PaymentsConfigurationPayPal.md +0 -36
  24. data/docs/PaymentsConfigurationPurchaseOrder.md +0 -11
  25. data/docs/PaymentsConfigurationQuoteRequest.md +0 -10
  26. data/docs/PaymentsConfigurationResponse.md +0 -12
  27. data/docs/PaymentsConfigurationRestrictions.md +0 -21
  28. data/docs/PaymentsConfigurationRestrictionsTheme.md +0 -10
  29. data/docs/PaymentsConfigurationSezzle.md +0 -15
  30. data/docs/PaymentsConfigurationTestMethod.md +0 -18
  31. data/docs/PaymentsConfigurationWePay.md +0 -35
  32. data/docs/PaymentsConfigurationWireTransfer.md +0 -18
  33. data/docs/PaymentsThemeTransactionType.md +0 -10
  34. data/docs/PaymentsWepayEnroll.md +0 -22
  35. data/docs/RotatingTransactionGateway.md +0 -51
  36. data/docs/RotatingTransactionGatewayResponse.md +0 -12
  37. data/docs/RotatingTransactionGatewaysResponse.md +0 -12
  38. data/docs/RtgCurrency.md +0 -10
  39. data/docs/RtgDayOfMonthRestriction.md +0 -9
  40. data/docs/RtgDayOfWeekRestriction.md +0 -10
  41. data/docs/RtgSummaryGateway.md +0 -24
  42. data/docs/RtgSummaryResponse.md +0 -14
  43. data/docs/RtgThemeRestriction.md +0 -10
  44. data/docs/StripeConnectResponse.md +0 -12
  45. data/docs/TransactionGateway.md +0 -71
  46. data/docs/TransactionGatewaysRequest.md +0 -10
  47. data/docs/TransactionGatewaysResponse.md +0 -12
  48. data/lib/ultracart_api/api/configuration_api.rb +0 -843
  49. data/lib/ultracart_api/models/delay_auto_orders_response.rb +0 -221
  50. data/lib/ultracart_api/models/payments_configuration.rb +0 -329
  51. data/lib/ultracart_api/models/payments_configuration_affirm.rb +0 -288
  52. data/lib/ultracart_api/models/payments_configuration_amazon.rb +0 -288
  53. data/lib/ultracart_api/models/payments_configuration_cash.rb +0 -194
  54. data/lib/ultracart_api/models/payments_configuration_check.rb +0 -294
  55. data/lib/ultracart_api/models/payments_configuration_cod.rb +0 -234
  56. data/lib/ultracart_api/models/payments_configuration_credit_card.rb +0 -279
  57. data/lib/ultracart_api/models/payments_configuration_credit_card_type.rb +0 -318
  58. data/lib/ultracart_api/models/payments_configuration_echeck.rb +0 -226
  59. data/lib/ultracart_api/models/payments_configuration_insurance.rb +0 -194
  60. data/lib/ultracart_api/models/payments_configuration_loan_hero.rb +0 -224
  61. data/lib/ultracart_api/models/payments_configuration_money_order.rb +0 -214
  62. data/lib/ultracart_api/models/payments_configuration_pay_pal.rb +0 -534
  63. data/lib/ultracart_api/models/payments_configuration_purchase_order.rb +0 -214
  64. data/lib/ultracart_api/models/payments_configuration_quote_request.rb +0 -204
  65. data/lib/ultracart_api/models/payments_configuration_response.rb +0 -221
  66. data/lib/ultracart_api/models/payments_configuration_restrictions.rb +0 -447
  67. data/lib/ultracart_api/models/payments_configuration_restrictions_theme.rb +0 -202
  68. data/lib/ultracart_api/models/payments_configuration_sezzle.rb +0 -288
  69. data/lib/ultracart_api/models/payments_configuration_test_method.rb +0 -319
  70. data/lib/ultracart_api/models/payments_configuration_we_pay.rb +0 -454
  71. data/lib/ultracart_api/models/payments_configuration_wire_transfer.rb +0 -284
  72. data/lib/ultracart_api/models/payments_theme_transaction_type.rb +0 -239
  73. data/lib/ultracart_api/models/payments_wepay_enroll.rb +0 -310
  74. data/lib/ultracart_api/models/rotating_transaction_gateway.rb +0 -675
  75. data/lib/ultracart_api/models/rotating_transaction_gateway_response.rb +0 -221
  76. data/lib/ultracart_api/models/rotating_transaction_gateways_response.rb +0 -223
  77. data/lib/ultracart_api/models/rtg_currency.rb +0 -205
  78. data/lib/ultracart_api/models/rtg_day_of_month_restriction.rb +0 -195
  79. data/lib/ultracart_api/models/rtg_day_of_week_restriction.rb +0 -205
  80. data/lib/ultracart_api/models/rtg_summary_gateway.rb +0 -329
  81. data/lib/ultracart_api/models/rtg_summary_response.rb +0 -240
  82. data/lib/ultracart_api/models/rtg_theme_restriction.rb +0 -239
  83. data/lib/ultracart_api/models/transaction_gateway.rb +0 -823
  84. data/lib/ultracart_api/models/transaction_gateways_request.rb +0 -242
  85. data/lib/ultracart_api/models/transaction_gateways_response.rb +0 -223
@@ -1,310 +0,0 @@
1
- =begin
2
- #UltraCart Rest API V2
3
-
4
- #UltraCart REST API Version 2
5
-
6
- OpenAPI spec version: 2.0.0
7
- Contact: support@ultracart.com
8
- Generated by: https://github.com/swagger-api/swagger-codegen.git
9
- Swagger Codegen version: 2.4.15-SNAPSHOT
10
-
11
- =end
12
-
13
- require 'date'
14
-
15
- module UltracartClient
16
- class PaymentsWepayEnroll
17
- attr_accessor :address1
18
-
19
- attr_accessor :address2
20
-
21
- attr_accessor :canada_accept_debit_cards
22
-
23
- attr_accessor :city
24
-
25
- attr_accessor :company
26
-
27
- attr_accessor :company_description
28
-
29
- attr_accessor :country
30
-
31
- attr_accessor :expected_revenue
32
-
33
- attr_accessor :industry
34
-
35
- attr_accessor :owner_email
36
-
37
- attr_accessor :owner_name
38
-
39
- attr_accessor :owner_phone
40
-
41
- attr_accessor :state
42
-
43
- attr_accessor :webiste_url
44
-
45
- attr_accessor :zip
46
-
47
- # Attribute mapping from ruby-style variable name to JSON key.
48
- def self.attribute_map
49
- {
50
- :'address1' => :'address1',
51
- :'address2' => :'address2',
52
- :'canada_accept_debit_cards' => :'canada_accept_debit_cards',
53
- :'city' => :'city',
54
- :'company' => :'company',
55
- :'company_description' => :'company_description',
56
- :'country' => :'country',
57
- :'expected_revenue' => :'expected_revenue',
58
- :'industry' => :'industry',
59
- :'owner_email' => :'owner_email',
60
- :'owner_name' => :'owner_name',
61
- :'owner_phone' => :'owner_phone',
62
- :'state' => :'state',
63
- :'webiste_url' => :'webiste_url',
64
- :'zip' => :'zip'
65
- }
66
- end
67
-
68
- # Attribute type mapping.
69
- def self.swagger_types
70
- {
71
- :'address1' => :'String',
72
- :'address2' => :'String',
73
- :'canada_accept_debit_cards' => :'BOOLEAN',
74
- :'city' => :'String',
75
- :'company' => :'String',
76
- :'company_description' => :'String',
77
- :'country' => :'String',
78
- :'expected_revenue' => :'String',
79
- :'industry' => :'String',
80
- :'owner_email' => :'String',
81
- :'owner_name' => :'String',
82
- :'owner_phone' => :'String',
83
- :'state' => :'String',
84
- :'webiste_url' => :'String',
85
- :'zip' => :'String'
86
- }
87
- end
88
-
89
- # Initializes the object
90
- # @param [Hash] attributes Model attributes in the form of hash
91
- def initialize(attributes = {})
92
- return unless attributes.is_a?(Hash)
93
-
94
- # convert string to symbol for hash key
95
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
96
-
97
- if attributes.has_key?(:'address1')
98
- self.address1 = attributes[:'address1']
99
- end
100
-
101
- if attributes.has_key?(:'address2')
102
- self.address2 = attributes[:'address2']
103
- end
104
-
105
- if attributes.has_key?(:'canada_accept_debit_cards')
106
- self.canada_accept_debit_cards = attributes[:'canada_accept_debit_cards']
107
- end
108
-
109
- if attributes.has_key?(:'city')
110
- self.city = attributes[:'city']
111
- end
112
-
113
- if attributes.has_key?(:'company')
114
- self.company = attributes[:'company']
115
- end
116
-
117
- if attributes.has_key?(:'company_description')
118
- self.company_description = attributes[:'company_description']
119
- end
120
-
121
- if attributes.has_key?(:'country')
122
- self.country = attributes[:'country']
123
- end
124
-
125
- if attributes.has_key?(:'expected_revenue')
126
- self.expected_revenue = attributes[:'expected_revenue']
127
- end
128
-
129
- if attributes.has_key?(:'industry')
130
- self.industry = attributes[:'industry']
131
- end
132
-
133
- if attributes.has_key?(:'owner_email')
134
- self.owner_email = attributes[:'owner_email']
135
- end
136
-
137
- if attributes.has_key?(:'owner_name')
138
- self.owner_name = attributes[:'owner_name']
139
- end
140
-
141
- if attributes.has_key?(:'owner_phone')
142
- self.owner_phone = attributes[:'owner_phone']
143
- end
144
-
145
- if attributes.has_key?(:'state')
146
- self.state = attributes[:'state']
147
- end
148
-
149
- if attributes.has_key?(:'webiste_url')
150
- self.webiste_url = attributes[:'webiste_url']
151
- end
152
-
153
- if attributes.has_key?(:'zip')
154
- self.zip = attributes[:'zip']
155
- end
156
- end
157
-
158
- # Show invalid properties with the reasons. Usually used together with valid?
159
- # @return Array for valid properties with the reasons
160
- def list_invalid_properties
161
- invalid_properties = Array.new
162
- invalid_properties
163
- end
164
-
165
- # Check to see if the all the properties in the model are valid
166
- # @return true if the model is valid
167
- def valid?
168
- true
169
- end
170
-
171
- # Checks equality by comparing each attribute.
172
- # @param [Object] Object to be compared
173
- def ==(o)
174
- return true if self.equal?(o)
175
- self.class == o.class &&
176
- address1 == o.address1 &&
177
- address2 == o.address2 &&
178
- canada_accept_debit_cards == o.canada_accept_debit_cards &&
179
- city == o.city &&
180
- company == o.company &&
181
- company_description == o.company_description &&
182
- country == o.country &&
183
- expected_revenue == o.expected_revenue &&
184
- industry == o.industry &&
185
- owner_email == o.owner_email &&
186
- owner_name == o.owner_name &&
187
- owner_phone == o.owner_phone &&
188
- state == o.state &&
189
- webiste_url == o.webiste_url &&
190
- zip == o.zip
191
- end
192
-
193
- # @see the `==` method
194
- # @param [Object] Object to be compared
195
- def eql?(o)
196
- self == o
197
- end
198
-
199
- # Calculates hash code according to all attributes.
200
- # @return [Fixnum] Hash code
201
- def hash
202
- [address1, address2, canada_accept_debit_cards, city, company, company_description, country, expected_revenue, industry, owner_email, owner_name, owner_phone, state, webiste_url, zip].hash
203
- end
204
-
205
- # Builds the object from hash
206
- # @param [Hash] attributes Model attributes in the form of hash
207
- # @return [Object] Returns the model itself
208
- def build_from_hash(attributes)
209
- return nil unless attributes.is_a?(Hash)
210
- self.class.swagger_types.each_pair do |key, type|
211
- if type =~ /\AArray<(.*)>/i
212
- # check to ensure the input is an array given that the attribute
213
- # is documented as an array but the input is not
214
- if attributes[self.class.attribute_map[key]].is_a?(Array)
215
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
216
- end
217
- elsif !attributes[self.class.attribute_map[key]].nil?
218
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
219
- end # or else data not found in attributes(hash), not an issue as the data can be optional
220
- end
221
-
222
- self
223
- end
224
-
225
- # Deserializes the data based on type
226
- # @param string type Data type
227
- # @param string value Value to be deserialized
228
- # @return [Object] Deserialized data
229
- def _deserialize(type, value)
230
- case type.to_sym
231
- when :DateTime
232
- DateTime.parse(value)
233
- when :Date
234
- Date.parse(value)
235
- when :String
236
- value.to_s
237
- when :Integer
238
- value.to_i
239
- when :Float
240
- value.to_f
241
- when :BOOLEAN
242
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
243
- true
244
- else
245
- false
246
- end
247
- when :Object
248
- # generic object (usually a Hash), return directly
249
- value
250
- when /\AArray<(?<inner_type>.+)>\z/
251
- inner_type = Regexp.last_match[:inner_type]
252
- value.map { |v| _deserialize(inner_type, v) }
253
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
254
- k_type = Regexp.last_match[:k_type]
255
- v_type = Regexp.last_match[:v_type]
256
- {}.tap do |hash|
257
- value.each do |k, v|
258
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
259
- end
260
- end
261
- else # model
262
- temp_model = UltracartClient.const_get(type).new
263
- temp_model.build_from_hash(value)
264
- end
265
- end
266
-
267
- # Returns the string representation of the object
268
- # @return [String] String presentation of the object
269
- def to_s
270
- to_hash.to_s
271
- end
272
-
273
- # to_body is an alias to to_hash (backward compatibility)
274
- # @return [Hash] Returns the object in the form of hash
275
- def to_body
276
- to_hash
277
- end
278
-
279
- # Returns the object in the form of hash
280
- # @return [Hash] Returns the object in the form of hash
281
- def to_hash
282
- hash = {}
283
- self.class.attribute_map.each_pair do |attr, param|
284
- value = self.send(attr)
285
- next if value.nil?
286
- hash[param] = _to_hash(value)
287
- end
288
- hash
289
- end
290
-
291
- # Outputs non-array value in the form of hash
292
- # For object, use to_hash. Otherwise, just return the value
293
- # @param [Object] value Any valid value
294
- # @return [Hash] Returns the value in the form of hash
295
- def _to_hash(value)
296
- if value.is_a?(Array)
297
- value.compact.map { |v| _to_hash(v) }
298
- elsif value.is_a?(Hash)
299
- {}.tap do |hash|
300
- value.each { |k, v| hash[k] = _to_hash(v) }
301
- end
302
- elsif value.respond_to? :to_hash
303
- value.to_hash
304
- else
305
- value
306
- end
307
- end
308
-
309
- end
310
- end