ultracart_api 4.1.215 → 4.1.217

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,258 @@
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 SfvbSequenceStepDeleteResponse
18
+ # The emails the step sent, now archived.
19
+ attr_accessor :archived_email_uuids
20
+
21
+ # The postcard the step sent, now archived.
22
+ attr_accessor :archived_postcard_uuids
23
+
24
+ # What was removed and archived, in words.
25
+ attr_accessor :notes
26
+
27
+ # The step removed, then any end, continue or merge markers that were on its sides.
28
+ attr_accessor :removed_step_uuids
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'archived_email_uuids' => :'archived_email_uuids',
34
+ :'archived_postcard_uuids' => :'archived_postcard_uuids',
35
+ :'notes' => :'notes',
36
+ :'removed_step_uuids' => :'removed_step_uuids'
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
+ :'archived_email_uuids' => :'Array<String>',
49
+ :'archived_postcard_uuids' => :'Array<String>',
50
+ :'notes' => :'Array<String>',
51
+ :'removed_step_uuids' => :'Array<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::SfvbSequenceStepDeleteResponse` 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::SfvbSequenceStepDeleteResponse`. 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?(:'archived_email_uuids')
77
+ if (value = attributes[:'archived_email_uuids']).is_a?(Array)
78
+ self.archived_email_uuids = value
79
+ end
80
+ end
81
+
82
+ if attributes.key?(:'archived_postcard_uuids')
83
+ if (value = attributes[:'archived_postcard_uuids']).is_a?(Array)
84
+ self.archived_postcard_uuids = value
85
+ end
86
+ end
87
+
88
+ if attributes.key?(:'notes')
89
+ if (value = attributes[:'notes']).is_a?(Array)
90
+ self.notes = value
91
+ end
92
+ end
93
+
94
+ if attributes.key?(:'removed_step_uuids')
95
+ if (value = attributes[:'removed_step_uuids']).is_a?(Array)
96
+ self.removed_step_uuids = value
97
+ end
98
+ end
99
+ end
100
+
101
+ # Show invalid properties with the reasons. Usually used together with valid?
102
+ # @return Array for valid properties with the reasons
103
+ def list_invalid_properties
104
+ invalid_properties = Array.new
105
+ invalid_properties
106
+ end
107
+
108
+ # Check to see if the all the properties in the model are valid
109
+ # @return true if the model is valid
110
+ def valid?
111
+ true
112
+ end
113
+
114
+ # Checks equality by comparing each attribute.
115
+ # @param [Object] Object to be compared
116
+ def ==(o)
117
+ return true if self.equal?(o)
118
+ self.class == o.class &&
119
+ archived_email_uuids == o.archived_email_uuids &&
120
+ archived_postcard_uuids == o.archived_postcard_uuids &&
121
+ notes == o.notes &&
122
+ removed_step_uuids == o.removed_step_uuids
123
+ end
124
+
125
+ # @see the `==` method
126
+ # @param [Object] Object to be compared
127
+ def eql?(o)
128
+ self == o
129
+ end
130
+
131
+ # Calculates hash code according to all attributes.
132
+ # @return [Integer] Hash code
133
+ def hash
134
+ [archived_email_uuids, archived_postcard_uuids, notes, removed_step_uuids].hash
135
+ end
136
+
137
+ # Builds the object from hash
138
+ # @param [Hash] attributes Model attributes in the form of hash
139
+ # @return [Object] Returns the model itself
140
+ def self.build_from_hash(attributes)
141
+ new.build_from_hash(attributes)
142
+ end
143
+
144
+ # Builds the object from hash
145
+ # @param [Hash] attributes Model attributes in the form of hash
146
+ # @return [Object] Returns the model itself
147
+ def build_from_hash(attributes)
148
+ return nil unless attributes.is_a?(Hash)
149
+ attributes = attributes.transform_keys(&:to_sym)
150
+ self.class.openapi_types.each_pair do |key, type|
151
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
152
+ self.send("#{key}=", nil)
153
+ elsif type =~ /\AArray<(.*)>/i
154
+ # check to ensure the input is an array given that the attribute
155
+ # is documented as an array but the input is not
156
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
157
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
158
+ end
159
+ elsif !attributes[self.class.attribute_map[key]].nil?
160
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
161
+ end
162
+ end
163
+
164
+ self
165
+ end
166
+
167
+ # Deserializes the data based on type
168
+ # @param string type Data type
169
+ # @param string value Value to be deserialized
170
+ # @return [Object] Deserialized data
171
+ def _deserialize(type, value)
172
+ case type.to_sym
173
+ when :Time
174
+ Time.parse(value)
175
+ when :Date
176
+ Date.parse(value)
177
+ when :String
178
+ value.to_s
179
+ when :Integer
180
+ value.to_i
181
+ when :Float
182
+ value.to_f
183
+ when :Boolean
184
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
185
+ true
186
+ else
187
+ false
188
+ end
189
+ when :Object
190
+ # generic object (usually a Hash), return directly
191
+ value
192
+ when /\AArray<(?<inner_type>.+)>\z/
193
+ inner_type = Regexp.last_match[:inner_type]
194
+ value.map { |v| _deserialize(inner_type, v) }
195
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
196
+ k_type = Regexp.last_match[:k_type]
197
+ v_type = Regexp.last_match[:v_type]
198
+ {}.tap do |hash|
199
+ value.each do |k, v|
200
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
201
+ end
202
+ end
203
+ else # model
204
+ # models (e.g. Pet) or oneOf
205
+ klass = UltracartClient.const_get(type)
206
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
207
+ end
208
+ end
209
+
210
+ # Returns the string representation of the object
211
+ # @return [String] String presentation of the object
212
+ def to_s
213
+ to_hash.to_s
214
+ end
215
+
216
+ # to_body is an alias to to_hash (backward compatibility)
217
+ # @return [Hash] Returns the object in the form of hash
218
+ def to_body
219
+ to_hash
220
+ end
221
+
222
+ # Returns the object in the form of hash
223
+ # @return [Hash] Returns the object in the form of hash
224
+ def to_hash
225
+ hash = {}
226
+ self.class.attribute_map.each_pair do |attr, param|
227
+ value = self.send(attr)
228
+ if value.nil?
229
+ is_nullable = self.class.openapi_nullable.include?(attr)
230
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
231
+ end
232
+
233
+ hash[param] = _to_hash(value)
234
+ end
235
+ hash
236
+ end
237
+
238
+ # Outputs non-array value in the form of hash
239
+ # For object, use to_hash. Otherwise, just return the value
240
+ # @param [Object] value Any valid value
241
+ # @return [Hash] Returns the value in the form of hash
242
+ def _to_hash(value)
243
+ if value.is_a?(Array)
244
+ value.compact.map { |v| _to_hash(v) }
245
+ elsif value.is_a?(Hash)
246
+ {}.tap do |hash|
247
+ value.each { |k, v| hash[k] = _to_hash(v) }
248
+ end
249
+ elsif value.respond_to? :to_hash
250
+ value.to_hash
251
+ else
252
+ value
253
+ end
254
+ end
255
+
256
+ end
257
+
258
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.215'
14
+ VERSION = '4.1.217'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -1189,6 +1189,9 @@ require 'ultracart_api/models/sfvb_secret_sink'
1189
1189
  require 'ultracart_api/models/sfvb_sequence'
1190
1190
  require 'ultracart_api/models/sfvb_sequence_branch'
1191
1191
  require 'ultracart_api/models/sfvb_sequence_step'
1192
+ require 'ultracart_api/models/sfvb_sequence_step_create_request'
1193
+ require 'ultracart_api/models/sfvb_sequence_step_create_response'
1194
+ require 'ultracart_api/models/sfvb_sequence_step_delete_response'
1192
1195
  require 'ultracart_api/models/sfvb_sequence_step_update_request'
1193
1196
  require 'ultracart_api/models/sfvb_sequence_step_update_response'
1194
1197
  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.215
4
+ version: 4.1.217
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-10-28 00:00:00.000000000 Z
11
+ date: 2026-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1251,6 +1251,9 @@ files:
1251
1251
  - docs/SfvbSequence.md
1252
1252
  - docs/SfvbSequenceBranch.md
1253
1253
  - docs/SfvbSequenceStep.md
1254
+ - docs/SfvbSequenceStepCreateRequest.md
1255
+ - docs/SfvbSequenceStepCreateResponse.md
1256
+ - docs/SfvbSequenceStepDeleteResponse.md
1254
1257
  - docs/SfvbSequenceStepUpdateRequest.md
1255
1258
  - docs/SfvbSequenceStepUpdateResponse.md
1256
1259
  - docs/SfvbServerLog.md
@@ -2600,6 +2603,9 @@ files:
2600
2603
  - lib/ultracart_api/models/sfvb_sequence.rb
2601
2604
  - lib/ultracart_api/models/sfvb_sequence_branch.rb
2602
2605
  - lib/ultracart_api/models/sfvb_sequence_step.rb
2606
+ - lib/ultracart_api/models/sfvb_sequence_step_create_request.rb
2607
+ - lib/ultracart_api/models/sfvb_sequence_step_create_response.rb
2608
+ - lib/ultracart_api/models/sfvb_sequence_step_delete_response.rb
2603
2609
  - lib/ultracart_api/models/sfvb_sequence_step_update_request.rb
2604
2610
  - lib/ultracart_api/models/sfvb_sequence_step_update_response.rb
2605
2611
  - lib/ultracart_api/models/sfvb_server_log.rb