ultracart_api 4.1.14 → 4.1.16

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 (39) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -3
  3. data/docs/CartUpsellAfter.md +6 -2
  4. data/docs/ConversationVirtualAgentCapabilities.md +4 -0
  5. data/docs/CustomReport.md +36 -0
  6. data/docs/CustomReportAccountConfig.md +34 -0
  7. data/docs/CustomReportAccountConfigResponse.md +26 -0
  8. data/docs/CustomReportExecutionParameter.md +22 -0
  9. data/docs/CustomReportExecutionRequest.md +18 -0
  10. data/docs/CustomReportParameter.md +28 -0
  11. data/docs/CustomReportParameterOption.md +20 -0
  12. data/docs/CustomReportQuery.md +28 -0
  13. data/docs/CustomReportResponse.md +26 -0
  14. data/docs/CustomReportTooltip.md +20 -0
  15. data/docs/CustomReportsResponse.md +26 -0
  16. data/docs/DatawarehouseApi.md +430 -0
  17. data/docs/Item.md +1 -1
  18. data/docs/OrderApi.md +137 -63
  19. data/docs/WebhookApi.md +0 -8
  20. data/lib/ultracart_api/api/datawarehouse_api.rb +532 -0
  21. data/lib/ultracart_api/api/order_api.rb +131 -91
  22. data/lib/ultracart_api/api/webhook_api.rb +0 -24
  23. data/lib/ultracart_api/models/cart_upsell_after.rb +25 -5
  24. data/lib/ultracart_api/models/conversation_virtual_agent_capabilities.rb +55 -1
  25. data/lib/ultracart_api/models/custom_report.rb +306 -0
  26. data/lib/ultracart_api/models/custom_report_account_config.rb +296 -0
  27. data/lib/ultracart_api/models/custom_report_account_config_response.rb +256 -0
  28. data/lib/ultracart_api/models/custom_report_execution_parameter.rb +237 -0
  29. data/lib/ultracart_api/models/custom_report_execution_request.rb +221 -0
  30. data/lib/ultracart_api/models/custom_report_parameter.rb +266 -0
  31. data/lib/ultracart_api/models/custom_report_parameter_option.rb +228 -0
  32. data/lib/ultracart_api/models/custom_report_query.rb +266 -0
  33. data/lib/ultracart_api/models/custom_report_response.rb +256 -0
  34. data/lib/ultracart_api/models/custom_report_tooltip.rb +228 -0
  35. data/lib/ultracart_api/models/custom_reports_response.rb +259 -0
  36. data/lib/ultracart_api/models/item.rb +1 -1
  37. data/lib/ultracart_api/version.rb +1 -1
  38. data/lib/ultracart_api.rb +11 -0
  39. metadata +24 -2
@@ -0,0 +1,306 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class CustomReport
18
+ attr_accessor :chart_javascript
19
+
20
+ attr_accessor :chart_javascript_url
21
+
22
+ attr_accessor :data_warehouse_report_config_oid
23
+
24
+ attr_accessor :dataset_security_level
25
+
26
+ attr_accessor :group_name
27
+
28
+ attr_accessor :merchant_id
29
+
30
+ attr_accessor :name
31
+
32
+ attr_accessor :parameters
33
+
34
+ attr_accessor :queries
35
+
36
+ attr_accessor :tooltips
37
+
38
+ # Attribute mapping from ruby-style variable name to JSON key.
39
+ def self.attribute_map
40
+ {
41
+ :'chart_javascript' => :'chart_javascript',
42
+ :'chart_javascript_url' => :'chart_javascript_url',
43
+ :'data_warehouse_report_config_oid' => :'data_warehouse_report_config_oid',
44
+ :'dataset_security_level' => :'dataset_security_level',
45
+ :'group_name' => :'group_name',
46
+ :'merchant_id' => :'merchant_id',
47
+ :'name' => :'name',
48
+ :'parameters' => :'parameters',
49
+ :'queries' => :'queries',
50
+ :'tooltips' => :'tooltips'
51
+ }
52
+ end
53
+
54
+ # Returns all the JSON keys this model knows about
55
+ def self.acceptable_attributes
56
+ attribute_map.values
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.openapi_types
61
+ {
62
+ :'chart_javascript' => :'String',
63
+ :'chart_javascript_url' => :'String',
64
+ :'data_warehouse_report_config_oid' => :'Integer',
65
+ :'dataset_security_level' => :'String',
66
+ :'group_name' => :'String',
67
+ :'merchant_id' => :'String',
68
+ :'name' => :'String',
69
+ :'parameters' => :'Array<CustomReportParameter>',
70
+ :'queries' => :'Array<CustomReportQuery>',
71
+ :'tooltips' => :'Array<CustomReportTooltip>'
72
+ }
73
+ end
74
+
75
+ # List of attributes with nullable: true
76
+ def self.openapi_nullable
77
+ Set.new([
78
+ ])
79
+ end
80
+
81
+ # Initializes the object
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ def initialize(attributes = {})
84
+ if (!attributes.is_a?(Hash))
85
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::CustomReport` initialize method"
86
+ end
87
+
88
+ # check to see if the attribute exists and convert string to symbol for hash key
89
+ attributes = attributes.each_with_object({}) { |(k, v), h|
90
+ if (!self.class.attribute_map.key?(k.to_sym))
91
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::CustomReport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
92
+ end
93
+ h[k.to_sym] = v
94
+ }
95
+
96
+ if attributes.key?(:'chart_javascript')
97
+ self.chart_javascript = attributes[:'chart_javascript']
98
+ end
99
+
100
+ if attributes.key?(:'chart_javascript_url')
101
+ self.chart_javascript_url = attributes[:'chart_javascript_url']
102
+ end
103
+
104
+ if attributes.key?(:'data_warehouse_report_config_oid')
105
+ self.data_warehouse_report_config_oid = attributes[:'data_warehouse_report_config_oid']
106
+ end
107
+
108
+ if attributes.key?(:'dataset_security_level')
109
+ self.dataset_security_level = attributes[:'dataset_security_level']
110
+ end
111
+
112
+ if attributes.key?(:'group_name')
113
+ self.group_name = attributes[:'group_name']
114
+ end
115
+
116
+ if attributes.key?(:'merchant_id')
117
+ self.merchant_id = attributes[:'merchant_id']
118
+ end
119
+
120
+ if attributes.key?(:'name')
121
+ self.name = attributes[:'name']
122
+ end
123
+
124
+ if attributes.key?(:'parameters')
125
+ if (value = attributes[:'parameters']).is_a?(Array)
126
+ self.parameters = value
127
+ end
128
+ end
129
+
130
+ if attributes.key?(:'queries')
131
+ if (value = attributes[:'queries']).is_a?(Array)
132
+ self.queries = value
133
+ end
134
+ end
135
+
136
+ if attributes.key?(:'tooltips')
137
+ if (value = attributes[:'tooltips']).is_a?(Array)
138
+ self.tooltips = value
139
+ end
140
+ end
141
+ end
142
+
143
+ # Show invalid properties with the reasons. Usually used together with valid?
144
+ # @return Array for valid properties with the reasons
145
+ def list_invalid_properties
146
+ invalid_properties = Array.new
147
+ invalid_properties
148
+ end
149
+
150
+ # Check to see if the all the properties in the model are valid
151
+ # @return true if the model is valid
152
+ def valid?
153
+ true
154
+ end
155
+
156
+ # Checks equality by comparing each attribute.
157
+ # @param [Object] Object to be compared
158
+ def ==(o)
159
+ return true if self.equal?(o)
160
+ self.class == o.class &&
161
+ chart_javascript == o.chart_javascript &&
162
+ chart_javascript_url == o.chart_javascript_url &&
163
+ data_warehouse_report_config_oid == o.data_warehouse_report_config_oid &&
164
+ dataset_security_level == o.dataset_security_level &&
165
+ group_name == o.group_name &&
166
+ merchant_id == o.merchant_id &&
167
+ name == o.name &&
168
+ parameters == o.parameters &&
169
+ queries == o.queries &&
170
+ tooltips == o.tooltips
171
+ end
172
+
173
+ # @see the `==` method
174
+ # @param [Object] Object to be compared
175
+ def eql?(o)
176
+ self == o
177
+ end
178
+
179
+ # Calculates hash code according to all attributes.
180
+ # @return [Integer] Hash code
181
+ def hash
182
+ [chart_javascript, chart_javascript_url, data_warehouse_report_config_oid, dataset_security_level, group_name, merchant_id, name, parameters, queries, tooltips].hash
183
+ end
184
+
185
+ # Builds the object from hash
186
+ # @param [Hash] attributes Model attributes in the form of hash
187
+ # @return [Object] Returns the model itself
188
+ def self.build_from_hash(attributes)
189
+ new.build_from_hash(attributes)
190
+ end
191
+
192
+ # Builds the object from hash
193
+ # @param [Hash] attributes Model attributes in the form of hash
194
+ # @return [Object] Returns the model itself
195
+ def build_from_hash(attributes)
196
+ return nil unless attributes.is_a?(Hash)
197
+ attributes = attributes.transform_keys(&:to_sym)
198
+ self.class.openapi_types.each_pair do |key, type|
199
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
200
+ self.send("#{key}=", nil)
201
+ elsif type =~ /\AArray<(.*)>/i
202
+ # check to ensure the input is an array given that the attribute
203
+ # is documented as an array but the input is not
204
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
205
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
206
+ end
207
+ elsif !attributes[self.class.attribute_map[key]].nil?
208
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
209
+ end
210
+ end
211
+
212
+ self
213
+ end
214
+
215
+ # Deserializes the data based on type
216
+ # @param string type Data type
217
+ # @param string value Value to be deserialized
218
+ # @return [Object] Deserialized data
219
+ def _deserialize(type, value)
220
+ case type.to_sym
221
+ when :Time
222
+ Time.parse(value)
223
+ when :Date
224
+ Date.parse(value)
225
+ when :String
226
+ value.to_s
227
+ when :Integer
228
+ value.to_i
229
+ when :Float
230
+ value.to_f
231
+ when :Boolean
232
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
233
+ true
234
+ else
235
+ false
236
+ end
237
+ when :Object
238
+ # generic object (usually a Hash), return directly
239
+ value
240
+ when /\AArray<(?<inner_type>.+)>\z/
241
+ inner_type = Regexp.last_match[:inner_type]
242
+ value.map { |v| _deserialize(inner_type, v) }
243
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
244
+ k_type = Regexp.last_match[:k_type]
245
+ v_type = Regexp.last_match[:v_type]
246
+ {}.tap do |hash|
247
+ value.each do |k, v|
248
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
249
+ end
250
+ end
251
+ else # model
252
+ # models (e.g. Pet) or oneOf
253
+ klass = UltracartClient.const_get(type)
254
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
255
+ end
256
+ end
257
+
258
+ # Returns the string representation of the object
259
+ # @return [String] String presentation of the object
260
+ def to_s
261
+ to_hash.to_s
262
+ end
263
+
264
+ # to_body is an alias to to_hash (backward compatibility)
265
+ # @return [Hash] Returns the object in the form of hash
266
+ def to_body
267
+ to_hash
268
+ end
269
+
270
+ # Returns the object in the form of hash
271
+ # @return [Hash] Returns the object in the form of hash
272
+ def to_hash
273
+ hash = {}
274
+ self.class.attribute_map.each_pair do |attr, param|
275
+ value = self.send(attr)
276
+ if value.nil?
277
+ is_nullable = self.class.openapi_nullable.include?(attr)
278
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
279
+ end
280
+
281
+ hash[param] = _to_hash(value)
282
+ end
283
+ hash
284
+ end
285
+
286
+ # Outputs non-array value in the form of hash
287
+ # For object, use to_hash. Otherwise, just return the value
288
+ # @param [Object] value Any valid value
289
+ # @return [Hash] Returns the value in the form of hash
290
+ def _to_hash(value)
291
+ if value.is_a?(Array)
292
+ value.compact.map { |v| _to_hash(v) }
293
+ elsif value.is_a?(Hash)
294
+ {}.tap do |hash|
295
+ value.each { |k, v| hash[k] = _to_hash(v) }
296
+ end
297
+ elsif value.respond_to? :to_hash
298
+ value.to_hash
299
+ else
300
+ value
301
+ end
302
+ end
303
+
304
+ end
305
+
306
+ end
@@ -0,0 +1,296 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ The version of the OpenAPI document: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 6.0.1-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module UltracartClient
17
+ class CustomReportAccountConfig
18
+ attr_accessor :ai_budget
19
+
20
+ # Current AI usage creating reports
21
+ attr_accessor :ai_usage
22
+
23
+ # Current BigQuery SQL usage running reports
24
+ attr_accessor :merchant_id
25
+
26
+ attr_accessor :novice_sql_comments
27
+
28
+ # True if they have opted into custom reports
29
+ attr_accessor :opt_in
30
+
31
+ # User that opted into custom reporting
32
+ attr_accessor :opt_in_by_user
33
+
34
+ # Date/time that custom reporting was opted in to
35
+ attr_accessor :opt_in_date
36
+
37
+ attr_accessor :sql_budget
38
+
39
+ attr_accessor :sql_usage
40
+
41
+ # Attribute mapping from ruby-style variable name to JSON key.
42
+ def self.attribute_map
43
+ {
44
+ :'ai_budget' => :'ai_budget',
45
+ :'ai_usage' => :'ai_usage',
46
+ :'merchant_id' => :'merchant_id',
47
+ :'novice_sql_comments' => :'novice_sql_comments',
48
+ :'opt_in' => :'opt_in',
49
+ :'opt_in_by_user' => :'opt_in_by_user',
50
+ :'opt_in_date' => :'opt_in_date',
51
+ :'sql_budget' => :'sql_budget',
52
+ :'sql_usage' => :'sql_usage'
53
+ }
54
+ end
55
+
56
+ # Returns all the JSON keys this model knows about
57
+ def self.acceptable_attributes
58
+ attribute_map.values
59
+ end
60
+
61
+ # Attribute type mapping.
62
+ def self.openapi_types
63
+ {
64
+ :'ai_budget' => :'Float',
65
+ :'ai_usage' => :'Float',
66
+ :'merchant_id' => :'String',
67
+ :'novice_sql_comments' => :'Boolean',
68
+ :'opt_in' => :'Boolean',
69
+ :'opt_in_by_user' => :'String',
70
+ :'opt_in_date' => :'String',
71
+ :'sql_budget' => :'Float',
72
+ :'sql_usage' => :'Float'
73
+ }
74
+ end
75
+
76
+ # List of attributes with nullable: true
77
+ def self.openapi_nullable
78
+ Set.new([
79
+ ])
80
+ end
81
+
82
+ # Initializes the object
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ def initialize(attributes = {})
85
+ if (!attributes.is_a?(Hash))
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::CustomReportAccountConfig` initialize method"
87
+ end
88
+
89
+ # check to see if the attribute exists and convert string to symbol for hash key
90
+ attributes = attributes.each_with_object({}) { |(k, v), h|
91
+ if (!self.class.attribute_map.key?(k.to_sym))
92
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::CustomReportAccountConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
93
+ end
94
+ h[k.to_sym] = v
95
+ }
96
+
97
+ if attributes.key?(:'ai_budget')
98
+ self.ai_budget = attributes[:'ai_budget']
99
+ end
100
+
101
+ if attributes.key?(:'ai_usage')
102
+ self.ai_usage = attributes[:'ai_usage']
103
+ end
104
+
105
+ if attributes.key?(:'merchant_id')
106
+ self.merchant_id = attributes[:'merchant_id']
107
+ end
108
+
109
+ if attributes.key?(:'novice_sql_comments')
110
+ self.novice_sql_comments = attributes[:'novice_sql_comments']
111
+ end
112
+
113
+ if attributes.key?(:'opt_in')
114
+ self.opt_in = attributes[:'opt_in']
115
+ end
116
+
117
+ if attributes.key?(:'opt_in_by_user')
118
+ self.opt_in_by_user = attributes[:'opt_in_by_user']
119
+ end
120
+
121
+ if attributes.key?(:'opt_in_date')
122
+ self.opt_in_date = attributes[:'opt_in_date']
123
+ end
124
+
125
+ if attributes.key?(:'sql_budget')
126
+ self.sql_budget = attributes[:'sql_budget']
127
+ end
128
+
129
+ if attributes.key?(:'sql_usage')
130
+ self.sql_usage = attributes[:'sql_usage']
131
+ end
132
+ end
133
+
134
+ # Show invalid properties with the reasons. Usually used together with valid?
135
+ # @return Array for valid properties with the reasons
136
+ def list_invalid_properties
137
+ invalid_properties = Array.new
138
+ invalid_properties
139
+ end
140
+
141
+ # Check to see if the all the properties in the model are valid
142
+ # @return true if the model is valid
143
+ def valid?
144
+ true
145
+ end
146
+
147
+ # Checks equality by comparing each attribute.
148
+ # @param [Object] Object to be compared
149
+ def ==(o)
150
+ return true if self.equal?(o)
151
+ self.class == o.class &&
152
+ ai_budget == o.ai_budget &&
153
+ ai_usage == o.ai_usage &&
154
+ merchant_id == o.merchant_id &&
155
+ novice_sql_comments == o.novice_sql_comments &&
156
+ opt_in == o.opt_in &&
157
+ opt_in_by_user == o.opt_in_by_user &&
158
+ opt_in_date == o.opt_in_date &&
159
+ sql_budget == o.sql_budget &&
160
+ sql_usage == o.sql_usage
161
+ end
162
+
163
+ # @see the `==` method
164
+ # @param [Object] Object to be compared
165
+ def eql?(o)
166
+ self == o
167
+ end
168
+
169
+ # Calculates hash code according to all attributes.
170
+ # @return [Integer] Hash code
171
+ def hash
172
+ [ai_budget, ai_usage, merchant_id, novice_sql_comments, opt_in, opt_in_by_user, opt_in_date, sql_budget, sql_usage].hash
173
+ end
174
+
175
+ # Builds the object from hash
176
+ # @param [Hash] attributes Model attributes in the form of hash
177
+ # @return [Object] Returns the model itself
178
+ def self.build_from_hash(attributes)
179
+ new.build_from_hash(attributes)
180
+ end
181
+
182
+ # Builds the object from hash
183
+ # @param [Hash] attributes Model attributes in the form of hash
184
+ # @return [Object] Returns the model itself
185
+ def build_from_hash(attributes)
186
+ return nil unless attributes.is_a?(Hash)
187
+ attributes = attributes.transform_keys(&:to_sym)
188
+ self.class.openapi_types.each_pair do |key, type|
189
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
190
+ self.send("#{key}=", nil)
191
+ elsif type =~ /\AArray<(.*)>/i
192
+ # check to ensure the input is an array given that the attribute
193
+ # is documented as an array but the input is not
194
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
195
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
196
+ end
197
+ elsif !attributes[self.class.attribute_map[key]].nil?
198
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
199
+ end
200
+ end
201
+
202
+ self
203
+ end
204
+
205
+ # Deserializes the data based on type
206
+ # @param string type Data type
207
+ # @param string value Value to be deserialized
208
+ # @return [Object] Deserialized data
209
+ def _deserialize(type, value)
210
+ case type.to_sym
211
+ when :Time
212
+ Time.parse(value)
213
+ when :Date
214
+ Date.parse(value)
215
+ when :String
216
+ value.to_s
217
+ when :Integer
218
+ value.to_i
219
+ when :Float
220
+ value.to_f
221
+ when :Boolean
222
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
223
+ true
224
+ else
225
+ false
226
+ end
227
+ when :Object
228
+ # generic object (usually a Hash), return directly
229
+ value
230
+ when /\AArray<(?<inner_type>.+)>\z/
231
+ inner_type = Regexp.last_match[:inner_type]
232
+ value.map { |v| _deserialize(inner_type, v) }
233
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
234
+ k_type = Regexp.last_match[:k_type]
235
+ v_type = Regexp.last_match[:v_type]
236
+ {}.tap do |hash|
237
+ value.each do |k, v|
238
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
239
+ end
240
+ end
241
+ else # model
242
+ # models (e.g. Pet) or oneOf
243
+ klass = UltracartClient.const_get(type)
244
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
245
+ end
246
+ end
247
+
248
+ # Returns the string representation of the object
249
+ # @return [String] String presentation of the object
250
+ def to_s
251
+ to_hash.to_s
252
+ end
253
+
254
+ # to_body is an alias to to_hash (backward compatibility)
255
+ # @return [Hash] Returns the object in the form of hash
256
+ def to_body
257
+ to_hash
258
+ end
259
+
260
+ # Returns the object in the form of hash
261
+ # @return [Hash] Returns the object in the form of hash
262
+ def to_hash
263
+ hash = {}
264
+ self.class.attribute_map.each_pair do |attr, param|
265
+ value = self.send(attr)
266
+ if value.nil?
267
+ is_nullable = self.class.openapi_nullable.include?(attr)
268
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
269
+ end
270
+
271
+ hash[param] = _to_hash(value)
272
+ end
273
+ hash
274
+ end
275
+
276
+ # Outputs non-array value in the form of hash
277
+ # For object, use to_hash. Otherwise, just return the value
278
+ # @param [Object] value Any valid value
279
+ # @return [Hash] Returns the value in the form of hash
280
+ def _to_hash(value)
281
+ if value.is_a?(Array)
282
+ value.compact.map { |v| _to_hash(v) }
283
+ elsif value.is_a?(Hash)
284
+ {}.tap do |hash|
285
+ value.each { |k, v| hash[k] = _to_hash(v) }
286
+ end
287
+ elsif value.respond_to? :to_hash
288
+ value.to_hash
289
+ else
290
+ value
291
+ end
292
+ end
293
+
294
+ end
295
+
296
+ end