ultracart_api 4.1.150 → 4.1.152

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 (29) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -2
  3. data/docs/ConversationAgentTestSessionJoinRequest.md +18 -0
  4. data/docs/ConversationAgentTestSessionRequest.md +24 -0
  5. data/docs/ConversationAgentTestSessionResponse.md +32 -0
  6. data/docs/ConversationApi.md +111 -0
  7. data/docs/ConversationCustomerAuth.md +30 -0
  8. data/docs/SfvbApi.md +111 -0
  9. data/docs/SfvbThemeAttribute.md +34 -0
  10. data/docs/SfvbThemeAttributeUpdate.md +24 -0
  11. data/docs/SfvbThemeAttributeUpdateRequest.md +18 -0
  12. data/docs/SfvbThemeAttributesResponse.md +24 -0
  13. data/docs/SfvbThemeFont.md +22 -0
  14. data/docs/SfvbThemeFontFamily.md +22 -0
  15. data/lib/ultracart_api/api/conversation_api.rb +156 -0
  16. data/lib/ultracart_api/api/sfvb_api.rb +151 -0
  17. data/lib/ultracart_api/models/conversation_agent_test_session_join_request.rb +220 -0
  18. data/lib/ultracart_api/models/conversation_agent_test_session_request.rb +250 -0
  19. data/lib/ultracart_api/models/conversation_agent_test_session_response.rb +285 -0
  20. data/lib/ultracart_api/models/conversation_customer_auth.rb +273 -0
  21. data/lib/ultracart_api/models/sfvb_theme_attribute.rb +333 -0
  22. data/lib/ultracart_api/models/sfvb_theme_attribute_update.rb +283 -0
  23. data/lib/ultracart_api/models/sfvb_theme_attribute_update_request.rb +222 -0
  24. data/lib/ultracart_api/models/sfvb_theme_attributes_response.rb +252 -0
  25. data/lib/ultracart_api/models/sfvb_theme_font.rb +242 -0
  26. data/lib/ultracart_api/models/sfvb_theme_font_family.rb +274 -0
  27. data/lib/ultracart_api/version.rb +1 -1
  28. data/lib/ultracart_api.rb +10 -0
  29. metadata +22 -2
@@ -0,0 +1,273 @@
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 ConversationCustomerAuth
18
+ attr_accessor :conversation_participant_arn
19
+
20
+ attr_accessor :conversation_participant_name
21
+
22
+ attr_accessor :join_dts_conversation_participant_arn
23
+
24
+ attr_accessor :jwt
25
+
26
+ attr_accessor :merchant_id
27
+
28
+ attr_accessor :merchant_id_queue_name
29
+
30
+ attr_accessor :websocket_url
31
+
32
+ # Attribute mapping from ruby-style variable name to JSON key.
33
+ def self.attribute_map
34
+ {
35
+ :'conversation_participant_arn' => :'conversation_participant_arn',
36
+ :'conversation_participant_name' => :'conversation_participant_name',
37
+ :'join_dts_conversation_participant_arn' => :'join_dts_conversation_participant_arn',
38
+ :'jwt' => :'jwt',
39
+ :'merchant_id' => :'merchant_id',
40
+ :'merchant_id_queue_name' => :'merchant_id_queue_name',
41
+ :'websocket_url' => :'websocket_url'
42
+ }
43
+ end
44
+
45
+ # Returns all the JSON keys this model knows about
46
+ def self.acceptable_attributes
47
+ attribute_map.values
48
+ end
49
+
50
+ # Attribute type mapping.
51
+ def self.openapi_types
52
+ {
53
+ :'conversation_participant_arn' => :'String',
54
+ :'conversation_participant_name' => :'String',
55
+ :'join_dts_conversation_participant_arn' => :'String',
56
+ :'jwt' => :'String',
57
+ :'merchant_id' => :'String',
58
+ :'merchant_id_queue_name' => :'String',
59
+ :'websocket_url' => :'String'
60
+ }
61
+ end
62
+
63
+ # List of attributes with nullable: true
64
+ def self.openapi_nullable
65
+ Set.new([
66
+ ])
67
+ end
68
+
69
+ # Initializes the object
70
+ # @param [Hash] attributes Model attributes in the form of hash
71
+ def initialize(attributes = {})
72
+ if (!attributes.is_a?(Hash))
73
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::ConversationCustomerAuth` initialize method"
74
+ end
75
+
76
+ # check to see if the attribute exists and convert string to symbol for hash key
77
+ attributes = attributes.each_with_object({}) { |(k, v), h|
78
+ if (!self.class.attribute_map.key?(k.to_sym))
79
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::ConversationCustomerAuth`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
80
+ end
81
+ h[k.to_sym] = v
82
+ }
83
+
84
+ if attributes.key?(:'conversation_participant_arn')
85
+ self.conversation_participant_arn = attributes[:'conversation_participant_arn']
86
+ end
87
+
88
+ if attributes.key?(:'conversation_participant_name')
89
+ self.conversation_participant_name = attributes[:'conversation_participant_name']
90
+ end
91
+
92
+ if attributes.key?(:'join_dts_conversation_participant_arn')
93
+ self.join_dts_conversation_participant_arn = attributes[:'join_dts_conversation_participant_arn']
94
+ end
95
+
96
+ if attributes.key?(:'jwt')
97
+ self.jwt = attributes[:'jwt']
98
+ end
99
+
100
+ if attributes.key?(:'merchant_id')
101
+ self.merchant_id = attributes[:'merchant_id']
102
+ end
103
+
104
+ if attributes.key?(:'merchant_id_queue_name')
105
+ self.merchant_id_queue_name = attributes[:'merchant_id_queue_name']
106
+ end
107
+
108
+ if attributes.key?(:'websocket_url')
109
+ self.websocket_url = attributes[:'websocket_url']
110
+ end
111
+ end
112
+
113
+ # Show invalid properties with the reasons. Usually used together with valid?
114
+ # @return Array for valid properties with the reasons
115
+ def list_invalid_properties
116
+ invalid_properties = Array.new
117
+ invalid_properties
118
+ end
119
+
120
+ # Check to see if the all the properties in the model are valid
121
+ # @return true if the model is valid
122
+ def valid?
123
+ true
124
+ end
125
+
126
+ # Checks equality by comparing each attribute.
127
+ # @param [Object] Object to be compared
128
+ def ==(o)
129
+ return true if self.equal?(o)
130
+ self.class == o.class &&
131
+ conversation_participant_arn == o.conversation_participant_arn &&
132
+ conversation_participant_name == o.conversation_participant_name &&
133
+ join_dts_conversation_participant_arn == o.join_dts_conversation_participant_arn &&
134
+ jwt == o.jwt &&
135
+ merchant_id == o.merchant_id &&
136
+ merchant_id_queue_name == o.merchant_id_queue_name &&
137
+ websocket_url == o.websocket_url
138
+ end
139
+
140
+ # @see the `==` method
141
+ # @param [Object] Object to be compared
142
+ def eql?(o)
143
+ self == o
144
+ end
145
+
146
+ # Calculates hash code according to all attributes.
147
+ # @return [Integer] Hash code
148
+ def hash
149
+ [conversation_participant_arn, conversation_participant_name, join_dts_conversation_participant_arn, jwt, merchant_id, merchant_id_queue_name, websocket_url].hash
150
+ end
151
+
152
+ # Builds the object from hash
153
+ # @param [Hash] attributes Model attributes in the form of hash
154
+ # @return [Object] Returns the model itself
155
+ def self.build_from_hash(attributes)
156
+ new.build_from_hash(attributes)
157
+ end
158
+
159
+ # Builds the object from hash
160
+ # @param [Hash] attributes Model attributes in the form of hash
161
+ # @return [Object] Returns the model itself
162
+ def build_from_hash(attributes)
163
+ return nil unless attributes.is_a?(Hash)
164
+ attributes = attributes.transform_keys(&:to_sym)
165
+ self.class.openapi_types.each_pair do |key, type|
166
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
167
+ self.send("#{key}=", nil)
168
+ elsif type =~ /\AArray<(.*)>/i
169
+ # check to ensure the input is an array given that the attribute
170
+ # is documented as an array but the input is not
171
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
172
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
173
+ end
174
+ elsif !attributes[self.class.attribute_map[key]].nil?
175
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
176
+ end
177
+ end
178
+
179
+ self
180
+ end
181
+
182
+ # Deserializes the data based on type
183
+ # @param string type Data type
184
+ # @param string value Value to be deserialized
185
+ # @return [Object] Deserialized data
186
+ def _deserialize(type, value)
187
+ case type.to_sym
188
+ when :Time
189
+ Time.parse(value)
190
+ when :Date
191
+ Date.parse(value)
192
+ when :String
193
+ value.to_s
194
+ when :Integer
195
+ value.to_i
196
+ when :Float
197
+ value.to_f
198
+ when :Boolean
199
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
200
+ true
201
+ else
202
+ false
203
+ end
204
+ when :Object
205
+ # generic object (usually a Hash), return directly
206
+ value
207
+ when /\AArray<(?<inner_type>.+)>\z/
208
+ inner_type = Regexp.last_match[:inner_type]
209
+ value.map { |v| _deserialize(inner_type, v) }
210
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
211
+ k_type = Regexp.last_match[:k_type]
212
+ v_type = Regexp.last_match[:v_type]
213
+ {}.tap do |hash|
214
+ value.each do |k, v|
215
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
216
+ end
217
+ end
218
+ else # model
219
+ # models (e.g. Pet) or oneOf
220
+ klass = UltracartClient.const_get(type)
221
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
222
+ end
223
+ end
224
+
225
+ # Returns the string representation of the object
226
+ # @return [String] String presentation of the object
227
+ def to_s
228
+ to_hash.to_s
229
+ end
230
+
231
+ # to_body is an alias to to_hash (backward compatibility)
232
+ # @return [Hash] Returns the object in the form of hash
233
+ def to_body
234
+ to_hash
235
+ end
236
+
237
+ # Returns the object in the form of hash
238
+ # @return [Hash] Returns the object in the form of hash
239
+ def to_hash
240
+ hash = {}
241
+ self.class.attribute_map.each_pair do |attr, param|
242
+ value = self.send(attr)
243
+ if value.nil?
244
+ is_nullable = self.class.openapi_nullable.include?(attr)
245
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
246
+ end
247
+
248
+ hash[param] = _to_hash(value)
249
+ end
250
+ hash
251
+ end
252
+
253
+ # Outputs non-array value in the form of hash
254
+ # For object, use to_hash. Otherwise, just return the value
255
+ # @param [Object] value Any valid value
256
+ # @return [Hash] Returns the value in the form of hash
257
+ def _to_hash(value)
258
+ if value.is_a?(Array)
259
+ value.compact.map { |v| _to_hash(v) }
260
+ elsif value.is_a?(Hash)
261
+ {}.tap do |hash|
262
+ value.each { |k, v| hash[k] = _to_hash(v) }
263
+ end
264
+ elsif value.respond_to? :to_hash
265
+ value.to_hash
266
+ else
267
+ value
268
+ end
269
+ end
270
+
271
+ end
272
+
273
+ end
@@ -0,0 +1,333 @@
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 SfvbThemeAttribute
18
+ # What the declaring template falls back to when this slot has no value.
19
+ attr_accessor :default_value
20
+
21
+ # True when the theme marks this slot as on its way out. Prefer not to build on it.
22
+ attr_accessor :deprecated
23
+
24
+ # What this slot is for, where the theme author documented it.
25
+ attr_accessor :description
26
+
27
+ attr_accessor :font
28
+
29
+ # Slot name, for example Theme Color 01. Returned in the casing the theme's templates declare, which may differ from the casing you wrote. Compare case insensitively.
30
+ attr_accessor :name
31
+
32
+ # What kind of slot this is, taken from the template that declares it rather than guessed from the value. orphan means nothing declares it.
33
+ attr_accessor :type
34
+
35
+ # True when no template in this theme references this name. Writing such a name is allowed and is how the builder stores its own settings, but if you did not mean to create one this is a misspelling and the write changed nothing visible.
36
+ attr_accessor :undeclared
37
+
38
+ # True when the slot is declared but nothing in the theme actually reads it, so setting it has no visible effect.
39
+ attr_accessor :unused
40
+
41
+ # The applied value. For a colour this is a hex or rgb string, for a boolean the text true or false, for a font the raw JSON document also given in the font field. When the stored value is empty the current preset's default is filled in here.
42
+ attr_accessor :value
43
+
44
+ class EnumAttributeValidator
45
+ attr_reader :datatype
46
+ attr_reader :allowable_values
47
+
48
+ def initialize(datatype, allowable_values)
49
+ @allowable_values = allowable_values.map do |value|
50
+ case datatype.to_s
51
+ when /Integer/i
52
+ value.to_i
53
+ when /Float/i
54
+ value.to_f
55
+ else
56
+ value
57
+ end
58
+ end
59
+ end
60
+
61
+ def valid?(value)
62
+ !value || allowable_values.include?(value)
63
+ end
64
+ end
65
+
66
+ # Attribute mapping from ruby-style variable name to JSON key.
67
+ def self.attribute_map
68
+ {
69
+ :'default_value' => :'default_value',
70
+ :'deprecated' => :'deprecated',
71
+ :'description' => :'description',
72
+ :'font' => :'font',
73
+ :'name' => :'name',
74
+ :'type' => :'type',
75
+ :'undeclared' => :'undeclared',
76
+ :'unused' => :'unused',
77
+ :'value' => :'value'
78
+ }
79
+ end
80
+
81
+ # Returns all the JSON keys this model knows about
82
+ def self.acceptable_attributes
83
+ attribute_map.values
84
+ end
85
+
86
+ # Attribute type mapping.
87
+ def self.openapi_types
88
+ {
89
+ :'default_value' => :'String',
90
+ :'deprecated' => :'Boolean',
91
+ :'description' => :'String',
92
+ :'font' => :'SfvbThemeFont',
93
+ :'name' => :'String',
94
+ :'type' => :'String',
95
+ :'undeclared' => :'Boolean',
96
+ :'unused' => :'Boolean',
97
+ :'value' => :'String'
98
+ }
99
+ end
100
+
101
+ # List of attributes with nullable: true
102
+ def self.openapi_nullable
103
+ Set.new([
104
+ ])
105
+ end
106
+
107
+ # Initializes the object
108
+ # @param [Hash] attributes Model attributes in the form of hash
109
+ def initialize(attributes = {})
110
+ if (!attributes.is_a?(Hash))
111
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbThemeAttribute` initialize method"
112
+ end
113
+
114
+ # check to see if the attribute exists and convert string to symbol for hash key
115
+ attributes = attributes.each_with_object({}) { |(k, v), h|
116
+ if (!self.class.attribute_map.key?(k.to_sym))
117
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbThemeAttribute`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
118
+ end
119
+ h[k.to_sym] = v
120
+ }
121
+
122
+ if attributes.key?(:'default_value')
123
+ self.default_value = attributes[:'default_value']
124
+ end
125
+
126
+ if attributes.key?(:'deprecated')
127
+ self.deprecated = attributes[:'deprecated']
128
+ end
129
+
130
+ if attributes.key?(:'description')
131
+ self.description = attributes[:'description']
132
+ end
133
+
134
+ if attributes.key?(:'font')
135
+ self.font = attributes[:'font']
136
+ end
137
+
138
+ if attributes.key?(:'name')
139
+ self.name = attributes[:'name']
140
+ end
141
+
142
+ if attributes.key?(:'type')
143
+ self.type = attributes[:'type']
144
+ end
145
+
146
+ if attributes.key?(:'undeclared')
147
+ self.undeclared = attributes[:'undeclared']
148
+ end
149
+
150
+ if attributes.key?(:'unused')
151
+ self.unused = attributes[:'unused']
152
+ end
153
+
154
+ if attributes.key?(:'value')
155
+ self.value = attributes[:'value']
156
+ end
157
+ end
158
+
159
+ # Show invalid properties with the reasons. Usually used together with valid?
160
+ # @return Array for valid properties with the reasons
161
+ def list_invalid_properties
162
+ invalid_properties = Array.new
163
+ invalid_properties
164
+ end
165
+
166
+ # Check to see if the all the properties in the model are valid
167
+ # @return true if the model is valid
168
+ def valid?
169
+ type_validator = EnumAttributeValidator.new('String', ["string", "color", "rgba", "boolean", "integer", "html", "orphan", "multiline", "reserved", "itemset", "slider", "simplelist", "definitionlist", "pagecollection", "font", "videolist", "mailinglist"])
170
+ return false unless type_validator.valid?(@type)
171
+ true
172
+ end
173
+
174
+ # Custom attribute writer method checking allowed values (enum).
175
+ # @param [Object] type Object to be assigned
176
+ def type=(type)
177
+ validator = EnumAttributeValidator.new('String', ["string", "color", "rgba", "boolean", "integer", "html", "orphan", "multiline", "reserved", "itemset", "slider", "simplelist", "definitionlist", "pagecollection", "font", "videolist", "mailinglist"])
178
+ unless validator.valid?(type)
179
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
180
+ end
181
+ @type = type
182
+ end
183
+
184
+ # Checks equality by comparing each attribute.
185
+ # @param [Object] Object to be compared
186
+ def ==(o)
187
+ return true if self.equal?(o)
188
+ self.class == o.class &&
189
+ default_value == o.default_value &&
190
+ deprecated == o.deprecated &&
191
+ description == o.description &&
192
+ font == o.font &&
193
+ name == o.name &&
194
+ type == o.type &&
195
+ undeclared == o.undeclared &&
196
+ unused == o.unused &&
197
+ value == o.value
198
+ end
199
+
200
+ # @see the `==` method
201
+ # @param [Object] Object to be compared
202
+ def eql?(o)
203
+ self == o
204
+ end
205
+
206
+ # Calculates hash code according to all attributes.
207
+ # @return [Integer] Hash code
208
+ def hash
209
+ [default_value, deprecated, description, font, name, type, undeclared, unused, value].hash
210
+ end
211
+
212
+ # Builds the object from hash
213
+ # @param [Hash] attributes Model attributes in the form of hash
214
+ # @return [Object] Returns the model itself
215
+ def self.build_from_hash(attributes)
216
+ new.build_from_hash(attributes)
217
+ end
218
+
219
+ # Builds the object from hash
220
+ # @param [Hash] attributes Model attributes in the form of hash
221
+ # @return [Object] Returns the model itself
222
+ def build_from_hash(attributes)
223
+ return nil unless attributes.is_a?(Hash)
224
+ attributes = attributes.transform_keys(&:to_sym)
225
+ self.class.openapi_types.each_pair do |key, type|
226
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
227
+ self.send("#{key}=", nil)
228
+ elsif type =~ /\AArray<(.*)>/i
229
+ # check to ensure the input is an array given that the attribute
230
+ # is documented as an array but the input is not
231
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
232
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
233
+ end
234
+ elsif !attributes[self.class.attribute_map[key]].nil?
235
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
236
+ end
237
+ end
238
+
239
+ self
240
+ end
241
+
242
+ # Deserializes the data based on type
243
+ # @param string type Data type
244
+ # @param string value Value to be deserialized
245
+ # @return [Object] Deserialized data
246
+ def _deserialize(type, value)
247
+ case type.to_sym
248
+ when :Time
249
+ Time.parse(value)
250
+ when :Date
251
+ Date.parse(value)
252
+ when :String
253
+ value.to_s
254
+ when :Integer
255
+ value.to_i
256
+ when :Float
257
+ value.to_f
258
+ when :Boolean
259
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
260
+ true
261
+ else
262
+ false
263
+ end
264
+ when :Object
265
+ # generic object (usually a Hash), return directly
266
+ value
267
+ when /\AArray<(?<inner_type>.+)>\z/
268
+ inner_type = Regexp.last_match[:inner_type]
269
+ value.map { |v| _deserialize(inner_type, v) }
270
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
271
+ k_type = Regexp.last_match[:k_type]
272
+ v_type = Regexp.last_match[:v_type]
273
+ {}.tap do |hash|
274
+ value.each do |k, v|
275
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
276
+ end
277
+ end
278
+ else # model
279
+ # models (e.g. Pet) or oneOf
280
+ klass = UltracartClient.const_get(type)
281
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
282
+ end
283
+ end
284
+
285
+ # Returns the string representation of the object
286
+ # @return [String] String presentation of the object
287
+ def to_s
288
+ to_hash.to_s
289
+ end
290
+
291
+ # to_body is an alias to to_hash (backward compatibility)
292
+ # @return [Hash] Returns the object in the form of hash
293
+ def to_body
294
+ to_hash
295
+ end
296
+
297
+ # Returns the object in the form of hash
298
+ # @return [Hash] Returns the object in the form of hash
299
+ def to_hash
300
+ hash = {}
301
+ self.class.attribute_map.each_pair do |attr, param|
302
+ value = self.send(attr)
303
+ if value.nil?
304
+ is_nullable = self.class.openapi_nullable.include?(attr)
305
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
306
+ end
307
+
308
+ hash[param] = _to_hash(value)
309
+ end
310
+ hash
311
+ end
312
+
313
+ # Outputs non-array value in the form of hash
314
+ # For object, use to_hash. Otherwise, just return the value
315
+ # @param [Object] value Any valid value
316
+ # @return [Hash] Returns the value in the form of hash
317
+ def _to_hash(value)
318
+ if value.is_a?(Array)
319
+ value.compact.map { |v| _to_hash(v) }
320
+ elsif value.is_a?(Hash)
321
+ {}.tap do |hash|
322
+ value.each { |k, v| hash[k] = _to_hash(v) }
323
+ end
324
+ elsif value.respond_to? :to_hash
325
+ value.to_hash
326
+ else
327
+ value
328
+ end
329
+ end
330
+
331
+ end
332
+
333
+ end