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,284 +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 PaymentsConfigurationWireTransfer
17
- # Master flag indicating this merchant accepts wire transfers
18
- attr_accessor :accept_wire_transfer
19
-
20
- # account_number
21
- attr_accessor :account_number
22
-
23
- # Optional Quickbooks accounting code
24
- attr_accessor :accounting_code
25
-
26
- # Bank address
27
- attr_accessor :bank_address
28
-
29
- # Optional Quickbooks deposit to account
30
- attr_accessor :deposit_to_account
31
-
32
- # Intermediate routing number
33
- attr_accessor :intermediate_routing_number
34
-
35
- attr_accessor :restrictions
36
-
37
- # Routing number
38
- attr_accessor :routing_number
39
-
40
- # If a surcharge is present and this merchant is integrated with Quickbooks, this is the accounting code for the surcharge amount
41
- attr_accessor :surcharge_accounting_code
42
-
43
- # surcharge_fee
44
- attr_accessor :surcharge_fee
45
-
46
- # surcharge_percentage
47
- attr_accessor :surcharge_percentage
48
-
49
- # Attribute mapping from ruby-style variable name to JSON key.
50
- def self.attribute_map
51
- {
52
- :'accept_wire_transfer' => :'accept_wire_transfer',
53
- :'account_number' => :'account_number',
54
- :'accounting_code' => :'accounting_code',
55
- :'bank_address' => :'bank_address',
56
- :'deposit_to_account' => :'deposit_to_account',
57
- :'intermediate_routing_number' => :'intermediate_routing_number',
58
- :'restrictions' => :'restrictions',
59
- :'routing_number' => :'routing_number',
60
- :'surcharge_accounting_code' => :'surcharge_accounting_code',
61
- :'surcharge_fee' => :'surcharge_fee',
62
- :'surcharge_percentage' => :'surcharge_percentage'
63
- }
64
- end
65
-
66
- # Attribute type mapping.
67
- def self.swagger_types
68
- {
69
- :'accept_wire_transfer' => :'BOOLEAN',
70
- :'account_number' => :'String',
71
- :'accounting_code' => :'String',
72
- :'bank_address' => :'String',
73
- :'deposit_to_account' => :'String',
74
- :'intermediate_routing_number' => :'String',
75
- :'restrictions' => :'PaymentsConfigurationRestrictions',
76
- :'routing_number' => :'String',
77
- :'surcharge_accounting_code' => :'String',
78
- :'surcharge_fee' => :'Float',
79
- :'surcharge_percentage' => :'Float'
80
- }
81
- end
82
-
83
- # Initializes the object
84
- # @param [Hash] attributes Model attributes in the form of hash
85
- def initialize(attributes = {})
86
- return unless attributes.is_a?(Hash)
87
-
88
- # convert string to symbol for hash key
89
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
90
-
91
- if attributes.has_key?(:'accept_wire_transfer')
92
- self.accept_wire_transfer = attributes[:'accept_wire_transfer']
93
- end
94
-
95
- if attributes.has_key?(:'account_number')
96
- self.account_number = attributes[:'account_number']
97
- end
98
-
99
- if attributes.has_key?(:'accounting_code')
100
- self.accounting_code = attributes[:'accounting_code']
101
- end
102
-
103
- if attributes.has_key?(:'bank_address')
104
- self.bank_address = attributes[:'bank_address']
105
- end
106
-
107
- if attributes.has_key?(:'deposit_to_account')
108
- self.deposit_to_account = attributes[:'deposit_to_account']
109
- end
110
-
111
- if attributes.has_key?(:'intermediate_routing_number')
112
- self.intermediate_routing_number = attributes[:'intermediate_routing_number']
113
- end
114
-
115
- if attributes.has_key?(:'restrictions')
116
- self.restrictions = attributes[:'restrictions']
117
- end
118
-
119
- if attributes.has_key?(:'routing_number')
120
- self.routing_number = attributes[:'routing_number']
121
- end
122
-
123
- if attributes.has_key?(:'surcharge_accounting_code')
124
- self.surcharge_accounting_code = attributes[:'surcharge_accounting_code']
125
- end
126
-
127
- if attributes.has_key?(:'surcharge_fee')
128
- self.surcharge_fee = attributes[:'surcharge_fee']
129
- end
130
-
131
- if attributes.has_key?(:'surcharge_percentage')
132
- self.surcharge_percentage = attributes[:'surcharge_percentage']
133
- end
134
- end
135
-
136
- # Show invalid properties with the reasons. Usually used together with valid?
137
- # @return Array for valid properties with the reasons
138
- def list_invalid_properties
139
- invalid_properties = Array.new
140
- invalid_properties
141
- end
142
-
143
- # Check to see if the all the properties in the model are valid
144
- # @return true if the model is valid
145
- def valid?
146
- true
147
- end
148
-
149
- # Checks equality by comparing each attribute.
150
- # @param [Object] Object to be compared
151
- def ==(o)
152
- return true if self.equal?(o)
153
- self.class == o.class &&
154
- accept_wire_transfer == o.accept_wire_transfer &&
155
- account_number == o.account_number &&
156
- accounting_code == o.accounting_code &&
157
- bank_address == o.bank_address &&
158
- deposit_to_account == o.deposit_to_account &&
159
- intermediate_routing_number == o.intermediate_routing_number &&
160
- restrictions == o.restrictions &&
161
- routing_number == o.routing_number &&
162
- surcharge_accounting_code == o.surcharge_accounting_code &&
163
- surcharge_fee == o.surcharge_fee &&
164
- surcharge_percentage == o.surcharge_percentage
165
- end
166
-
167
- # @see the `==` method
168
- # @param [Object] Object to be compared
169
- def eql?(o)
170
- self == o
171
- end
172
-
173
- # Calculates hash code according to all attributes.
174
- # @return [Fixnum] Hash code
175
- def hash
176
- [accept_wire_transfer, account_number, accounting_code, bank_address, deposit_to_account, intermediate_routing_number, restrictions, routing_number, surcharge_accounting_code, surcharge_fee, surcharge_percentage].hash
177
- end
178
-
179
- # Builds the object from hash
180
- # @param [Hash] attributes Model attributes in the form of hash
181
- # @return [Object] Returns the model itself
182
- def build_from_hash(attributes)
183
- return nil unless attributes.is_a?(Hash)
184
- self.class.swagger_types.each_pair do |key, type|
185
- if type =~ /\AArray<(.*)>/i
186
- # check to ensure the input is an array given that the attribute
187
- # is documented as an array but the input is not
188
- if attributes[self.class.attribute_map[key]].is_a?(Array)
189
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
190
- end
191
- elsif !attributes[self.class.attribute_map[key]].nil?
192
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
193
- end # or else data not found in attributes(hash), not an issue as the data can be optional
194
- end
195
-
196
- self
197
- end
198
-
199
- # Deserializes the data based on type
200
- # @param string type Data type
201
- # @param string value Value to be deserialized
202
- # @return [Object] Deserialized data
203
- def _deserialize(type, value)
204
- case type.to_sym
205
- when :DateTime
206
- DateTime.parse(value)
207
- when :Date
208
- Date.parse(value)
209
- when :String
210
- value.to_s
211
- when :Integer
212
- value.to_i
213
- when :Float
214
- value.to_f
215
- when :BOOLEAN
216
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
217
- true
218
- else
219
- false
220
- end
221
- when :Object
222
- # generic object (usually a Hash), return directly
223
- value
224
- when /\AArray<(?<inner_type>.+)>\z/
225
- inner_type = Regexp.last_match[:inner_type]
226
- value.map { |v| _deserialize(inner_type, v) }
227
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
228
- k_type = Regexp.last_match[:k_type]
229
- v_type = Regexp.last_match[:v_type]
230
- {}.tap do |hash|
231
- value.each do |k, v|
232
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
233
- end
234
- end
235
- else # model
236
- temp_model = UltracartClient.const_get(type).new
237
- temp_model.build_from_hash(value)
238
- end
239
- end
240
-
241
- # Returns the string representation of the object
242
- # @return [String] String presentation of the object
243
- def to_s
244
- to_hash.to_s
245
- end
246
-
247
- # to_body is an alias to to_hash (backward compatibility)
248
- # @return [Hash] Returns the object in the form of hash
249
- def to_body
250
- to_hash
251
- end
252
-
253
- # Returns the object in the form of hash
254
- # @return [Hash] Returns the object in the form of hash
255
- def to_hash
256
- hash = {}
257
- self.class.attribute_map.each_pair do |attr, param|
258
- value = self.send(attr)
259
- next if value.nil?
260
- hash[param] = _to_hash(value)
261
- end
262
- hash
263
- end
264
-
265
- # Outputs non-array value in the form of hash
266
- # For object, use to_hash. Otherwise, just return the value
267
- # @param [Object] value Any valid value
268
- # @return [Hash] Returns the value in the form of hash
269
- def _to_hash(value)
270
- if value.is_a?(Array)
271
- value.compact.map { |v| _to_hash(v) }
272
- elsif value.is_a?(Hash)
273
- {}.tap do |hash|
274
- value.each { |k, v| hash[k] = _to_hash(v) }
275
- end
276
- elsif value.respond_to? :to_hash
277
- value.to_hash
278
- else
279
- value
280
- end
281
- end
282
-
283
- end
284
- end
@@ -1,239 +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 PaymentsThemeTransactionType
17
- # External human readable identifier for a theme
18
- attr_accessor :code
19
-
20
- # The credit card transaction type for this theme
21
- attr_accessor :credit_card_transaction_type
22
-
23
- # Internal identifier for a theme
24
- attr_accessor :screen_branding_theme_oid
25
-
26
- class EnumAttributeValidator
27
- attr_reader :datatype
28
- attr_reader :allowable_values
29
-
30
- def initialize(datatype, allowable_values)
31
- @allowable_values = allowable_values.map do |value|
32
- case datatype.to_s
33
- when /Integer/i
34
- value.to_i
35
- when /Float/i
36
- value.to_f
37
- else
38
- value
39
- end
40
- end
41
- end
42
-
43
- def valid?(value)
44
- !value || allowable_values.include?(value)
45
- end
46
- end
47
-
48
- # Attribute mapping from ruby-style variable name to JSON key.
49
- def self.attribute_map
50
- {
51
- :'code' => :'code',
52
- :'credit_card_transaction_type' => :'credit_card_transaction_type',
53
- :'screen_branding_theme_oid' => :'screen_branding_theme_oid'
54
- }
55
- end
56
-
57
- # Attribute type mapping.
58
- def self.swagger_types
59
- {
60
- :'code' => :'String',
61
- :'credit_card_transaction_type' => :'String',
62
- :'screen_branding_theme_oid' => :'Integer'
63
- }
64
- end
65
-
66
- # Initializes the object
67
- # @param [Hash] attributes Model attributes in the form of hash
68
- def initialize(attributes = {})
69
- return unless attributes.is_a?(Hash)
70
-
71
- # convert string to symbol for hash key
72
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
-
74
- if attributes.has_key?(:'code')
75
- self.code = attributes[:'code']
76
- end
77
-
78
- if attributes.has_key?(:'credit_card_transaction_type')
79
- self.credit_card_transaction_type = attributes[:'credit_card_transaction_type']
80
- end
81
-
82
- if attributes.has_key?(:'screen_branding_theme_oid')
83
- self.screen_branding_theme_oid = attributes[:'screen_branding_theme_oid']
84
- end
85
- end
86
-
87
- # Show invalid properties with the reasons. Usually used together with valid?
88
- # @return Array for valid properties with the reasons
89
- def list_invalid_properties
90
- invalid_properties = Array.new
91
- invalid_properties
92
- end
93
-
94
- # Check to see if the all the properties in the model are valid
95
- # @return true if the model is valid
96
- def valid?
97
- credit_card_transaction_type_validator = EnumAttributeValidator.new('String', ['auth and capture', 'auth then capture', 'auth only'])
98
- return false unless credit_card_transaction_type_validator.valid?(@credit_card_transaction_type)
99
- true
100
- end
101
-
102
- # Custom attribute writer method checking allowed values (enum).
103
- # @param [Object] credit_card_transaction_type Object to be assigned
104
- def credit_card_transaction_type=(credit_card_transaction_type)
105
- validator = EnumAttributeValidator.new('String', ['auth and capture', 'auth then capture', 'auth only'])
106
- unless validator.valid?(credit_card_transaction_type)
107
- fail ArgumentError, 'invalid value for "credit_card_transaction_type", must be one of #{validator.allowable_values}.'
108
- end
109
- @credit_card_transaction_type = credit_card_transaction_type
110
- end
111
-
112
- # Checks equality by comparing each attribute.
113
- # @param [Object] Object to be compared
114
- def ==(o)
115
- return true if self.equal?(o)
116
- self.class == o.class &&
117
- code == o.code &&
118
- credit_card_transaction_type == o.credit_card_transaction_type &&
119
- screen_branding_theme_oid == o.screen_branding_theme_oid
120
- end
121
-
122
- # @see the `==` method
123
- # @param [Object] Object to be compared
124
- def eql?(o)
125
- self == o
126
- end
127
-
128
- # Calculates hash code according to all attributes.
129
- # @return [Fixnum] Hash code
130
- def hash
131
- [code, credit_card_transaction_type, screen_branding_theme_oid].hash
132
- end
133
-
134
- # Builds the object from hash
135
- # @param [Hash] attributes Model attributes in the form of hash
136
- # @return [Object] Returns the model itself
137
- def build_from_hash(attributes)
138
- return nil unless attributes.is_a?(Hash)
139
- self.class.swagger_types.each_pair do |key, type|
140
- if type =~ /\AArray<(.*)>/i
141
- # check to ensure the input is an array given that the attribute
142
- # is documented as an array but the input is not
143
- if attributes[self.class.attribute_map[key]].is_a?(Array)
144
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
145
- end
146
- elsif !attributes[self.class.attribute_map[key]].nil?
147
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
148
- end # or else data not found in attributes(hash), not an issue as the data can be optional
149
- end
150
-
151
- self
152
- end
153
-
154
- # Deserializes the data based on type
155
- # @param string type Data type
156
- # @param string value Value to be deserialized
157
- # @return [Object] Deserialized data
158
- def _deserialize(type, value)
159
- case type.to_sym
160
- when :DateTime
161
- DateTime.parse(value)
162
- when :Date
163
- Date.parse(value)
164
- when :String
165
- value.to_s
166
- when :Integer
167
- value.to_i
168
- when :Float
169
- value.to_f
170
- when :BOOLEAN
171
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
172
- true
173
- else
174
- false
175
- end
176
- when :Object
177
- # generic object (usually a Hash), return directly
178
- value
179
- when /\AArray<(?<inner_type>.+)>\z/
180
- inner_type = Regexp.last_match[:inner_type]
181
- value.map { |v| _deserialize(inner_type, v) }
182
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
183
- k_type = Regexp.last_match[:k_type]
184
- v_type = Regexp.last_match[:v_type]
185
- {}.tap do |hash|
186
- value.each do |k, v|
187
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
188
- end
189
- end
190
- else # model
191
- temp_model = UltracartClient.const_get(type).new
192
- temp_model.build_from_hash(value)
193
- end
194
- end
195
-
196
- # Returns the string representation of the object
197
- # @return [String] String presentation of the object
198
- def to_s
199
- to_hash.to_s
200
- end
201
-
202
- # to_body is an alias to to_hash (backward compatibility)
203
- # @return [Hash] Returns the object in the form of hash
204
- def to_body
205
- to_hash
206
- end
207
-
208
- # Returns the object in the form of hash
209
- # @return [Hash] Returns the object in the form of hash
210
- def to_hash
211
- hash = {}
212
- self.class.attribute_map.each_pair do |attr, param|
213
- value = self.send(attr)
214
- next if value.nil?
215
- hash[param] = _to_hash(value)
216
- end
217
- hash
218
- end
219
-
220
- # Outputs non-array value in the form of hash
221
- # For object, use to_hash. Otherwise, just return the value
222
- # @param [Object] value Any valid value
223
- # @return [Hash] Returns the value in the form of hash
224
- def _to_hash(value)
225
- if value.is_a?(Array)
226
- value.compact.map { |v| _to_hash(v) }
227
- elsif value.is_a?(Hash)
228
- {}.tap do |hash|
229
- value.each { |k, v| hash[k] = _to_hash(v) }
230
- end
231
- elsif value.respond_to? :to_hash
232
- value.to_hash
233
- else
234
- value
235
- end
236
- end
237
-
238
- end
239
- end