ultracart_api 3.3.2 → 3.4.0

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