ultracart_api 4.1.219 → 4.1.220
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 +10 -3
- data/docs/SfvbApi.md +124 -9
- data/docs/SfvbApprovalParams.md +8 -2
- data/docs/SfvbCodeLibraryEmail.md +28 -0
- data/docs/SfvbCodeLibraryEmailsResponse.md +20 -0
- data/docs/SfvbSequenceStepCreateRequest.md +11 -3
- data/docs/SfvbSequenceStepCreateResponse.md +14 -0
- data/docs/SfvbSequenceStepMoveRequest.md +24 -0
- data/docs/SfvbSequenceStepMoveResponse.md +20 -0
- data/docs/StorefrontApi.md +2 -0
- data/lib/ultracart_api/api/sfvb_api.rb +175 -8
- data/lib/ultracart_api/api/storefront_api.rb +2 -0
- data/lib/ultracart_api/models/sfvb_approval_params.rb +33 -3
- data/lib/ultracart_api/models/sfvb_code_library_email.rb +270 -0
- data/lib/ultracart_api/models/sfvb_code_library_emails_response.rb +232 -0
- data/lib/ultracart_api/models/sfvb_sequence_step_create_request.rb +44 -4
- data/lib/ultracart_api/models/sfvb_sequence_step_create_response.rb +77 -1
- data/lib/ultracart_api/models/sfvb_sequence_step_move_request.rb +250 -0
- data/lib/ultracart_api/models/sfvb_sequence_step_move_response.rb +231 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
|
@@ -15,12 +15,33 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module UltracartClient
|
|
17
17
|
class SfvbSequenceStepCreateResponse
|
|
18
|
+
# A post_card step's back, the container with owner type postcardback and this owner id.
|
|
19
|
+
attr_accessor :back_container_uuid
|
|
20
|
+
|
|
18
21
|
# The new email's uuid. Its body is the email container with this owner id.
|
|
19
22
|
attr_accessor :email_uuid
|
|
20
23
|
|
|
24
|
+
# A post_card step's front, the container with owner type postcardfront and this owner id.
|
|
25
|
+
attr_accessor :front_container_uuid
|
|
26
|
+
|
|
27
|
+
# The library item's files whose path already held a file, which was kept, not replaced.
|
|
28
|
+
attr_accessor :library_files_kept
|
|
29
|
+
|
|
30
|
+
# The library item's files that weren't written because they aren't a PNG, JPEG or GIF image whose bytes match its name. Only those images are copied from a library item.
|
|
31
|
+
attr_accessor :library_files_skipped
|
|
32
|
+
|
|
33
|
+
# Storefront file paths the library item's files were written to. A file already at its path is kept as it is and listed in library_files_kept instead.
|
|
34
|
+
attr_accessor :library_files_written
|
|
35
|
+
|
|
36
|
+
# The code library email item the new email started from (#1589), when one was given.
|
|
37
|
+
attr_accessor :library_item_oid
|
|
38
|
+
|
|
21
39
|
# What to do next, such as writing the body, and customers already waiting on the step before it.
|
|
22
40
|
attr_accessor :notes
|
|
23
41
|
|
|
42
|
+
# A post_card step's new postcard (#1644).
|
|
43
|
+
attr_accessor :postcard_uuid
|
|
44
|
+
|
|
24
45
|
# True when the new email must pass content review before it sends.
|
|
25
46
|
attr_accessor :requires_review
|
|
26
47
|
|
|
@@ -29,8 +50,15 @@ module UltracartClient
|
|
|
29
50
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
30
51
|
def self.attribute_map
|
|
31
52
|
{
|
|
53
|
+
:'back_container_uuid' => :'back_container_uuid',
|
|
32
54
|
:'email_uuid' => :'email_uuid',
|
|
55
|
+
:'front_container_uuid' => :'front_container_uuid',
|
|
56
|
+
:'library_files_kept' => :'library_files_kept',
|
|
57
|
+
:'library_files_skipped' => :'library_files_skipped',
|
|
58
|
+
:'library_files_written' => :'library_files_written',
|
|
59
|
+
:'library_item_oid' => :'library_item_oid',
|
|
33
60
|
:'notes' => :'notes',
|
|
61
|
+
:'postcard_uuid' => :'postcard_uuid',
|
|
34
62
|
:'requires_review' => :'requires_review',
|
|
35
63
|
:'step' => :'step'
|
|
36
64
|
}
|
|
@@ -44,8 +72,15 @@ module UltracartClient
|
|
|
44
72
|
# Attribute type mapping.
|
|
45
73
|
def self.openapi_types
|
|
46
74
|
{
|
|
75
|
+
:'back_container_uuid' => :'String',
|
|
47
76
|
:'email_uuid' => :'String',
|
|
77
|
+
:'front_container_uuid' => :'String',
|
|
78
|
+
:'library_files_kept' => :'Array<String>',
|
|
79
|
+
:'library_files_skipped' => :'Array<String>',
|
|
80
|
+
:'library_files_written' => :'Array<String>',
|
|
81
|
+
:'library_item_oid' => :'Integer',
|
|
48
82
|
:'notes' => :'Array<String>',
|
|
83
|
+
:'postcard_uuid' => :'String',
|
|
49
84
|
:'requires_review' => :'Boolean',
|
|
50
85
|
:'step' => :'SfvbSequenceStep'
|
|
51
86
|
}
|
|
@@ -72,16 +107,50 @@ module UltracartClient
|
|
|
72
107
|
h[k.to_sym] = v
|
|
73
108
|
}
|
|
74
109
|
|
|
110
|
+
if attributes.key?(:'back_container_uuid')
|
|
111
|
+
self.back_container_uuid = attributes[:'back_container_uuid']
|
|
112
|
+
end
|
|
113
|
+
|
|
75
114
|
if attributes.key?(:'email_uuid')
|
|
76
115
|
self.email_uuid = attributes[:'email_uuid']
|
|
77
116
|
end
|
|
78
117
|
|
|
118
|
+
if attributes.key?(:'front_container_uuid')
|
|
119
|
+
self.front_container_uuid = attributes[:'front_container_uuid']
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'library_files_kept')
|
|
123
|
+
if (value = attributes[:'library_files_kept']).is_a?(Array)
|
|
124
|
+
self.library_files_kept = value
|
|
125
|
+
end
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
if attributes.key?(:'library_files_skipped')
|
|
129
|
+
if (value = attributes[:'library_files_skipped']).is_a?(Array)
|
|
130
|
+
self.library_files_skipped = value
|
|
131
|
+
end
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
if attributes.key?(:'library_files_written')
|
|
135
|
+
if (value = attributes[:'library_files_written']).is_a?(Array)
|
|
136
|
+
self.library_files_written = value
|
|
137
|
+
end
|
|
138
|
+
end
|
|
139
|
+
|
|
140
|
+
if attributes.key?(:'library_item_oid')
|
|
141
|
+
self.library_item_oid = attributes[:'library_item_oid']
|
|
142
|
+
end
|
|
143
|
+
|
|
79
144
|
if attributes.key?(:'notes')
|
|
80
145
|
if (value = attributes[:'notes']).is_a?(Array)
|
|
81
146
|
self.notes = value
|
|
82
147
|
end
|
|
83
148
|
end
|
|
84
149
|
|
|
150
|
+
if attributes.key?(:'postcard_uuid')
|
|
151
|
+
self.postcard_uuid = attributes[:'postcard_uuid']
|
|
152
|
+
end
|
|
153
|
+
|
|
85
154
|
if attributes.key?(:'requires_review')
|
|
86
155
|
self.requires_review = attributes[:'requires_review']
|
|
87
156
|
end
|
|
@@ -109,8 +178,15 @@ module UltracartClient
|
|
|
109
178
|
def ==(o)
|
|
110
179
|
return true if self.equal?(o)
|
|
111
180
|
self.class == o.class &&
|
|
181
|
+
back_container_uuid == o.back_container_uuid &&
|
|
112
182
|
email_uuid == o.email_uuid &&
|
|
183
|
+
front_container_uuid == o.front_container_uuid &&
|
|
184
|
+
library_files_kept == o.library_files_kept &&
|
|
185
|
+
library_files_skipped == o.library_files_skipped &&
|
|
186
|
+
library_files_written == o.library_files_written &&
|
|
187
|
+
library_item_oid == o.library_item_oid &&
|
|
113
188
|
notes == o.notes &&
|
|
189
|
+
postcard_uuid == o.postcard_uuid &&
|
|
114
190
|
requires_review == o.requires_review &&
|
|
115
191
|
step == o.step
|
|
116
192
|
end
|
|
@@ -124,7 +200,7 @@ module UltracartClient
|
|
|
124
200
|
# Calculates hash code according to all attributes.
|
|
125
201
|
# @return [Integer] Hash code
|
|
126
202
|
def hash
|
|
127
|
-
[email_uuid, notes, requires_review, step].hash
|
|
203
|
+
[back_container_uuid, email_uuid, front_container_uuid, library_files_kept, library_files_skipped, library_files_written, library_item_oid, notes, postcard_uuid, requires_review, step].hash
|
|
128
204
|
end
|
|
129
205
|
|
|
130
206
|
# Builds the object from hash
|
|
@@ -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 SfvbSequenceStepMoveRequest
|
|
18
|
+
# The step it moves after, in that step's list. The begin step puts it first in the sequence. Not an end, continue or merge step.
|
|
19
|
+
attr_accessor :after_step_uuid
|
|
20
|
+
|
|
21
|
+
# The hash_sha256 of after_step_uuid, or of branch_step_uuid, from the last read. Required; 412 when stale.
|
|
22
|
+
attr_accessor :anchor_hash_sha256
|
|
23
|
+
|
|
24
|
+
# A condition, split or inboxgeek step. With side, the step moves to the start of that side.
|
|
25
|
+
attr_accessor :branch_step_uuid
|
|
26
|
+
|
|
27
|
+
# With branch_step_uuid, the side's label from the sequence read. yes or no for a condition, left or right for a split or inboxgeek step.
|
|
28
|
+
attr_accessor :side
|
|
29
|
+
|
|
30
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
|
+
def self.attribute_map
|
|
32
|
+
{
|
|
33
|
+
:'after_step_uuid' => :'after_step_uuid',
|
|
34
|
+
:'anchor_hash_sha256' => :'anchor_hash_sha256',
|
|
35
|
+
:'branch_step_uuid' => :'branch_step_uuid',
|
|
36
|
+
:'side' => :'side'
|
|
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
|
+
:'after_step_uuid' => :'String',
|
|
49
|
+
:'anchor_hash_sha256' => :'String',
|
|
50
|
+
:'branch_step_uuid' => :'String',
|
|
51
|
+
:'side' => :'String'
|
|
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::SfvbSequenceStepMoveRequest` 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::SfvbSequenceStepMoveRequest`. 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?(:'after_step_uuid')
|
|
77
|
+
self.after_step_uuid = attributes[:'after_step_uuid']
|
|
78
|
+
end
|
|
79
|
+
|
|
80
|
+
if attributes.key?(:'anchor_hash_sha256')
|
|
81
|
+
self.anchor_hash_sha256 = attributes[:'anchor_hash_sha256']
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
if attributes.key?(:'branch_step_uuid')
|
|
85
|
+
self.branch_step_uuid = attributes[:'branch_step_uuid']
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
if attributes.key?(:'side')
|
|
89
|
+
self.side = attributes[:'side']
|
|
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
|
+
after_step_uuid == o.after_step_uuid &&
|
|
112
|
+
anchor_hash_sha256 == o.anchor_hash_sha256 &&
|
|
113
|
+
branch_step_uuid == o.branch_step_uuid &&
|
|
114
|
+
side == o.side
|
|
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
|
+
[after_step_uuid, anchor_hash_sha256, branch_step_uuid, side].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
|
|
@@ -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 SfvbSequenceStepMoveResponse
|
|
18
|
+
# Where the step was and where it is now, and anyone waiting on the steps around it.
|
|
19
|
+
attr_accessor :notes
|
|
20
|
+
|
|
21
|
+
attr_accessor :step
|
|
22
|
+
|
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
24
|
+
def self.attribute_map
|
|
25
|
+
{
|
|
26
|
+
:'notes' => :'notes',
|
|
27
|
+
:'step' => :'step'
|
|
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
|
+
:'notes' => :'Array<String>',
|
|
40
|
+
:'step' => :'SfvbSequenceStep'
|
|
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::SfvbSequenceStepMoveResponse` 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::SfvbSequenceStepMoveResponse`. 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?(:'notes')
|
|
66
|
+
if (value = attributes[:'notes']).is_a?(Array)
|
|
67
|
+
self.notes = value
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
if attributes.key?(:'step')
|
|
72
|
+
self.step = attributes[:'step']
|
|
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
|
+
notes == o.notes &&
|
|
95
|
+
step == o.step
|
|
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
|
+
[notes, step].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
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1001,6 +1001,8 @@ require 'ultracart_api/models/sfvb_campaign'
|
|
|
1001
1001
|
require 'ultracart_api/models/sfvb_campaign_membership'
|
|
1002
1002
|
require 'ultracart_api/models/sfvb_campaign_write_request'
|
|
1003
1003
|
require 'ultracart_api/models/sfvb_campaigns_response'
|
|
1004
|
+
require 'ultracart_api/models/sfvb_code_library_email'
|
|
1005
|
+
require 'ultracart_api/models/sfvb_code_library_emails_response'
|
|
1004
1006
|
require 'ultracart_api/models/sfvb_comms_dns_record'
|
|
1005
1007
|
require 'ultracart_api/models/sfvb_comms_email'
|
|
1006
1008
|
require 'ultracart_api/models/sfvb_comms_list'
|
|
@@ -1196,6 +1198,8 @@ require 'ultracart_api/models/sfvb_sequence_step'
|
|
|
1196
1198
|
require 'ultracart_api/models/sfvb_sequence_step_create_request'
|
|
1197
1199
|
require 'ultracart_api/models/sfvb_sequence_step_create_response'
|
|
1198
1200
|
require 'ultracart_api/models/sfvb_sequence_step_delete_response'
|
|
1201
|
+
require 'ultracart_api/models/sfvb_sequence_step_move_request'
|
|
1202
|
+
require 'ultracart_api/models/sfvb_sequence_step_move_response'
|
|
1199
1203
|
require 'ultracart_api/models/sfvb_sequence_step_update_request'
|
|
1200
1204
|
require 'ultracart_api/models/sfvb_sequence_step_update_response'
|
|
1201
1205
|
require 'ultracart_api/models/sfvb_server_log'
|
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.220
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-11-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -1063,6 +1063,8 @@ files:
|
|
|
1063
1063
|
- docs/SfvbCampaignMembership.md
|
|
1064
1064
|
- docs/SfvbCampaignWriteRequest.md
|
|
1065
1065
|
- docs/SfvbCampaignsResponse.md
|
|
1066
|
+
- docs/SfvbCodeLibraryEmail.md
|
|
1067
|
+
- docs/SfvbCodeLibraryEmailsResponse.md
|
|
1066
1068
|
- docs/SfvbCommsDnsRecord.md
|
|
1067
1069
|
- docs/SfvbCommsEmail.md
|
|
1068
1070
|
- docs/SfvbCommsList.md
|
|
@@ -1258,6 +1260,8 @@ files:
|
|
|
1258
1260
|
- docs/SfvbSequenceStepCreateRequest.md
|
|
1259
1261
|
- docs/SfvbSequenceStepCreateResponse.md
|
|
1260
1262
|
- docs/SfvbSequenceStepDeleteResponse.md
|
|
1263
|
+
- docs/SfvbSequenceStepMoveRequest.md
|
|
1264
|
+
- docs/SfvbSequenceStepMoveResponse.md
|
|
1261
1265
|
- docs/SfvbSequenceStepUpdateRequest.md
|
|
1262
1266
|
- docs/SfvbSequenceStepUpdateResponse.md
|
|
1263
1267
|
- docs/SfvbServerLog.md
|
|
@@ -2419,6 +2423,8 @@ files:
|
|
|
2419
2423
|
- lib/ultracart_api/models/sfvb_campaign_membership.rb
|
|
2420
2424
|
- lib/ultracart_api/models/sfvb_campaign_write_request.rb
|
|
2421
2425
|
- lib/ultracart_api/models/sfvb_campaigns_response.rb
|
|
2426
|
+
- lib/ultracart_api/models/sfvb_code_library_email.rb
|
|
2427
|
+
- lib/ultracart_api/models/sfvb_code_library_emails_response.rb
|
|
2422
2428
|
- lib/ultracart_api/models/sfvb_comms_dns_record.rb
|
|
2423
2429
|
- lib/ultracart_api/models/sfvb_comms_email.rb
|
|
2424
2430
|
- lib/ultracart_api/models/sfvb_comms_list.rb
|
|
@@ -2614,6 +2620,8 @@ files:
|
|
|
2614
2620
|
- lib/ultracart_api/models/sfvb_sequence_step_create_request.rb
|
|
2615
2621
|
- lib/ultracart_api/models/sfvb_sequence_step_create_response.rb
|
|
2616
2622
|
- lib/ultracart_api/models/sfvb_sequence_step_delete_response.rb
|
|
2623
|
+
- lib/ultracart_api/models/sfvb_sequence_step_move_request.rb
|
|
2624
|
+
- lib/ultracart_api/models/sfvb_sequence_step_move_response.rb
|
|
2617
2625
|
- lib/ultracart_api/models/sfvb_sequence_step_update_request.rb
|
|
2618
2626
|
- lib/ultracart_api/models/sfvb_sequence_step_update_response.rb
|
|
2619
2627
|
- lib/ultracart_api/models/sfvb_server_log.rb
|