ultracart_api 4.0.54.rc → 4.0.57.rc
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -4
- data/docs/CartMarketing.md +2 -0
- data/docs/ConversationParticipant.md +2 -0
- data/docs/ConversationWebchatQueueStatusAgent.md +4 -2
- data/docs/CustomerApi.md +74 -0
- data/docs/CustomerMagicLinkResponse.md +26 -0
- data/docs/ItemReview.md +90 -0
- data/docs/ItemReviews.md +2 -0
- data/docs/OrderBilling.md +4 -0
- data/docs/OrderMarketing.md +2 -0
- data/docs/StoreFront.md +38 -0
- data/docs/StoreFrontsResponse.md +26 -0
- data/docs/StorefrontApi.md +67 -0
- data/lib/ultracart_api/api/customer_api.rb +70 -0
- data/lib/ultracart_api/api/storefront_api.rb +56 -0
- data/lib/ultracart_api/models/cart_marketing.rb +11 -1
- data/lib/ultracart_api/models/conversation_participant.rb +10 -1
- data/lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb +49 -4
- data/lib/ultracart_api/models/customer_magic_link_response.rb +257 -0
- data/lib/ultracart_api/models/item_review.rb +545 -0
- data/lib/ultracart_api/models/item_reviews.rb +12 -1
- data/lib/ultracart_api/models/order_billing.rb +51 -1
- data/lib/ultracart_api/models/order_marketing.rb +11 -1
- data/lib/ultracart_api/models/store_front.rb +309 -0
- data/lib/ultracart_api/models/store_fronts_response.rb +258 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
@@ -0,0 +1,258 @@
|
|
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 StoreFrontsResponse
|
18
|
+
attr_accessor :error
|
19
|
+
|
20
|
+
attr_accessor :metadata
|
21
|
+
|
22
|
+
attr_accessor :store_fronts
|
23
|
+
|
24
|
+
# Indicates if API call was successful
|
25
|
+
attr_accessor :success
|
26
|
+
|
27
|
+
attr_accessor :warning
|
28
|
+
|
29
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
30
|
+
def self.attribute_map
|
31
|
+
{
|
32
|
+
:'error' => :'error',
|
33
|
+
:'metadata' => :'metadata',
|
34
|
+
:'store_fronts' => :'storeFronts',
|
35
|
+
:'success' => :'success',
|
36
|
+
:'warning' => :'warning'
|
37
|
+
}
|
38
|
+
end
|
39
|
+
|
40
|
+
# Returns all the JSON keys this model knows about
|
41
|
+
def self.acceptable_attributes
|
42
|
+
attribute_map.values
|
43
|
+
end
|
44
|
+
|
45
|
+
# Attribute type mapping.
|
46
|
+
def self.openapi_types
|
47
|
+
{
|
48
|
+
:'error' => :'Error',
|
49
|
+
:'metadata' => :'ResponseMetadata',
|
50
|
+
:'store_fronts' => :'Array<StoreFront>',
|
51
|
+
:'success' => :'Boolean',
|
52
|
+
:'warning' => :'Warning'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# List of attributes with nullable: true
|
57
|
+
def self.openapi_nullable
|
58
|
+
Set.new([
|
59
|
+
])
|
60
|
+
end
|
61
|
+
|
62
|
+
# Initializes the object
|
63
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
64
|
+
def initialize(attributes = {})
|
65
|
+
if (!attributes.is_a?(Hash))
|
66
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::StoreFrontsResponse` initialize method"
|
67
|
+
end
|
68
|
+
|
69
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
70
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
71
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
72
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::StoreFrontsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
73
|
+
end
|
74
|
+
h[k.to_sym] = v
|
75
|
+
}
|
76
|
+
|
77
|
+
if attributes.key?(:'error')
|
78
|
+
self.error = attributes[:'error']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'metadata')
|
82
|
+
self.metadata = attributes[:'metadata']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'store_fronts')
|
86
|
+
if (value = attributes[:'store_fronts']).is_a?(Array)
|
87
|
+
self.store_fronts = value
|
88
|
+
end
|
89
|
+
end
|
90
|
+
|
91
|
+
if attributes.key?(:'success')
|
92
|
+
self.success = attributes[:'success']
|
93
|
+
end
|
94
|
+
|
95
|
+
if attributes.key?(:'warning')
|
96
|
+
self.warning = attributes[:'warning']
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
100
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
101
|
+
# @return Array for valid properties with the reasons
|
102
|
+
def list_invalid_properties
|
103
|
+
invalid_properties = Array.new
|
104
|
+
invalid_properties
|
105
|
+
end
|
106
|
+
|
107
|
+
# Check to see if the all the properties in the model are valid
|
108
|
+
# @return true if the model is valid
|
109
|
+
def valid?
|
110
|
+
true
|
111
|
+
end
|
112
|
+
|
113
|
+
# Checks equality by comparing each attribute.
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def ==(o)
|
116
|
+
return true if self.equal?(o)
|
117
|
+
self.class == o.class &&
|
118
|
+
error == o.error &&
|
119
|
+
metadata == o.metadata &&
|
120
|
+
store_fronts == o.store_fronts &&
|
121
|
+
success == o.success &&
|
122
|
+
warning == o.warning
|
123
|
+
end
|
124
|
+
|
125
|
+
# @see the `==` method
|
126
|
+
# @param [Object] Object to be compared
|
127
|
+
def eql?(o)
|
128
|
+
self == o
|
129
|
+
end
|
130
|
+
|
131
|
+
# Calculates hash code according to all attributes.
|
132
|
+
# @return [Integer] Hash code
|
133
|
+
def hash
|
134
|
+
[error, metadata, store_fronts, success, warning].hash
|
135
|
+
end
|
136
|
+
|
137
|
+
# Builds the object from hash
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
139
|
+
# @return [Object] Returns the model itself
|
140
|
+
def self.build_from_hash(attributes)
|
141
|
+
new.build_from_hash(attributes)
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
attributes = attributes.transform_keys(&:to_sym)
|
150
|
+
self.class.openapi_types.each_pair do |key, type|
|
151
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
152
|
+
self.send("#{key}=", nil)
|
153
|
+
elsif type =~ /\AArray<(.*)>/i
|
154
|
+
# check to ensure the input is an array given that the attribute
|
155
|
+
# is documented as an array but the input is not
|
156
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
157
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
158
|
+
end
|
159
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
160
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
161
|
+
end
|
162
|
+
end
|
163
|
+
|
164
|
+
self
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserializes the data based on type
|
168
|
+
# @param string type Data type
|
169
|
+
# @param string value Value to be deserialized
|
170
|
+
# @return [Object] Deserialized data
|
171
|
+
def _deserialize(type, value)
|
172
|
+
case type.to_sym
|
173
|
+
when :Time
|
174
|
+
Time.parse(value)
|
175
|
+
when :Date
|
176
|
+
Date.parse(value)
|
177
|
+
when :String
|
178
|
+
value.to_s
|
179
|
+
when :Integer
|
180
|
+
value.to_i
|
181
|
+
when :Float
|
182
|
+
value.to_f
|
183
|
+
when :Boolean
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
185
|
+
true
|
186
|
+
else
|
187
|
+
false
|
188
|
+
end
|
189
|
+
when :Object
|
190
|
+
# generic object (usually a Hash), return directly
|
191
|
+
value
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each do |k, v|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
else # model
|
204
|
+
# models (e.g. Pet) or oneOf
|
205
|
+
klass = UltracartClient.const_get(type)
|
206
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the string representation of the object
|
211
|
+
# @return [String] String presentation of the object
|
212
|
+
def to_s
|
213
|
+
to_hash.to_s
|
214
|
+
end
|
215
|
+
|
216
|
+
# to_body is an alias to to_hash (backward compatibility)
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_body
|
219
|
+
to_hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the object in the form of hash
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_hash
|
225
|
+
hash = {}
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
227
|
+
value = self.send(attr)
|
228
|
+
if value.nil?
|
229
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
230
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
231
|
+
end
|
232
|
+
|
233
|
+
hash[param] = _to_hash(value)
|
234
|
+
end
|
235
|
+
hash
|
236
|
+
end
|
237
|
+
|
238
|
+
# Outputs non-array value in the form of hash
|
239
|
+
# For object, use to_hash. Otherwise, just return the value
|
240
|
+
# @param [Object] value Any valid value
|
241
|
+
# @return [Hash] Returns the value in the form of hash
|
242
|
+
def _to_hash(value)
|
243
|
+
if value.is_a?(Array)
|
244
|
+
value.compact.map { |v| _to_hash(v) }
|
245
|
+
elsif value.is_a?(Hash)
|
246
|
+
{}.tap do |hash|
|
247
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
248
|
+
end
|
249
|
+
elsif value.respond_to? :to_hash
|
250
|
+
value.to_hash
|
251
|
+
else
|
252
|
+
value
|
253
|
+
end
|
254
|
+
end
|
255
|
+
|
256
|
+
end
|
257
|
+
|
258
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -236,6 +236,7 @@ require 'ultracart_api/models/customer_email_list_changes'
|
|
236
236
|
require 'ultracart_api/models/customer_loyalty'
|
237
237
|
require 'ultracart_api/models/customer_loyalty_ledger'
|
238
238
|
require 'ultracart_api/models/customer_loyalty_redemption'
|
239
|
+
require 'ultracart_api/models/customer_magic_link_response'
|
239
240
|
require 'ultracart_api/models/customer_merge_request'
|
240
241
|
require 'ultracart_api/models/customer_orders_summary'
|
241
242
|
require 'ultracart_api/models/customer_pricing_tier'
|
@@ -455,6 +456,7 @@ require 'ultracart_api/models/item_response'
|
|
455
456
|
require 'ultracart_api/models/item_restriction'
|
456
457
|
require 'ultracart_api/models/item_restriction_item'
|
457
458
|
require 'ultracart_api/models/item_revguard'
|
459
|
+
require 'ultracart_api/models/item_review'
|
458
460
|
require 'ultracart_api/models/item_reviews'
|
459
461
|
require 'ultracart_api/models/item_salesforce'
|
460
462
|
require 'ultracart_api/models/item_shipping'
|
@@ -623,6 +625,8 @@ require 'ultracart_api/models/single_sign_on_token_response'
|
|
623
625
|
require 'ultracart_api/models/sovos_config'
|
624
626
|
require 'ultracart_api/models/state_province'
|
625
627
|
require 'ultracart_api/models/step_waiting'
|
628
|
+
require 'ultracart_api/models/store_front'
|
629
|
+
require 'ultracart_api/models/store_fronts_response'
|
626
630
|
require 'ultracart_api/models/tax_city'
|
627
631
|
require 'ultracart_api/models/tax_country'
|
628
632
|
require 'ultracart_api/models/tax_country_code'
|
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.0.
|
4
|
+
version: 4.0.57.rc
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -288,6 +288,7 @@ files:
|
|
288
288
|
- docs/CustomerLoyalty.md
|
289
289
|
- docs/CustomerLoyaltyLedger.md
|
290
290
|
- docs/CustomerLoyaltyRedemption.md
|
291
|
+
- docs/CustomerMagicLinkResponse.md
|
291
292
|
- docs/CustomerMergeRequest.md
|
292
293
|
- docs/CustomerOrdersSummary.md
|
293
294
|
- docs/CustomerPricingTier.md
|
@@ -511,6 +512,7 @@ files:
|
|
511
512
|
- docs/ItemRestriction.md
|
512
513
|
- docs/ItemRestrictionItem.md
|
513
514
|
- docs/ItemRevguard.md
|
515
|
+
- docs/ItemReview.md
|
514
516
|
- docs/ItemReviews.md
|
515
517
|
- docs/ItemSalesforce.md
|
516
518
|
- docs/ItemShipping.md
|
@@ -682,6 +684,8 @@ files:
|
|
682
684
|
- docs/SsoApi.md
|
683
685
|
- docs/StateProvince.md
|
684
686
|
- docs/StepWaiting.md
|
687
|
+
- docs/StoreFront.md
|
688
|
+
- docs/StoreFrontsResponse.md
|
685
689
|
- docs/StorefrontApi.md
|
686
690
|
- docs/TaxApi.md
|
687
691
|
- docs/TaxCity.md
|
@@ -984,6 +988,7 @@ files:
|
|
984
988
|
- lib/ultracart_api/models/customer_loyalty.rb
|
985
989
|
- lib/ultracart_api/models/customer_loyalty_ledger.rb
|
986
990
|
- lib/ultracart_api/models/customer_loyalty_redemption.rb
|
991
|
+
- lib/ultracart_api/models/customer_magic_link_response.rb
|
987
992
|
- lib/ultracart_api/models/customer_merge_request.rb
|
988
993
|
- lib/ultracart_api/models/customer_orders_summary.rb
|
989
994
|
- lib/ultracart_api/models/customer_pricing_tier.rb
|
@@ -1203,6 +1208,7 @@ files:
|
|
1203
1208
|
- lib/ultracart_api/models/item_restriction.rb
|
1204
1209
|
- lib/ultracart_api/models/item_restriction_item.rb
|
1205
1210
|
- lib/ultracart_api/models/item_revguard.rb
|
1211
|
+
- lib/ultracart_api/models/item_review.rb
|
1206
1212
|
- lib/ultracart_api/models/item_reviews.rb
|
1207
1213
|
- lib/ultracart_api/models/item_salesforce.rb
|
1208
1214
|
- lib/ultracart_api/models/item_shipping.rb
|
@@ -1371,6 +1377,8 @@ files:
|
|
1371
1377
|
- lib/ultracart_api/models/sovos_config.rb
|
1372
1378
|
- lib/ultracart_api/models/state_province.rb
|
1373
1379
|
- lib/ultracart_api/models/step_waiting.rb
|
1380
|
+
- lib/ultracart_api/models/store_front.rb
|
1381
|
+
- lib/ultracart_api/models/store_fronts_response.rb
|
1374
1382
|
- lib/ultracart_api/models/tax_city.rb
|
1375
1383
|
- lib/ultracart_api/models/tax_country.rb
|
1376
1384
|
- lib/ultracart_api/models/tax_country_code.rb
|