ultracart_api 4.1.214 → 4.1.215
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 +4 -4
- data/README.md +4 -2
- data/docs/SfvbItemResponse.md +2 -0
- data/docs/SfvbItemTags.md +22 -0
- data/lib/ultracart_api/models/sfvb_item_response.rb +10 -1
- data/lib/ultracart_api/models/sfvb_item_tags.rb +246 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 5e6a1f58298e6be7c7315a1d178bb1f6d3a419eebcd271dcbc69d222322411ce
|
|
4
|
+
data.tar.gz: ba290b264b1eebea6e21742fc5912ed1d8a34bb1061684c0ddeefb8d0317cf5c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7c5650d80171ed9a4a66dde88f638412e6d1f20c86e174354ea0a76ebcc898775613fca1a3bddb425ab78ddb07c3cad90bfe19b096bb98143de968dadca818e4
|
|
7
|
+
data.tar.gz: ed66c16777f49efb3db6518750e80952bc2219b4cad97df4f7c205236b1a96f3608977fada351c8642f1a79339341a81382bcfd8ec63867202e6be4a08751c79
|
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.
|
|
10
|
+
- Package version: 4.1.215
|
|
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.
|
|
19
|
+
gem 'ultracart_api', '4.1.215'
|
|
20
20
|
```
|
|
21
21
|
|
|
22
22
|
install:
|
|
@@ -2012,6 +2012,7 @@ Class | Method | HTTP request | Description
|
|
|
2012
2012
|
- [UltracartClient::SfvbItemResponse](docs/SfvbItemResponse.md)
|
|
2013
2013
|
- [UltracartClient::SfvbItemSeo](docs/SfvbItemSeo.md)
|
|
2014
2014
|
- [UltracartClient::SfvbItemSeoRequest](docs/SfvbItemSeoRequest.md)
|
|
2015
|
+
- [UltracartClient::SfvbItemTags](docs/SfvbItemTags.md)
|
|
2015
2016
|
- [UltracartClient::SfvbItemVolumeDiscount](docs/SfvbItemVolumeDiscount.md)
|
|
2016
2017
|
- [UltracartClient::SfvbLibraryAiReview](docs/SfvbLibraryAiReview.md)
|
|
2017
2018
|
- [UltracartClient::SfvbLibraryContentManifest](docs/SfvbLibraryContentManifest.md)
|
|
@@ -2330,6 +2331,7 @@ Not every change is committed to every SDK.
|
|
|
2330
2331
|
|
|
2331
2332
|
| Version | Date | Comments |
|
|
2332
2333
|
| --: | :-: | --- |
|
|
2334
|
+
| 4.1.215 | 10/28/2026 | sfvb internal testing |
|
|
2333
2335
|
| 4.1.214 | 10/28/2026 | sfvb internal testing |
|
|
2334
2336
|
| 4.1.213 | 10/28/2026 | auto order - improve item field descriptions |
|
|
2335
2337
|
| 4.1.212 | 10/27/2026 | conversation - pbx agent startup activity |
|
data/docs/SfvbItemResponse.md
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
| **merchant_item_oid** | **Integer** | The item's internal oid, which appears nowhere on a rendered storefront. | [optional] |
|
|
12
12
|
| **multimedia** | [**Array<SfvbItemMultimedia>**](SfvbItemMultimedia.md) | Every image slot a template declares plus every image attached to the item. | [optional] |
|
|
13
13
|
| **seo** | [**SfvbItemSeo**](SfvbItemSeo.md) | | [optional] |
|
|
14
|
+
| **tags** | [**SfvbItemTags**](SfvbItemTags.md) | | [optional] |
|
|
14
15
|
| **title** | **String** | What an itemtitle element renders. This is the item's short description in the catalog, not a storefront only field, so changing it changes the item everywhere. | [optional] |
|
|
15
16
|
|
|
16
17
|
## Example
|
|
@@ -26,6 +27,7 @@ instance = UltracartClient::SfvbItemResponse.new(
|
|
|
26
27
|
merchant_item_oid: null,
|
|
27
28
|
multimedia: null,
|
|
28
29
|
seo: null,
|
|
30
|
+
tags: null,
|
|
29
31
|
title: null
|
|
30
32
|
)
|
|
31
33
|
```
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::SfvbItemTags
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **customer** | **Array<String>** | Tags put on the customer when this item is bought, in stored order. | [optional] |
|
|
8
|
+
| **item** | **Array<String>** | The item's own tags, in stored order. These are what the item in cart with tag conditions and itemcondition check. | [optional] |
|
|
9
|
+
| **order** | **Array<String>** | Tags put on the order when this item is bought, in stored order. | [optional] |
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```ruby
|
|
14
|
+
require 'ultracart_api'
|
|
15
|
+
|
|
16
|
+
instance = UltracartClient::SfvbItemTags.new(
|
|
17
|
+
customer: null,
|
|
18
|
+
item: null,
|
|
19
|
+
order: null
|
|
20
|
+
)
|
|
21
|
+
```
|
|
22
|
+
|
|
@@ -35,6 +35,8 @@ module UltracartClient
|
|
|
35
35
|
|
|
36
36
|
attr_accessor :seo
|
|
37
37
|
|
|
38
|
+
attr_accessor :tags
|
|
39
|
+
|
|
38
40
|
# What an itemtitle element renders. This is the item's short description in the catalog, not a storefront only field, so changing it changes the item everywhere.
|
|
39
41
|
attr_accessor :title
|
|
40
42
|
|
|
@@ -48,6 +50,7 @@ module UltracartClient
|
|
|
48
50
|
:'merchant_item_oid' => :'merchant_item_oid',
|
|
49
51
|
:'multimedia' => :'multimedia',
|
|
50
52
|
:'seo' => :'seo',
|
|
53
|
+
:'tags' => :'tags',
|
|
51
54
|
:'title' => :'title'
|
|
52
55
|
}
|
|
53
56
|
end
|
|
@@ -67,6 +70,7 @@ module UltracartClient
|
|
|
67
70
|
:'merchant_item_oid' => :'Integer',
|
|
68
71
|
:'multimedia' => :'Array<SfvbItemMultimedia>',
|
|
69
72
|
:'seo' => :'SfvbItemSeo',
|
|
73
|
+
:'tags' => :'SfvbItemTags',
|
|
70
74
|
:'title' => :'String'
|
|
71
75
|
}
|
|
72
76
|
end
|
|
@@ -126,6 +130,10 @@ module UltracartClient
|
|
|
126
130
|
self.seo = attributes[:'seo']
|
|
127
131
|
end
|
|
128
132
|
|
|
133
|
+
if attributes.key?(:'tags')
|
|
134
|
+
self.tags = attributes[:'tags']
|
|
135
|
+
end
|
|
136
|
+
|
|
129
137
|
if attributes.key?(:'title')
|
|
130
138
|
self.title = attributes[:'title']
|
|
131
139
|
end
|
|
@@ -156,6 +164,7 @@ module UltracartClient
|
|
|
156
164
|
merchant_item_oid == o.merchant_item_oid &&
|
|
157
165
|
multimedia == o.multimedia &&
|
|
158
166
|
seo == o.seo &&
|
|
167
|
+
tags == o.tags &&
|
|
159
168
|
title == o.title
|
|
160
169
|
end
|
|
161
170
|
|
|
@@ -168,7 +177,7 @@ module UltracartClient
|
|
|
168
177
|
# Calculates hash code according to all attributes.
|
|
169
178
|
# @return [Integer] Hash code
|
|
170
179
|
def hash
|
|
171
|
-
[attributes, description, groups, merchant_item_id, merchant_item_oid, multimedia, seo, title].hash
|
|
180
|
+
[attributes, description, groups, merchant_item_id, merchant_item_oid, multimedia, seo, tags, title].hash
|
|
172
181
|
end
|
|
173
182
|
|
|
174
183
|
# Builds the object from hash
|
|
@@ -0,0 +1,246 @@
|
|
|
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 SfvbItemTags
|
|
18
|
+
# Tags put on the customer when this item is bought, in stored order.
|
|
19
|
+
attr_accessor :customer
|
|
20
|
+
|
|
21
|
+
# The item's own tags, in stored order. These are what the item in cart with tag conditions and itemcondition check.
|
|
22
|
+
attr_accessor :item
|
|
23
|
+
|
|
24
|
+
# Tags put on the order when this item is bought, in stored order.
|
|
25
|
+
attr_accessor :order
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'customer' => :'customer',
|
|
31
|
+
:'item' => :'item',
|
|
32
|
+
:'order' => :'order'
|
|
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
|
+
:'customer' => :'Array<String>',
|
|
45
|
+
:'item' => :'Array<String>',
|
|
46
|
+
:'order' => :'Array<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::SfvbItemTags` 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::SfvbItemTags`. 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?(:'customer')
|
|
72
|
+
if (value = attributes[:'customer']).is_a?(Array)
|
|
73
|
+
self.customer = value
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'item')
|
|
78
|
+
if (value = attributes[:'item']).is_a?(Array)
|
|
79
|
+
self.item = value
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
if attributes.key?(:'order')
|
|
84
|
+
if (value = attributes[:'order']).is_a?(Array)
|
|
85
|
+
self.order = value
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
91
|
+
# @return Array for valid properties with the reasons
|
|
92
|
+
def list_invalid_properties
|
|
93
|
+
invalid_properties = Array.new
|
|
94
|
+
invalid_properties
|
|
95
|
+
end
|
|
96
|
+
|
|
97
|
+
# Check to see if the all the properties in the model are valid
|
|
98
|
+
# @return true if the model is valid
|
|
99
|
+
def valid?
|
|
100
|
+
true
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
# Checks equality by comparing each attribute.
|
|
104
|
+
# @param [Object] Object to be compared
|
|
105
|
+
def ==(o)
|
|
106
|
+
return true if self.equal?(o)
|
|
107
|
+
self.class == o.class &&
|
|
108
|
+
customer == o.customer &&
|
|
109
|
+
item == o.item &&
|
|
110
|
+
order == o.order
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
# @see the `==` method
|
|
114
|
+
# @param [Object] Object to be compared
|
|
115
|
+
def eql?(o)
|
|
116
|
+
self == o
|
|
117
|
+
end
|
|
118
|
+
|
|
119
|
+
# Calculates hash code according to all attributes.
|
|
120
|
+
# @return [Integer] Hash code
|
|
121
|
+
def hash
|
|
122
|
+
[customer, item, order].hash
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# Builds the object from hash
|
|
126
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
127
|
+
# @return [Object] Returns the model itself
|
|
128
|
+
def self.build_from_hash(attributes)
|
|
129
|
+
new.build_from_hash(attributes)
|
|
130
|
+
end
|
|
131
|
+
|
|
132
|
+
# Builds the object from hash
|
|
133
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
134
|
+
# @return [Object] Returns the model itself
|
|
135
|
+
def build_from_hash(attributes)
|
|
136
|
+
return nil unless attributes.is_a?(Hash)
|
|
137
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
138
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
139
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
140
|
+
self.send("#{key}=", nil)
|
|
141
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
142
|
+
# check to ensure the input is an array given that the attribute
|
|
143
|
+
# is documented as an array but the input is not
|
|
144
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
146
|
+
end
|
|
147
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
148
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
149
|
+
end
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
self
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
# Deserializes the data based on type
|
|
156
|
+
# @param string type Data type
|
|
157
|
+
# @param string value Value to be deserialized
|
|
158
|
+
# @return [Object] Deserialized data
|
|
159
|
+
def _deserialize(type, value)
|
|
160
|
+
case type.to_sym
|
|
161
|
+
when :Time
|
|
162
|
+
Time.parse(value)
|
|
163
|
+
when :Date
|
|
164
|
+
Date.parse(value)
|
|
165
|
+
when :String
|
|
166
|
+
value.to_s
|
|
167
|
+
when :Integer
|
|
168
|
+
value.to_i
|
|
169
|
+
when :Float
|
|
170
|
+
value.to_f
|
|
171
|
+
when :Boolean
|
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
173
|
+
true
|
|
174
|
+
else
|
|
175
|
+
false
|
|
176
|
+
end
|
|
177
|
+
when :Object
|
|
178
|
+
# generic object (usually a Hash), return directly
|
|
179
|
+
value
|
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
|
186
|
+
{}.tap do |hash|
|
|
187
|
+
value.each do |k, v|
|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
else # model
|
|
192
|
+
# models (e.g. Pet) or oneOf
|
|
193
|
+
klass = UltracartClient.const_get(type)
|
|
194
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
195
|
+
end
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Returns the string representation of the object
|
|
199
|
+
# @return [String] String presentation of the object
|
|
200
|
+
def to_s
|
|
201
|
+
to_hash.to_s
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_body
|
|
207
|
+
to_hash
|
|
208
|
+
end
|
|
209
|
+
|
|
210
|
+
# Returns the object in the form of hash
|
|
211
|
+
# @return [Hash] Returns the object in the form of hash
|
|
212
|
+
def to_hash
|
|
213
|
+
hash = {}
|
|
214
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
215
|
+
value = self.send(attr)
|
|
216
|
+
if value.nil?
|
|
217
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
218
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
hash[param] = _to_hash(value)
|
|
222
|
+
end
|
|
223
|
+
hash
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Outputs non-array value in the form of hash
|
|
227
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
228
|
+
# @param [Object] value Any valid value
|
|
229
|
+
# @return [Hash] Returns the value in the form of hash
|
|
230
|
+
def _to_hash(value)
|
|
231
|
+
if value.is_a?(Array)
|
|
232
|
+
value.compact.map { |v| _to_hash(v) }
|
|
233
|
+
elsif value.is_a?(Hash)
|
|
234
|
+
{}.tap do |hash|
|
|
235
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
236
|
+
end
|
|
237
|
+
elsif value.respond_to? :to_hash
|
|
238
|
+
value.to_hash
|
|
239
|
+
else
|
|
240
|
+
value
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
end
|
|
245
|
+
|
|
246
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1089,6 +1089,7 @@ require 'ultracart_api/models/sfvb_item_related_request'
|
|
|
1089
1089
|
require 'ultracart_api/models/sfvb_item_response'
|
|
1090
1090
|
require 'ultracart_api/models/sfvb_item_seo'
|
|
1091
1091
|
require 'ultracart_api/models/sfvb_item_seo_request'
|
|
1092
|
+
require 'ultracart_api/models/sfvb_item_tags'
|
|
1092
1093
|
require 'ultracart_api/models/sfvb_item_volume_discount'
|
|
1093
1094
|
require 'ultracart_api/models/sfvb_library_ai_review'
|
|
1094
1095
|
require 'ultracart_api/models/sfvb_library_content_manifest'
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ultracart_api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.1.
|
|
4
|
+
version: 4.1.215
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -1151,6 +1151,7 @@ files:
|
|
|
1151
1151
|
- docs/SfvbItemResponse.md
|
|
1152
1152
|
- docs/SfvbItemSeo.md
|
|
1153
1153
|
- docs/SfvbItemSeoRequest.md
|
|
1154
|
+
- docs/SfvbItemTags.md
|
|
1154
1155
|
- docs/SfvbItemVolumeDiscount.md
|
|
1155
1156
|
- docs/SfvbLibraryAiReview.md
|
|
1156
1157
|
- docs/SfvbLibraryContentManifest.md
|
|
@@ -2499,6 +2500,7 @@ files:
|
|
|
2499
2500
|
- lib/ultracart_api/models/sfvb_item_response.rb
|
|
2500
2501
|
- lib/ultracart_api/models/sfvb_item_seo.rb
|
|
2501
2502
|
- lib/ultracart_api/models/sfvb_item_seo_request.rb
|
|
2503
|
+
- lib/ultracart_api/models/sfvb_item_tags.rb
|
|
2502
2504
|
- lib/ultracart_api/models/sfvb_item_volume_discount.rb
|
|
2503
2505
|
- lib/ultracart_api/models/sfvb_library_ai_review.rb
|
|
2504
2506
|
- lib/ultracart_api/models/sfvb_library_content_manifest.rb
|