ultracart_api 4.1.232 → 4.1.234
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 +35 -2
- data/docs/SfvbApi.md +922 -34
- data/docs/SfvbApprovalCreateRequest.md +2 -0
- data/docs/SfvbApprovalParams.md +1 -1
- data/docs/SfvbCampaign.md +4 -0
- data/docs/SfvbCampaignWriteRequest.md +2 -0
- data/docs/SfvbCommsLookupOwner.md +28 -0
- data/docs/SfvbCommsLookupResponse.md +36 -0
- data/docs/SfvbCommsRulerValidateRequest.md +18 -0
- data/docs/SfvbCommsRulerValidateResponse.md +22 -0
- data/docs/SfvbCommsSequenceFolder.md +28 -0
- data/docs/SfvbCommsSequenceFolderResponse.md +22 -0
- data/docs/SfvbCommsSequenceFoldersResponse.md +18 -0
- data/docs/SfvbCommsStat.md +1 -1
- data/docs/SfvbCommsTemplateResponse.md +8 -2
- data/docs/SfvbCommsUnreferencedEmail.md +30 -0
- data/docs/SfvbCommsUnreferencedPostcard.md +24 -0
- data/docs/SfvbCommsUnreferencedResponse.md +32 -0
- data/docs/SfvbEmail.md +8 -0
- data/docs/SfvbFlow.md +4 -0
- data/docs/SfvbFlowBackfillRequest.md +24 -0
- data/docs/SfvbFlowBackfillResponse.md +38 -0
- data/docs/SfvbFlowWriteRequest.md +2 -0
- data/docs/SfvbPreviewTrackingHtmlRequest.md +20 -0
- data/docs/SfvbServerLog.md +1 -1
- data/docs/SfvbStepCounts.md +1 -1
- data/docs/SfvbTrackingHtmlRenderRequest.md +20 -0
- data/docs/SfvbTrackingHtmlRenderResponse.md +32 -0
- data/docs/SfvbTrackingProvider.md +2 -0
- data/lib/ultracart_api/api/sfvb_api.rb +1235 -31
- data/lib/ultracart_api/models/sfvb_approval_create_request.rb +12 -3
- data/lib/ultracart_api/models/sfvb_approval_params.rb +1 -1
- data/lib/ultracart_api/models/sfvb_campaign.rb +21 -1
- data/lib/ultracart_api/models/sfvb_campaign_write_request.rb +11 -1
- data/lib/ultracart_api/models/sfvb_comms_lookup_owner.rb +270 -0
- data/lib/ultracart_api/models/sfvb_comms_lookup_response.rb +311 -0
- data/lib/ultracart_api/models/sfvb_comms_ruler_validate_request.rb +220 -0
- data/lib/ultracart_api/models/sfvb_comms_ruler_validate_response.rb +242 -0
- data/lib/ultracart_api/models/sfvb_comms_sequence_folder.rb +270 -0
- data/lib/ultracart_api/models/sfvb_comms_sequence_folder_response.rb +243 -0
- data/lib/ultracart_api/models/sfvb_comms_sequence_folders_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_comms_stat.rb +1 -1
- data/lib/ultracart_api/models/sfvb_comms_template_response.rb +35 -5
- data/lib/ultracart_api/models/sfvb_comms_unreferenced_email.rb +280 -0
- data/lib/ultracart_api/models/sfvb_comms_unreferenced_postcard.rb +250 -0
- data/lib/ultracart_api/models/sfvb_comms_unreferenced_response.rb +296 -0
- data/lib/ultracart_api/models/sfvb_email.rb +41 -1
- data/lib/ultracart_api/models/sfvb_flow.rb +21 -1
- data/lib/ultracart_api/models/sfvb_flow_backfill_request.rb +250 -0
- data/lib/ultracart_api/models/sfvb_flow_backfill_response.rb +322 -0
- data/lib/ultracart_api/models/sfvb_flow_write_request.rb +11 -1
- data/lib/ultracart_api/models/sfvb_preview_tracking_html_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_server_log.rb +1 -1
- data/lib/ultracart_api/models/sfvb_step_counts.rb +1 -1
- data/lib/ultracart_api/models/sfvb_tracking_html_render_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_tracking_html_render_response.rb +328 -0
- data/lib/ultracart_api/models/sfvb_tracking_provider.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +15 -0
- metadata +32 -2
|
@@ -0,0 +1,296 @@
|
|
|
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 SfvbCommsUnreferencedResponse
|
|
18
|
+
# How many emails no step names.
|
|
19
|
+
attr_accessor :email_count
|
|
20
|
+
|
|
21
|
+
# Emails no step names, most recently changed first.
|
|
22
|
+
attr_accessor :emails
|
|
23
|
+
|
|
24
|
+
# How many emails the storefront has.
|
|
25
|
+
attr_accessor :emails_checked
|
|
26
|
+
|
|
27
|
+
# What the report means, in sentences.
|
|
28
|
+
attr_accessor :notes
|
|
29
|
+
|
|
30
|
+
# How many postcards no step names.
|
|
31
|
+
attr_accessor :postcard_count
|
|
32
|
+
|
|
33
|
+
# Postcards no step names, most recently changed first.
|
|
34
|
+
attr_accessor :postcards
|
|
35
|
+
|
|
36
|
+
# How many postcards the storefront has.
|
|
37
|
+
attr_accessor :postcards_checked
|
|
38
|
+
|
|
39
|
+
# How many sequences were read for the steps that name them.
|
|
40
|
+
attr_accessor :sequences_checked
|
|
41
|
+
|
|
42
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
|
+
def self.attribute_map
|
|
44
|
+
{
|
|
45
|
+
:'email_count' => :'email_count',
|
|
46
|
+
:'emails' => :'emails',
|
|
47
|
+
:'emails_checked' => :'emails_checked',
|
|
48
|
+
:'notes' => :'notes',
|
|
49
|
+
:'postcard_count' => :'postcard_count',
|
|
50
|
+
:'postcards' => :'postcards',
|
|
51
|
+
:'postcards_checked' => :'postcards_checked',
|
|
52
|
+
:'sequences_checked' => :'sequences_checked'
|
|
53
|
+
}
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
# Returns all the JSON keys this model knows about
|
|
57
|
+
def self.acceptable_attributes
|
|
58
|
+
attribute_map.values
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Attribute type mapping.
|
|
62
|
+
def self.openapi_types
|
|
63
|
+
{
|
|
64
|
+
:'email_count' => :'Integer',
|
|
65
|
+
:'emails' => :'Array<SfvbCommsUnreferencedEmail>',
|
|
66
|
+
:'emails_checked' => :'Integer',
|
|
67
|
+
:'notes' => :'Array<String>',
|
|
68
|
+
:'postcard_count' => :'Integer',
|
|
69
|
+
:'postcards' => :'Array<SfvbCommsUnreferencedPostcard>',
|
|
70
|
+
:'postcards_checked' => :'Integer',
|
|
71
|
+
:'sequences_checked' => :'Integer'
|
|
72
|
+
}
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
# List of attributes with nullable: true
|
|
76
|
+
def self.openapi_nullable
|
|
77
|
+
Set.new([
|
|
78
|
+
])
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
# Initializes the object
|
|
82
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
83
|
+
def initialize(attributes = {})
|
|
84
|
+
if (!attributes.is_a?(Hash))
|
|
85
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbCommsUnreferencedResponse` initialize method"
|
|
86
|
+
end
|
|
87
|
+
|
|
88
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
89
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
90
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
91
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbCommsUnreferencedResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
92
|
+
end
|
|
93
|
+
h[k.to_sym] = v
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if attributes.key?(:'email_count')
|
|
97
|
+
self.email_count = attributes[:'email_count']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
|
+
if attributes.key?(:'emails')
|
|
101
|
+
if (value = attributes[:'emails']).is_a?(Array)
|
|
102
|
+
self.emails = value
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'emails_checked')
|
|
107
|
+
self.emails_checked = attributes[:'emails_checked']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'notes')
|
|
111
|
+
if (value = attributes[:'notes']).is_a?(Array)
|
|
112
|
+
self.notes = value
|
|
113
|
+
end
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'postcard_count')
|
|
117
|
+
self.postcard_count = attributes[:'postcard_count']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
if attributes.key?(:'postcards')
|
|
121
|
+
if (value = attributes[:'postcards']).is_a?(Array)
|
|
122
|
+
self.postcards = value
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
if attributes.key?(:'postcards_checked')
|
|
127
|
+
self.postcards_checked = attributes[:'postcards_checked']
|
|
128
|
+
end
|
|
129
|
+
|
|
130
|
+
if attributes.key?(:'sequences_checked')
|
|
131
|
+
self.sequences_checked = attributes[:'sequences_checked']
|
|
132
|
+
end
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
136
|
+
# @return Array for valid properties with the reasons
|
|
137
|
+
def list_invalid_properties
|
|
138
|
+
invalid_properties = Array.new
|
|
139
|
+
invalid_properties
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# Check to see if the all the properties in the model are valid
|
|
143
|
+
# @return true if the model is valid
|
|
144
|
+
def valid?
|
|
145
|
+
true
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
# Checks equality by comparing each attribute.
|
|
149
|
+
# @param [Object] Object to be compared
|
|
150
|
+
def ==(o)
|
|
151
|
+
return true if self.equal?(o)
|
|
152
|
+
self.class == o.class &&
|
|
153
|
+
email_count == o.email_count &&
|
|
154
|
+
emails == o.emails &&
|
|
155
|
+
emails_checked == o.emails_checked &&
|
|
156
|
+
notes == o.notes &&
|
|
157
|
+
postcard_count == o.postcard_count &&
|
|
158
|
+
postcards == o.postcards &&
|
|
159
|
+
postcards_checked == o.postcards_checked &&
|
|
160
|
+
sequences_checked == o.sequences_checked
|
|
161
|
+
end
|
|
162
|
+
|
|
163
|
+
# @see the `==` method
|
|
164
|
+
# @param [Object] Object to be compared
|
|
165
|
+
def eql?(o)
|
|
166
|
+
self == o
|
|
167
|
+
end
|
|
168
|
+
|
|
169
|
+
# Calculates hash code according to all attributes.
|
|
170
|
+
# @return [Integer] Hash code
|
|
171
|
+
def hash
|
|
172
|
+
[email_count, emails, emails_checked, notes, postcard_count, postcards, postcards_checked, sequences_checked].hash
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
# Builds the object from hash
|
|
176
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
177
|
+
# @return [Object] Returns the model itself
|
|
178
|
+
def self.build_from_hash(attributes)
|
|
179
|
+
new.build_from_hash(attributes)
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# Builds the object from hash
|
|
183
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
184
|
+
# @return [Object] Returns the model itself
|
|
185
|
+
def build_from_hash(attributes)
|
|
186
|
+
return nil unless attributes.is_a?(Hash)
|
|
187
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
188
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
189
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
190
|
+
self.send("#{key}=", nil)
|
|
191
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
192
|
+
# check to ensure the input is an array given that the attribute
|
|
193
|
+
# is documented as an array but the input is not
|
|
194
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
195
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
196
|
+
end
|
|
197
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
198
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
199
|
+
end
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
self
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
# Deserializes the data based on type
|
|
206
|
+
# @param string type Data type
|
|
207
|
+
# @param string value Value to be deserialized
|
|
208
|
+
# @return [Object] Deserialized data
|
|
209
|
+
def _deserialize(type, value)
|
|
210
|
+
case type.to_sym
|
|
211
|
+
when :Time
|
|
212
|
+
Time.parse(value)
|
|
213
|
+
when :Date
|
|
214
|
+
Date.parse(value)
|
|
215
|
+
when :String
|
|
216
|
+
value.to_s
|
|
217
|
+
when :Integer
|
|
218
|
+
value.to_i
|
|
219
|
+
when :Float
|
|
220
|
+
value.to_f
|
|
221
|
+
when :Boolean
|
|
222
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
223
|
+
true
|
|
224
|
+
else
|
|
225
|
+
false
|
|
226
|
+
end
|
|
227
|
+
when :Object
|
|
228
|
+
# generic object (usually a Hash), return directly
|
|
229
|
+
value
|
|
230
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
231
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
232
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
233
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
234
|
+
k_type = Regexp.last_match[:k_type]
|
|
235
|
+
v_type = Regexp.last_match[:v_type]
|
|
236
|
+
{}.tap do |hash|
|
|
237
|
+
value.each do |k, v|
|
|
238
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
239
|
+
end
|
|
240
|
+
end
|
|
241
|
+
else # model
|
|
242
|
+
# models (e.g. Pet) or oneOf
|
|
243
|
+
klass = UltracartClient.const_get(type)
|
|
244
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
245
|
+
end
|
|
246
|
+
end
|
|
247
|
+
|
|
248
|
+
# Returns the string representation of the object
|
|
249
|
+
# @return [String] String presentation of the object
|
|
250
|
+
def to_s
|
|
251
|
+
to_hash.to_s
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
255
|
+
# @return [Hash] Returns the object in the form of hash
|
|
256
|
+
def to_body
|
|
257
|
+
to_hash
|
|
258
|
+
end
|
|
259
|
+
|
|
260
|
+
# Returns the object in the form of hash
|
|
261
|
+
# @return [Hash] Returns the object in the form of hash
|
|
262
|
+
def to_hash
|
|
263
|
+
hash = {}
|
|
264
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
265
|
+
value = self.send(attr)
|
|
266
|
+
if value.nil?
|
|
267
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
268
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
hash[param] = _to_hash(value)
|
|
272
|
+
end
|
|
273
|
+
hash
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
# Outputs non-array value in the form of hash
|
|
277
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
278
|
+
# @param [Object] value Any valid value
|
|
279
|
+
# @return [Hash] Returns the value in the form of hash
|
|
280
|
+
def _to_hash(value)
|
|
281
|
+
if value.is_a?(Array)
|
|
282
|
+
value.compact.map { |v| _to_hash(v) }
|
|
283
|
+
elsif value.is_a?(Hash)
|
|
284
|
+
{}.tap do |hash|
|
|
285
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
286
|
+
end
|
|
287
|
+
elsif value.respond_to? :to_hash
|
|
288
|
+
value.to_hash
|
|
289
|
+
else
|
|
290
|
+
value
|
|
291
|
+
end
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
end
|
|
@@ -18,6 +18,9 @@ module UltracartClient
|
|
|
18
18
|
# When the email container was last changed (ISO 8601, UTC).
|
|
19
19
|
attr_accessor :container_last_modified_dts
|
|
20
20
|
|
|
21
|
+
# The Velocity template the email body renders inside, as stored, such as templates/template_email.vm. It is looked up in the storefront's active theme.
|
|
22
|
+
attr_accessor :email_template_vm_path
|
|
23
|
+
|
|
21
24
|
# The email uuid. The same uuid the email container (owner type email) and the email render take.
|
|
22
25
|
attr_accessor :email_uuid
|
|
23
26
|
|
|
@@ -48,6 +51,15 @@ module UltracartClient
|
|
|
48
51
|
# True when UltraCart suspended the email for spam. Edits are refused until the merchant resolves it with UltraCart support.
|
|
49
52
|
attr_accessor :suspended_for_spam
|
|
50
53
|
|
|
54
|
+
# True when the file at template_path exists. False means the email can't render.
|
|
55
|
+
attr_accessor :template_exists
|
|
56
|
+
|
|
57
|
+
# Why there is no template file, or null when there is one.
|
|
58
|
+
attr_accessor :template_note
|
|
59
|
+
|
|
60
|
+
# The theme file that template is, as the render finds it. Read it with the files endpoints, whose read also reports valid and velocity_errors. Null when it couldn't be worked out, with template_note saying why.
|
|
61
|
+
attr_accessor :template_path
|
|
62
|
+
|
|
51
63
|
# True for a transactional email, which skips the marketing footer rules.
|
|
52
64
|
attr_accessor :transactional
|
|
53
65
|
|
|
@@ -58,6 +70,7 @@ module UltracartClient
|
|
|
58
70
|
def self.attribute_map
|
|
59
71
|
{
|
|
60
72
|
:'container_last_modified_dts' => :'container_last_modified_dts',
|
|
73
|
+
:'email_template_vm_path' => :'email_template_vm_path',
|
|
61
74
|
:'email_uuid' => :'email_uuid',
|
|
62
75
|
:'hash_sha256' => :'hash_sha256',
|
|
63
76
|
:'live' => :'live',
|
|
@@ -68,6 +81,9 @@ module UltracartClient
|
|
|
68
81
|
:'requires_review' => :'requires_review',
|
|
69
82
|
:'subject' => :'subject',
|
|
70
83
|
:'suspended_for_spam' => :'suspended_for_spam',
|
|
84
|
+
:'template_exists' => :'template_exists',
|
|
85
|
+
:'template_note' => :'template_note',
|
|
86
|
+
:'template_path' => :'template_path',
|
|
71
87
|
:'transactional' => :'transactional',
|
|
72
88
|
:'version' => :'version'
|
|
73
89
|
}
|
|
@@ -82,6 +98,7 @@ module UltracartClient
|
|
|
82
98
|
def self.openapi_types
|
|
83
99
|
{
|
|
84
100
|
:'container_last_modified_dts' => :'String',
|
|
101
|
+
:'email_template_vm_path' => :'String',
|
|
85
102
|
:'email_uuid' => :'String',
|
|
86
103
|
:'hash_sha256' => :'String',
|
|
87
104
|
:'live' => :'Boolean',
|
|
@@ -92,6 +109,9 @@ module UltracartClient
|
|
|
92
109
|
:'requires_review' => :'Boolean',
|
|
93
110
|
:'subject' => :'String',
|
|
94
111
|
:'suspended_for_spam' => :'Boolean',
|
|
112
|
+
:'template_exists' => :'Boolean',
|
|
113
|
+
:'template_note' => :'String',
|
|
114
|
+
:'template_path' => :'String',
|
|
95
115
|
:'transactional' => :'Boolean',
|
|
96
116
|
:'version' => :'Integer'
|
|
97
117
|
}
|
|
@@ -122,6 +142,10 @@ module UltracartClient
|
|
|
122
142
|
self.container_last_modified_dts = attributes[:'container_last_modified_dts']
|
|
123
143
|
end
|
|
124
144
|
|
|
145
|
+
if attributes.key?(:'email_template_vm_path')
|
|
146
|
+
self.email_template_vm_path = attributes[:'email_template_vm_path']
|
|
147
|
+
end
|
|
148
|
+
|
|
125
149
|
if attributes.key?(:'email_uuid')
|
|
126
150
|
self.email_uuid = attributes[:'email_uuid']
|
|
127
151
|
end
|
|
@@ -164,6 +188,18 @@ module UltracartClient
|
|
|
164
188
|
self.suspended_for_spam = attributes[:'suspended_for_spam']
|
|
165
189
|
end
|
|
166
190
|
|
|
191
|
+
if attributes.key?(:'template_exists')
|
|
192
|
+
self.template_exists = attributes[:'template_exists']
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
if attributes.key?(:'template_note')
|
|
196
|
+
self.template_note = attributes[:'template_note']
|
|
197
|
+
end
|
|
198
|
+
|
|
199
|
+
if attributes.key?(:'template_path')
|
|
200
|
+
self.template_path = attributes[:'template_path']
|
|
201
|
+
end
|
|
202
|
+
|
|
167
203
|
if attributes.key?(:'transactional')
|
|
168
204
|
self.transactional = attributes[:'transactional']
|
|
169
205
|
end
|
|
@@ -192,6 +228,7 @@ module UltracartClient
|
|
|
192
228
|
return true if self.equal?(o)
|
|
193
229
|
self.class == o.class &&
|
|
194
230
|
container_last_modified_dts == o.container_last_modified_dts &&
|
|
231
|
+
email_template_vm_path == o.email_template_vm_path &&
|
|
195
232
|
email_uuid == o.email_uuid &&
|
|
196
233
|
hash_sha256 == o.hash_sha256 &&
|
|
197
234
|
live == o.live &&
|
|
@@ -202,6 +239,9 @@ module UltracartClient
|
|
|
202
239
|
requires_review == o.requires_review &&
|
|
203
240
|
subject == o.subject &&
|
|
204
241
|
suspended_for_spam == o.suspended_for_spam &&
|
|
242
|
+
template_exists == o.template_exists &&
|
|
243
|
+
template_note == o.template_note &&
|
|
244
|
+
template_path == o.template_path &&
|
|
205
245
|
transactional == o.transactional &&
|
|
206
246
|
version == o.version
|
|
207
247
|
end
|
|
@@ -215,7 +255,7 @@ module UltracartClient
|
|
|
215
255
|
# Calculates hash code according to all attributes.
|
|
216
256
|
# @return [Integer] Hash code
|
|
217
257
|
def hash
|
|
218
|
-
[container_last_modified_dts, email_uuid, hash_sha256, live, notes, pending_review, preview_text, rejected, requires_review, subject, suspended_for_spam, transactional, version].hash
|
|
258
|
+
[container_last_modified_dts, email_template_vm_path, email_uuid, hash_sha256, live, notes, pending_review, preview_text, rejected, requires_review, subject, suspended_for_spam, template_exists, template_note, template_path, transactional, version].hash
|
|
219
259
|
end
|
|
220
260
|
|
|
221
261
|
# Builds the object from hash
|
|
@@ -39,6 +39,12 @@ module UltracartClient
|
|
|
39
39
|
# The flow uuid.
|
|
40
40
|
attr_accessor :flow_uuid
|
|
41
41
|
|
|
42
|
+
# That folder's name.
|
|
43
|
+
attr_accessor :folder_name
|
|
44
|
+
|
|
45
|
+
# The flow folder it is filed in, or none.
|
|
46
|
+
attr_accessor :folder_uuid
|
|
47
|
+
|
|
42
48
|
# Send this as If-Match when changing, archiving or turning the flow on or off.
|
|
43
49
|
attr_accessor :hash_sha256
|
|
44
50
|
|
|
@@ -98,6 +104,8 @@ module UltracartClient
|
|
|
98
104
|
:'end_once_customer_purchases' => :'end_once_customer_purchases',
|
|
99
105
|
:'end_once_customer_purchases_anywhere' => :'end_once_customer_purchases_anywhere',
|
|
100
106
|
:'flow_uuid' => :'flow_uuid',
|
|
107
|
+
:'folder_name' => :'folder_name',
|
|
108
|
+
:'folder_uuid' => :'folder_uuid',
|
|
101
109
|
:'hash_sha256' => :'hash_sha256',
|
|
102
110
|
:'live' => :'live',
|
|
103
111
|
:'name' => :'name',
|
|
@@ -133,6 +141,8 @@ module UltracartClient
|
|
|
133
141
|
:'end_once_customer_purchases' => :'Boolean',
|
|
134
142
|
:'end_once_customer_purchases_anywhere' => :'Boolean',
|
|
135
143
|
:'flow_uuid' => :'String',
|
|
144
|
+
:'folder_name' => :'String',
|
|
145
|
+
:'folder_uuid' => :'String',
|
|
136
146
|
:'hash_sha256' => :'String',
|
|
137
147
|
:'live' => :'Boolean',
|
|
138
148
|
:'name' => :'String',
|
|
@@ -207,6 +217,14 @@ module UltracartClient
|
|
|
207
217
|
self.flow_uuid = attributes[:'flow_uuid']
|
|
208
218
|
end
|
|
209
219
|
|
|
220
|
+
if attributes.key?(:'folder_name')
|
|
221
|
+
self.folder_name = attributes[:'folder_name']
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
if attributes.key?(:'folder_uuid')
|
|
225
|
+
self.folder_uuid = attributes[:'folder_uuid']
|
|
226
|
+
end
|
|
227
|
+
|
|
210
228
|
if attributes.key?(:'hash_sha256')
|
|
211
229
|
self.hash_sha256 = attributes[:'hash_sha256']
|
|
212
230
|
end
|
|
@@ -302,6 +320,8 @@ module UltracartClient
|
|
|
302
320
|
end_once_customer_purchases == o.end_once_customer_purchases &&
|
|
303
321
|
end_once_customer_purchases_anywhere == o.end_once_customer_purchases_anywhere &&
|
|
304
322
|
flow_uuid == o.flow_uuid &&
|
|
323
|
+
folder_name == o.folder_name &&
|
|
324
|
+
folder_uuid == o.folder_uuid &&
|
|
305
325
|
hash_sha256 == o.hash_sha256 &&
|
|
306
326
|
live == o.live &&
|
|
307
327
|
name == o.name &&
|
|
@@ -329,7 +349,7 @@ module UltracartClient
|
|
|
329
349
|
# Calculates hash code according to all attributes.
|
|
330
350
|
# @return [Integer] Hash code
|
|
331
351
|
def hash
|
|
332
|
-
[allow_multiple_concurrent_enrollments, communication_sequence_uuid, created_dts, deleted, emails, end_once_customer_purchases, end_once_customer_purchases_anywhere, flow_uuid, hash_sha256, live, name, notes, postcards, reentry_delay_days, reentry_policy, sending_domain_uuid, sending_name, sending_user, sms_phone_number, status, status_dts, trigger_parameter, trigger_parameter_name, trigger_type].hash
|
|
352
|
+
[allow_multiple_concurrent_enrollments, communication_sequence_uuid, created_dts, deleted, emails, end_once_customer_purchases, end_once_customer_purchases_anywhere, flow_uuid, folder_name, folder_uuid, hash_sha256, live, name, notes, postcards, reentry_delay_days, reentry_policy, sending_domain_uuid, sending_name, sending_user, sms_phone_number, status, status_dts, trigger_parameter, trigger_parameter_name, trigger_type].hash
|
|
333
353
|
end
|
|
334
354
|
|
|
335
355
|
# Builds the object from hash
|