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,221 +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 DelayAutoOrdersResponse
17
- attr_accessor :error
18
-
19
- attr_accessor :message
20
-
21
- attr_accessor :metadata
22
-
23
- # Indicates if API call was successful
24
- attr_accessor :success
25
-
26
- attr_accessor :warning
27
-
28
- # Attribute mapping from ruby-style variable name to JSON key.
29
- def self.attribute_map
30
- {
31
- :'error' => :'error',
32
- :'message' => :'message',
33
- :'metadata' => :'metadata',
34
- :'success' => :'success',
35
- :'warning' => :'warning'
36
- }
37
- end
38
-
39
- # Attribute type mapping.
40
- def self.swagger_types
41
- {
42
- :'error' => :'Error',
43
- :'message' => :'String',
44
- :'metadata' => :'ResponseMetadata',
45
- :'success' => :'BOOLEAN',
46
- :'warning' => :'Warning'
47
- }
48
- end
49
-
50
- # Initializes the object
51
- # @param [Hash] attributes Model attributes in the form of hash
52
- def initialize(attributes = {})
53
- return unless attributes.is_a?(Hash)
54
-
55
- # convert string to symbol for hash key
56
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
57
-
58
- if attributes.has_key?(:'error')
59
- self.error = attributes[:'error']
60
- end
61
-
62
- if attributes.has_key?(:'message')
63
- self.message = attributes[:'message']
64
- end
65
-
66
- if attributes.has_key?(:'metadata')
67
- self.metadata = attributes[:'metadata']
68
- end
69
-
70
- if attributes.has_key?(:'success')
71
- self.success = attributes[:'success']
72
- end
73
-
74
- if attributes.has_key?(:'warning')
75
- self.warning = attributes[:'warning']
76
- end
77
- end
78
-
79
- # Show invalid properties with the reasons. Usually used together with valid?
80
- # @return Array for valid properties with the reasons
81
- def list_invalid_properties
82
- invalid_properties = Array.new
83
- invalid_properties
84
- end
85
-
86
- # Check to see if the all the properties in the model are valid
87
- # @return true if the model is valid
88
- def valid?
89
- true
90
- end
91
-
92
- # Checks equality by comparing each attribute.
93
- # @param [Object] Object to be compared
94
- def ==(o)
95
- return true if self.equal?(o)
96
- self.class == o.class &&
97
- error == o.error &&
98
- message == o.message &&
99
- metadata == o.metadata &&
100
- success == o.success &&
101
- warning == o.warning
102
- end
103
-
104
- # @see the `==` method
105
- # @param [Object] Object to be compared
106
- def eql?(o)
107
- self == o
108
- end
109
-
110
- # Calculates hash code according to all attributes.
111
- # @return [Fixnum] Hash code
112
- def hash
113
- [error, message, metadata, success, warning].hash
114
- end
115
-
116
- # Builds the object from hash
117
- # @param [Hash] attributes Model attributes in the form of hash
118
- # @return [Object] Returns the model itself
119
- def build_from_hash(attributes)
120
- return nil unless attributes.is_a?(Hash)
121
- self.class.swagger_types.each_pair do |key, type|
122
- if type =~ /\AArray<(.*)>/i
123
- # check to ensure the input is an array given that the attribute
124
- # is documented as an array but the input is not
125
- if attributes[self.class.attribute_map[key]].is_a?(Array)
126
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
127
- end
128
- elsif !attributes[self.class.attribute_map[key]].nil?
129
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
130
- end # or else data not found in attributes(hash), not an issue as the data can be optional
131
- end
132
-
133
- self
134
- end
135
-
136
- # Deserializes the data based on type
137
- # @param string type Data type
138
- # @param string value Value to be deserialized
139
- # @return [Object] Deserialized data
140
- def _deserialize(type, value)
141
- case type.to_sym
142
- when :DateTime
143
- DateTime.parse(value)
144
- when :Date
145
- Date.parse(value)
146
- when :String
147
- value.to_s
148
- when :Integer
149
- value.to_i
150
- when :Float
151
- value.to_f
152
- when :BOOLEAN
153
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
154
- true
155
- else
156
- false
157
- end
158
- when :Object
159
- # generic object (usually a Hash), return directly
160
- value
161
- when /\AArray<(?<inner_type>.+)>\z/
162
- inner_type = Regexp.last_match[:inner_type]
163
- value.map { |v| _deserialize(inner_type, v) }
164
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
165
- k_type = Regexp.last_match[:k_type]
166
- v_type = Regexp.last_match[:v_type]
167
- {}.tap do |hash|
168
- value.each do |k, v|
169
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
170
- end
171
- end
172
- else # model
173
- temp_model = UltracartClient.const_get(type).new
174
- temp_model.build_from_hash(value)
175
- end
176
- end
177
-
178
- # Returns the string representation of the object
179
- # @return [String] String presentation of the object
180
- def to_s
181
- to_hash.to_s
182
- end
183
-
184
- # to_body is an alias to to_hash (backward compatibility)
185
- # @return [Hash] Returns the object in the form of hash
186
- def to_body
187
- to_hash
188
- end
189
-
190
- # Returns the object in the form of hash
191
- # @return [Hash] Returns the object in the form of hash
192
- def to_hash
193
- hash = {}
194
- self.class.attribute_map.each_pair do |attr, param|
195
- value = self.send(attr)
196
- next if value.nil?
197
- hash[param] = _to_hash(value)
198
- end
199
- hash
200
- end
201
-
202
- # Outputs non-array value in the form of hash
203
- # For object, use to_hash. Otherwise, just return the value
204
- # @param [Object] value Any valid value
205
- # @return [Hash] Returns the value in the form of hash
206
- def _to_hash(value)
207
- if value.is_a?(Array)
208
- value.compact.map { |v| _to_hash(v) }
209
- elsif value.is_a?(Hash)
210
- {}.tap do |hash|
211
- value.each { |k, v| hash[k] = _to_hash(v) }
212
- end
213
- elsif value.respond_to? :to_hash
214
- value.to_hash
215
- else
216
- value
217
- end
218
- end
219
-
220
- end
221
- end
@@ -1,329 +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 PaymentsConfiguration
17
- attr_accessor :affirm
18
-
19
- attr_accessor :amazon
20
-
21
- attr_accessor :cash
22
-
23
- attr_accessor :check
24
-
25
- attr_accessor :cod
26
-
27
- attr_accessor :credit_card
28
-
29
- attr_accessor :echeck
30
-
31
- attr_accessor :insurance
32
-
33
- attr_accessor :loan_hero
34
-
35
- attr_accessor :money_order
36
-
37
- attr_accessor :paypal
38
-
39
- attr_accessor :purchase_order
40
-
41
- attr_accessor :quote_request
42
-
43
- attr_accessor :sezzle
44
-
45
- # Internal flag used to determine if accounting codes should be shown on the screen or not. This flag is true if the merchant has a Quickbooks integration configured.
46
- attr_accessor :show_accounting_code
47
-
48
- attr_accessor :ultracart_payments_wepay
49
-
50
- attr_accessor :wire_transfer
51
-
52
- # Attribute mapping from ruby-style variable name to JSON key.
53
- def self.attribute_map
54
- {
55
- :'affirm' => :'affirm',
56
- :'amazon' => :'amazon',
57
- :'cash' => :'cash',
58
- :'check' => :'check',
59
- :'cod' => :'cod',
60
- :'credit_card' => :'credit_card',
61
- :'echeck' => :'echeck',
62
- :'insurance' => :'insurance',
63
- :'loan_hero' => :'loan_hero',
64
- :'money_order' => :'money_order',
65
- :'paypal' => :'paypal',
66
- :'purchase_order' => :'purchase_order',
67
- :'quote_request' => :'quote_request',
68
- :'sezzle' => :'sezzle',
69
- :'show_accounting_code' => :'show_accounting_code',
70
- :'ultracart_payments_wepay' => :'ultracart_payments_wepay',
71
- :'wire_transfer' => :'wire_transfer'
72
- }
73
- end
74
-
75
- # Attribute type mapping.
76
- def self.swagger_types
77
- {
78
- :'affirm' => :'PaymentsConfigurationAffirm',
79
- :'amazon' => :'PaymentsConfigurationAmazon',
80
- :'cash' => :'PaymentsConfigurationCash',
81
- :'check' => :'PaymentsConfigurationCheck',
82
- :'cod' => :'PaymentsConfigurationCOD',
83
- :'credit_card' => :'PaymentsConfigurationCreditCard',
84
- :'echeck' => :'PaymentsConfigurationEcheck',
85
- :'insurance' => :'PaymentsConfigurationInsurance',
86
- :'loan_hero' => :'PaymentsConfigurationLoanHero',
87
- :'money_order' => :'PaymentsConfigurationMoneyOrder',
88
- :'paypal' => :'PaymentsConfigurationPayPal',
89
- :'purchase_order' => :'PaymentsConfigurationPurchaseOrder',
90
- :'quote_request' => :'PaymentsConfigurationQuoteRequest',
91
- :'sezzle' => :'PaymentsConfigurationSezzle',
92
- :'show_accounting_code' => :'BOOLEAN',
93
- :'ultracart_payments_wepay' => :'PaymentsConfigurationWePay',
94
- :'wire_transfer' => :'PaymentsConfigurationWireTransfer'
95
- }
96
- end
97
-
98
- # Initializes the object
99
- # @param [Hash] attributes Model attributes in the form of hash
100
- def initialize(attributes = {})
101
- return unless attributes.is_a?(Hash)
102
-
103
- # convert string to symbol for hash key
104
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
105
-
106
- if attributes.has_key?(:'affirm')
107
- self.affirm = attributes[:'affirm']
108
- end
109
-
110
- if attributes.has_key?(:'amazon')
111
- self.amazon = attributes[:'amazon']
112
- end
113
-
114
- if attributes.has_key?(:'cash')
115
- self.cash = attributes[:'cash']
116
- end
117
-
118
- if attributes.has_key?(:'check')
119
- self.check = attributes[:'check']
120
- end
121
-
122
- if attributes.has_key?(:'cod')
123
- self.cod = attributes[:'cod']
124
- end
125
-
126
- if attributes.has_key?(:'credit_card')
127
- self.credit_card = attributes[:'credit_card']
128
- end
129
-
130
- if attributes.has_key?(:'echeck')
131
- self.echeck = attributes[:'echeck']
132
- end
133
-
134
- if attributes.has_key?(:'insurance')
135
- self.insurance = attributes[:'insurance']
136
- end
137
-
138
- if attributes.has_key?(:'loan_hero')
139
- self.loan_hero = attributes[:'loan_hero']
140
- end
141
-
142
- if attributes.has_key?(:'money_order')
143
- self.money_order = attributes[:'money_order']
144
- end
145
-
146
- if attributes.has_key?(:'paypal')
147
- self.paypal = attributes[:'paypal']
148
- end
149
-
150
- if attributes.has_key?(:'purchase_order')
151
- self.purchase_order = attributes[:'purchase_order']
152
- end
153
-
154
- if attributes.has_key?(:'quote_request')
155
- self.quote_request = attributes[:'quote_request']
156
- end
157
-
158
- if attributes.has_key?(:'sezzle')
159
- self.sezzle = attributes[:'sezzle']
160
- end
161
-
162
- if attributes.has_key?(:'show_accounting_code')
163
- self.show_accounting_code = attributes[:'show_accounting_code']
164
- end
165
-
166
- if attributes.has_key?(:'ultracart_payments_wepay')
167
- self.ultracart_payments_wepay = attributes[:'ultracart_payments_wepay']
168
- end
169
-
170
- if attributes.has_key?(:'wire_transfer')
171
- self.wire_transfer = attributes[:'wire_transfer']
172
- end
173
- end
174
-
175
- # Show invalid properties with the reasons. Usually used together with valid?
176
- # @return Array for valid properties with the reasons
177
- def list_invalid_properties
178
- invalid_properties = Array.new
179
- invalid_properties
180
- end
181
-
182
- # Check to see if the all the properties in the model are valid
183
- # @return true if the model is valid
184
- def valid?
185
- true
186
- end
187
-
188
- # Checks equality by comparing each attribute.
189
- # @param [Object] Object to be compared
190
- def ==(o)
191
- return true if self.equal?(o)
192
- self.class == o.class &&
193
- affirm == o.affirm &&
194
- amazon == o.amazon &&
195
- cash == o.cash &&
196
- check == o.check &&
197
- cod == o.cod &&
198
- credit_card == o.credit_card &&
199
- echeck == o.echeck &&
200
- insurance == o.insurance &&
201
- loan_hero == o.loan_hero &&
202
- money_order == o.money_order &&
203
- paypal == o.paypal &&
204
- purchase_order == o.purchase_order &&
205
- quote_request == o.quote_request &&
206
- sezzle == o.sezzle &&
207
- show_accounting_code == o.show_accounting_code &&
208
- ultracart_payments_wepay == o.ultracart_payments_wepay &&
209
- wire_transfer == o.wire_transfer
210
- end
211
-
212
- # @see the `==` method
213
- # @param [Object] Object to be compared
214
- def eql?(o)
215
- self == o
216
- end
217
-
218
- # Calculates hash code according to all attributes.
219
- # @return [Fixnum] Hash code
220
- def hash
221
- [affirm, amazon, cash, check, cod, credit_card, echeck, insurance, loan_hero, money_order, paypal, purchase_order, quote_request, sezzle, show_accounting_code, ultracart_payments_wepay, wire_transfer].hash
222
- end
223
-
224
- # Builds the object from hash
225
- # @param [Hash] attributes Model attributes in the form of hash
226
- # @return [Object] Returns the model itself
227
- def build_from_hash(attributes)
228
- return nil unless attributes.is_a?(Hash)
229
- self.class.swagger_types.each_pair do |key, type|
230
- if type =~ /\AArray<(.*)>/i
231
- # check to ensure the input is an array given that the attribute
232
- # is documented as an array but the input is not
233
- if attributes[self.class.attribute_map[key]].is_a?(Array)
234
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
235
- end
236
- elsif !attributes[self.class.attribute_map[key]].nil?
237
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
238
- end # or else data not found in attributes(hash), not an issue as the data can be optional
239
- end
240
-
241
- self
242
- end
243
-
244
- # Deserializes the data based on type
245
- # @param string type Data type
246
- # @param string value Value to be deserialized
247
- # @return [Object] Deserialized data
248
- def _deserialize(type, value)
249
- case type.to_sym
250
- when :DateTime
251
- DateTime.parse(value)
252
- when :Date
253
- Date.parse(value)
254
- when :String
255
- value.to_s
256
- when :Integer
257
- value.to_i
258
- when :Float
259
- value.to_f
260
- when :BOOLEAN
261
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
262
- true
263
- else
264
- false
265
- end
266
- when :Object
267
- # generic object (usually a Hash), return directly
268
- value
269
- when /\AArray<(?<inner_type>.+)>\z/
270
- inner_type = Regexp.last_match[:inner_type]
271
- value.map { |v| _deserialize(inner_type, v) }
272
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
273
- k_type = Regexp.last_match[:k_type]
274
- v_type = Regexp.last_match[:v_type]
275
- {}.tap do |hash|
276
- value.each do |k, v|
277
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
278
- end
279
- end
280
- else # model
281
- temp_model = UltracartClient.const_get(type).new
282
- temp_model.build_from_hash(value)
283
- end
284
- end
285
-
286
- # Returns the string representation of the object
287
- # @return [String] String presentation of the object
288
- def to_s
289
- to_hash.to_s
290
- end
291
-
292
- # to_body is an alias to to_hash (backward compatibility)
293
- # @return [Hash] Returns the object in the form of hash
294
- def to_body
295
- to_hash
296
- end
297
-
298
- # Returns the object in the form of hash
299
- # @return [Hash] Returns the object in the form of hash
300
- def to_hash
301
- hash = {}
302
- self.class.attribute_map.each_pair do |attr, param|
303
- value = self.send(attr)
304
- next if value.nil?
305
- hash[param] = _to_hash(value)
306
- end
307
- hash
308
- end
309
-
310
- # Outputs non-array value in the form of hash
311
- # For object, use to_hash. Otherwise, just return the value
312
- # @param [Object] value Any valid value
313
- # @return [Hash] Returns the value in the form of hash
314
- def _to_hash(value)
315
- if value.is_a?(Array)
316
- value.compact.map { |v| _to_hash(v) }
317
- elsif value.is_a?(Hash)
318
- {}.tap do |hash|
319
- value.each { |k, v| hash[k] = _to_hash(v) }
320
- end
321
- elsif value.respond_to? :to_hash
322
- value.to_hash
323
- else
324
- value
325
- end
326
- end
327
-
328
- end
329
- end