ultracart_api 4.1.169 → 4.1.170
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 +18 -2
- data/docs/SfvbApi.md +342 -0
- data/docs/SfvbItemAttribute.md +34 -0
- data/docs/SfvbItemAttributeUpdate.md +22 -0
- data/docs/SfvbItemAttributeUpdateRequest.md +18 -0
- data/docs/SfvbItemContentRequest.md +20 -0
- data/docs/SfvbItemMultimedia.md +34 -0
- data/docs/SfvbItemMultimediaRequest.md +24 -0
- data/docs/SfvbItemResponse.md +32 -0
- data/docs/SfvbItemSeo.md +34 -0
- data/docs/SfvbItemSeoRequest.md +22 -0
- data/lib/ultracart_api/api/sfvb_api.rb +470 -0
- data/lib/ultracart_api/models/sfvb_item_attribute.rb +336 -0
- data/lib/ultracart_api/models/sfvb_item_attribute_update.rb +274 -0
- data/lib/ultracart_api/models/sfvb_item_attribute_update_request.rb +222 -0
- data/lib/ultracart_api/models/sfvb_item_content_request.rb +230 -0
- data/lib/ultracart_api/models/sfvb_item_multimedia.rb +334 -0
- data/lib/ultracart_api/models/sfvb_item_multimedia_request.rb +250 -0
- data/lib/ultracart_api/models/sfvb_item_response.rb +295 -0
- data/lib/ultracart_api/models/sfvb_item_seo.rb +358 -0
- data/lib/ultracart_api/models/sfvb_item_seo_request.rb +240 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +9 -0
- metadata +19 -1
|
@@ -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 SfvbItemSeoRequest
|
|
18
|
+
# The meta description. Cleared, the page falls back to its group's value and then to the site's.
|
|
19
|
+
attr_accessor :description
|
|
20
|
+
|
|
21
|
+
# The meta keywords. Cleared, the page falls back to its group's value and then to the site's.
|
|
22
|
+
attr_accessor :keywords
|
|
23
|
+
|
|
24
|
+
# The document title for this item's page. Cleared, the page falls back to the item's own description. This does not reach og:title or twitter:title, which render the item description either way.
|
|
25
|
+
attr_accessor :title
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'description' => :'description',
|
|
31
|
+
:'keywords' => :'keywords',
|
|
32
|
+
:'title' => :'title'
|
|
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
|
+
:'description' => :'String',
|
|
45
|
+
:'keywords' => :'String',
|
|
46
|
+
:'title' => :'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::SfvbItemSeoRequest` 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::SfvbItemSeoRequest`. 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?(:'description')
|
|
72
|
+
self.description = attributes[:'description']
|
|
73
|
+
end
|
|
74
|
+
|
|
75
|
+
if attributes.key?(:'keywords')
|
|
76
|
+
self.keywords = attributes[:'keywords']
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'title')
|
|
80
|
+
self.title = attributes[:'title']
|
|
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
|
+
description == o.description &&
|
|
103
|
+
keywords == o.keywords &&
|
|
104
|
+
title == o.title
|
|
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
|
+
[description, keywords, title].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
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1015,8 +1015,17 @@ require 'ultracart_api/models/sfvb_file_versions_response'
|
|
|
1015
1015
|
require 'ultracart_api/models/sfvb_file_write_request'
|
|
1016
1016
|
require 'ultracart_api/models/sfvb_file_write_response'
|
|
1017
1017
|
require 'ultracart_api/models/sfvb_files_response'
|
|
1018
|
+
require 'ultracart_api/models/sfvb_item_attribute'
|
|
1019
|
+
require 'ultracart_api/models/sfvb_item_attribute_update'
|
|
1020
|
+
require 'ultracart_api/models/sfvb_item_attribute_update_request'
|
|
1018
1021
|
require 'ultracart_api/models/sfvb_item_container'
|
|
1019
1022
|
require 'ultracart_api/models/sfvb_item_containers_response'
|
|
1023
|
+
require 'ultracart_api/models/sfvb_item_content_request'
|
|
1024
|
+
require 'ultracart_api/models/sfvb_item_multimedia'
|
|
1025
|
+
require 'ultracart_api/models/sfvb_item_multimedia_request'
|
|
1026
|
+
require 'ultracart_api/models/sfvb_item_response'
|
|
1027
|
+
require 'ultracart_api/models/sfvb_item_seo'
|
|
1028
|
+
require 'ultracart_api/models/sfvb_item_seo_request'
|
|
1020
1029
|
require 'ultracart_api/models/sfvb_library_entry'
|
|
1021
1030
|
require 'ultracart_api/models/sfvb_library_facet'
|
|
1022
1031
|
require 'ultracart_api/models/sfvb_library_response'
|
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.170
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -1077,8 +1077,17 @@ files:
|
|
|
1077
1077
|
- docs/SfvbFileWriteRequest.md
|
|
1078
1078
|
- docs/SfvbFileWriteResponse.md
|
|
1079
1079
|
- docs/SfvbFilesResponse.md
|
|
1080
|
+
- docs/SfvbItemAttribute.md
|
|
1081
|
+
- docs/SfvbItemAttributeUpdate.md
|
|
1082
|
+
- docs/SfvbItemAttributeUpdateRequest.md
|
|
1080
1083
|
- docs/SfvbItemContainer.md
|
|
1081
1084
|
- docs/SfvbItemContainersResponse.md
|
|
1085
|
+
- docs/SfvbItemContentRequest.md
|
|
1086
|
+
- docs/SfvbItemMultimedia.md
|
|
1087
|
+
- docs/SfvbItemMultimediaRequest.md
|
|
1088
|
+
- docs/SfvbItemResponse.md
|
|
1089
|
+
- docs/SfvbItemSeo.md
|
|
1090
|
+
- docs/SfvbItemSeoRequest.md
|
|
1082
1091
|
- docs/SfvbLibraryEntry.md
|
|
1083
1092
|
- docs/SfvbLibraryFacet.md
|
|
1084
1093
|
- docs/SfvbLibraryResponse.md
|
|
@@ -2260,8 +2269,17 @@ files:
|
|
|
2260
2269
|
- lib/ultracart_api/models/sfvb_file_write_request.rb
|
|
2261
2270
|
- lib/ultracart_api/models/sfvb_file_write_response.rb
|
|
2262
2271
|
- lib/ultracart_api/models/sfvb_files_response.rb
|
|
2272
|
+
- lib/ultracart_api/models/sfvb_item_attribute.rb
|
|
2273
|
+
- lib/ultracart_api/models/sfvb_item_attribute_update.rb
|
|
2274
|
+
- lib/ultracart_api/models/sfvb_item_attribute_update_request.rb
|
|
2263
2275
|
- lib/ultracart_api/models/sfvb_item_container.rb
|
|
2264
2276
|
- lib/ultracart_api/models/sfvb_item_containers_response.rb
|
|
2277
|
+
- lib/ultracart_api/models/sfvb_item_content_request.rb
|
|
2278
|
+
- lib/ultracart_api/models/sfvb_item_multimedia.rb
|
|
2279
|
+
- lib/ultracart_api/models/sfvb_item_multimedia_request.rb
|
|
2280
|
+
- lib/ultracart_api/models/sfvb_item_response.rb
|
|
2281
|
+
- lib/ultracart_api/models/sfvb_item_seo.rb
|
|
2282
|
+
- lib/ultracart_api/models/sfvb_item_seo_request.rb
|
|
2265
2283
|
- lib/ultracart_api/models/sfvb_library_entry.rb
|
|
2266
2284
|
- lib/ultracart_api/models/sfvb_library_facet.rb
|
|
2267
2285
|
- lib/ultracart_api/models/sfvb_library_response.rb
|