ultracart_api 4.1.199 → 4.1.201
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.
- checksums.yaml +4 -4
- data/README.md +28 -2
- data/docs/SfvbApi.md +578 -13
- data/docs/SfvbApprovalCreateRequest.md +6 -0
- data/docs/SfvbApprovalParams.md +23 -3
- data/docs/SfvbContainerVersion.md +1 -1
- data/docs/SfvbEvent.md +28 -0
- data/docs/SfvbEventsAuthRequest.md +18 -0
- data/docs/SfvbEventsAuthResponse.md +22 -0
- data/docs/SfvbEventsResponse.md +22 -0
- data/docs/SfvbI18nMessageValue.md +1 -1
- data/docs/SfvbItemAttributeBatchRequest.md +20 -0
- data/docs/SfvbItemAttributeBatchResponse.md +40 -0
- data/docs/SfvbItemAttributeBatchRow.md +30 -0
- data/docs/SfvbItemAttributeBatchRowResult.md +36 -0
- data/docs/SfvbItemPricing.md +38 -0
- data/docs/SfvbItemPricingRequest.md +32 -0
- data/docs/SfvbItemRelated.md +28 -0
- data/docs/SfvbItemRelatedItem.md +22 -0
- data/docs/SfvbItemRelatedRequest.md +22 -0
- data/docs/SfvbItemVolumeDiscount.md +20 -0
- data/docs/SfvbThemeJobResponse.md +3 -3
- data/lib/ultracart_api/api/sfvb_api.rb +831 -72
- data/lib/ultracart_api/models/sfvb_approval_create_request.rb +33 -3
- data/lib/ultracart_api/models/sfvb_approval_params.rb +142 -6
- data/lib/ultracart_api/models/sfvb_container_version.rb +1 -1
- data/lib/ultracart_api/models/sfvb_event.rb +270 -0
- data/lib/ultracart_api/models/sfvb_events_auth_request.rb +222 -0
- data/lib/ultracart_api/models/sfvb_events_auth_response.rb +240 -0
- data/lib/ultracart_api/models/sfvb_events_response.rb +242 -0
- data/lib/ultracart_api/models/sfvb_i18n_message_value.rb +1 -1
- data/lib/ultracart_api/models/sfvb_item_attribute_batch_request.rb +232 -0
- data/lib/ultracart_api/models/sfvb_item_attribute_batch_response.rb +332 -0
- data/lib/ultracart_api/models/sfvb_item_attribute_batch_row.rb +280 -0
- data/lib/ultracart_api/models/sfvb_item_attribute_batch_row_result.rb +344 -0
- data/lib/ultracart_api/models/sfvb_item_pricing.rb +322 -0
- data/lib/ultracart_api/models/sfvb_item_pricing_request.rb +292 -0
- data/lib/ultracart_api/models/sfvb_item_related.rb +272 -0
- data/lib/ultracart_api/models/sfvb_item_related_item.rb +274 -0
- data/lib/ultracart_api/models/sfvb_item_related_request.rb +242 -0
- data/lib/ultracart_api/models/sfvb_item_volume_discount.rb +230 -0
- data/lib/ultracart_api/models/sfvb_theme_job_response.rb +3 -3
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +14 -0
- metadata +30 -2
|
@@ -0,0 +1,242 @@
|
|
|
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 SfvbItemRelatedRequest
|
|
18
|
+
# Left out keeps the stored value.
|
|
19
|
+
attr_accessor :no_system_calculated_related_items
|
|
20
|
+
|
|
21
|
+
# Left out keeps the stored value.
|
|
22
|
+
attr_accessor :not_relatable
|
|
23
|
+
|
|
24
|
+
# The merchant's related items, in order, up to 50. An empty list removes them all. The calculated (system) ones are kept.
|
|
25
|
+
attr_accessor :related_items
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'no_system_calculated_related_items' => :'no_system_calculated_related_items',
|
|
31
|
+
:'not_relatable' => :'not_relatable',
|
|
32
|
+
:'related_items' => :'related_items'
|
|
33
|
+
}
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Returns all the JSON keys this model knows about
|
|
37
|
+
def self.acceptable_attributes
|
|
38
|
+
attribute_map.values
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
# Attribute type mapping.
|
|
42
|
+
def self.openapi_types
|
|
43
|
+
{
|
|
44
|
+
:'no_system_calculated_related_items' => :'Boolean',
|
|
45
|
+
:'not_relatable' => :'Boolean',
|
|
46
|
+
:'related_items' => :'Array<SfvbItemRelatedItem>'
|
|
47
|
+
}
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# List of attributes with nullable: true
|
|
51
|
+
def self.openapi_nullable
|
|
52
|
+
Set.new([
|
|
53
|
+
])
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Initializes the object
|
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
58
|
+
def initialize(attributes = {})
|
|
59
|
+
if (!attributes.is_a?(Hash))
|
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbItemRelatedRequest` initialize method"
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbItemRelatedRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
67
|
+
end
|
|
68
|
+
h[k.to_sym] = v
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'no_system_calculated_related_items')
|
|
72
|
+
self.no_system_calculated_related_items = attributes[:'no_system_calculated_related_items']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'not_relatable')
|
|
76
|
+
self.not_relatable = attributes[:'not_relatable']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'related_items')
|
|
80
|
+
if (value = attributes[:'related_items']).is_a?(Array)
|
|
81
|
+
self.related_items = value
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
invalid_properties = Array.new
|
|
90
|
+
invalid_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
def valid?
|
|
96
|
+
true
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Checks equality by comparing each attribute.
|
|
100
|
+
# @param [Object] Object to be compared
|
|
101
|
+
def ==(o)
|
|
102
|
+
return true if self.equal?(o)
|
|
103
|
+
self.class == o.class &&
|
|
104
|
+
no_system_calculated_related_items == o.no_system_calculated_related_items &&
|
|
105
|
+
not_relatable == o.not_relatable &&
|
|
106
|
+
related_items == o.related_items
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @see the `==` method
|
|
110
|
+
# @param [Object] Object to be compared
|
|
111
|
+
def eql?(o)
|
|
112
|
+
self == o
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Calculates hash code according to all attributes.
|
|
116
|
+
# @return [Integer] Hash code
|
|
117
|
+
def hash
|
|
118
|
+
[no_system_calculated_related_items, not_relatable, related_items].hash
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Builds the object from hash
|
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
123
|
+
# @return [Object] Returns the model itself
|
|
124
|
+
def self.build_from_hash(attributes)
|
|
125
|
+
new.build_from_hash(attributes)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Builds the object from hash
|
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
|
+
# @return [Object] Returns the model itself
|
|
131
|
+
def build_from_hash(attributes)
|
|
132
|
+
return nil unless attributes.is_a?(Hash)
|
|
133
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
134
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
135
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
136
|
+
self.send("#{key}=", nil)
|
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
144
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
self
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Deserializes the data based on type
|
|
152
|
+
# @param string type Data type
|
|
153
|
+
# @param string value Value to be deserialized
|
|
154
|
+
# @return [Object] Deserialized data
|
|
155
|
+
def _deserialize(type, value)
|
|
156
|
+
case type.to_sym
|
|
157
|
+
when :Time
|
|
158
|
+
Time.parse(value)
|
|
159
|
+
when :Date
|
|
160
|
+
Date.parse(value)
|
|
161
|
+
when :String
|
|
162
|
+
value.to_s
|
|
163
|
+
when :Integer
|
|
164
|
+
value.to_i
|
|
165
|
+
when :Float
|
|
166
|
+
value.to_f
|
|
167
|
+
when :Boolean
|
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
169
|
+
true
|
|
170
|
+
else
|
|
171
|
+
false
|
|
172
|
+
end
|
|
173
|
+
when :Object
|
|
174
|
+
# generic object (usually a Hash), return directly
|
|
175
|
+
value
|
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
|
182
|
+
{}.tap do |hash|
|
|
183
|
+
value.each do |k, v|
|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
else # model
|
|
188
|
+
# models (e.g. Pet) or oneOf
|
|
189
|
+
klass = UltracartClient.const_get(type)
|
|
190
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the string representation of the object
|
|
195
|
+
# @return [String] String presentation of the object
|
|
196
|
+
def to_s
|
|
197
|
+
to_hash.to_s
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
|
202
|
+
def to_body
|
|
203
|
+
to_hash
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Returns the object in the form of hash
|
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
|
208
|
+
def to_hash
|
|
209
|
+
hash = {}
|
|
210
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
211
|
+
value = self.send(attr)
|
|
212
|
+
if value.nil?
|
|
213
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
214
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
hash[param] = _to_hash(value)
|
|
218
|
+
end
|
|
219
|
+
hash
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Outputs non-array value in the form of hash
|
|
223
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
224
|
+
# @param [Object] value Any valid value
|
|
225
|
+
# @return [Hash] Returns the value in the form of hash
|
|
226
|
+
def _to_hash(value)
|
|
227
|
+
if value.is_a?(Array)
|
|
228
|
+
value.compact.map { |v| _to_hash(v) }
|
|
229
|
+
elsif value.is_a?(Hash)
|
|
230
|
+
{}.tap do |hash|
|
|
231
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
232
|
+
end
|
|
233
|
+
elsif value.respond_to? :to_hash
|
|
234
|
+
value.to_hash
|
|
235
|
+
else
|
|
236
|
+
value
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
end
|
|
@@ -0,0 +1,230 @@
|
|
|
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 SfvbItemVolumeDiscount
|
|
18
|
+
# The unit price at that quantity, in the item's currency.
|
|
19
|
+
attr_accessor :cost
|
|
20
|
+
|
|
21
|
+
# The quantity from which this unit price applies. 2 or more.
|
|
22
|
+
attr_accessor :quantity
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'cost' => :'cost',
|
|
28
|
+
:'quantity' => :'quantity'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Returns all the JSON keys this model knows about
|
|
33
|
+
def self.acceptable_attributes
|
|
34
|
+
attribute_map.values
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
# Attribute type mapping.
|
|
38
|
+
def self.openapi_types
|
|
39
|
+
{
|
|
40
|
+
:'cost' => :'Float',
|
|
41
|
+
:'quantity' => :'Integer'
|
|
42
|
+
}
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# List of attributes with nullable: true
|
|
46
|
+
def self.openapi_nullable
|
|
47
|
+
Set.new([
|
|
48
|
+
])
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Initializes the object
|
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
53
|
+
def initialize(attributes = {})
|
|
54
|
+
if (!attributes.is_a?(Hash))
|
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbItemVolumeDiscount` initialize method"
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbItemVolumeDiscount`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
62
|
+
end
|
|
63
|
+
h[k.to_sym] = v
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if attributes.key?(:'cost')
|
|
67
|
+
self.cost = attributes[:'cost']
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
if attributes.key?(:'quantity')
|
|
71
|
+
self.quantity = attributes[:'quantity']
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
76
|
+
# @return Array for valid properties with the reasons
|
|
77
|
+
def list_invalid_properties
|
|
78
|
+
invalid_properties = Array.new
|
|
79
|
+
invalid_properties
|
|
80
|
+
end
|
|
81
|
+
|
|
82
|
+
# Check to see if the all the properties in the model are valid
|
|
83
|
+
# @return true if the model is valid
|
|
84
|
+
def valid?
|
|
85
|
+
true
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# Checks equality by comparing each attribute.
|
|
89
|
+
# @param [Object] Object to be compared
|
|
90
|
+
def ==(o)
|
|
91
|
+
return true if self.equal?(o)
|
|
92
|
+
self.class == o.class &&
|
|
93
|
+
cost == o.cost &&
|
|
94
|
+
quantity == o.quantity
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# @see the `==` method
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def eql?(o)
|
|
100
|
+
self == o
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Calculates hash code according to all attributes.
|
|
104
|
+
# @return [Integer] Hash code
|
|
105
|
+
def hash
|
|
106
|
+
[cost, quantity].hash
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Builds the object from hash
|
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
111
|
+
# @return [Object] Returns the model itself
|
|
112
|
+
def self.build_from_hash(attributes)
|
|
113
|
+
new.build_from_hash(attributes)
|
|
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
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
122
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
123
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
124
|
+
self.send("#{key}=", nil)
|
|
125
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
126
|
+
# check to ensure the input is an array given that the attribute
|
|
127
|
+
# is documented as an array but the input is not
|
|
128
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
129
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
130
|
+
end
|
|
131
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
132
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
133
|
+
end
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
self
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Deserializes the data based on type
|
|
140
|
+
# @param string type Data type
|
|
141
|
+
# @param string value Value to be deserialized
|
|
142
|
+
# @return [Object] Deserialized data
|
|
143
|
+
def _deserialize(type, value)
|
|
144
|
+
case type.to_sym
|
|
145
|
+
when :Time
|
|
146
|
+
Time.parse(value)
|
|
147
|
+
when :Date
|
|
148
|
+
Date.parse(value)
|
|
149
|
+
when :String
|
|
150
|
+
value.to_s
|
|
151
|
+
when :Integer
|
|
152
|
+
value.to_i
|
|
153
|
+
when :Float
|
|
154
|
+
value.to_f
|
|
155
|
+
when :Boolean
|
|
156
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
157
|
+
true
|
|
158
|
+
else
|
|
159
|
+
false
|
|
160
|
+
end
|
|
161
|
+
when :Object
|
|
162
|
+
# generic object (usually a Hash), return directly
|
|
163
|
+
value
|
|
164
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
165
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
166
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
167
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
168
|
+
k_type = Regexp.last_match[:k_type]
|
|
169
|
+
v_type = Regexp.last_match[:v_type]
|
|
170
|
+
{}.tap do |hash|
|
|
171
|
+
value.each do |k, v|
|
|
172
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
173
|
+
end
|
|
174
|
+
end
|
|
175
|
+
else # model
|
|
176
|
+
# models (e.g. Pet) or oneOf
|
|
177
|
+
klass = UltracartClient.const_get(type)
|
|
178
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
179
|
+
end
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Returns the string representation of the object
|
|
183
|
+
# @return [String] String presentation of the object
|
|
184
|
+
def to_s
|
|
185
|
+
to_hash.to_s
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
189
|
+
# @return [Hash] Returns the object in the form of hash
|
|
190
|
+
def to_body
|
|
191
|
+
to_hash
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the object in the form of hash
|
|
195
|
+
# @return [Hash] Returns the object in the form of hash
|
|
196
|
+
def to_hash
|
|
197
|
+
hash = {}
|
|
198
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
199
|
+
value = self.send(attr)
|
|
200
|
+
if value.nil?
|
|
201
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
202
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
hash[param] = _to_hash(value)
|
|
206
|
+
end
|
|
207
|
+
hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Outputs non-array value in the form of hash
|
|
211
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
212
|
+
# @param [Object] value Any valid value
|
|
213
|
+
# @return [Hash] Returns the value in the form of hash
|
|
214
|
+
def _to_hash(value)
|
|
215
|
+
if value.is_a?(Array)
|
|
216
|
+
value.compact.map { |v| _to_hash(v) }
|
|
217
|
+
elsif value.is_a?(Hash)
|
|
218
|
+
{}.tap do |hash|
|
|
219
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
220
|
+
end
|
|
221
|
+
elsif value.respond_to? :to_hash
|
|
222
|
+
value.to_hash
|
|
223
|
+
else
|
|
224
|
+
value
|
|
225
|
+
end
|
|
226
|
+
end
|
|
227
|
+
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
end
|
|
@@ -24,7 +24,7 @@ module UltracartClient
|
|
|
24
24
|
# What to do next when the job did not produce a theme. The internal cause is not returned; it is recorded against the job id in the server log.
|
|
25
25
|
attr_accessor :error_message
|
|
26
26
|
|
|
27
|
-
# When the job stopped. Null until it does.
|
|
27
|
+
# When the job stopped, ISO 8601 UTC. Null until it does.
|
|
28
28
|
attr_accessor :finished_dts
|
|
29
29
|
|
|
30
30
|
# Job handle. Poll getSfvbThemeJob with this.
|
|
@@ -36,13 +36,13 @@ module UltracartClient
|
|
|
36
36
|
# What the job is doing right now, for example 'Duplicating locale text'.
|
|
37
37
|
attr_accessor :progress_description
|
|
38
38
|
|
|
39
|
-
# When the job started running. Null until it does.
|
|
39
|
+
# When the job started running, ISO 8601 UTC. Null until it does.
|
|
40
40
|
attr_accessor :started_dts
|
|
41
41
|
|
|
42
42
|
# Raw job status.
|
|
43
43
|
attr_accessor :status
|
|
44
44
|
|
|
45
|
-
# When the job was queued.
|
|
45
|
+
# When the job was queued, ISO 8601 UTC.
|
|
46
46
|
attr_accessor :submitted_dts
|
|
47
47
|
|
|
48
48
|
# True only when the job finished successfully. Check complete first.
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1007,6 +1007,10 @@ require 'ultracart_api/models/sfvb_element'
|
|
|
1007
1007
|
require 'ultracart_api/models/sfvb_element_schema_response'
|
|
1008
1008
|
require 'ultracart_api/models/sfvb_elements_response'
|
|
1009
1009
|
require 'ultracart_api/models/sfvb_error_detail'
|
|
1010
|
+
require 'ultracart_api/models/sfvb_event'
|
|
1011
|
+
require 'ultracart_api/models/sfvb_events_auth_request'
|
|
1012
|
+
require 'ultracart_api/models/sfvb_events_auth_response'
|
|
1013
|
+
require 'ultracart_api/models/sfvb_events_response'
|
|
1010
1014
|
require 'ultracart_api/models/sfvb_experiment'
|
|
1011
1015
|
require 'ultracart_api/models/sfvb_experiment_end_request'
|
|
1012
1016
|
require 'ultracart_api/models/sfvb_experiment_objective'
|
|
@@ -1040,6 +1044,10 @@ require 'ultracart_api/models/sfvb_i18n_messages_response'
|
|
|
1040
1044
|
require 'ultracart_api/models/sfvb_i18n_reset_response'
|
|
1041
1045
|
require 'ultracart_api/models/sfvb_i18n_translation'
|
|
1042
1046
|
require 'ultracart_api/models/sfvb_item_attribute'
|
|
1047
|
+
require 'ultracart_api/models/sfvb_item_attribute_batch_request'
|
|
1048
|
+
require 'ultracart_api/models/sfvb_item_attribute_batch_response'
|
|
1049
|
+
require 'ultracart_api/models/sfvb_item_attribute_batch_row'
|
|
1050
|
+
require 'ultracart_api/models/sfvb_item_attribute_batch_row_result'
|
|
1043
1051
|
require 'ultracart_api/models/sfvb_item_attribute_update'
|
|
1044
1052
|
require 'ultracart_api/models/sfvb_item_attribute_update_request'
|
|
1045
1053
|
require 'ultracart_api/models/sfvb_item_container'
|
|
@@ -1047,9 +1055,15 @@ require 'ultracart_api/models/sfvb_item_containers_response'
|
|
|
1047
1055
|
require 'ultracart_api/models/sfvb_item_content_request'
|
|
1048
1056
|
require 'ultracart_api/models/sfvb_item_multimedia'
|
|
1049
1057
|
require 'ultracart_api/models/sfvb_item_multimedia_request'
|
|
1058
|
+
require 'ultracart_api/models/sfvb_item_pricing'
|
|
1059
|
+
require 'ultracart_api/models/sfvb_item_pricing_request'
|
|
1060
|
+
require 'ultracart_api/models/sfvb_item_related'
|
|
1061
|
+
require 'ultracart_api/models/sfvb_item_related_item'
|
|
1062
|
+
require 'ultracart_api/models/sfvb_item_related_request'
|
|
1050
1063
|
require 'ultracart_api/models/sfvb_item_response'
|
|
1051
1064
|
require 'ultracart_api/models/sfvb_item_seo'
|
|
1052
1065
|
require 'ultracart_api/models/sfvb_item_seo_request'
|
|
1066
|
+
require 'ultracart_api/models/sfvb_item_volume_discount'
|
|
1053
1067
|
require 'ultracart_api/models/sfvb_library_ai_review'
|
|
1054
1068
|
require 'ultracart_api/models/sfvb_library_content_manifest'
|
|
1055
1069
|
require 'ultracart_api/models/sfvb_library_delete_result'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.201
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-10-
|
|
11
|
+
date: 2026-10-12 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -1069,6 +1069,10 @@ files:
|
|
|
1069
1069
|
- docs/SfvbElementSchemaResponse.md
|
|
1070
1070
|
- docs/SfvbElementsResponse.md
|
|
1071
1071
|
- docs/SfvbErrorDetail.md
|
|
1072
|
+
- docs/SfvbEvent.md
|
|
1073
|
+
- docs/SfvbEventsAuthRequest.md
|
|
1074
|
+
- docs/SfvbEventsAuthResponse.md
|
|
1075
|
+
- docs/SfvbEventsResponse.md
|
|
1072
1076
|
- docs/SfvbExperiment.md
|
|
1073
1077
|
- docs/SfvbExperimentEndRequest.md
|
|
1074
1078
|
- docs/SfvbExperimentObjective.md
|
|
@@ -1102,6 +1106,10 @@ files:
|
|
|
1102
1106
|
- docs/SfvbI18nResetResponse.md
|
|
1103
1107
|
- docs/SfvbI18nTranslation.md
|
|
1104
1108
|
- docs/SfvbItemAttribute.md
|
|
1109
|
+
- docs/SfvbItemAttributeBatchRequest.md
|
|
1110
|
+
- docs/SfvbItemAttributeBatchResponse.md
|
|
1111
|
+
- docs/SfvbItemAttributeBatchRow.md
|
|
1112
|
+
- docs/SfvbItemAttributeBatchRowResult.md
|
|
1105
1113
|
- docs/SfvbItemAttributeUpdate.md
|
|
1106
1114
|
- docs/SfvbItemAttributeUpdateRequest.md
|
|
1107
1115
|
- docs/SfvbItemContainer.md
|
|
@@ -1109,9 +1117,15 @@ files:
|
|
|
1109
1117
|
- docs/SfvbItemContentRequest.md
|
|
1110
1118
|
- docs/SfvbItemMultimedia.md
|
|
1111
1119
|
- docs/SfvbItemMultimediaRequest.md
|
|
1120
|
+
- docs/SfvbItemPricing.md
|
|
1121
|
+
- docs/SfvbItemPricingRequest.md
|
|
1122
|
+
- docs/SfvbItemRelated.md
|
|
1123
|
+
- docs/SfvbItemRelatedItem.md
|
|
1124
|
+
- docs/SfvbItemRelatedRequest.md
|
|
1112
1125
|
- docs/SfvbItemResponse.md
|
|
1113
1126
|
- docs/SfvbItemSeo.md
|
|
1114
1127
|
- docs/SfvbItemSeoRequest.md
|
|
1128
|
+
- docs/SfvbItemVolumeDiscount.md
|
|
1115
1129
|
- docs/SfvbLibraryAiReview.md
|
|
1116
1130
|
- docs/SfvbLibraryContentManifest.md
|
|
1117
1131
|
- docs/SfvbLibraryDeleteResult.md
|
|
@@ -2363,6 +2377,10 @@ files:
|
|
|
2363
2377
|
- lib/ultracart_api/models/sfvb_element_schema_response.rb
|
|
2364
2378
|
- lib/ultracart_api/models/sfvb_elements_response.rb
|
|
2365
2379
|
- lib/ultracart_api/models/sfvb_error_detail.rb
|
|
2380
|
+
- lib/ultracart_api/models/sfvb_event.rb
|
|
2381
|
+
- lib/ultracart_api/models/sfvb_events_auth_request.rb
|
|
2382
|
+
- lib/ultracart_api/models/sfvb_events_auth_response.rb
|
|
2383
|
+
- lib/ultracart_api/models/sfvb_events_response.rb
|
|
2366
2384
|
- lib/ultracart_api/models/sfvb_experiment.rb
|
|
2367
2385
|
- lib/ultracart_api/models/sfvb_experiment_end_request.rb
|
|
2368
2386
|
- lib/ultracart_api/models/sfvb_experiment_objective.rb
|
|
@@ -2396,6 +2414,10 @@ files:
|
|
|
2396
2414
|
- lib/ultracart_api/models/sfvb_i18n_reset_response.rb
|
|
2397
2415
|
- lib/ultracart_api/models/sfvb_i18n_translation.rb
|
|
2398
2416
|
- lib/ultracart_api/models/sfvb_item_attribute.rb
|
|
2417
|
+
- lib/ultracart_api/models/sfvb_item_attribute_batch_request.rb
|
|
2418
|
+
- lib/ultracart_api/models/sfvb_item_attribute_batch_response.rb
|
|
2419
|
+
- lib/ultracart_api/models/sfvb_item_attribute_batch_row.rb
|
|
2420
|
+
- lib/ultracart_api/models/sfvb_item_attribute_batch_row_result.rb
|
|
2399
2421
|
- lib/ultracart_api/models/sfvb_item_attribute_update.rb
|
|
2400
2422
|
- lib/ultracart_api/models/sfvb_item_attribute_update_request.rb
|
|
2401
2423
|
- lib/ultracart_api/models/sfvb_item_container.rb
|
|
@@ -2403,9 +2425,15 @@ files:
|
|
|
2403
2425
|
- lib/ultracart_api/models/sfvb_item_content_request.rb
|
|
2404
2426
|
- lib/ultracart_api/models/sfvb_item_multimedia.rb
|
|
2405
2427
|
- lib/ultracart_api/models/sfvb_item_multimedia_request.rb
|
|
2428
|
+
- lib/ultracart_api/models/sfvb_item_pricing.rb
|
|
2429
|
+
- lib/ultracart_api/models/sfvb_item_pricing_request.rb
|
|
2430
|
+
- lib/ultracart_api/models/sfvb_item_related.rb
|
|
2431
|
+
- lib/ultracart_api/models/sfvb_item_related_item.rb
|
|
2432
|
+
- lib/ultracart_api/models/sfvb_item_related_request.rb
|
|
2406
2433
|
- lib/ultracart_api/models/sfvb_item_response.rb
|
|
2407
2434
|
- lib/ultracart_api/models/sfvb_item_seo.rb
|
|
2408
2435
|
- lib/ultracart_api/models/sfvb_item_seo_request.rb
|
|
2436
|
+
- lib/ultracart_api/models/sfvb_item_volume_discount.rb
|
|
2409
2437
|
- lib/ultracart_api/models/sfvb_library_ai_review.rb
|
|
2410
2438
|
- lib/ultracart_api/models/sfvb_library_content_manifest.rb
|
|
2411
2439
|
- lib/ultracart_api/models/sfvb_library_delete_result.rb
|