ultracart_api 4.1.227 → 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 +21 -2
- data/docs/SfvbApi.md +445 -0
- data/docs/SfvbApprovalCreateRequest.md +2 -0
- data/docs/SfvbBlogPostDetail.md +2 -0
- data/docs/SfvbBlogPostRequest.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/docs/SfvbStepCounts.md +34 -0
- data/docs/SfvbStepDispatchLog.md +22 -0
- data/docs/SfvbStepDispatchLogsResponse.md +32 -0
- data/lib/ultracart_api/api/sfvb_api.rb +583 -0
- data/lib/ultracart_api/models/sfvb_approval_create_request.rb +12 -3
- data/lib/ultracart_api/models/sfvb_blog_post_detail.rb +11 -1
- data/lib/ultracart_api/models/sfvb_blog_post_request.rb +11 -1
- 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/models/sfvb_step_counts.rb +300 -0
- data/lib/ultracart_api/models/sfvb_step_dispatch_log.rb +240 -0
- data/lib/ultracart_api/models/sfvb_step_dispatch_logs_response.rb +293 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +9 -0
- metadata +19 -1
|
@@ -0,0 +1,240 @@
|
|
|
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 SfvbStepDispatchLog
|
|
18
|
+
# The customer the entry is about.
|
|
19
|
+
attr_accessor :customer_uuid
|
|
20
|
+
|
|
21
|
+
# What happened, as the admin's Dispatch Logs screen shows it, with email addresses and phone numbers masked.
|
|
22
|
+
attr_accessor :detail
|
|
23
|
+
|
|
24
|
+
# When the entry was written, as ISO 8601 with the server's offset.
|
|
25
|
+
attr_accessor :logged_at
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'customer_uuid' => :'customer_uuid',
|
|
31
|
+
:'detail' => :'detail',
|
|
32
|
+
:'logged_at' => :'logged_at'
|
|
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
|
+
:'customer_uuid' => :'String',
|
|
45
|
+
:'detail' => :'String',
|
|
46
|
+
:'logged_at' => :'String'
|
|
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::SfvbStepDispatchLog` 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::SfvbStepDispatchLog`. 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?(:'customer_uuid')
|
|
72
|
+
self.customer_uuid = attributes[:'customer_uuid']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'detail')
|
|
76
|
+
self.detail = attributes[:'detail']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'logged_at')
|
|
80
|
+
self.logged_at = attributes[:'logged_at']
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
85
|
+
# @return Array for valid properties with the reasons
|
|
86
|
+
def list_invalid_properties
|
|
87
|
+
invalid_properties = Array.new
|
|
88
|
+
invalid_properties
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Check to see if the all the properties in the model are valid
|
|
92
|
+
# @return true if the model is valid
|
|
93
|
+
def valid?
|
|
94
|
+
true
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Checks equality by comparing each attribute.
|
|
98
|
+
# @param [Object] Object to be compared
|
|
99
|
+
def ==(o)
|
|
100
|
+
return true if self.equal?(o)
|
|
101
|
+
self.class == o.class &&
|
|
102
|
+
customer_uuid == o.customer_uuid &&
|
|
103
|
+
detail == o.detail &&
|
|
104
|
+
logged_at == o.logged_at
|
|
105
|
+
end
|
|
106
|
+
|
|
107
|
+
# @see the `==` method
|
|
108
|
+
# @param [Object] Object to be compared
|
|
109
|
+
def eql?(o)
|
|
110
|
+
self == o
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# Calculates hash code according to all attributes.
|
|
114
|
+
# @return [Integer] Hash code
|
|
115
|
+
def hash
|
|
116
|
+
[customer_uuid, detail, logged_at].hash
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Builds the object from hash
|
|
120
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
121
|
+
# @return [Object] Returns the model itself
|
|
122
|
+
def self.build_from_hash(attributes)
|
|
123
|
+
new.build_from_hash(attributes)
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def build_from_hash(attributes)
|
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
|
131
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
132
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
133
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
134
|
+
self.send("#{key}=", nil)
|
|
135
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
136
|
+
# check to ensure the input is an array given that the attribute
|
|
137
|
+
# is documented as an array but the input is not
|
|
138
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
139
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
140
|
+
end
|
|
141
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
142
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
143
|
+
end
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
self
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Deserializes the data based on type
|
|
150
|
+
# @param string type Data type
|
|
151
|
+
# @param string value Value to be deserialized
|
|
152
|
+
# @return [Object] Deserialized data
|
|
153
|
+
def _deserialize(type, value)
|
|
154
|
+
case type.to_sym
|
|
155
|
+
when :Time
|
|
156
|
+
Time.parse(value)
|
|
157
|
+
when :Date
|
|
158
|
+
Date.parse(value)
|
|
159
|
+
when :String
|
|
160
|
+
value.to_s
|
|
161
|
+
when :Integer
|
|
162
|
+
value.to_i
|
|
163
|
+
when :Float
|
|
164
|
+
value.to_f
|
|
165
|
+
when :Boolean
|
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
167
|
+
true
|
|
168
|
+
else
|
|
169
|
+
false
|
|
170
|
+
end
|
|
171
|
+
when :Object
|
|
172
|
+
# generic object (usually a Hash), return directly
|
|
173
|
+
value
|
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
|
180
|
+
{}.tap do |hash|
|
|
181
|
+
value.each do |k, v|
|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
else # model
|
|
186
|
+
# models (e.g. Pet) or oneOf
|
|
187
|
+
klass = UltracartClient.const_get(type)
|
|
188
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the string representation of the object
|
|
193
|
+
# @return [String] String presentation of the object
|
|
194
|
+
def to_s
|
|
195
|
+
to_hash.to_s
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_body
|
|
201
|
+
to_hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the object in the form of hash
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_hash
|
|
207
|
+
hash = {}
|
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
209
|
+
value = self.send(attr)
|
|
210
|
+
if value.nil?
|
|
211
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
212
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
hash[param] = _to_hash(value)
|
|
216
|
+
end
|
|
217
|
+
hash
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# Outputs non-array value in the form of hash
|
|
221
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
222
|
+
# @param [Object] value Any valid value
|
|
223
|
+
# @return [Hash] Returns the value in the form of hash
|
|
224
|
+
def _to_hash(value)
|
|
225
|
+
if value.is_a?(Array)
|
|
226
|
+
value.compact.map { |v| _to_hash(v) }
|
|
227
|
+
elsif value.is_a?(Hash)
|
|
228
|
+
{}.tap do |hash|
|
|
229
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
230
|
+
end
|
|
231
|
+
elsif value.respond_to? :to_hash
|
|
232
|
+
value.to_hash
|
|
233
|
+
else
|
|
234
|
+
value
|
|
235
|
+
end
|
|
236
|
+
end
|
|
237
|
+
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
end
|
|
@@ -0,0 +1,293 @@
|
|
|
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 SfvbStepDispatchLogsResponse
|
|
18
|
+
attr_accessor :counts
|
|
19
|
+
|
|
20
|
+
# The entries in the window, newest first.
|
|
21
|
+
attr_accessor :entries
|
|
22
|
+
|
|
23
|
+
# Send this as offset for the next page. Absent on the last page.
|
|
24
|
+
attr_accessor :next_offset
|
|
25
|
+
|
|
26
|
+
# What a person should know about reading these entries.
|
|
27
|
+
attr_accessor :notes
|
|
28
|
+
|
|
29
|
+
# The communication sequence the step is in.
|
|
30
|
+
attr_accessor :sequence_uuid
|
|
31
|
+
|
|
32
|
+
# The start of the window read, as ISO 8601.
|
|
33
|
+
attr_accessor :since
|
|
34
|
+
|
|
35
|
+
# The step's type, such as email, sms or wait.
|
|
36
|
+
attr_accessor :step_type
|
|
37
|
+
|
|
38
|
+
# The step.
|
|
39
|
+
attr_accessor :step_uuid
|
|
40
|
+
|
|
41
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
42
|
+
def self.attribute_map
|
|
43
|
+
{
|
|
44
|
+
:'counts' => :'counts',
|
|
45
|
+
:'entries' => :'entries',
|
|
46
|
+
:'next_offset' => :'next_offset',
|
|
47
|
+
:'notes' => :'notes',
|
|
48
|
+
:'sequence_uuid' => :'sequence_uuid',
|
|
49
|
+
:'since' => :'since',
|
|
50
|
+
:'step_type' => :'step_type',
|
|
51
|
+
:'step_uuid' => :'step_uuid'
|
|
52
|
+
}
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Returns all the JSON keys this model knows about
|
|
56
|
+
def self.acceptable_attributes
|
|
57
|
+
attribute_map.values
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
# Attribute type mapping.
|
|
61
|
+
def self.openapi_types
|
|
62
|
+
{
|
|
63
|
+
:'counts' => :'SfvbStepCounts',
|
|
64
|
+
:'entries' => :'Array<SfvbStepDispatchLog>',
|
|
65
|
+
:'next_offset' => :'Integer',
|
|
66
|
+
:'notes' => :'Array<String>',
|
|
67
|
+
:'sequence_uuid' => :'String',
|
|
68
|
+
:'since' => :'String',
|
|
69
|
+
:'step_type' => :'String',
|
|
70
|
+
:'step_uuid' => :'String'
|
|
71
|
+
}
|
|
72
|
+
end
|
|
73
|
+
|
|
74
|
+
# List of attributes with nullable: true
|
|
75
|
+
def self.openapi_nullable
|
|
76
|
+
Set.new([
|
|
77
|
+
])
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
# Initializes the object
|
|
81
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
82
|
+
def initialize(attributes = {})
|
|
83
|
+
if (!attributes.is_a?(Hash))
|
|
84
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbStepDispatchLogsResponse` initialize method"
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
88
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
89
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
90
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbStepDispatchLogsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
91
|
+
end
|
|
92
|
+
h[k.to_sym] = v
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
if attributes.key?(:'counts')
|
|
96
|
+
self.counts = attributes[:'counts']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'entries')
|
|
100
|
+
if (value = attributes[:'entries']).is_a?(Array)
|
|
101
|
+
self.entries = value
|
|
102
|
+
end
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'next_offset')
|
|
106
|
+
self.next_offset = attributes[:'next_offset']
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
if attributes.key?(:'notes')
|
|
110
|
+
if (value = attributes[:'notes']).is_a?(Array)
|
|
111
|
+
self.notes = value
|
|
112
|
+
end
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
if attributes.key?(:'sequence_uuid')
|
|
116
|
+
self.sequence_uuid = attributes[:'sequence_uuid']
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
if attributes.key?(:'since')
|
|
120
|
+
self.since = attributes[:'since']
|
|
121
|
+
end
|
|
122
|
+
|
|
123
|
+
if attributes.key?(:'step_type')
|
|
124
|
+
self.step_type = attributes[:'step_type']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if attributes.key?(:'step_uuid')
|
|
128
|
+
self.step_uuid = attributes[:'step_uuid']
|
|
129
|
+
end
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
133
|
+
# @return Array for valid properties with the reasons
|
|
134
|
+
def list_invalid_properties
|
|
135
|
+
invalid_properties = Array.new
|
|
136
|
+
invalid_properties
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
# Check to see if the all the properties in the model are valid
|
|
140
|
+
# @return true if the model is valid
|
|
141
|
+
def valid?
|
|
142
|
+
true
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
# Checks equality by comparing each attribute.
|
|
146
|
+
# @param [Object] Object to be compared
|
|
147
|
+
def ==(o)
|
|
148
|
+
return true if self.equal?(o)
|
|
149
|
+
self.class == o.class &&
|
|
150
|
+
counts == o.counts &&
|
|
151
|
+
entries == o.entries &&
|
|
152
|
+
next_offset == o.next_offset &&
|
|
153
|
+
notes == o.notes &&
|
|
154
|
+
sequence_uuid == o.sequence_uuid &&
|
|
155
|
+
since == o.since &&
|
|
156
|
+
step_type == o.step_type &&
|
|
157
|
+
step_uuid == o.step_uuid
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# @see the `==` method
|
|
161
|
+
# @param [Object] Object to be compared
|
|
162
|
+
def eql?(o)
|
|
163
|
+
self == o
|
|
164
|
+
end
|
|
165
|
+
|
|
166
|
+
# Calculates hash code according to all attributes.
|
|
167
|
+
# @return [Integer] Hash code
|
|
168
|
+
def hash
|
|
169
|
+
[counts, entries, next_offset, notes, sequence_uuid, since, step_type, step_uuid].hash
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Builds the object from hash
|
|
173
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
174
|
+
# @return [Object] Returns the model itself
|
|
175
|
+
def self.build_from_hash(attributes)
|
|
176
|
+
new.build_from_hash(attributes)
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
# Builds the object from hash
|
|
180
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
181
|
+
# @return [Object] Returns the model itself
|
|
182
|
+
def build_from_hash(attributes)
|
|
183
|
+
return nil unless attributes.is_a?(Hash)
|
|
184
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
185
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
186
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
187
|
+
self.send("#{key}=", nil)
|
|
188
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
189
|
+
# check to ensure the input is an array given that the attribute
|
|
190
|
+
# is documented as an array but the input is not
|
|
191
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
192
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
193
|
+
end
|
|
194
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
195
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
196
|
+
end
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
self
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Deserializes the data based on type
|
|
203
|
+
# @param string type Data type
|
|
204
|
+
# @param string value Value to be deserialized
|
|
205
|
+
# @return [Object] Deserialized data
|
|
206
|
+
def _deserialize(type, value)
|
|
207
|
+
case type.to_sym
|
|
208
|
+
when :Time
|
|
209
|
+
Time.parse(value)
|
|
210
|
+
when :Date
|
|
211
|
+
Date.parse(value)
|
|
212
|
+
when :String
|
|
213
|
+
value.to_s
|
|
214
|
+
when :Integer
|
|
215
|
+
value.to_i
|
|
216
|
+
when :Float
|
|
217
|
+
value.to_f
|
|
218
|
+
when :Boolean
|
|
219
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
220
|
+
true
|
|
221
|
+
else
|
|
222
|
+
false
|
|
223
|
+
end
|
|
224
|
+
when :Object
|
|
225
|
+
# generic object (usually a Hash), return directly
|
|
226
|
+
value
|
|
227
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
228
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
229
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
230
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
231
|
+
k_type = Regexp.last_match[:k_type]
|
|
232
|
+
v_type = Regexp.last_match[:v_type]
|
|
233
|
+
{}.tap do |hash|
|
|
234
|
+
value.each do |k, v|
|
|
235
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
236
|
+
end
|
|
237
|
+
end
|
|
238
|
+
else # model
|
|
239
|
+
# models (e.g. Pet) or oneOf
|
|
240
|
+
klass = UltracartClient.const_get(type)
|
|
241
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
242
|
+
end
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Returns the string representation of the object
|
|
246
|
+
# @return [String] String presentation of the object
|
|
247
|
+
def to_s
|
|
248
|
+
to_hash.to_s
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
252
|
+
# @return [Hash] Returns the object in the form of hash
|
|
253
|
+
def to_body
|
|
254
|
+
to_hash
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
# Returns the object in the form of hash
|
|
258
|
+
# @return [Hash] Returns the object in the form of hash
|
|
259
|
+
def to_hash
|
|
260
|
+
hash = {}
|
|
261
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
262
|
+
value = self.send(attr)
|
|
263
|
+
if value.nil?
|
|
264
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
265
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
266
|
+
end
|
|
267
|
+
|
|
268
|
+
hash[param] = _to_hash(value)
|
|
269
|
+
end
|
|
270
|
+
hash
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
# Outputs non-array value in the form of hash
|
|
274
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
275
|
+
# @param [Object] value Any valid value
|
|
276
|
+
# @return [Hash] Returns the value in the form of hash
|
|
277
|
+
def _to_hash(value)
|
|
278
|
+
if value.is_a?(Array)
|
|
279
|
+
value.compact.map { |v| _to_hash(v) }
|
|
280
|
+
elsif value.is_a?(Hash)
|
|
281
|
+
{}.tap do |hash|
|
|
282
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
283
|
+
end
|
|
284
|
+
elsif value.respond_to? :to_hash
|
|
285
|
+
value.to_hash
|
|
286
|
+
else
|
|
287
|
+
value
|
|
288
|
+
end
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
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,12 +1219,18 @@ 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'
|
|
1222
1228
|
require 'ultracart_api/models/sfvb_smart_attribution'
|
|
1223
1229
|
require 'ultracart_api/models/sfvb_smart_attribution_platform'
|
|
1224
1230
|
require 'ultracart_api/models/sfvb_smart_attribution_request'
|
|
1231
|
+
require 'ultracart_api/models/sfvb_step_counts'
|
|
1232
|
+
require 'ultracart_api/models/sfvb_step_dispatch_log'
|
|
1233
|
+
require 'ultracart_api/models/sfvb_step_dispatch_logs_response'
|
|
1225
1234
|
require 'ultracart_api/models/sfvb_storefront'
|
|
1226
1235
|
require 'ultracart_api/models/sfvb_storefronts_response'
|
|
1227
1236
|
require 'ultracart_api/models/sfvb_template'
|
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,12 +1281,18 @@ 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
|
|
1284
1290
|
- docs/SfvbSmartAttribution.md
|
|
1285
1291
|
- docs/SfvbSmartAttributionPlatform.md
|
|
1286
1292
|
- docs/SfvbSmartAttributionRequest.md
|
|
1293
|
+
- docs/SfvbStepCounts.md
|
|
1294
|
+
- docs/SfvbStepDispatchLog.md
|
|
1295
|
+
- docs/SfvbStepDispatchLogsResponse.md
|
|
1287
1296
|
- docs/SfvbStorefront.md
|
|
1288
1297
|
- docs/SfvbStorefrontsResponse.md
|
|
1289
1298
|
- docs/SfvbTemplate.md
|
|
@@ -2590,6 +2599,7 @@ files:
|
|
|
2590
2599
|
- lib/ultracart_api/models/sfvb_not_found_hit.rb
|
|
2591
2600
|
- lib/ultracart_api/models/sfvb_not_found_page.rb
|
|
2592
2601
|
- lib/ultracart_api/models/sfvb_not_found_response.rb
|
|
2602
|
+
- lib/ultracart_api/models/sfvb_not_found_summary.rb
|
|
2593
2603
|
- lib/ultracart_api/models/sfvb_page_attribute.rb
|
|
2594
2604
|
- lib/ultracart_api/models/sfvb_page_attribute_update.rb
|
|
2595
2605
|
- lib/ultracart_api/models/sfvb_page_attribute_update_request.rb
|
|
@@ -2639,6 +2649,8 @@ files:
|
|
|
2639
2649
|
- lib/ultracart_api/models/sfvb_redirect_import_row.rb
|
|
2640
2650
|
- lib/ultracart_api/models/sfvb_redirect_import_row_result.rb
|
|
2641
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
|
|
2642
2654
|
- lib/ultracart_api/models/sfvb_redirect_resolve_response.rb
|
|
2643
2655
|
- lib/ultracart_api/models/sfvb_redirect_resolve_step.rb
|
|
2644
2656
|
- lib/ultracart_api/models/sfvb_redirect_response.rb
|
|
@@ -2671,12 +2683,18 @@ files:
|
|
|
2671
2683
|
- lib/ultracart_api/models/sfvb_site_attribute_update.rb
|
|
2672
2684
|
- lib/ultracart_api/models/sfvb_site_attribute_update_request.rb
|
|
2673
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
|
|
2674
2689
|
- lib/ultracart_api/models/sfvb_sitemap.rb
|
|
2675
2690
|
- lib/ultracart_api/models/sfvb_sitemap_file.rb
|
|
2676
2691
|
- lib/ultracart_api/models/sfvb_sitemaps_response.rb
|
|
2677
2692
|
- lib/ultracart_api/models/sfvb_smart_attribution.rb
|
|
2678
2693
|
- lib/ultracart_api/models/sfvb_smart_attribution_platform.rb
|
|
2679
2694
|
- lib/ultracart_api/models/sfvb_smart_attribution_request.rb
|
|
2695
|
+
- lib/ultracart_api/models/sfvb_step_counts.rb
|
|
2696
|
+
- lib/ultracart_api/models/sfvb_step_dispatch_log.rb
|
|
2697
|
+
- lib/ultracart_api/models/sfvb_step_dispatch_logs_response.rb
|
|
2680
2698
|
- lib/ultracart_api/models/sfvb_storefront.rb
|
|
2681
2699
|
- lib/ultracart_api/models/sfvb_storefronts_response.rb
|
|
2682
2700
|
- lib/ultracart_api/models/sfvb_template.rb
|