ultracart_api 4.1.201 → 4.1.203

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 SfvbSecretSink
18
+ # The sink id.
19
+ attr_accessor :id
20
+
21
+ # The kind of value it holds.
22
+ attr_accessor :kind
23
+
24
+ # True when the person must enter a code from their authenticator app, and the request must name its target.
25
+ attr_accessor :requires_totp
26
+
27
+ # What a request names as its target_id or keys.
28
+ attr_accessor :target_type
29
+
30
+ # Attribute mapping from ruby-style variable name to JSON key.
31
+ def self.attribute_map
32
+ {
33
+ :'id' => :'id',
34
+ :'kind' => :'kind',
35
+ :'requires_totp' => :'requires_totp',
36
+ :'target_type' => :'target_type'
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
+ :'id' => :'String',
49
+ :'kind' => :'String',
50
+ :'requires_totp' => :'Boolean',
51
+ :'target_type' => :'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::SfvbSecretSink` 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::SfvbSecretSink`. 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?(:'id')
77
+ self.id = attributes[:'id']
78
+ end
79
+
80
+ if attributes.key?(:'kind')
81
+ self.kind = attributes[:'kind']
82
+ end
83
+
84
+ if attributes.key?(:'requires_totp')
85
+ self.requires_totp = attributes[:'requires_totp']
86
+ end
87
+
88
+ if attributes.key?(:'target_type')
89
+ self.target_type = attributes[:'target_type']
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
+ id == o.id &&
112
+ kind == o.kind &&
113
+ requires_totp == o.requires_totp &&
114
+ target_type == o.target_type
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
+ [id, kind, requires_totp, target_type].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
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.1.201'
14
+ VERSION = '4.1.203'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -1054,6 +1054,7 @@ require 'ultracart_api/models/sfvb_item_container'
1054
1054
  require 'ultracart_api/models/sfvb_item_containers_response'
1055
1055
  require 'ultracart_api/models/sfvb_item_content_request'
1056
1056
  require 'ultracart_api/models/sfvb_item_multimedia'
1057
+ require 'ultracart_api/models/sfvb_item_multimedia_description_request'
1057
1058
  require 'ultracart_api/models/sfvb_item_multimedia_request'
1058
1059
  require 'ultracart_api/models/sfvb_item_pricing'
1059
1060
  require 'ultracart_api/models/sfvb_item_pricing_request'
@@ -1152,6 +1153,13 @@ require 'ultracart_api/models/sfvb_redirect_response'
1152
1153
  require 'ultracart_api/models/sfvb_redirects_response'
1153
1154
  require 'ultracart_api/models/sfvb_render_request'
1154
1155
  require 'ultracart_api/models/sfvb_render_response'
1156
+ require 'ultracart_api/models/sfvb_secret_handle'
1157
+ require 'ultracart_api/models/sfvb_secret_kind'
1158
+ require 'ultracart_api/models/sfvb_secret_kinds_response'
1159
+ require 'ultracart_api/models/sfvb_secret_request'
1160
+ require 'ultracart_api/models/sfvb_secret_request_create'
1161
+ require 'ultracart_api/models/sfvb_secret_requests_response'
1162
+ require 'ultracart_api/models/sfvb_secret_sink'
1155
1163
  require 'ultracart_api/models/sfvb_server_log'
1156
1164
  require 'ultracart_api/models/sfvb_server_log_detail'
1157
1165
  require 'ultracart_api/models/sfvb_server_log_entry'
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.201
4
+ version: 4.1.203
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-12 00:00:00.000000000 Z
11
+ date: 2026-10-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1116,6 +1116,7 @@ files:
1116
1116
  - docs/SfvbItemContainersResponse.md
1117
1117
  - docs/SfvbItemContentRequest.md
1118
1118
  - docs/SfvbItemMultimedia.md
1119
+ - docs/SfvbItemMultimediaDescriptionRequest.md
1119
1120
  - docs/SfvbItemMultimediaRequest.md
1120
1121
  - docs/SfvbItemPricing.md
1121
1122
  - docs/SfvbItemPricingRequest.md
@@ -1214,6 +1215,13 @@ files:
1214
1215
  - docs/SfvbRedirectsResponse.md
1215
1216
  - docs/SfvbRenderRequest.md
1216
1217
  - docs/SfvbRenderResponse.md
1218
+ - docs/SfvbSecretHandle.md
1219
+ - docs/SfvbSecretKind.md
1220
+ - docs/SfvbSecretKindsResponse.md
1221
+ - docs/SfvbSecretRequest.md
1222
+ - docs/SfvbSecretRequestCreate.md
1223
+ - docs/SfvbSecretRequestsResponse.md
1224
+ - docs/SfvbSecretSink.md
1217
1225
  - docs/SfvbServerLog.md
1218
1226
  - docs/SfvbServerLogDetail.md
1219
1227
  - docs/SfvbServerLogEntry.md
@@ -2424,6 +2432,7 @@ files:
2424
2432
  - lib/ultracart_api/models/sfvb_item_containers_response.rb
2425
2433
  - lib/ultracart_api/models/sfvb_item_content_request.rb
2426
2434
  - lib/ultracart_api/models/sfvb_item_multimedia.rb
2435
+ - lib/ultracart_api/models/sfvb_item_multimedia_description_request.rb
2427
2436
  - lib/ultracart_api/models/sfvb_item_multimedia_request.rb
2428
2437
  - lib/ultracart_api/models/sfvb_item_pricing.rb
2429
2438
  - lib/ultracart_api/models/sfvb_item_pricing_request.rb
@@ -2522,6 +2531,13 @@ files:
2522
2531
  - lib/ultracart_api/models/sfvb_redirects_response.rb
2523
2532
  - lib/ultracart_api/models/sfvb_render_request.rb
2524
2533
  - lib/ultracart_api/models/sfvb_render_response.rb
2534
+ - lib/ultracart_api/models/sfvb_secret_handle.rb
2535
+ - lib/ultracart_api/models/sfvb_secret_kind.rb
2536
+ - lib/ultracart_api/models/sfvb_secret_kinds_response.rb
2537
+ - lib/ultracart_api/models/sfvb_secret_request.rb
2538
+ - lib/ultracart_api/models/sfvb_secret_request_create.rb
2539
+ - lib/ultracart_api/models/sfvb_secret_requests_response.rb
2540
+ - lib/ultracart_api/models/sfvb_secret_sink.rb
2525
2541
  - lib/ultracart_api/models/sfvb_server_log.rb
2526
2542
  - lib/ultracart_api/models/sfvb_server_log_detail.rb
2527
2543
  - lib/ultracart_api/models/sfvb_server_log_entry.rb