ultracart_api 4.1.185 → 4.1.189

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 86b7a31c2fdb79ed422a7453170ecae04ef97d4a4837011901dcad91aa75f34f
4
- data.tar.gz: ddc0dcab82f022fa9767b190b1c67038cbae1e40b04b86af7b39c4e832e3f7bc
3
+ metadata.gz: 5a15d8e1c7ebe8e086b4215a324de6719144929341464dd751d35a6ec15a2cda
4
+ data.tar.gz: e88e3b6f441e69fac037c86e58f66fc8994db50b10acaf9d56ec172e664a477f
5
5
  SHA512:
6
- metadata.gz: ae9905c86955c3a0c66f6ce939af9d13fb8e63fba6eb35a476428ec9e58b2bd1979cace9a11e41c6f97a13c498b209414a1763bb2dd8e01e8a79ddc5902c5596
7
- data.tar.gz: 714438367f915197c9de9cf3dbaa7606ad03113834ed635e6e67ee9d44c49fd8c2dea07a569a74033e4fb2a77757139e3108c9d734d53758f68a7f7b33c4c8d0
6
+ metadata.gz: 1c480e5082e5c4a8256f68d2627d6abc0f365420ca005c7ea69757f2f73d8772ff4d245ffdbeb658a6f31934a402f1ed4debb4fcd3d57a586facea3d9a997f0a
7
+ data.tar.gz: 904cd54c40844927f445339aa30dffcf987b6d2952fb9d8b0a37ab5d4e90f23de751ec944bfa9276f11f762741cde00d8fa2ba0424e9e01d21e65f580f08eb2d
data/README.md CHANGED
@@ -7,7 +7,7 @@ Note: Every method has a sample for every language. See https://github.com/Ultr
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.1.185
10
+ - Package version: 4.1.189
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  - For more information, please visit [http://www.ultracart.com/api/](http://www.ultracart.com/api/)
13
13
 
@@ -16,7 +16,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
16
16
  gemfile:
17
17
 
18
18
  ```shell
19
- gem 'ultracart_api', '4.1.185'
19
+ gem 'ultracart_api', '4.1.189'
20
20
  ```
21
21
 
22
22
  install:
@@ -1886,6 +1886,7 @@ Class | Method | HTTP request | Description
1886
1886
  - [UltracartClient::SfvbLibraryInstallRecord](docs/SfvbLibraryInstallRecord.md)
1887
1887
  - [UltracartClient::SfvbLibraryInstallRequest](docs/SfvbLibraryInstallRequest.md)
1888
1888
  - [UltracartClient::SfvbLibraryInstallsResponse](docs/SfvbLibraryInstallsResponse.md)
1889
+ - [UltracartClient::SfvbLibraryManifestFinding](docs/SfvbLibraryManifestFinding.md)
1889
1890
  - [UltracartClient::SfvbLibraryParameter](docs/SfvbLibraryParameter.md)
1890
1891
  - [UltracartClient::SfvbLibraryPublishRequest](docs/SfvbLibraryPublishRequest.md)
1891
1892
  - [UltracartClient::SfvbLibraryResponse](docs/SfvbLibraryResponse.md)
@@ -1895,6 +1896,8 @@ Class | Method | HTTP request | Description
1895
1896
  - [UltracartClient::SfvbLibraryShareTargetsResponse](docs/SfvbLibraryShareTargetsResponse.md)
1896
1897
  - [UltracartClient::SfvbLibraryTaxonomy](docs/SfvbLibraryTaxonomy.md)
1897
1898
  - [UltracartClient::SfvbLibraryTaxonomyCatalog](docs/SfvbLibraryTaxonomyCatalog.md)
1899
+ - [UltracartClient::SfvbLibraryTaxonomyDimension](docs/SfvbLibraryTaxonomyDimension.md)
1900
+ - [UltracartClient::SfvbLibraryTaxonomyTag](docs/SfvbLibraryTaxonomyTag.md)
1898
1901
  - [UltracartClient::SfvbLibraryUnshareResult](docs/SfvbLibraryUnshareResult.md)
1899
1902
  - [UltracartClient::SfvbMenu](docs/SfvbMenu.md)
1900
1903
  - [UltracartClient::SfvbMenuItem](docs/SfvbMenuItem.md)
@@ -2151,6 +2154,10 @@ Not every change is committed to every SDK.
2151
2154
 
2152
2155
  | Version | Date | Comments |
2153
2156
  | --: | :-: | --- |
2157
+ | 4.1.189 | 10/06/2026 | sfvb internal testing |
2158
+ | 4.1.188 | 10/05/2026 | sfvb internal testing |
2159
+ | 4.1.187 | 10/05/2026 | sfvb internal testing |
2160
+ | 4.1.186 | 10/05/2026 | sfvb internal testing |
2154
2161
  | 4.1.185 | 10/05/2026 | sfvb internal testing |
2155
2162
  | 4.1.184 | 10/05/2026 | sfvb internal testing |
2156
2163
  | 4.1.183 | 10/05/2026 | OrderApi rma endpoints |
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **findings** | **Object** | What the reviewers found. detail is the category followed by the quoted evidence. | [optional] |
7
+ | **findings** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | What the reviewers found. detail is the category followed by the quoted evidence. | [optional] |
8
8
  | **prompt_version** | **String** | Version of the review policy that produced this verdict. | [optional] |
9
9
  | **reviewed_dts** | **String** | When the review ran, ISO 8601. | [optional] |
10
10
  | **screenshot_sha256** | **String** | The screenshot the review looked at, or absent when there was none. | [optional] |
@@ -4,11 +4,11 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **absolute_asset_urls** | **Object** | Images, fonts, stylesheets, scripts or media loaded from an absolute URL. A shared or public entry must use relative paths so it never pulls files from another storefront or site. | [optional] |
7
+ | **absolute_asset_urls** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Images, fonts, stylesheets, scripts or media loaded from an absolute URL. A shared or public entry must use relative paths so it never pulls files from another storefront or site. | [optional] |
8
8
  | **ai_review** | [**SfvbLibraryAiReview**](SfvbLibraryAiReview.md) | | [optional] |
9
- | **executable** | **Object** | Content that runs in a shopper's browser or on the server. Script, html, embed, css and velocity elements, script in markup, Velocity, script bearing CSS and unsafe URL schemes. An entry with any of these cannot be made public, and installing it needs an explicit acknowledgement. | [optional] |
10
- | **rejected** | **Object** | Card skimming and obfuscation signals. An entry with any is refused outright, whoever owns it. | [optional] |
11
- | **secrets** | **Object** | Strings shaped like credentials, by kind only. An entry with any cannot be shared or made public. | [optional] |
9
+ | **executable** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Content that runs in a shopper's browser or on the server. Script, html, embed, css and velocity elements, script in markup, Velocity, script bearing CSS and unsafe URL schemes. An entry with any of these cannot be made public, and installing it needs an explicit acknowledgement. | [optional] |
10
+ | **rejected** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Card skimming and obfuscation signals. An entry with any is refused outright, whoever owns it. | [optional] |
11
+ | **secrets** | [**Array<SfvbLibraryManifestFinding>**](SfvbLibraryManifestFinding.md) | Strings shaped like credentials, by kind only. An entry with any cannot be shared or made public. | [optional] |
12
12
 
13
13
  ## Example
14
14
 
@@ -0,0 +1,22 @@
1
+ # UltracartClient::SfvbLibraryManifestFinding
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **detail** | **String** | What was found. For an absolute asset URL this is the URL. For a credential it is only the kind of credential, never its value. | [optional] |
8
+ | **widget_id** | **String** | Id of the widget the finding is in. | [optional] |
9
+ | **widget_type** | **String** | Element type of that widget. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::SfvbLibraryManifestFinding.new(
17
+ detail: null,
18
+ widget_id: null,
19
+ widget_type: null
20
+ )
21
+ ```
22
+
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **default** | **String** | The value used when none is supplied. | [optional] |
7
+ | **default_value** | **String** | The value used when none is supplied. | [optional] |
8
8
  | **description** | **String** | What the value is used for. | [optional] |
9
9
  | **name** | **String** | Parameter name, letters, digits, hyphens and underscores. | [optional] |
10
10
  | **required** | **Boolean** | True when the fragment cannot be used without it. | [optional] |
@@ -16,7 +16,7 @@
16
16
  require 'ultracart_api'
17
17
 
18
18
  instance = UltracartClient::SfvbLibraryParameter.new(
19
- default: null,
19
+ default_value: null,
20
20
  description: null,
21
21
  name: null,
22
22
  required: null,
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **dimensions** | **Object** | purpose, section, industry and style, each with its allowed tags. | [optional] |
7
+ | **dimensions** | [**Array<SfvbLibraryTaxonomyDimension>**](SfvbLibraryTaxonomyDimension.md) | purpose, section, industry and style, each with its allowed tags. | [optional] |
8
8
 
9
9
  ## Example
10
10
 
@@ -0,0 +1,22 @@
1
+ # UltracartClient::SfvbLibraryTaxonomyDimension
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | What the dimension describes. | [optional] |
8
+ | **name** | **String** | The taxonomy field this list applies to. | [optional] |
9
+ | **tags** | [**Array<SfvbLibraryTaxonomyTag>**](SfvbLibraryTaxonomyTag.md) | The allowed tags, in display order. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'ultracart_api'
15
+
16
+ instance = UltracartClient::SfvbLibraryTaxonomyDimension.new(
17
+ description: null,
18
+ name: null,
19
+ tags: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,20 @@
1
+ # UltracartClient::SfvbLibraryTaxonomyTag
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **description** | **String** | When to use it. | [optional] |
8
+ | **slug** | **String** | The value to send in the entry's taxonomy. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'ultracart_api'
14
+
15
+ instance = UltracartClient::SfvbLibraryTaxonomyTag.new(
16
+ description: null,
17
+ slug: null
18
+ )
19
+ ```
20
+
@@ -75,7 +75,7 @@ module UltracartClient
75
75
  # Attribute type mapping.
76
76
  def self.openapi_types
77
77
  {
78
- :'findings' => :'Object',
78
+ :'findings' => :'Array<SfvbLibraryManifestFinding>',
79
79
  :'prompt_version' => :'String',
80
80
  :'reviewed_dts' => :'String',
81
81
  :'screenshot_sha256' => :'String',
@@ -106,7 +106,9 @@ module UltracartClient
106
106
  }
107
107
 
108
108
  if attributes.key?(:'findings')
109
- self.findings = attributes[:'findings']
109
+ if (value = attributes[:'findings']).is_a?(Array)
110
+ self.findings = value
111
+ end
110
112
  end
111
113
 
112
114
  if attributes.key?(:'prompt_version')
@@ -48,11 +48,11 @@ module UltracartClient
48
48
  # Attribute type mapping.
49
49
  def self.openapi_types
50
50
  {
51
- :'absolute_asset_urls' => :'Object',
51
+ :'absolute_asset_urls' => :'Array<SfvbLibraryManifestFinding>',
52
52
  :'ai_review' => :'SfvbLibraryAiReview',
53
- :'executable' => :'Object',
54
- :'rejected' => :'Object',
55
- :'secrets' => :'Object'
53
+ :'executable' => :'Array<SfvbLibraryManifestFinding>',
54
+ :'rejected' => :'Array<SfvbLibraryManifestFinding>',
55
+ :'secrets' => :'Array<SfvbLibraryManifestFinding>'
56
56
  }
57
57
  end
58
58
 
@@ -78,7 +78,9 @@ module UltracartClient
78
78
  }
79
79
 
80
80
  if attributes.key?(:'absolute_asset_urls')
81
- self.absolute_asset_urls = attributes[:'absolute_asset_urls']
81
+ if (value = attributes[:'absolute_asset_urls']).is_a?(Array)
82
+ self.absolute_asset_urls = value
83
+ end
82
84
  end
83
85
 
84
86
  if attributes.key?(:'ai_review')
@@ -86,15 +88,21 @@ module UltracartClient
86
88
  end
87
89
 
88
90
  if attributes.key?(:'executable')
89
- self.executable = attributes[:'executable']
91
+ if (value = attributes[:'executable']).is_a?(Array)
92
+ self.executable = value
93
+ end
90
94
  end
91
95
 
92
96
  if attributes.key?(:'rejected')
93
- self.rejected = attributes[:'rejected']
97
+ if (value = attributes[:'rejected']).is_a?(Array)
98
+ self.rejected = value
99
+ end
94
100
  end
95
101
 
96
102
  if attributes.key?(:'secrets')
97
- self.secrets = attributes[:'secrets']
103
+ if (value = attributes[:'secrets']).is_a?(Array)
104
+ self.secrets = value
105
+ end
98
106
  end
99
107
  end
100
108
 
@@ -0,0 +1,240 @@
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 SfvbLibraryManifestFinding
18
+ # What was found. For an absolute asset URL this is the URL. For a credential it is only the kind of credential, never its value.
19
+ attr_accessor :detail
20
+
21
+ # Id of the widget the finding is in.
22
+ attr_accessor :widget_id
23
+
24
+ # Element type of that widget.
25
+ attr_accessor :widget_type
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'detail' => :'detail',
31
+ :'widget_id' => :'widget_id',
32
+ :'widget_type' => :'widget_type'
33
+ }
34
+ end
35
+
36
+ # Returns all the JSON keys this model knows about
37
+ def self.acceptable_attributes
38
+ attribute_map.values
39
+ end
40
+
41
+ # Attribute type mapping.
42
+ def self.openapi_types
43
+ {
44
+ :'detail' => :'String',
45
+ :'widget_id' => :'String',
46
+ :'widget_type' => :'String'
47
+ }
48
+ end
49
+
50
+ # List of attributes with nullable: true
51
+ def self.openapi_nullable
52
+ Set.new([
53
+ ])
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ if (!attributes.is_a?(Hash))
60
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbLibraryManifestFinding` initialize method"
61
+ end
62
+
63
+ # check to see if the attribute exists and convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h|
65
+ if (!self.class.attribute_map.key?(k.to_sym))
66
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbLibraryManifestFinding`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
67
+ end
68
+ h[k.to_sym] = v
69
+ }
70
+
71
+ if attributes.key?(:'detail')
72
+ self.detail = attributes[:'detail']
73
+ end
74
+
75
+ if attributes.key?(:'widget_id')
76
+ self.widget_id = attributes[:'widget_id']
77
+ end
78
+
79
+ if attributes.key?(:'widget_type')
80
+ self.widget_type = attributes[:'widget_type']
81
+ end
82
+ end
83
+
84
+ # Show invalid properties with the reasons. Usually used together with valid?
85
+ # @return Array for valid properties with the reasons
86
+ def list_invalid_properties
87
+ invalid_properties = Array.new
88
+ invalid_properties
89
+ end
90
+
91
+ # Check to see if the all the properties in the model are valid
92
+ # @return true if the model is valid
93
+ def valid?
94
+ true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(o)
100
+ return true if self.equal?(o)
101
+ self.class == o.class &&
102
+ detail == o.detail &&
103
+ widget_id == o.widget_id &&
104
+ widget_type == o.widget_type
105
+ end
106
+
107
+ # @see the `==` method
108
+ # @param [Object] Object to be compared
109
+ def eql?(o)
110
+ self == o
111
+ end
112
+
113
+ # Calculates hash code according to all attributes.
114
+ # @return [Integer] Hash code
115
+ def hash
116
+ [detail, widget_id, widget_type].hash
117
+ end
118
+
119
+ # Builds the object from hash
120
+ # @param [Hash] attributes Model attributes in the form of hash
121
+ # @return [Object] Returns the model itself
122
+ def self.build_from_hash(attributes)
123
+ new.build_from_hash(attributes)
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def build_from_hash(attributes)
130
+ return nil unless attributes.is_a?(Hash)
131
+ attributes = attributes.transform_keys(&:to_sym)
132
+ self.class.openapi_types.each_pair do |key, type|
133
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
134
+ self.send("#{key}=", nil)
135
+ elsif type =~ /\AArray<(.*)>/i
136
+ # check to ensure the input is an array given that the attribute
137
+ # is documented as an array but the input is not
138
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
139
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
140
+ end
141
+ elsif !attributes[self.class.attribute_map[key]].nil?
142
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
143
+ end
144
+ end
145
+
146
+ self
147
+ end
148
+
149
+ # Deserializes the data based on type
150
+ # @param string type Data type
151
+ # @param string value Value to be deserialized
152
+ # @return [Object] Deserialized data
153
+ def _deserialize(type, value)
154
+ case type.to_sym
155
+ when :Time
156
+ Time.parse(value)
157
+ when :Date
158
+ Date.parse(value)
159
+ when :String
160
+ value.to_s
161
+ when :Integer
162
+ value.to_i
163
+ when :Float
164
+ value.to_f
165
+ when :Boolean
166
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
167
+ true
168
+ else
169
+ false
170
+ end
171
+ when :Object
172
+ # generic object (usually a Hash), return directly
173
+ value
174
+ when /\AArray<(?<inner_type>.+)>\z/
175
+ inner_type = Regexp.last_match[:inner_type]
176
+ value.map { |v| _deserialize(inner_type, v) }
177
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
178
+ k_type = Regexp.last_match[:k_type]
179
+ v_type = Regexp.last_match[:v_type]
180
+ {}.tap do |hash|
181
+ value.each do |k, v|
182
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
183
+ end
184
+ end
185
+ else # model
186
+ # models (e.g. Pet) or oneOf
187
+ klass = UltracartClient.const_get(type)
188
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
189
+ end
190
+ end
191
+
192
+ # Returns the string representation of the object
193
+ # @return [String] String presentation of the object
194
+ def to_s
195
+ to_hash.to_s
196
+ end
197
+
198
+ # to_body is an alias to to_hash (backward compatibility)
199
+ # @return [Hash] Returns the object in the form of hash
200
+ def to_body
201
+ to_hash
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ # Outputs non-array value in the form of hash
221
+ # For object, use to_hash. Otherwise, just return the value
222
+ # @param [Object] value Any valid value
223
+ # @return [Hash] Returns the value in the form of hash
224
+ def _to_hash(value)
225
+ if value.is_a?(Array)
226
+ value.compact.map { |v| _to_hash(v) }
227
+ elsif value.is_a?(Hash)
228
+ {}.tap do |hash|
229
+ value.each { |k, v| hash[k] = _to_hash(v) }
230
+ end
231
+ elsif value.respond_to? :to_hash
232
+ value.to_hash
233
+ else
234
+ value
235
+ end
236
+ end
237
+
238
+ end
239
+
240
+ end
@@ -16,7 +16,7 @@ require 'time'
16
16
  module UltracartClient
17
17
  class SfvbLibraryParameter
18
18
  # The value used when none is supplied.
19
- attr_accessor :default
19
+ attr_accessor :default_value
20
20
 
21
21
  # What the value is used for.
22
22
  attr_accessor :description
@@ -33,7 +33,7 @@ module UltracartClient
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'default' => :'default',
36
+ :'default_value' => :'default_value',
37
37
  :'description' => :'description',
38
38
  :'name' => :'name',
39
39
  :'required' => :'required',
@@ -49,7 +49,7 @@ module UltracartClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'default' => :'String',
52
+ :'default_value' => :'String',
53
53
  :'description' => :'String',
54
54
  :'name' => :'String',
55
55
  :'required' => :'Boolean',
@@ -78,8 +78,8 @@ module UltracartClient
78
78
  h[k.to_sym] = v
79
79
  }
80
80
 
81
- if attributes.key?(:'default')
82
- self.default = attributes[:'default']
81
+ if attributes.key?(:'default_value')
82
+ self.default_value = attributes[:'default_value']
83
83
  end
84
84
 
85
85
  if attributes.key?(:'description')
@@ -117,7 +117,7 @@ module UltracartClient
117
117
  def ==(o)
118
118
  return true if self.equal?(o)
119
119
  self.class == o.class &&
120
- default == o.default &&
120
+ default_value == o.default_value &&
121
121
  description == o.description &&
122
122
  name == o.name &&
123
123
  required == o.required &&
@@ -133,7 +133,7 @@ module UltracartClient
133
133
  # Calculates hash code according to all attributes.
134
134
  # @return [Integer] Hash code
135
135
  def hash
136
- [default, description, name, required, type].hash
136
+ [default_value, description, name, required, type].hash
137
137
  end
138
138
 
139
139
  # Builds the object from hash
@@ -33,7 +33,7 @@ module UltracartClient
33
33
  # Attribute type mapping.
34
34
  def self.openapi_types
35
35
  {
36
- :'dimensions' => :'Object'
36
+ :'dimensions' => :'Array<SfvbLibraryTaxonomyDimension>'
37
37
  }
38
38
  end
39
39
 
@@ -59,7 +59,9 @@ module UltracartClient
59
59
  }
60
60
 
61
61
  if attributes.key?(:'dimensions')
62
- self.dimensions = attributes[:'dimensions']
62
+ if (value = attributes[:'dimensions']).is_a?(Array)
63
+ self.dimensions = value
64
+ end
63
65
  end
64
66
  end
65
67
 
@@ -0,0 +1,276 @@
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 SfvbLibraryTaxonomyDimension
18
+ # What the dimension describes.
19
+ attr_accessor :description
20
+
21
+ # The taxonomy field this list applies to.
22
+ attr_accessor :name
23
+
24
+ # The allowed tags, in display order.
25
+ attr_accessor :tags
26
+
27
+ class EnumAttributeValidator
28
+ attr_reader :datatype
29
+ attr_reader :allowable_values
30
+
31
+ def initialize(datatype, allowable_values)
32
+ @allowable_values = allowable_values.map do |value|
33
+ case datatype.to_s
34
+ when /Integer/i
35
+ value.to_i
36
+ when /Float/i
37
+ value.to_f
38
+ else
39
+ value
40
+ end
41
+ end
42
+ end
43
+
44
+ def valid?(value)
45
+ !value || allowable_values.include?(value)
46
+ end
47
+ end
48
+
49
+ # Attribute mapping from ruby-style variable name to JSON key.
50
+ def self.attribute_map
51
+ {
52
+ :'description' => :'description',
53
+ :'name' => :'name',
54
+ :'tags' => :'tags'
55
+ }
56
+ end
57
+
58
+ # Returns all the JSON keys this model knows about
59
+ def self.acceptable_attributes
60
+ attribute_map.values
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.openapi_types
65
+ {
66
+ :'description' => :'String',
67
+ :'name' => :'String',
68
+ :'tags' => :'Array<SfvbLibraryTaxonomyTag>'
69
+ }
70
+ end
71
+
72
+ # List of attributes with nullable: true
73
+ def self.openapi_nullable
74
+ Set.new([
75
+ ])
76
+ end
77
+
78
+ # Initializes the object
79
+ # @param [Hash] attributes Model attributes in the form of hash
80
+ def initialize(attributes = {})
81
+ if (!attributes.is_a?(Hash))
82
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbLibraryTaxonomyDimension` initialize method"
83
+ end
84
+
85
+ # check to see if the attribute exists and convert string to symbol for hash key
86
+ attributes = attributes.each_with_object({}) { |(k, v), h|
87
+ if (!self.class.attribute_map.key?(k.to_sym))
88
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbLibraryTaxonomyDimension`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
89
+ end
90
+ h[k.to_sym] = v
91
+ }
92
+
93
+ if attributes.key?(:'description')
94
+ self.description = attributes[:'description']
95
+ end
96
+
97
+ if attributes.key?(:'name')
98
+ self.name = attributes[:'name']
99
+ end
100
+
101
+ if attributes.key?(:'tags')
102
+ if (value = attributes[:'tags']).is_a?(Array)
103
+ self.tags = value
104
+ end
105
+ end
106
+ end
107
+
108
+ # Show invalid properties with the reasons. Usually used together with valid?
109
+ # @return Array for valid properties with the reasons
110
+ def list_invalid_properties
111
+ invalid_properties = Array.new
112
+ invalid_properties
113
+ end
114
+
115
+ # Check to see if the all the properties in the model are valid
116
+ # @return true if the model is valid
117
+ def valid?
118
+ name_validator = EnumAttributeValidator.new('String', ["purpose", "section", "industry", "style"])
119
+ return false unless name_validator.valid?(@name)
120
+ true
121
+ end
122
+
123
+ # Custom attribute writer method checking allowed values (enum).
124
+ # @param [Object] name Object to be assigned
125
+ def name=(name)
126
+ validator = EnumAttributeValidator.new('String', ["purpose", "section", "industry", "style"])
127
+ unless validator.valid?(name)
128
+ fail ArgumentError, "invalid value for \"name\", must be one of #{validator.allowable_values}."
129
+ end
130
+ @name = name
131
+ end
132
+
133
+ # Checks equality by comparing each attribute.
134
+ # @param [Object] Object to be compared
135
+ def ==(o)
136
+ return true if self.equal?(o)
137
+ self.class == o.class &&
138
+ description == o.description &&
139
+ name == o.name &&
140
+ tags == o.tags
141
+ end
142
+
143
+ # @see the `==` method
144
+ # @param [Object] Object to be compared
145
+ def eql?(o)
146
+ self == o
147
+ end
148
+
149
+ # Calculates hash code according to all attributes.
150
+ # @return [Integer] Hash code
151
+ def hash
152
+ [description, name, tags].hash
153
+ end
154
+
155
+ # Builds the object from hash
156
+ # @param [Hash] attributes Model attributes in the form of hash
157
+ # @return [Object] Returns the model itself
158
+ def self.build_from_hash(attributes)
159
+ new.build_from_hash(attributes)
160
+ end
161
+
162
+ # Builds the object from hash
163
+ # @param [Hash] attributes Model attributes in the form of hash
164
+ # @return [Object] Returns the model itself
165
+ def build_from_hash(attributes)
166
+ return nil unless attributes.is_a?(Hash)
167
+ attributes = attributes.transform_keys(&:to_sym)
168
+ self.class.openapi_types.each_pair do |key, type|
169
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
170
+ self.send("#{key}=", nil)
171
+ elsif type =~ /\AArray<(.*)>/i
172
+ # check to ensure the input is an array given that the attribute
173
+ # is documented as an array but the input is not
174
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
175
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
176
+ end
177
+ elsif !attributes[self.class.attribute_map[key]].nil?
178
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
179
+ end
180
+ end
181
+
182
+ self
183
+ end
184
+
185
+ # Deserializes the data based on type
186
+ # @param string type Data type
187
+ # @param string value Value to be deserialized
188
+ # @return [Object] Deserialized data
189
+ def _deserialize(type, value)
190
+ case type.to_sym
191
+ when :Time
192
+ Time.parse(value)
193
+ when :Date
194
+ Date.parse(value)
195
+ when :String
196
+ value.to_s
197
+ when :Integer
198
+ value.to_i
199
+ when :Float
200
+ value.to_f
201
+ when :Boolean
202
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
203
+ true
204
+ else
205
+ false
206
+ end
207
+ when :Object
208
+ # generic object (usually a Hash), return directly
209
+ value
210
+ when /\AArray<(?<inner_type>.+)>\z/
211
+ inner_type = Regexp.last_match[:inner_type]
212
+ value.map { |v| _deserialize(inner_type, v) }
213
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
214
+ k_type = Regexp.last_match[:k_type]
215
+ v_type = Regexp.last_match[:v_type]
216
+ {}.tap do |hash|
217
+ value.each do |k, v|
218
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
219
+ end
220
+ end
221
+ else # model
222
+ # models (e.g. Pet) or oneOf
223
+ klass = UltracartClient.const_get(type)
224
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
225
+ end
226
+ end
227
+
228
+ # Returns the string representation of the object
229
+ # @return [String] String presentation of the object
230
+ def to_s
231
+ to_hash.to_s
232
+ end
233
+
234
+ # to_body is an alias to to_hash (backward compatibility)
235
+ # @return [Hash] Returns the object in the form of hash
236
+ def to_body
237
+ to_hash
238
+ end
239
+
240
+ # Returns the object in the form of hash
241
+ # @return [Hash] Returns the object in the form of hash
242
+ def to_hash
243
+ hash = {}
244
+ self.class.attribute_map.each_pair do |attr, param|
245
+ value = self.send(attr)
246
+ if value.nil?
247
+ is_nullable = self.class.openapi_nullable.include?(attr)
248
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
249
+ end
250
+
251
+ hash[param] = _to_hash(value)
252
+ end
253
+ hash
254
+ end
255
+
256
+ # Outputs non-array value in the form of hash
257
+ # For object, use to_hash. Otherwise, just return the value
258
+ # @param [Object] value Any valid value
259
+ # @return [Hash] Returns the value in the form of hash
260
+ def _to_hash(value)
261
+ if value.is_a?(Array)
262
+ value.compact.map { |v| _to_hash(v) }
263
+ elsif value.is_a?(Hash)
264
+ {}.tap do |hash|
265
+ value.each { |k, v| hash[k] = _to_hash(v) }
266
+ end
267
+ elsif value.respond_to? :to_hash
268
+ value.to_hash
269
+ else
270
+ value
271
+ end
272
+ end
273
+
274
+ end
275
+
276
+ end
@@ -0,0 +1,230 @@
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 SfvbLibraryTaxonomyTag
18
+ # When to use it.
19
+ attr_accessor :description
20
+
21
+ # The value to send in the entry's taxonomy.
22
+ attr_accessor :slug
23
+
24
+ # Attribute mapping from ruby-style variable name to JSON key.
25
+ def self.attribute_map
26
+ {
27
+ :'description' => :'description',
28
+ :'slug' => :'slug'
29
+ }
30
+ end
31
+
32
+ # Returns all the JSON keys this model knows about
33
+ def self.acceptable_attributes
34
+ attribute_map.values
35
+ end
36
+
37
+ # Attribute type mapping.
38
+ def self.openapi_types
39
+ {
40
+ :'description' => :'String',
41
+ :'slug' => :'String'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbLibraryTaxonomyTag` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbLibraryTaxonomyTag`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'description')
67
+ self.description = attributes[:'description']
68
+ end
69
+
70
+ if attributes.key?(:'slug')
71
+ self.slug = attributes[:'slug']
72
+ end
73
+ end
74
+
75
+ # Show invalid properties with the reasons. Usually used together with valid?
76
+ # @return Array for valid properties with the reasons
77
+ def list_invalid_properties
78
+ invalid_properties = Array.new
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ true
86
+ end
87
+
88
+ # Checks equality by comparing each attribute.
89
+ # @param [Object] Object to be compared
90
+ def ==(o)
91
+ return true if self.equal?(o)
92
+ self.class == o.class &&
93
+ description == o.description &&
94
+ slug == o.slug
95
+ end
96
+
97
+ # @see the `==` method
98
+ # @param [Object] Object to be compared
99
+ def eql?(o)
100
+ self == o
101
+ end
102
+
103
+ # Calculates hash code according to all attributes.
104
+ # @return [Integer] Hash code
105
+ def hash
106
+ [description, slug].hash
107
+ end
108
+
109
+ # Builds the object from hash
110
+ # @param [Hash] attributes Model attributes in the form of hash
111
+ # @return [Object] Returns the model itself
112
+ def self.build_from_hash(attributes)
113
+ new.build_from_hash(attributes)
114
+ end
115
+
116
+ # Builds the object from hash
117
+ # @param [Hash] attributes Model attributes in the form of hash
118
+ # @return [Object] Returns the model itself
119
+ def build_from_hash(attributes)
120
+ return nil unless attributes.is_a?(Hash)
121
+ attributes = attributes.transform_keys(&:to_sym)
122
+ self.class.openapi_types.each_pair do |key, type|
123
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
124
+ self.send("#{key}=", nil)
125
+ elsif type =~ /\AArray<(.*)>/i
126
+ # check to ensure the input is an array given that the attribute
127
+ # is documented as an array but the input is not
128
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
129
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
130
+ end
131
+ elsif !attributes[self.class.attribute_map[key]].nil?
132
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
133
+ end
134
+ end
135
+
136
+ self
137
+ end
138
+
139
+ # Deserializes the data based on type
140
+ # @param string type Data type
141
+ # @param string value Value to be deserialized
142
+ # @return [Object] Deserialized data
143
+ def _deserialize(type, value)
144
+ case type.to_sym
145
+ when :Time
146
+ Time.parse(value)
147
+ when :Date
148
+ Date.parse(value)
149
+ when :String
150
+ value.to_s
151
+ when :Integer
152
+ value.to_i
153
+ when :Float
154
+ value.to_f
155
+ when :Boolean
156
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
157
+ true
158
+ else
159
+ false
160
+ end
161
+ when :Object
162
+ # generic object (usually a Hash), return directly
163
+ value
164
+ when /\AArray<(?<inner_type>.+)>\z/
165
+ inner_type = Regexp.last_match[:inner_type]
166
+ value.map { |v| _deserialize(inner_type, v) }
167
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
168
+ k_type = Regexp.last_match[:k_type]
169
+ v_type = Regexp.last_match[:v_type]
170
+ {}.tap do |hash|
171
+ value.each do |k, v|
172
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
173
+ end
174
+ end
175
+ else # model
176
+ # models (e.g. Pet) or oneOf
177
+ klass = UltracartClient.const_get(type)
178
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+
228
+ end
229
+
230
+ 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.185'
14
+ VERSION = '4.1.189'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -1045,6 +1045,7 @@ require 'ultracart_api/models/sfvb_library_install_receipt'
1045
1045
  require 'ultracart_api/models/sfvb_library_install_record'
1046
1046
  require 'ultracart_api/models/sfvb_library_install_request'
1047
1047
  require 'ultracart_api/models/sfvb_library_installs_response'
1048
+ require 'ultracart_api/models/sfvb_library_manifest_finding'
1048
1049
  require 'ultracart_api/models/sfvb_library_parameter'
1049
1050
  require 'ultracart_api/models/sfvb_library_publish_request'
1050
1051
  require 'ultracart_api/models/sfvb_library_response'
@@ -1054,6 +1055,8 @@ require 'ultracart_api/models/sfvb_library_share_target'
1054
1055
  require 'ultracart_api/models/sfvb_library_share_targets_response'
1055
1056
  require 'ultracart_api/models/sfvb_library_taxonomy'
1056
1057
  require 'ultracart_api/models/sfvb_library_taxonomy_catalog'
1058
+ require 'ultracart_api/models/sfvb_library_taxonomy_dimension'
1059
+ require 'ultracart_api/models/sfvb_library_taxonomy_tag'
1057
1060
  require 'ultracart_api/models/sfvb_library_unshare_result'
1058
1061
  require 'ultracart_api/models/sfvb_menu'
1059
1062
  require 'ultracart_api/models/sfvb_menu_item'
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.185
4
+ version: 4.1.189
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-05 00:00:00.000000000 Z
11
+ date: 2026-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1107,6 +1107,7 @@ files:
1107
1107
  - docs/SfvbLibraryInstallRecord.md
1108
1108
  - docs/SfvbLibraryInstallRequest.md
1109
1109
  - docs/SfvbLibraryInstallsResponse.md
1110
+ - docs/SfvbLibraryManifestFinding.md
1110
1111
  - docs/SfvbLibraryParameter.md
1111
1112
  - docs/SfvbLibraryPublishRequest.md
1112
1113
  - docs/SfvbLibraryResponse.md
@@ -1116,6 +1117,8 @@ files:
1116
1117
  - docs/SfvbLibraryShareTargetsResponse.md
1117
1118
  - docs/SfvbLibraryTaxonomy.md
1118
1119
  - docs/SfvbLibraryTaxonomyCatalog.md
1120
+ - docs/SfvbLibraryTaxonomyDimension.md
1121
+ - docs/SfvbLibraryTaxonomyTag.md
1119
1122
  - docs/SfvbLibraryUnshareResult.md
1120
1123
  - docs/SfvbMenu.md
1121
1124
  - docs/SfvbMenuItem.md
@@ -2358,6 +2361,7 @@ files:
2358
2361
  - lib/ultracart_api/models/sfvb_library_install_record.rb
2359
2362
  - lib/ultracart_api/models/sfvb_library_install_request.rb
2360
2363
  - lib/ultracart_api/models/sfvb_library_installs_response.rb
2364
+ - lib/ultracart_api/models/sfvb_library_manifest_finding.rb
2361
2365
  - lib/ultracart_api/models/sfvb_library_parameter.rb
2362
2366
  - lib/ultracart_api/models/sfvb_library_publish_request.rb
2363
2367
  - lib/ultracart_api/models/sfvb_library_response.rb
@@ -2367,6 +2371,8 @@ files:
2367
2371
  - lib/ultracart_api/models/sfvb_library_share_targets_response.rb
2368
2372
  - lib/ultracart_api/models/sfvb_library_taxonomy.rb
2369
2373
  - lib/ultracart_api/models/sfvb_library_taxonomy_catalog.rb
2374
+ - lib/ultracart_api/models/sfvb_library_taxonomy_dimension.rb
2375
+ - lib/ultracart_api/models/sfvb_library_taxonomy_tag.rb
2370
2376
  - lib/ultracart_api/models/sfvb_library_unshare_result.rb
2371
2377
  - lib/ultracart_api/models/sfvb_menu.rb
2372
2378
  - lib/ultracart_api/models/sfvb_menu_item.rb