ultracart_api 4.1.190 → 4.1.192
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 +34 -2
- data/docs/SfvbApi.md +782 -2
- data/docs/SfvbNotFoundEntry.md +38 -0
- data/docs/SfvbNotFoundEntryResponse.md +20 -0
- data/docs/SfvbNotFoundHit.md +24 -0
- data/docs/SfvbNotFoundPage.md +28 -0
- data/docs/SfvbNotFoundResponse.md +20 -0
- data/docs/SfvbRedirect.md +42 -0
- data/docs/SfvbRedirectCheckResponse.md +26 -0
- data/docs/SfvbRedirectImportRequest.md +20 -0
- data/docs/SfvbRedirectImportResponse.md +32 -0
- data/docs/SfvbRedirectImportRow.md +22 -0
- data/docs/SfvbRedirectImportRowResult.md +26 -0
- data/docs/SfvbRedirectRequest.md +26 -0
- data/docs/SfvbRedirectResolveResponse.md +28 -0
- data/docs/SfvbRedirectResolveStep.md +22 -0
- data/docs/SfvbRedirectResponse.md +20 -0
- data/docs/SfvbRedirectsResponse.md +22 -0
- data/docs/SfvbRenderRequest.md +1 -1
- data/lib/ultracart_api/api/sfvb_api.rb +1132 -98
- data/lib/ultracart_api/models/sfvb_not_found_entry.rb +322 -0
- data/lib/ultracart_api/models/sfvb_not_found_entry_response.rb +231 -0
- data/lib/ultracart_api/models/sfvb_not_found_hit.rb +250 -0
- data/lib/ultracart_api/models/sfvb_not_found_page.rb +270 -0
- data/lib/ultracart_api/models/sfvb_not_found_response.rb +232 -0
- data/lib/ultracart_api/models/sfvb_redirect.rb +340 -0
- data/lib/ultracart_api/models/sfvb_redirect_check_response.rb +264 -0
- data/lib/ultracart_api/models/sfvb_redirect_import_request.rb +232 -0
- data/lib/ultracart_api/models/sfvb_redirect_import_response.rb +292 -0
- data/lib/ultracart_api/models/sfvb_redirect_import_row.rb +240 -0
- data/lib/ultracart_api/models/sfvb_redirect_import_row_result.rb +264 -0
- data/lib/ultracart_api/models/sfvb_redirect_request.rb +260 -0
- data/lib/ultracart_api/models/sfvb_redirect_resolve_response.rb +272 -0
- data/lib/ultracart_api/models/sfvb_redirect_resolve_step.rb +240 -0
- data/lib/ultracart_api/models/sfvb_redirect_response.rb +231 -0
- data/lib/ultracart_api/models/sfvb_redirects_response.rb +242 -0
- data/lib/ultracart_api/models/sfvb_render_request.rb +1 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +16 -0
- metadata +33 -1
|
@@ -0,0 +1,231 @@
|
|
|
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 SfvbRedirectResponse
|
|
18
|
+
attr_accessor :redirect
|
|
19
|
+
|
|
20
|
+
# Findings that did not block the write, such as a chain.
|
|
21
|
+
attr_accessor :warnings
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'redirect' => :'redirect',
|
|
27
|
+
:'warnings' => :'warnings'
|
|
28
|
+
}
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
# Returns all the JSON keys this model knows about
|
|
32
|
+
def self.acceptable_attributes
|
|
33
|
+
attribute_map.values
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
# Attribute type mapping.
|
|
37
|
+
def self.openapi_types
|
|
38
|
+
{
|
|
39
|
+
:'redirect' => :'SfvbRedirect',
|
|
40
|
+
:'warnings' => :'Array<SfvbErrorDetail>'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# List of attributes with nullable: true
|
|
45
|
+
def self.openapi_nullable
|
|
46
|
+
Set.new([
|
|
47
|
+
])
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Initializes the object
|
|
51
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
52
|
+
def initialize(attributes = {})
|
|
53
|
+
if (!attributes.is_a?(Hash))
|
|
54
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbRedirectResponse` initialize method"
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
58
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
59
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
60
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbRedirectResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
61
|
+
end
|
|
62
|
+
h[k.to_sym] = v
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
if attributes.key?(:'redirect')
|
|
66
|
+
self.redirect = attributes[:'redirect']
|
|
67
|
+
end
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'warnings')
|
|
70
|
+
if (value = attributes[:'warnings']).is_a?(Array)
|
|
71
|
+
self.warnings = value
|
|
72
|
+
end
|
|
73
|
+
end
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
77
|
+
# @return Array for valid properties with the reasons
|
|
78
|
+
def list_invalid_properties
|
|
79
|
+
invalid_properties = Array.new
|
|
80
|
+
invalid_properties
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# Check to see if the all the properties in the model are valid
|
|
84
|
+
# @return true if the model is valid
|
|
85
|
+
def valid?
|
|
86
|
+
true
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
# Checks equality by comparing each attribute.
|
|
90
|
+
# @param [Object] Object to be compared
|
|
91
|
+
def ==(o)
|
|
92
|
+
return true if self.equal?(o)
|
|
93
|
+
self.class == o.class &&
|
|
94
|
+
redirect == o.redirect &&
|
|
95
|
+
warnings == o.warnings
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @see the `==` method
|
|
99
|
+
# @param [Object] Object to be compared
|
|
100
|
+
def eql?(o)
|
|
101
|
+
self == o
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
# Calculates hash code according to all attributes.
|
|
105
|
+
# @return [Integer] Hash code
|
|
106
|
+
def hash
|
|
107
|
+
[redirect, warnings].hash
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# Builds the object from hash
|
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
112
|
+
# @return [Object] Returns the model itself
|
|
113
|
+
def self.build_from_hash(attributes)
|
|
114
|
+
new.build_from_hash(attributes)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# Builds the object from hash
|
|
118
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
119
|
+
# @return [Object] Returns the model itself
|
|
120
|
+
def build_from_hash(attributes)
|
|
121
|
+
return nil unless attributes.is_a?(Hash)
|
|
122
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
123
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
124
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
125
|
+
self.send("#{key}=", nil)
|
|
126
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
127
|
+
# check to ensure the input is an array given that the attribute
|
|
128
|
+
# is documented as an array but the input is not
|
|
129
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
130
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
131
|
+
end
|
|
132
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
133
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
134
|
+
end
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
self
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
# Deserializes the data based on type
|
|
141
|
+
# @param string type Data type
|
|
142
|
+
# @param string value Value to be deserialized
|
|
143
|
+
# @return [Object] Deserialized data
|
|
144
|
+
def _deserialize(type, value)
|
|
145
|
+
case type.to_sym
|
|
146
|
+
when :Time
|
|
147
|
+
Time.parse(value)
|
|
148
|
+
when :Date
|
|
149
|
+
Date.parse(value)
|
|
150
|
+
when :String
|
|
151
|
+
value.to_s
|
|
152
|
+
when :Integer
|
|
153
|
+
value.to_i
|
|
154
|
+
when :Float
|
|
155
|
+
value.to_f
|
|
156
|
+
when :Boolean
|
|
157
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
158
|
+
true
|
|
159
|
+
else
|
|
160
|
+
false
|
|
161
|
+
end
|
|
162
|
+
when :Object
|
|
163
|
+
# generic object (usually a Hash), return directly
|
|
164
|
+
value
|
|
165
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
166
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
167
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
168
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
169
|
+
k_type = Regexp.last_match[:k_type]
|
|
170
|
+
v_type = Regexp.last_match[:v_type]
|
|
171
|
+
{}.tap do |hash|
|
|
172
|
+
value.each do |k, v|
|
|
173
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
174
|
+
end
|
|
175
|
+
end
|
|
176
|
+
else # model
|
|
177
|
+
# models (e.g. Pet) or oneOf
|
|
178
|
+
klass = UltracartClient.const_get(type)
|
|
179
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
180
|
+
end
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
# Returns the string representation of the object
|
|
184
|
+
# @return [String] String presentation of the object
|
|
185
|
+
def to_s
|
|
186
|
+
to_hash.to_s
|
|
187
|
+
end
|
|
188
|
+
|
|
189
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
190
|
+
# @return [Hash] Returns the object in the form of hash
|
|
191
|
+
def to_body
|
|
192
|
+
to_hash
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
# Returns the object in the form of hash
|
|
196
|
+
# @return [Hash] Returns the object in the form of hash
|
|
197
|
+
def to_hash
|
|
198
|
+
hash = {}
|
|
199
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
200
|
+
value = self.send(attr)
|
|
201
|
+
if value.nil?
|
|
202
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
203
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
hash[param] = _to_hash(value)
|
|
207
|
+
end
|
|
208
|
+
hash
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
# Outputs non-array value in the form of hash
|
|
212
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
213
|
+
# @param [Object] value Any valid value
|
|
214
|
+
# @return [Hash] Returns the value in the form of hash
|
|
215
|
+
def _to_hash(value)
|
|
216
|
+
if value.is_a?(Array)
|
|
217
|
+
value.compact.map { |v| _to_hash(v) }
|
|
218
|
+
elsif value.is_a?(Hash)
|
|
219
|
+
{}.tap do |hash|
|
|
220
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
221
|
+
end
|
|
222
|
+
elsif value.respond_to? :to_hash
|
|
223
|
+
value.to_hash
|
|
224
|
+
else
|
|
225
|
+
value
|
|
226
|
+
end
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
end
|
|
@@ -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 SfvbRedirectsResponse
|
|
18
|
+
# How many rules the storefront has.
|
|
19
|
+
attr_accessor :count
|
|
20
|
+
|
|
21
|
+
# The most rules a storefront may have through SFVB.
|
|
22
|
+
attr_accessor :limit
|
|
23
|
+
|
|
24
|
+
# The rules.
|
|
25
|
+
attr_accessor :redirects
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'count' => :'count',
|
|
31
|
+
:'limit' => :'limit',
|
|
32
|
+
:'redirects' => :'redirects'
|
|
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
|
+
:'count' => :'Integer',
|
|
45
|
+
:'limit' => :'Integer',
|
|
46
|
+
:'redirects' => :'Array<SfvbRedirect>'
|
|
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::SfvbRedirectsResponse` 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::SfvbRedirectsResponse`. 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?(:'count')
|
|
72
|
+
self.count = attributes[:'count']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'limit')
|
|
76
|
+
self.limit = attributes[:'limit']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'redirects')
|
|
80
|
+
if (value = attributes[:'redirects']).is_a?(Array)
|
|
81
|
+
self.redirects = 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
|
+
count == o.count &&
|
|
105
|
+
limit == o.limit &&
|
|
106
|
+
redirects == o.redirects
|
|
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
|
+
[count, limit, redirects].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
|
|
@@ -48,7 +48,7 @@ module UltracartClient
|
|
|
48
48
|
# True renders every branch the way the builder shows it, for styling content a shopper only sometimes sees. Omitted or false renders what a shopper sees, with conditions, prices and sale state evaluated against the context item.
|
|
49
49
|
attr_accessor :edit_mode
|
|
50
50
|
|
|
51
|
-
#
|
|
51
|
+
# Three-letter ISO 639-2 language code in the bibliographic form (GER, FRE, CHI), with UltraCart exceptions such as ESP for Spanish. Must be enabled on the storefront. Defaults to ENG.
|
|
52
52
|
attr_accessor :language_iso_code
|
|
53
53
|
|
|
54
54
|
# Storefront URI the node would appear on. Affects rendering of anything page relative.
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1074,6 +1074,11 @@ require 'ultracart_api/models/sfvb_menu'
|
|
|
1074
1074
|
require 'ultracart_api/models/sfvb_menu_item'
|
|
1075
1075
|
require 'ultracart_api/models/sfvb_menu_write_request'
|
|
1076
1076
|
require 'ultracart_api/models/sfvb_menus_response'
|
|
1077
|
+
require 'ultracart_api/models/sfvb_not_found_entry'
|
|
1078
|
+
require 'ultracart_api/models/sfvb_not_found_entry_response'
|
|
1079
|
+
require 'ultracart_api/models/sfvb_not_found_hit'
|
|
1080
|
+
require 'ultracart_api/models/sfvb_not_found_page'
|
|
1081
|
+
require 'ultracart_api/models/sfvb_not_found_response'
|
|
1077
1082
|
require 'ultracart_api/models/sfvb_page_attribute'
|
|
1078
1083
|
require 'ultracart_api/models/sfvb_page_attribute_update'
|
|
1079
1084
|
require 'ultracart_api/models/sfvb_page_attribute_update_request'
|
|
@@ -1110,6 +1115,17 @@ require 'ultracart_api/models/sfvb_recording_response'
|
|
|
1110
1115
|
require 'ultracart_api/models/sfvb_recording_settings'
|
|
1111
1116
|
require 'ultracart_api/models/sfvb_recording_settings_request'
|
|
1112
1117
|
require 'ultracart_api/models/sfvb_recording_settings_response'
|
|
1118
|
+
require 'ultracart_api/models/sfvb_redirect'
|
|
1119
|
+
require 'ultracart_api/models/sfvb_redirect_check_response'
|
|
1120
|
+
require 'ultracart_api/models/sfvb_redirect_import_request'
|
|
1121
|
+
require 'ultracart_api/models/sfvb_redirect_import_response'
|
|
1122
|
+
require 'ultracart_api/models/sfvb_redirect_import_row'
|
|
1123
|
+
require 'ultracart_api/models/sfvb_redirect_import_row_result'
|
|
1124
|
+
require 'ultracart_api/models/sfvb_redirect_request'
|
|
1125
|
+
require 'ultracart_api/models/sfvb_redirect_resolve_response'
|
|
1126
|
+
require 'ultracart_api/models/sfvb_redirect_resolve_step'
|
|
1127
|
+
require 'ultracart_api/models/sfvb_redirect_response'
|
|
1128
|
+
require 'ultracart_api/models/sfvb_redirects_response'
|
|
1113
1129
|
require 'ultracart_api/models/sfvb_render_request'
|
|
1114
1130
|
require 'ultracart_api/models/sfvb_render_response'
|
|
1115
1131
|
require 'ultracart_api/models/sfvb_server_log'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.192
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -1136,6 +1136,11 @@ files:
|
|
|
1136
1136
|
- docs/SfvbMenuItem.md
|
|
1137
1137
|
- docs/SfvbMenuWriteRequest.md
|
|
1138
1138
|
- docs/SfvbMenusResponse.md
|
|
1139
|
+
- docs/SfvbNotFoundEntry.md
|
|
1140
|
+
- docs/SfvbNotFoundEntryResponse.md
|
|
1141
|
+
- docs/SfvbNotFoundHit.md
|
|
1142
|
+
- docs/SfvbNotFoundPage.md
|
|
1143
|
+
- docs/SfvbNotFoundResponse.md
|
|
1139
1144
|
- docs/SfvbPageAttribute.md
|
|
1140
1145
|
- docs/SfvbPageAttributeUpdate.md
|
|
1141
1146
|
- docs/SfvbPageAttributeUpdateRequest.md
|
|
@@ -1172,6 +1177,17 @@ files:
|
|
|
1172
1177
|
- docs/SfvbRecordingSettings.md
|
|
1173
1178
|
- docs/SfvbRecordingSettingsRequest.md
|
|
1174
1179
|
- docs/SfvbRecordingSettingsResponse.md
|
|
1180
|
+
- docs/SfvbRedirect.md
|
|
1181
|
+
- docs/SfvbRedirectCheckResponse.md
|
|
1182
|
+
- docs/SfvbRedirectImportRequest.md
|
|
1183
|
+
- docs/SfvbRedirectImportResponse.md
|
|
1184
|
+
- docs/SfvbRedirectImportRow.md
|
|
1185
|
+
- docs/SfvbRedirectImportRowResult.md
|
|
1186
|
+
- docs/SfvbRedirectRequest.md
|
|
1187
|
+
- docs/SfvbRedirectResolveResponse.md
|
|
1188
|
+
- docs/SfvbRedirectResolveStep.md
|
|
1189
|
+
- docs/SfvbRedirectResponse.md
|
|
1190
|
+
- docs/SfvbRedirectsResponse.md
|
|
1175
1191
|
- docs/SfvbRenderRequest.md
|
|
1176
1192
|
- docs/SfvbRenderResponse.md
|
|
1177
1193
|
- docs/SfvbServerLog.md
|
|
@@ -2402,6 +2418,11 @@ files:
|
|
|
2402
2418
|
- lib/ultracart_api/models/sfvb_menu_item.rb
|
|
2403
2419
|
- lib/ultracart_api/models/sfvb_menu_write_request.rb
|
|
2404
2420
|
- lib/ultracart_api/models/sfvb_menus_response.rb
|
|
2421
|
+
- lib/ultracart_api/models/sfvb_not_found_entry.rb
|
|
2422
|
+
- lib/ultracart_api/models/sfvb_not_found_entry_response.rb
|
|
2423
|
+
- lib/ultracart_api/models/sfvb_not_found_hit.rb
|
|
2424
|
+
- lib/ultracart_api/models/sfvb_not_found_page.rb
|
|
2425
|
+
- lib/ultracart_api/models/sfvb_not_found_response.rb
|
|
2405
2426
|
- lib/ultracart_api/models/sfvb_page_attribute.rb
|
|
2406
2427
|
- lib/ultracart_api/models/sfvb_page_attribute_update.rb
|
|
2407
2428
|
- lib/ultracart_api/models/sfvb_page_attribute_update_request.rb
|
|
@@ -2438,6 +2459,17 @@ files:
|
|
|
2438
2459
|
- lib/ultracart_api/models/sfvb_recording_settings.rb
|
|
2439
2460
|
- lib/ultracart_api/models/sfvb_recording_settings_request.rb
|
|
2440
2461
|
- lib/ultracart_api/models/sfvb_recording_settings_response.rb
|
|
2462
|
+
- lib/ultracart_api/models/sfvb_redirect.rb
|
|
2463
|
+
- lib/ultracart_api/models/sfvb_redirect_check_response.rb
|
|
2464
|
+
- lib/ultracart_api/models/sfvb_redirect_import_request.rb
|
|
2465
|
+
- lib/ultracart_api/models/sfvb_redirect_import_response.rb
|
|
2466
|
+
- lib/ultracart_api/models/sfvb_redirect_import_row.rb
|
|
2467
|
+
- lib/ultracart_api/models/sfvb_redirect_import_row_result.rb
|
|
2468
|
+
- lib/ultracart_api/models/sfvb_redirect_request.rb
|
|
2469
|
+
- lib/ultracart_api/models/sfvb_redirect_resolve_response.rb
|
|
2470
|
+
- lib/ultracart_api/models/sfvb_redirect_resolve_step.rb
|
|
2471
|
+
- lib/ultracart_api/models/sfvb_redirect_response.rb
|
|
2472
|
+
- lib/ultracart_api/models/sfvb_redirects_response.rb
|
|
2441
2473
|
- lib/ultracart_api/models/sfvb_render_request.rb
|
|
2442
2474
|
- lib/ultracart_api/models/sfvb_render_response.rb
|
|
2443
2475
|
- lib/ultracart_api/models/sfvb_server_log.rb
|