ultracart_api 4.1.219 → 4.1.221

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,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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.219'
14
+ VERSION = '4.1.221'
15
15
  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'
@@ -1152,6 +1154,8 @@ require 'ultracart_api/models/sfvb_page_response'
1152
1154
  require 'ultracart_api/models/sfvb_page_selectors'
1153
1155
  require 'ultracart_api/models/sfvb_page_settings_request'
1154
1156
  require 'ultracart_api/models/sfvb_page_summary'
1157
+ require 'ultracart_api/models/sfvb_postcard_proof_request'
1158
+ require 'ultracart_api/models/sfvb_postcard_proof_response'
1155
1159
  require 'ultracart_api/models/sfvb_preview_access_request'
1156
1160
  require 'ultracart_api/models/sfvb_preview_access_response'
1157
1161
  require 'ultracart_api/models/sfvb_preview_session_request'
@@ -1196,6 +1200,8 @@ require 'ultracart_api/models/sfvb_sequence_step'
1196
1200
  require 'ultracart_api/models/sfvb_sequence_step_create_request'
1197
1201
  require 'ultracart_api/models/sfvb_sequence_step_create_response'
1198
1202
  require 'ultracart_api/models/sfvb_sequence_step_delete_response'
1203
+ require 'ultracart_api/models/sfvb_sequence_step_move_request'
1204
+ require 'ultracart_api/models/sfvb_sequence_step_move_response'
1199
1205
  require 'ultracart_api/models/sfvb_sequence_step_update_request'
1200
1206
  require 'ultracart_api/models/sfvb_sequence_step_update_response'
1201
1207
  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.219
4
+ version: 4.1.221
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-30 00:00:00.000000000 Z
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
@@ -1214,6 +1216,8 @@ files:
1214
1216
  - docs/SfvbPageSelectors.md
1215
1217
  - docs/SfvbPageSettingsRequest.md
1216
1218
  - docs/SfvbPageSummary.md
1219
+ - docs/SfvbPostcardProofRequest.md
1220
+ - docs/SfvbPostcardProofResponse.md
1217
1221
  - docs/SfvbPreviewAccessRequest.md
1218
1222
  - docs/SfvbPreviewAccessResponse.md
1219
1223
  - docs/SfvbPreviewSessionRequest.md
@@ -1258,6 +1262,8 @@ files:
1258
1262
  - docs/SfvbSequenceStepCreateRequest.md
1259
1263
  - docs/SfvbSequenceStepCreateResponse.md
1260
1264
  - docs/SfvbSequenceStepDeleteResponse.md
1265
+ - docs/SfvbSequenceStepMoveRequest.md
1266
+ - docs/SfvbSequenceStepMoveResponse.md
1261
1267
  - docs/SfvbSequenceStepUpdateRequest.md
1262
1268
  - docs/SfvbSequenceStepUpdateResponse.md
1263
1269
  - docs/SfvbServerLog.md
@@ -2419,6 +2425,8 @@ files:
2419
2425
  - lib/ultracart_api/models/sfvb_campaign_membership.rb
2420
2426
  - lib/ultracart_api/models/sfvb_campaign_write_request.rb
2421
2427
  - lib/ultracart_api/models/sfvb_campaigns_response.rb
2428
+ - lib/ultracart_api/models/sfvb_code_library_email.rb
2429
+ - lib/ultracart_api/models/sfvb_code_library_emails_response.rb
2422
2430
  - lib/ultracart_api/models/sfvb_comms_dns_record.rb
2423
2431
  - lib/ultracart_api/models/sfvb_comms_email.rb
2424
2432
  - lib/ultracart_api/models/sfvb_comms_list.rb
@@ -2570,6 +2578,8 @@ files:
2570
2578
  - lib/ultracart_api/models/sfvb_page_selectors.rb
2571
2579
  - lib/ultracart_api/models/sfvb_page_settings_request.rb
2572
2580
  - lib/ultracart_api/models/sfvb_page_summary.rb
2581
+ - lib/ultracart_api/models/sfvb_postcard_proof_request.rb
2582
+ - lib/ultracart_api/models/sfvb_postcard_proof_response.rb
2573
2583
  - lib/ultracart_api/models/sfvb_preview_access_request.rb
2574
2584
  - lib/ultracart_api/models/sfvb_preview_access_response.rb
2575
2585
  - lib/ultracart_api/models/sfvb_preview_session_request.rb
@@ -2614,6 +2624,8 @@ files:
2614
2624
  - lib/ultracart_api/models/sfvb_sequence_step_create_request.rb
2615
2625
  - lib/ultracart_api/models/sfvb_sequence_step_create_response.rb
2616
2626
  - lib/ultracart_api/models/sfvb_sequence_step_delete_response.rb
2627
+ - lib/ultracart_api/models/sfvb_sequence_step_move_request.rb
2628
+ - lib/ultracart_api/models/sfvb_sequence_step_move_response.rb
2617
2629
  - lib/ultracart_api/models/sfvb_sequence_step_update_request.rb
2618
2630
  - lib/ultracart_api/models/sfvb_sequence_step_update_response.rb
2619
2631
  - lib/ultracart_api/models/sfvb_server_log.rb