ultracart_api 4.1.183 → 4.1.185
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 +40 -2
- data/docs/AutoOrderApi.md +28 -1
- data/docs/OrderApi.md +107 -3
- data/docs/SfvbApi.md +941 -50
- data/docs/SfvbLibraryAiReview.md +28 -0
- data/docs/SfvbLibraryContentManifest.md +26 -0
- data/docs/SfvbLibraryDeleteResult.md +20 -0
- data/docs/SfvbLibraryEntry.md +28 -0
- data/docs/SfvbLibraryEntryRequest.md +30 -0
- data/docs/SfvbLibraryFacet.md +2 -2
- data/docs/SfvbLibraryHistoryEntry.md +24 -0
- data/docs/SfvbLibraryHistoryResponse.md +18 -0
- data/docs/SfvbLibraryInstallConflict.md +22 -0
- data/docs/SfvbLibraryInstallReceipt.md +32 -0
- data/docs/SfvbLibraryInstallRecord.md +32 -0
- data/docs/SfvbLibraryInstallRequest.md +22 -0
- data/docs/SfvbLibraryInstallsResponse.md +18 -0
- data/docs/SfvbLibraryParameter.md +26 -0
- data/docs/SfvbLibraryPublishRequest.md +20 -0
- data/docs/SfvbLibraryScreenshotRequest.md +22 -0
- data/docs/SfvbLibraryShareRequest.md +18 -0
- data/docs/SfvbLibraryShareTarget.md +20 -0
- data/docs/SfvbLibraryShareTargetsResponse.md +18 -0
- data/docs/SfvbLibraryTaxonomy.md +24 -0
- data/docs/SfvbLibraryTaxonomyCatalog.md +18 -0
- data/docs/SfvbLibraryUnshareResult.md +22 -0
- data/docs/SfvbWhoamiResponse.md +2 -0
- data/lib/ultracart_api/api/sfvb_api.rb +1334 -118
- data/lib/ultracart_api/models/sfvb_library_ai_review.rb +304 -0
- data/lib/ultracart_api/models/sfvb_library_content_manifest.rb +259 -0
- data/lib/ultracart_api/models/sfvb_library_delete_result.rb +264 -0
- data/lib/ultracart_api/models/sfvb_library_entry.rb +177 -1
- data/lib/ultracart_api/models/sfvb_library_entry_request.rb +280 -0
- data/lib/ultracart_api/models/sfvb_library_facet.rb +2 -2
- data/lib/ultracart_api/models/sfvb_library_history_entry.rb +250 -0
- data/lib/ultracart_api/models/sfvb_library_history_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_library_install_conflict.rb +240 -0
- data/lib/ultracart_api/models/sfvb_library_install_receipt.rb +297 -0
- data/lib/ultracart_api/models/sfvb_library_install_record.rb +290 -0
- data/lib/ultracart_api/models/sfvb_library_install_request.rb +274 -0
- data/lib/ultracart_api/models/sfvb_library_installs_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_library_parameter.rb +260 -0
- data/lib/ultracart_api/models/sfvb_library_publish_request.rb +264 -0
- data/lib/ultracart_api/models/sfvb_library_screenshot_request.rb +274 -0
- data/lib/ultracart_api/models/sfvb_library_share_request.rb +220 -0
- data/lib/ultracart_api/models/sfvb_library_share_target.rb +230 -0
- data/lib/ultracart_api/models/sfvb_library_share_targets_response.rb +222 -0
- data/lib/ultracart_api/models/sfvb_library_taxonomy.rb +258 -0
- data/lib/ultracart_api/models/sfvb_library_taxonomy_catalog.rb +220 -0
- data/lib/ultracart_api/models/sfvb_library_unshare_result.rb +242 -0
- data/lib/ultracart_api/models/sfvb_whoami_response.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +20 -0
- metadata +41 -1
|
@@ -0,0 +1,220 @@
|
|
|
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 SfvbLibraryTaxonomyCatalog
|
|
18
|
+
# purpose, section, industry and style, each with its allowed tags.
|
|
19
|
+
attr_accessor :dimensions
|
|
20
|
+
|
|
21
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
22
|
+
def self.attribute_map
|
|
23
|
+
{
|
|
24
|
+
:'dimensions' => :'dimensions'
|
|
25
|
+
}
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
# Returns all the JSON keys this model knows about
|
|
29
|
+
def self.acceptable_attributes
|
|
30
|
+
attribute_map.values
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Attribute type mapping.
|
|
34
|
+
def self.openapi_types
|
|
35
|
+
{
|
|
36
|
+
:'dimensions' => :'Object'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# List of attributes with nullable: true
|
|
41
|
+
def self.openapi_nullable
|
|
42
|
+
Set.new([
|
|
43
|
+
])
|
|
44
|
+
end
|
|
45
|
+
|
|
46
|
+
# Initializes the object
|
|
47
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
48
|
+
def initialize(attributes = {})
|
|
49
|
+
if (!attributes.is_a?(Hash))
|
|
50
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::SfvbLibraryTaxonomyCatalog` initialize method"
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
54
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
55
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
|
56
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::SfvbLibraryTaxonomyCatalog`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
|
57
|
+
end
|
|
58
|
+
h[k.to_sym] = v
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
if attributes.key?(:'dimensions')
|
|
62
|
+
self.dimensions = attributes[:'dimensions']
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
67
|
+
# @return Array for valid properties with the reasons
|
|
68
|
+
def list_invalid_properties
|
|
69
|
+
invalid_properties = Array.new
|
|
70
|
+
invalid_properties
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# Check to see if the all the properties in the model are valid
|
|
74
|
+
# @return true if the model is valid
|
|
75
|
+
def valid?
|
|
76
|
+
true
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# Checks equality by comparing each attribute.
|
|
80
|
+
# @param [Object] Object to be compared
|
|
81
|
+
def ==(o)
|
|
82
|
+
return true if self.equal?(o)
|
|
83
|
+
self.class == o.class &&
|
|
84
|
+
dimensions == o.dimensions
|
|
85
|
+
end
|
|
86
|
+
|
|
87
|
+
# @see the `==` method
|
|
88
|
+
# @param [Object] Object to be compared
|
|
89
|
+
def eql?(o)
|
|
90
|
+
self == o
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Calculates hash code according to all attributes.
|
|
94
|
+
# @return [Integer] Hash code
|
|
95
|
+
def hash
|
|
96
|
+
[dimensions].hash
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Builds the object from hash
|
|
100
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
101
|
+
# @return [Object] Returns the model itself
|
|
102
|
+
def self.build_from_hash(attributes)
|
|
103
|
+
new.build_from_hash(attributes)
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Builds the object from hash
|
|
107
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
108
|
+
# @return [Object] Returns the model itself
|
|
109
|
+
def build_from_hash(attributes)
|
|
110
|
+
return nil unless attributes.is_a?(Hash)
|
|
111
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
112
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
113
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
114
|
+
self.send("#{key}=", nil)
|
|
115
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
116
|
+
# check to ensure the input is an array given that the attribute
|
|
117
|
+
# is documented as an array but the input is not
|
|
118
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
119
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
120
|
+
end
|
|
121
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
122
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
123
|
+
end
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
self
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Deserializes the data based on type
|
|
130
|
+
# @param string type Data type
|
|
131
|
+
# @param string value Value to be deserialized
|
|
132
|
+
# @return [Object] Deserialized data
|
|
133
|
+
def _deserialize(type, value)
|
|
134
|
+
case type.to_sym
|
|
135
|
+
when :Time
|
|
136
|
+
Time.parse(value)
|
|
137
|
+
when :Date
|
|
138
|
+
Date.parse(value)
|
|
139
|
+
when :String
|
|
140
|
+
value.to_s
|
|
141
|
+
when :Integer
|
|
142
|
+
value.to_i
|
|
143
|
+
when :Float
|
|
144
|
+
value.to_f
|
|
145
|
+
when :Boolean
|
|
146
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
147
|
+
true
|
|
148
|
+
else
|
|
149
|
+
false
|
|
150
|
+
end
|
|
151
|
+
when :Object
|
|
152
|
+
# generic object (usually a Hash), return directly
|
|
153
|
+
value
|
|
154
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
155
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
156
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
157
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
158
|
+
k_type = Regexp.last_match[:k_type]
|
|
159
|
+
v_type = Regexp.last_match[:v_type]
|
|
160
|
+
{}.tap do |hash|
|
|
161
|
+
value.each do |k, v|
|
|
162
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
163
|
+
end
|
|
164
|
+
end
|
|
165
|
+
else # model
|
|
166
|
+
# models (e.g. Pet) or oneOf
|
|
167
|
+
klass = UltracartClient.const_get(type)
|
|
168
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
169
|
+
end
|
|
170
|
+
end
|
|
171
|
+
|
|
172
|
+
# Returns the string representation of the object
|
|
173
|
+
# @return [String] String presentation of the object
|
|
174
|
+
def to_s
|
|
175
|
+
to_hash.to_s
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
179
|
+
# @return [Hash] Returns the object in the form of hash
|
|
180
|
+
def to_body
|
|
181
|
+
to_hash
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Returns the object in the form of hash
|
|
185
|
+
# @return [Hash] Returns the object in the form of hash
|
|
186
|
+
def to_hash
|
|
187
|
+
hash = {}
|
|
188
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
189
|
+
value = self.send(attr)
|
|
190
|
+
if value.nil?
|
|
191
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
192
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
hash[param] = _to_hash(value)
|
|
196
|
+
end
|
|
197
|
+
hash
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# Outputs non-array value in the form of hash
|
|
201
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
202
|
+
# @param [Object] value Any valid value
|
|
203
|
+
# @return [Hash] Returns the value in the form of hash
|
|
204
|
+
def _to_hash(value)
|
|
205
|
+
if value.is_a?(Array)
|
|
206
|
+
value.compact.map { |v| _to_hash(v) }
|
|
207
|
+
elsif value.is_a?(Hash)
|
|
208
|
+
{}.tap do |hash|
|
|
209
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
210
|
+
end
|
|
211
|
+
elsif value.respond_to? :to_hash
|
|
212
|
+
value.to_hash
|
|
213
|
+
else
|
|
214
|
+
value
|
|
215
|
+
end
|
|
216
|
+
end
|
|
217
|
+
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
end
|
|
@@ -0,0 +1,242 @@
|
|
|
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 SfvbLibraryUnshareResult
|
|
18
|
+
# That account's installs, which keep their copies. Unsharing never reaches into a storefront.
|
|
19
|
+
attr_accessor :existing_installs
|
|
20
|
+
|
|
21
|
+
# The entry.
|
|
22
|
+
attr_accessor :library_oid
|
|
23
|
+
|
|
24
|
+
# The account the entry is no longer shared with.
|
|
25
|
+
attr_accessor :merchant_id
|
|
26
|
+
|
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
28
|
+
def self.attribute_map
|
|
29
|
+
{
|
|
30
|
+
:'existing_installs' => :'existing_installs',
|
|
31
|
+
:'library_oid' => :'library_oid',
|
|
32
|
+
:'merchant_id' => :'merchant_id'
|
|
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
|
+
:'existing_installs' => :'Array<SfvbLibraryInstallRecord>',
|
|
45
|
+
:'library_oid' => :'Integer',
|
|
46
|
+
:'merchant_id' => :'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::SfvbLibraryUnshareResult` 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::SfvbLibraryUnshareResult`. 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?(:'existing_installs')
|
|
72
|
+
if (value = attributes[:'existing_installs']).is_a?(Array)
|
|
73
|
+
self.existing_installs = value
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'library_oid')
|
|
78
|
+
self.library_oid = attributes[:'library_oid']
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
if attributes.key?(:'merchant_id')
|
|
82
|
+
self.merchant_id = attributes[:'merchant_id']
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
invalid_properties = Array.new
|
|
90
|
+
invalid_properties
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# Check to see if the all the properties in the model are valid
|
|
94
|
+
# @return true if the model is valid
|
|
95
|
+
def valid?
|
|
96
|
+
true
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Checks equality by comparing each attribute.
|
|
100
|
+
# @param [Object] Object to be compared
|
|
101
|
+
def ==(o)
|
|
102
|
+
return true if self.equal?(o)
|
|
103
|
+
self.class == o.class &&
|
|
104
|
+
existing_installs == o.existing_installs &&
|
|
105
|
+
library_oid == o.library_oid &&
|
|
106
|
+
merchant_id == o.merchant_id
|
|
107
|
+
end
|
|
108
|
+
|
|
109
|
+
# @see the `==` method
|
|
110
|
+
# @param [Object] Object to be compared
|
|
111
|
+
def eql?(o)
|
|
112
|
+
self == o
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Calculates hash code according to all attributes.
|
|
116
|
+
# @return [Integer] Hash code
|
|
117
|
+
def hash
|
|
118
|
+
[existing_installs, library_oid, merchant_id].hash
|
|
119
|
+
end
|
|
120
|
+
|
|
121
|
+
# Builds the object from hash
|
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
123
|
+
# @return [Object] Returns the model itself
|
|
124
|
+
def self.build_from_hash(attributes)
|
|
125
|
+
new.build_from_hash(attributes)
|
|
126
|
+
end
|
|
127
|
+
|
|
128
|
+
# Builds the object from hash
|
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
130
|
+
# @return [Object] Returns the model itself
|
|
131
|
+
def build_from_hash(attributes)
|
|
132
|
+
return nil unless attributes.is_a?(Hash)
|
|
133
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
134
|
+
self.class.openapi_types.each_pair do |key, type|
|
|
135
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
|
136
|
+
self.send("#{key}=", nil)
|
|
137
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
138
|
+
# check to ensure the input is an array given that the attribute
|
|
139
|
+
# is documented as an array but the input is not
|
|
140
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
141
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
142
|
+
end
|
|
143
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
144
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
|
|
148
|
+
self
|
|
149
|
+
end
|
|
150
|
+
|
|
151
|
+
# Deserializes the data based on type
|
|
152
|
+
# @param string type Data type
|
|
153
|
+
# @param string value Value to be deserialized
|
|
154
|
+
# @return [Object] Deserialized data
|
|
155
|
+
def _deserialize(type, value)
|
|
156
|
+
case type.to_sym
|
|
157
|
+
when :Time
|
|
158
|
+
Time.parse(value)
|
|
159
|
+
when :Date
|
|
160
|
+
Date.parse(value)
|
|
161
|
+
when :String
|
|
162
|
+
value.to_s
|
|
163
|
+
when :Integer
|
|
164
|
+
value.to_i
|
|
165
|
+
when :Float
|
|
166
|
+
value.to_f
|
|
167
|
+
when :Boolean
|
|
168
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
169
|
+
true
|
|
170
|
+
else
|
|
171
|
+
false
|
|
172
|
+
end
|
|
173
|
+
when :Object
|
|
174
|
+
# generic object (usually a Hash), return directly
|
|
175
|
+
value
|
|
176
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
177
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
178
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
179
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
180
|
+
k_type = Regexp.last_match[:k_type]
|
|
181
|
+
v_type = Regexp.last_match[:v_type]
|
|
182
|
+
{}.tap do |hash|
|
|
183
|
+
value.each do |k, v|
|
|
184
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
185
|
+
end
|
|
186
|
+
end
|
|
187
|
+
else # model
|
|
188
|
+
# models (e.g. Pet) or oneOf
|
|
189
|
+
klass = UltracartClient.const_get(type)
|
|
190
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
|
191
|
+
end
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Returns the string representation of the object
|
|
195
|
+
# @return [String] String presentation of the object
|
|
196
|
+
def to_s
|
|
197
|
+
to_hash.to_s
|
|
198
|
+
end
|
|
199
|
+
|
|
200
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
201
|
+
# @return [Hash] Returns the object in the form of hash
|
|
202
|
+
def to_body
|
|
203
|
+
to_hash
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
# Returns the object in the form of hash
|
|
207
|
+
# @return [Hash] Returns the object in the form of hash
|
|
208
|
+
def to_hash
|
|
209
|
+
hash = {}
|
|
210
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
211
|
+
value = self.send(attr)
|
|
212
|
+
if value.nil?
|
|
213
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
214
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
hash[param] = _to_hash(value)
|
|
218
|
+
end
|
|
219
|
+
hash
|
|
220
|
+
end
|
|
221
|
+
|
|
222
|
+
# Outputs non-array value in the form of hash
|
|
223
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
224
|
+
# @param [Object] value Any valid value
|
|
225
|
+
# @return [Hash] Returns the value in the form of hash
|
|
226
|
+
def _to_hash(value)
|
|
227
|
+
if value.is_a?(Array)
|
|
228
|
+
value.compact.map { |v| _to_hash(v) }
|
|
229
|
+
elsif value.is_a?(Hash)
|
|
230
|
+
{}.tap do |hash|
|
|
231
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
232
|
+
end
|
|
233
|
+
elsif value.respond_to? :to_hash
|
|
234
|
+
value.to_hash
|
|
235
|
+
else
|
|
236
|
+
value
|
|
237
|
+
end
|
|
238
|
+
end
|
|
239
|
+
|
|
240
|
+
end
|
|
241
|
+
|
|
242
|
+
end
|
|
@@ -27,6 +27,9 @@ module UltracartClient
|
|
|
27
27
|
# True when this token may write a target that is currently live - an active upsell offer, an email on a delivering flow, the active theme, the storefront root. Never infer this; it is the difference between a draft edit and a shopper visible change.
|
|
28
28
|
attr_accessor :can_publish
|
|
29
29
|
|
|
30
|
+
# True when this account may publish library entries to the public library. Set by UltraCart staff only.
|
|
31
|
+
attr_accessor :can_publish_public
|
|
32
|
+
|
|
30
33
|
# True when this token may read. Do not infer this from the requested scope name.
|
|
31
34
|
attr_accessor :can_read
|
|
32
35
|
|
|
@@ -61,6 +64,7 @@ module UltracartClient
|
|
|
61
64
|
:'application_name' => :'application_name',
|
|
62
65
|
:'authentication_type' => :'authentication_type',
|
|
63
66
|
:'can_publish' => :'can_publish',
|
|
67
|
+
:'can_publish_public' => :'can_publish_public',
|
|
64
68
|
:'can_read' => :'can_read',
|
|
65
69
|
:'can_write' => :'can_write',
|
|
66
70
|
:'device_scope' => :'device_scope',
|
|
@@ -85,6 +89,7 @@ module UltracartClient
|
|
|
85
89
|
:'application_name' => :'String',
|
|
86
90
|
:'authentication_type' => :'String',
|
|
87
91
|
:'can_publish' => :'Boolean',
|
|
92
|
+
:'can_publish_public' => :'Boolean',
|
|
88
93
|
:'can_read' => :'Boolean',
|
|
89
94
|
:'can_write' => :'Boolean',
|
|
90
95
|
:'device_scope' => :'String',
|
|
@@ -134,6 +139,10 @@ module UltracartClient
|
|
|
134
139
|
self.can_publish = attributes[:'can_publish']
|
|
135
140
|
end
|
|
136
141
|
|
|
142
|
+
if attributes.key?(:'can_publish_public')
|
|
143
|
+
self.can_publish_public = attributes[:'can_publish_public']
|
|
144
|
+
end
|
|
145
|
+
|
|
137
146
|
if attributes.key?(:'can_read')
|
|
138
147
|
self.can_read = attributes[:'can_read']
|
|
139
148
|
end
|
|
@@ -197,6 +206,7 @@ module UltracartClient
|
|
|
197
206
|
application_name == o.application_name &&
|
|
198
207
|
authentication_type == o.authentication_type &&
|
|
199
208
|
can_publish == o.can_publish &&
|
|
209
|
+
can_publish_public == o.can_publish_public &&
|
|
200
210
|
can_read == o.can_read &&
|
|
201
211
|
can_write == o.can_write &&
|
|
202
212
|
device_scope == o.device_scope &&
|
|
@@ -217,7 +227,7 @@ module UltracartClient
|
|
|
217
227
|
# Calculates hash code according to all attributes.
|
|
218
228
|
# @return [Integer] Hash code
|
|
219
229
|
def hash
|
|
220
|
-
[acting_as_user, application_name, authentication_type, can_publish, can_read, can_write, device_scope, login, merchant_id, scopes, storefronts, storefronts_withheld, user_name].hash
|
|
230
|
+
[acting_as_user, application_name, authentication_type, can_publish, can_publish_public, can_read, can_write, device_scope, login, merchant_id, scopes, storefronts, storefronts_withheld, user_name].hash
|
|
221
231
|
end
|
|
222
232
|
|
|
223
233
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
|
@@ -1032,9 +1032,29 @@ require 'ultracart_api/models/sfvb_item_multimedia_request'
|
|
|
1032
1032
|
require 'ultracart_api/models/sfvb_item_response'
|
|
1033
1033
|
require 'ultracart_api/models/sfvb_item_seo'
|
|
1034
1034
|
require 'ultracart_api/models/sfvb_item_seo_request'
|
|
1035
|
+
require 'ultracart_api/models/sfvb_library_ai_review'
|
|
1036
|
+
require 'ultracart_api/models/sfvb_library_content_manifest'
|
|
1037
|
+
require 'ultracart_api/models/sfvb_library_delete_result'
|
|
1035
1038
|
require 'ultracart_api/models/sfvb_library_entry'
|
|
1039
|
+
require 'ultracart_api/models/sfvb_library_entry_request'
|
|
1036
1040
|
require 'ultracart_api/models/sfvb_library_facet'
|
|
1041
|
+
require 'ultracart_api/models/sfvb_library_history_entry'
|
|
1042
|
+
require 'ultracart_api/models/sfvb_library_history_response'
|
|
1043
|
+
require 'ultracart_api/models/sfvb_library_install_conflict'
|
|
1044
|
+
require 'ultracart_api/models/sfvb_library_install_receipt'
|
|
1045
|
+
require 'ultracart_api/models/sfvb_library_install_record'
|
|
1046
|
+
require 'ultracart_api/models/sfvb_library_install_request'
|
|
1047
|
+
require 'ultracart_api/models/sfvb_library_installs_response'
|
|
1048
|
+
require 'ultracart_api/models/sfvb_library_parameter'
|
|
1049
|
+
require 'ultracart_api/models/sfvb_library_publish_request'
|
|
1037
1050
|
require 'ultracart_api/models/sfvb_library_response'
|
|
1051
|
+
require 'ultracart_api/models/sfvb_library_screenshot_request'
|
|
1052
|
+
require 'ultracart_api/models/sfvb_library_share_request'
|
|
1053
|
+
require 'ultracart_api/models/sfvb_library_share_target'
|
|
1054
|
+
require 'ultracart_api/models/sfvb_library_share_targets_response'
|
|
1055
|
+
require 'ultracart_api/models/sfvb_library_taxonomy'
|
|
1056
|
+
require 'ultracart_api/models/sfvb_library_taxonomy_catalog'
|
|
1057
|
+
require 'ultracart_api/models/sfvb_library_unshare_result'
|
|
1038
1058
|
require 'ultracart_api/models/sfvb_menu'
|
|
1039
1059
|
require 'ultracart_api/models/sfvb_menu_item'
|
|
1040
1060
|
require 'ultracart_api/models/sfvb_menu_write_request'
|
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.185
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -1094,9 +1094,29 @@ files:
|
|
|
1094
1094
|
- docs/SfvbItemResponse.md
|
|
1095
1095
|
- docs/SfvbItemSeo.md
|
|
1096
1096
|
- docs/SfvbItemSeoRequest.md
|
|
1097
|
+
- docs/SfvbLibraryAiReview.md
|
|
1098
|
+
- docs/SfvbLibraryContentManifest.md
|
|
1099
|
+
- docs/SfvbLibraryDeleteResult.md
|
|
1097
1100
|
- docs/SfvbLibraryEntry.md
|
|
1101
|
+
- docs/SfvbLibraryEntryRequest.md
|
|
1098
1102
|
- docs/SfvbLibraryFacet.md
|
|
1103
|
+
- docs/SfvbLibraryHistoryEntry.md
|
|
1104
|
+
- docs/SfvbLibraryHistoryResponse.md
|
|
1105
|
+
- docs/SfvbLibraryInstallConflict.md
|
|
1106
|
+
- docs/SfvbLibraryInstallReceipt.md
|
|
1107
|
+
- docs/SfvbLibraryInstallRecord.md
|
|
1108
|
+
- docs/SfvbLibraryInstallRequest.md
|
|
1109
|
+
- docs/SfvbLibraryInstallsResponse.md
|
|
1110
|
+
- docs/SfvbLibraryParameter.md
|
|
1111
|
+
- docs/SfvbLibraryPublishRequest.md
|
|
1099
1112
|
- docs/SfvbLibraryResponse.md
|
|
1113
|
+
- docs/SfvbLibraryScreenshotRequest.md
|
|
1114
|
+
- docs/SfvbLibraryShareRequest.md
|
|
1115
|
+
- docs/SfvbLibraryShareTarget.md
|
|
1116
|
+
- docs/SfvbLibraryShareTargetsResponse.md
|
|
1117
|
+
- docs/SfvbLibraryTaxonomy.md
|
|
1118
|
+
- docs/SfvbLibraryTaxonomyCatalog.md
|
|
1119
|
+
- docs/SfvbLibraryUnshareResult.md
|
|
1100
1120
|
- docs/SfvbMenu.md
|
|
1101
1121
|
- docs/SfvbMenuItem.md
|
|
1102
1122
|
- docs/SfvbMenuWriteRequest.md
|
|
@@ -2325,9 +2345,29 @@ files:
|
|
|
2325
2345
|
- lib/ultracart_api/models/sfvb_item_response.rb
|
|
2326
2346
|
- lib/ultracart_api/models/sfvb_item_seo.rb
|
|
2327
2347
|
- lib/ultracart_api/models/sfvb_item_seo_request.rb
|
|
2348
|
+
- lib/ultracart_api/models/sfvb_library_ai_review.rb
|
|
2349
|
+
- lib/ultracart_api/models/sfvb_library_content_manifest.rb
|
|
2350
|
+
- lib/ultracart_api/models/sfvb_library_delete_result.rb
|
|
2328
2351
|
- lib/ultracart_api/models/sfvb_library_entry.rb
|
|
2352
|
+
- lib/ultracart_api/models/sfvb_library_entry_request.rb
|
|
2329
2353
|
- lib/ultracart_api/models/sfvb_library_facet.rb
|
|
2354
|
+
- lib/ultracart_api/models/sfvb_library_history_entry.rb
|
|
2355
|
+
- lib/ultracart_api/models/sfvb_library_history_response.rb
|
|
2356
|
+
- lib/ultracart_api/models/sfvb_library_install_conflict.rb
|
|
2357
|
+
- lib/ultracart_api/models/sfvb_library_install_receipt.rb
|
|
2358
|
+
- lib/ultracart_api/models/sfvb_library_install_record.rb
|
|
2359
|
+
- lib/ultracart_api/models/sfvb_library_install_request.rb
|
|
2360
|
+
- lib/ultracart_api/models/sfvb_library_installs_response.rb
|
|
2361
|
+
- lib/ultracart_api/models/sfvb_library_parameter.rb
|
|
2362
|
+
- lib/ultracart_api/models/sfvb_library_publish_request.rb
|
|
2330
2363
|
- lib/ultracart_api/models/sfvb_library_response.rb
|
|
2364
|
+
- lib/ultracart_api/models/sfvb_library_screenshot_request.rb
|
|
2365
|
+
- lib/ultracart_api/models/sfvb_library_share_request.rb
|
|
2366
|
+
- lib/ultracart_api/models/sfvb_library_share_target.rb
|
|
2367
|
+
- lib/ultracart_api/models/sfvb_library_share_targets_response.rb
|
|
2368
|
+
- lib/ultracart_api/models/sfvb_library_taxonomy.rb
|
|
2369
|
+
- lib/ultracart_api/models/sfvb_library_taxonomy_catalog.rb
|
|
2370
|
+
- lib/ultracart_api/models/sfvb_library_unshare_result.rb
|
|
2331
2371
|
- lib/ultracart_api/models/sfvb_menu.rb
|
|
2332
2372
|
- lib/ultracart_api/models/sfvb_menu_item.rb
|
|
2333
2373
|
- lib/ultracart_api/models/sfvb_menu_write_request.rb
|