ultracart_api 4.1.228 → 4.1.229
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 +16 -2
- data/docs/SfvbApi.md +386 -0
- data/docs/SfvbApprovalCreateRequest.md +2 -0
- data/docs/SfvbNotFoundEntry.md +2 -0
- data/docs/SfvbNotFoundSummary.md +28 -0
- data/docs/SfvbRedirectImportRow.md +2 -0
- data/docs/SfvbRedirectRequest.md +2 -0
- data/docs/SfvbRedirectResolveBatchRequest.md +18 -0
- data/docs/SfvbRedirectResolveBatchResponse.md +24 -0
- data/docs/SfvbSiteSeo.md +40 -0
- data/docs/SfvbSiteSeoChange.md +26 -0
- data/docs/SfvbSiteSeoRequest.md +24 -0
- data/lib/ultracart_api/api/sfvb_api.rb +498 -0
- data/lib/ultracart_api/models/sfvb_approval_create_request.rb +12 -3
- data/lib/ultracart_api/models/sfvb_not_found_entry.rb +11 -1
- data/lib/ultracart_api/models/sfvb_not_found_summary.rb +280 -0
- data/lib/ultracart_api/models/sfvb_redirect_import_row.rb +11 -1
- data/lib/ultracart_api/models/sfvb_redirect_request.rb +11 -1
- data/lib/ultracart_api/models/sfvb_redirect_resolve_batch_request.rb +222 -0
- data/lib/ultracart_api/models/sfvb_redirect_resolve_batch_response.rb +252 -0
- data/lib/ultracart_api/models/sfvb_site_seo.rb +334 -0
- data/lib/ultracart_api/models/sfvb_site_seo_change.rb +260 -0
- data/lib/ultracart_api/models/sfvb_site_seo_request.rb +250 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +6 -0
- metadata +13 -1
|
@@ -0,0 +1,260 @@
|
|
|
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 SfvbSiteSeoChange
|
|
18
|
+
# True when this change needs an approved site_seo.change request.
|
|
19
|
+
attr_accessor :approval_needed
|
|
20
|
+
|
|
21
|
+
# True when the approval asks for an authenticator code even inside an open approval session.
|
|
22
|
+
attr_accessor :fresh_code
|
|
23
|
+
|
|
24
|
+
# The value before.
|
|
25
|
+
attr_accessor :from
|
|
26
|
+
|
|
27
|
+
# canonical, schema_org or prevent_indexing.
|
|
28
|
+
attr_accessor :setting
|
|
29
|
+
|
|
30
|
+
# The value after.
|
|
31
|
+
attr_accessor :to
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'approval_needed' => :'approval_needed',
|
|
37
|
+
:'fresh_code' => :'fresh_code',
|
|
38
|
+
:'from' => :'from',
|
|
39
|
+
:'setting' => :'setting',
|
|
40
|
+
:'to' => :'to'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Returns all the JSON keys this model knows about
|
|
45
|
+
def self.acceptable_attributes
|
|
46
|
+
attribute_map.values
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Attribute type mapping.
|
|
50
|
+
def self.openapi_types
|
|
51
|
+
{
|
|
52
|
+
:'approval_needed' => :'Boolean',
|
|
53
|
+
:'fresh_code' => :'Boolean',
|
|
54
|
+
:'from' => :'Boolean',
|
|
55
|
+
:'setting' => :'String',
|
|
56
|
+
:'to' => :'Boolean'
|
|
57
|
+
}
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# List of attributes with nullable: true
|
|
61
|
+
def self.openapi_nullable
|
|
62
|
+
Set.new([
|
|
63
|
+
])
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Initializes the object
|
|
67
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
68
|
+
def initialize(attributes = {})
|
|
69
|
+
if (!attributes.is_a?(Hash))
|
|
70
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbSiteSeoChange` initialize method"
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
74
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
75
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
76
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbSiteSeoChange`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
77
|
+
end
|
|
78
|
+
h[k.to_sym] = v
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'approval_needed')
|
|
82
|
+
self.approval_needed = attributes[:'approval_needed']
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
if attributes.key?(:'fresh_code')
|
|
86
|
+
self.fresh_code = attributes[:'fresh_code']
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
if attributes.key?(:'from')
|
|
90
|
+
self.from = attributes[:'from']
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'setting')
|
|
94
|
+
self.setting = attributes[:'setting']
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
if attributes.key?(:'to')
|
|
98
|
+
self.to = attributes[:'to']
|
|
99
|
+
end
|
|
100
|
+
end
|
|
101
|
+
|
|
102
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
103
|
+
# @return Array for valid properties with the reasons
|
|
104
|
+
def list_invalid_properties
|
|
105
|
+
invalid_properties = Array.new
|
|
106
|
+
invalid_properties
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# Check to see if the all the properties in the model are valid
|
|
110
|
+
# @return true if the model is valid
|
|
111
|
+
def valid?
|
|
112
|
+
true
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Checks equality by comparing each attribute.
|
|
116
|
+
# @param [Object] Object to be compared
|
|
117
|
+
def ==(o)
|
|
118
|
+
return true if self.equal?(o)
|
|
119
|
+
self.class == o.class &&
|
|
120
|
+
approval_needed == o.approval_needed &&
|
|
121
|
+
fresh_code == o.fresh_code &&
|
|
122
|
+
from == o.from &&
|
|
123
|
+
setting == o.setting &&
|
|
124
|
+
to == o.to
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# @see the `==` method
|
|
128
|
+
# @param [Object] Object to be compared
|
|
129
|
+
def eql?(o)
|
|
130
|
+
self == o
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
# Calculates hash code according to all attributes.
|
|
134
|
+
# @return [Integer] Hash code
|
|
135
|
+
def hash
|
|
136
|
+
[approval_needed, fresh_code, from, setting, to].hash
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Builds the object from hash
|
|
140
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
141
|
+
# @return [Object] Returns the model itself
|
|
142
|
+
def self.build_from_hash(attributes)
|
|
143
|
+
new.build_from_hash(attributes)
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Builds the object from hash
|
|
147
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
148
|
+
# @return [Object] Returns the model itself
|
|
149
|
+
def build_from_hash(attributes)
|
|
150
|
+
return nil unless attributes.is_a?(Hash)
|
|
151
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
152
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
153
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
154
|
+
self.send("#{key}=", nil)
|
|
155
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
156
|
+
# check to ensure the input is an array given that the attribute
|
|
157
|
+
# is documented as an array but the input is not
|
|
158
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
159
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
160
|
+
end
|
|
161
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
162
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
self
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Deserializes the data based on type
|
|
170
|
+
# @param string type Data type
|
|
171
|
+
# @param string value Value to be deserialized
|
|
172
|
+
# @return [Object] Deserialized data
|
|
173
|
+
def _deserialize(type, value)
|
|
174
|
+
case type.to_sym
|
|
175
|
+
when :Time
|
|
176
|
+
Time.parse(value)
|
|
177
|
+
when :Date
|
|
178
|
+
Date.parse(value)
|
|
179
|
+
when :String
|
|
180
|
+
value.to_s
|
|
181
|
+
when :Integer
|
|
182
|
+
value.to_i
|
|
183
|
+
when :Float
|
|
184
|
+
value.to_f
|
|
185
|
+
when :Boolean
|
|
186
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
187
|
+
true
|
|
188
|
+
else
|
|
189
|
+
false
|
|
190
|
+
end
|
|
191
|
+
when :Object
|
|
192
|
+
# generic object (usually a Hash), return directly
|
|
193
|
+
value
|
|
194
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
195
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
196
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
197
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
198
|
+
k_type = Regexp.last_match[:k_type]
|
|
199
|
+
v_type = Regexp.last_match[:v_type]
|
|
200
|
+
{}.tap do |hash|
|
|
201
|
+
value.each do |k, v|
|
|
202
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
else # model
|
|
206
|
+
# models (e.g. Pet) or oneOf
|
|
207
|
+
klass = UltracartClient.const_get(type)
|
|
208
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
209
|
+
end
|
|
210
|
+
end
|
|
211
|
+
|
|
212
|
+
# Returns the string representation of the object
|
|
213
|
+
# @return [String] String presentation of the object
|
|
214
|
+
def to_s
|
|
215
|
+
to_hash.to_s
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
219
|
+
# @return [Hash] Returns the object in the form of hash
|
|
220
|
+
def to_body
|
|
221
|
+
to_hash
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Returns the object in the form of hash
|
|
225
|
+
# @return [Hash] Returns the object in the form of hash
|
|
226
|
+
def to_hash
|
|
227
|
+
hash = {}
|
|
228
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
229
|
+
value = self.send(attr)
|
|
230
|
+
if value.nil?
|
|
231
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
232
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
hash[param] = _to_hash(value)
|
|
236
|
+
end
|
|
237
|
+
hash
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
# Outputs non-array value in the form of hash
|
|
241
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
242
|
+
# @param [Object] value Any valid value
|
|
243
|
+
# @return [Hash] Returns the value in the form of hash
|
|
244
|
+
def _to_hash(value)
|
|
245
|
+
if value.is_a?(Array)
|
|
246
|
+
value.compact.map { |v| _to_hash(v) }
|
|
247
|
+
elsif value.is_a?(Hash)
|
|
248
|
+
{}.tap do |hash|
|
|
249
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
250
|
+
end
|
|
251
|
+
elsif value.respond_to? :to_hash
|
|
252
|
+
value.to_hash
|
|
253
|
+
else
|
|
254
|
+
value
|
|
255
|
+
end
|
|
256
|
+
end
|
|
257
|
+
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
end
|
|
@@ -0,0 +1,250 @@
|
|
|
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 SfvbSiteSeoRequest
|
|
18
|
+
# True to turn Canonical Links on. Turning them off needs an approved site_seo.change request.
|
|
19
|
+
attr_accessor :canonical
|
|
20
|
+
|
|
21
|
+
# True to check the change and report it without saving.
|
|
22
|
+
attr_accessor :dry_run
|
|
23
|
+
|
|
24
|
+
# True to tell search engines not to index any page. Either direction needs an approved site_seo.change request, and turning it on needs a fresh authenticator code.
|
|
25
|
+
attr_accessor :prevent_indexing
|
|
26
|
+
|
|
27
|
+
# True to turn Schema.org structured data on. Turning it off needs an approved site_seo.change request.
|
|
28
|
+
attr_accessor :schema_org
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'canonical' => :'canonical',
|
|
34
|
+
:'dry_run' => :'dry_run',
|
|
35
|
+
:'prevent_indexing' => :'prevent_indexing',
|
|
36
|
+
:'schema_org' => :'schema_org'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Returns all the JSON keys this model knows about
|
|
41
|
+
def self.acceptable_attributes
|
|
42
|
+
attribute_map.values
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
# Attribute type mapping.
|
|
46
|
+
def self.openapi_types
|
|
47
|
+
{
|
|
48
|
+
:'canonical' => :'Boolean',
|
|
49
|
+
:'dry_run' => :'Boolean',
|
|
50
|
+
:'prevent_indexing' => :'Boolean',
|
|
51
|
+
:'schema_org' => :'Boolean'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# List of attributes with nullable: true
|
|
56
|
+
def self.openapi_nullable
|
|
57
|
+
Set.new([
|
|
58
|
+
])
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
if (!attributes.is_a?(Hash))
|
|
65
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbSiteSeoRequest` initialize method"
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
69
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
70
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
71
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbSiteSeoRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
72
|
+
end
|
|
73
|
+
h[k.to_sym] = v
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
if attributes.key?(:'canonical')
|
|
77
|
+
self.canonical = attributes[:'canonical']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'dry_run')
|
|
81
|
+
self.dry_run = attributes[:'dry_run']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'prevent_indexing')
|
|
85
|
+
self.prevent_indexing = attributes[:'prevent_indexing']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'schema_org')
|
|
89
|
+
self.schema_org = attributes[:'schema_org']
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
94
|
+
# @return Array for valid properties with the reasons
|
|
95
|
+
def list_invalid_properties
|
|
96
|
+
invalid_properties = Array.new
|
|
97
|
+
invalid_properties
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
# Check to see if the all the properties in the model are valid
|
|
101
|
+
# @return true if the model is valid
|
|
102
|
+
def valid?
|
|
103
|
+
true
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Checks equality by comparing each attribute.
|
|
107
|
+
# @param [Object] Object to be compared
|
|
108
|
+
def ==(o)
|
|
109
|
+
return true if self.equal?(o)
|
|
110
|
+
self.class == o.class &&
|
|
111
|
+
canonical == o.canonical &&
|
|
112
|
+
dry_run == o.dry_run &&
|
|
113
|
+
prevent_indexing == o.prevent_indexing &&
|
|
114
|
+
schema_org == o.schema_org
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @see the `==` method
|
|
118
|
+
# @param [Object] Object to be compared
|
|
119
|
+
def eql?(o)
|
|
120
|
+
self == o
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
# Calculates hash code according to all attributes.
|
|
124
|
+
# @return [Integer] Hash code
|
|
125
|
+
def hash
|
|
126
|
+
[canonical, dry_run, prevent_indexing, schema_org].hash
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Builds the object from hash
|
|
130
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
131
|
+
# @return [Object] Returns the model itself
|
|
132
|
+
def self.build_from_hash(attributes)
|
|
133
|
+
new.build_from_hash(attributes)
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Builds the object from hash
|
|
137
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
138
|
+
# @return [Object] Returns the model itself
|
|
139
|
+
def build_from_hash(attributes)
|
|
140
|
+
return nil unless attributes.is_a?(Hash)
|
|
141
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
142
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
143
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
144
|
+
self.send("#{key}=", nil)
|
|
145
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
146
|
+
# check to ensure the input is an array given that the attribute
|
|
147
|
+
# is documented as an array but the input is not
|
|
148
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
149
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
150
|
+
end
|
|
151
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
152
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
153
|
+
end
|
|
154
|
+
end
|
|
155
|
+
|
|
156
|
+
self
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# Deserializes the data based on type
|
|
160
|
+
# @param string type Data type
|
|
161
|
+
# @param string value Value to be deserialized
|
|
162
|
+
# @return [Object] Deserialized data
|
|
163
|
+
def _deserialize(type, value)
|
|
164
|
+
case type.to_sym
|
|
165
|
+
when :Time
|
|
166
|
+
Time.parse(value)
|
|
167
|
+
when :Date
|
|
168
|
+
Date.parse(value)
|
|
169
|
+
when :String
|
|
170
|
+
value.to_s
|
|
171
|
+
when :Integer
|
|
172
|
+
value.to_i
|
|
173
|
+
when :Float
|
|
174
|
+
value.to_f
|
|
175
|
+
when :Boolean
|
|
176
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
177
|
+
true
|
|
178
|
+
else
|
|
179
|
+
false
|
|
180
|
+
end
|
|
181
|
+
when :Object
|
|
182
|
+
# generic object (usually a Hash), return directly
|
|
183
|
+
value
|
|
184
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
185
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
186
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
187
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
188
|
+
k_type = Regexp.last_match[:k_type]
|
|
189
|
+
v_type = Regexp.last_match[:v_type]
|
|
190
|
+
{}.tap do |hash|
|
|
191
|
+
value.each do |k, v|
|
|
192
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
193
|
+
end
|
|
194
|
+
end
|
|
195
|
+
else # model
|
|
196
|
+
# models (e.g. Pet) or oneOf
|
|
197
|
+
klass = UltracartClient.const_get(type)
|
|
198
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Returns the string representation of the object
|
|
203
|
+
# @return [String] String presentation of the object
|
|
204
|
+
def to_s
|
|
205
|
+
to_hash.to_s
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
|
210
|
+
def to_body
|
|
211
|
+
to_hash
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Returns the object in the form of hash
|
|
215
|
+
# @return [Hash] Returns the object in the form of hash
|
|
216
|
+
def to_hash
|
|
217
|
+
hash = {}
|
|
218
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
219
|
+
value = self.send(attr)
|
|
220
|
+
if value.nil?
|
|
221
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
222
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
hash[param] = _to_hash(value)
|
|
226
|
+
end
|
|
227
|
+
hash
|
|
228
|
+
end
|
|
229
|
+
|
|
230
|
+
# Outputs non-array value in the form of hash
|
|
231
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
232
|
+
# @param [Object] value Any valid value
|
|
233
|
+
# @return [Hash] Returns the value in the form of hash
|
|
234
|
+
def _to_hash(value)
|
|
235
|
+
if value.is_a?(Array)
|
|
236
|
+
value.compact.map { |v| _to_hash(v) }
|
|
237
|
+
elsif value.is_a?(Hash)
|
|
238
|
+
{}.tap do |hash|
|
|
239
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
240
|
+
end
|
|
241
|
+
elsif value.respond_to? :to_hash
|
|
242
|
+
value.to_hash
|
|
243
|
+
else
|
|
244
|
+
value
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
end
|
|
249
|
+
|
|
250
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1135,6 +1135,7 @@ require 'ultracart_api/models/sfvb_not_found_entry_response'
|
|
|
1135
1135
|
require 'ultracart_api/models/sfvb_not_found_hit'
|
|
1136
1136
|
require 'ultracart_api/models/sfvb_not_found_page'
|
|
1137
1137
|
require 'ultracart_api/models/sfvb_not_found_response'
|
|
1138
|
+
require 'ultracart_api/models/sfvb_not_found_summary'
|
|
1138
1139
|
require 'ultracart_api/models/sfvb_page_attribute'
|
|
1139
1140
|
require 'ultracart_api/models/sfvb_page_attribute_update'
|
|
1140
1141
|
require 'ultracart_api/models/sfvb_page_attribute_update_request'
|
|
@@ -1184,6 +1185,8 @@ require 'ultracart_api/models/sfvb_redirect_import_response'
|
|
|
1184
1185
|
require 'ultracart_api/models/sfvb_redirect_import_row'
|
|
1185
1186
|
require 'ultracart_api/models/sfvb_redirect_import_row_result'
|
|
1186
1187
|
require 'ultracart_api/models/sfvb_redirect_request'
|
|
1188
|
+
require 'ultracart_api/models/sfvb_redirect_resolve_batch_request'
|
|
1189
|
+
require 'ultracart_api/models/sfvb_redirect_resolve_batch_response'
|
|
1187
1190
|
require 'ultracart_api/models/sfvb_redirect_resolve_response'
|
|
1188
1191
|
require 'ultracart_api/models/sfvb_redirect_resolve_step'
|
|
1189
1192
|
require 'ultracart_api/models/sfvb_redirect_response'
|
|
@@ -1216,6 +1219,9 @@ require 'ultracart_api/models/sfvb_site_attribute'
|
|
|
1216
1219
|
require 'ultracart_api/models/sfvb_site_attribute_update'
|
|
1217
1220
|
require 'ultracart_api/models/sfvb_site_attribute_update_request'
|
|
1218
1221
|
require 'ultracart_api/models/sfvb_site_attributes_response'
|
|
1222
|
+
require 'ultracart_api/models/sfvb_site_seo'
|
|
1223
|
+
require 'ultracart_api/models/sfvb_site_seo_change'
|
|
1224
|
+
require 'ultracart_api/models/sfvb_site_seo_request'
|
|
1219
1225
|
require 'ultracart_api/models/sfvb_sitemap'
|
|
1220
1226
|
require 'ultracart_api/models/sfvb_sitemap_file'
|
|
1221
1227
|
require 'ultracart_api/models/sfvb_sitemaps_response'
|
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.229
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -1197,6 +1197,7 @@ files:
|
|
|
1197
1197
|
- docs/SfvbNotFoundHit.md
|
|
1198
1198
|
- docs/SfvbNotFoundPage.md
|
|
1199
1199
|
- docs/SfvbNotFoundResponse.md
|
|
1200
|
+
- docs/SfvbNotFoundSummary.md
|
|
1200
1201
|
- docs/SfvbPageAttribute.md
|
|
1201
1202
|
- docs/SfvbPageAttributeUpdate.md
|
|
1202
1203
|
- docs/SfvbPageAttributeUpdateRequest.md
|
|
@@ -1246,6 +1247,8 @@ files:
|
|
|
1246
1247
|
- docs/SfvbRedirectImportRow.md
|
|
1247
1248
|
- docs/SfvbRedirectImportRowResult.md
|
|
1248
1249
|
- docs/SfvbRedirectRequest.md
|
|
1250
|
+
- docs/SfvbRedirectResolveBatchRequest.md
|
|
1251
|
+
- docs/SfvbRedirectResolveBatchResponse.md
|
|
1249
1252
|
- docs/SfvbRedirectResolveResponse.md
|
|
1250
1253
|
- docs/SfvbRedirectResolveStep.md
|
|
1251
1254
|
- docs/SfvbRedirectResponse.md
|
|
@@ -1278,6 +1281,9 @@ files:
|
|
|
1278
1281
|
- docs/SfvbSiteAttributeUpdate.md
|
|
1279
1282
|
- docs/SfvbSiteAttributeUpdateRequest.md
|
|
1280
1283
|
- docs/SfvbSiteAttributesResponse.md
|
|
1284
|
+
- docs/SfvbSiteSeo.md
|
|
1285
|
+
- docs/SfvbSiteSeoChange.md
|
|
1286
|
+
- docs/SfvbSiteSeoRequest.md
|
|
1281
1287
|
- docs/SfvbSitemap.md
|
|
1282
1288
|
- docs/SfvbSitemapFile.md
|
|
1283
1289
|
- docs/SfvbSitemapsResponse.md
|
|
@@ -2593,6 +2599,7 @@ files:
|
|
|
2593
2599
|
- lib/ultracart_api/models/sfvb_not_found_hit.rb
|
|
2594
2600
|
- lib/ultracart_api/models/sfvb_not_found_page.rb
|
|
2595
2601
|
- lib/ultracart_api/models/sfvb_not_found_response.rb
|
|
2602
|
+
- lib/ultracart_api/models/sfvb_not_found_summary.rb
|
|
2596
2603
|
- lib/ultracart_api/models/sfvb_page_attribute.rb
|
|
2597
2604
|
- lib/ultracart_api/models/sfvb_page_attribute_update.rb
|
|
2598
2605
|
- lib/ultracart_api/models/sfvb_page_attribute_update_request.rb
|
|
@@ -2642,6 +2649,8 @@ files:
|
|
|
2642
2649
|
- lib/ultracart_api/models/sfvb_redirect_import_row.rb
|
|
2643
2650
|
- lib/ultracart_api/models/sfvb_redirect_import_row_result.rb
|
|
2644
2651
|
- lib/ultracart_api/models/sfvb_redirect_request.rb
|
|
2652
|
+
- lib/ultracart_api/models/sfvb_redirect_resolve_batch_request.rb
|
|
2653
|
+
- lib/ultracart_api/models/sfvb_redirect_resolve_batch_response.rb
|
|
2645
2654
|
- lib/ultracart_api/models/sfvb_redirect_resolve_response.rb
|
|
2646
2655
|
- lib/ultracart_api/models/sfvb_redirect_resolve_step.rb
|
|
2647
2656
|
- lib/ultracart_api/models/sfvb_redirect_response.rb
|
|
@@ -2674,6 +2683,9 @@ files:
|
|
|
2674
2683
|
- lib/ultracart_api/models/sfvb_site_attribute_update.rb
|
|
2675
2684
|
- lib/ultracart_api/models/sfvb_site_attribute_update_request.rb
|
|
2676
2685
|
- lib/ultracart_api/models/sfvb_site_attributes_response.rb
|
|
2686
|
+
- lib/ultracart_api/models/sfvb_site_seo.rb
|
|
2687
|
+
- lib/ultracart_api/models/sfvb_site_seo_change.rb
|
|
2688
|
+
- lib/ultracart_api/models/sfvb_site_seo_request.rb
|
|
2677
2689
|
- lib/ultracart_api/models/sfvb_sitemap.rb
|
|
2678
2690
|
- lib/ultracart_api/models/sfvb_sitemap_file.rb
|
|
2679
2691
|
- lib/ultracart_api/models/sfvb_sitemaps_response.rb
|