ultracart_api 4.1.229 → 4.1.230

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.
@@ -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 SfvbCommsListWriteRequest
18
+ # A list and segment folder on this storefront, or an empty string for none.
19
+ attr_accessor :folder_uuid
20
+
21
+ # The list name, 1 to 250 characters. Required to create.
22
+ attr_accessor :name
23
+
24
+ # Plain text subscribers see for a public list, up to 100 characters, or an empty string for none.
25
+ attr_accessor :public_description
26
+
27
+ # True to let subscribers choose this list on the storefront's email preferences page. Defaults to false.
28
+ attr_accessor :public_list
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'folder_uuid' => :'folder_uuid',
34
+ :'name' => :'name',
35
+ :'public_description' => :'public_description',
36
+ :'public_list' => :'public_list'
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
+ :'folder_uuid' => :'String',
49
+ :'name' => :'String',
50
+ :'public_description' => :'String',
51
+ :'public_list' => :'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::SfvbCommsListWriteRequest` 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::SfvbCommsListWriteRequest`. 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?(:'folder_uuid')
77
+ self.folder_uuid = attributes[:'folder_uuid']
78
+ end
79
+
80
+ if attributes.key?(:'name')
81
+ self.name = attributes[:'name']
82
+ end
83
+
84
+ if attributes.key?(:'public_description')
85
+ self.public_description = attributes[:'public_description']
86
+ end
87
+
88
+ if attributes.key?(:'public_list')
89
+ self.public_list = attributes[:'public_list']
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
+ folder_uuid == o.folder_uuid &&
112
+ name == o.name &&
113
+ public_description == o.public_description &&
114
+ public_list == o.public_list
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
+ [folder_uuid, name, public_description, public_list].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
@@ -42,10 +42,10 @@ module UltracartClient
42
42
  # The part of the from address before the at sign. Defaults to the storefront's marketing setting.
43
43
  attr_accessor :sending_user
44
44
 
45
- # The list or segment uuid for a list or segment trigger. Create only.
45
+ # The list or segment uuid for a list or segment trigger. Cleared when the trigger changes to one that takes none.
46
46
  attr_accessor :trigger_parameter
47
47
 
48
- # What enrolls a customer, such as cart abandoned. Create only.
48
+ # What enrolls a customer, such as cart abandoned. Required to create. On a change, only while the flow is off.
49
49
  attr_accessor :trigger_type
50
50
 
51
51
  class EnumAttributeValidator
@@ -36,7 +36,7 @@ module UltracartClient
36
36
  # The step's audience filter as stored, when it has one.
37
37
  attr_accessor :filter_profile_equation_json
38
38
 
39
- # The hash of the step's type, stored settings and audience filter. Send it back as If-Match when changing the step.
39
+ # The hash of the step's type, stored settings and audience filter. Send it back as If-Match when changing the step. What a running flow records in the settings (a resend step's resend mappings, a rate limiter's inventory refresh time, an experiment's winner) doesn't count. An email step's smartSending and magicLink are the email's own settings, so the email's hash_sha256 guards them, not this one.
40
40
  attr_accessor :hash_sha256
41
41
 
42
42
  # The items it names, for a cart or rate limiter step.
@@ -33,7 +33,7 @@ module UltracartClient
33
33
  # Customers who reached the step and were not sent anything. The dispatch log says why.
34
34
  attr_accessor :skipped
35
35
 
36
- # email (the step's email, all time) or step (this step, the last 90 days).
36
+ # email (the step's email, all time), sequence (the begin step, customers who started the sequence, all time) or step (this step, the last 90 days).
37
37
  attr_accessor :source
38
38
 
39
39
  # Spam complaints.
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.229'
14
+ VERSION = '4.1.230'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -1008,7 +1008,15 @@ require 'ultracart_api/models/sfvb_code_library_email'
1008
1008
  require 'ultracart_api/models/sfvb_code_library_emails_response'
1009
1009
  require 'ultracart_api/models/sfvb_comms_dns_record'
1010
1010
  require 'ultracart_api/models/sfvb_comms_email'
1011
+ require 'ultracart_api/models/sfvb_comms_folder'
1012
+ require 'ultracart_api/models/sfvb_comms_folder_item'
1013
+ require 'ultracart_api/models/sfvb_comms_folder_response'
1014
+ require 'ultracart_api/models/sfvb_comms_folder_write_request'
1015
+ require 'ultracart_api/models/sfvb_comms_folders_response'
1011
1016
  require 'ultracart_api/models/sfvb_comms_list'
1017
+ require 'ultracart_api/models/sfvb_comms_list_detail'
1018
+ require 'ultracart_api/models/sfvb_comms_list_response'
1019
+ require 'ultracart_api/models/sfvb_comms_list_write_request'
1012
1020
  require 'ultracart_api/models/sfvb_comms_lists_response'
1013
1021
  require 'ultracart_api/models/sfvb_comms_postcard'
1014
1022
  require 'ultracart_api/models/sfvb_comms_segment'
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.229
4
+ version: 4.1.230
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-04 00:00:00.000000000 Z
11
+ date: 2026-11-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1070,7 +1070,15 @@ files:
1070
1070
  - docs/SfvbCodeLibraryEmailsResponse.md
1071
1071
  - docs/SfvbCommsDnsRecord.md
1072
1072
  - docs/SfvbCommsEmail.md
1073
+ - docs/SfvbCommsFolder.md
1074
+ - docs/SfvbCommsFolderItem.md
1075
+ - docs/SfvbCommsFolderResponse.md
1076
+ - docs/SfvbCommsFolderWriteRequest.md
1077
+ - docs/SfvbCommsFoldersResponse.md
1073
1078
  - docs/SfvbCommsList.md
1079
+ - docs/SfvbCommsListDetail.md
1080
+ - docs/SfvbCommsListResponse.md
1081
+ - docs/SfvbCommsListWriteRequest.md
1074
1082
  - docs/SfvbCommsListsResponse.md
1075
1083
  - docs/SfvbCommsPostcard.md
1076
1084
  - docs/SfvbCommsSegment.md
@@ -2472,7 +2480,15 @@ files:
2472
2480
  - lib/ultracart_api/models/sfvb_code_library_emails_response.rb
2473
2481
  - lib/ultracart_api/models/sfvb_comms_dns_record.rb
2474
2482
  - lib/ultracart_api/models/sfvb_comms_email.rb
2483
+ - lib/ultracart_api/models/sfvb_comms_folder.rb
2484
+ - lib/ultracart_api/models/sfvb_comms_folder_item.rb
2485
+ - lib/ultracart_api/models/sfvb_comms_folder_response.rb
2486
+ - lib/ultracart_api/models/sfvb_comms_folder_write_request.rb
2487
+ - lib/ultracart_api/models/sfvb_comms_folders_response.rb
2475
2488
  - lib/ultracart_api/models/sfvb_comms_list.rb
2489
+ - lib/ultracart_api/models/sfvb_comms_list_detail.rb
2490
+ - lib/ultracart_api/models/sfvb_comms_list_response.rb
2491
+ - lib/ultracart_api/models/sfvb_comms_list_write_request.rb
2476
2492
  - lib/ultracart_api/models/sfvb_comms_lists_response.rb
2477
2493
  - lib/ultracart_api/models/sfvb_comms_postcard.rb
2478
2494
  - lib/ultracart_api/models/sfvb_comms_segment.rb