ultracart_api 4.0.32.rc → 4.0.35.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 +25 -4
- data/docs/Activity.md +4 -0
- data/docs/AffiliateApi.md +16 -22
- data/docs/AutoOrderApi.md +64 -88
- data/docs/ChannelPartnerApi.md +40 -55
- data/docs/ChargebackApi.md +40 -55
- data/docs/CheckoutApi.md +152 -294
- data/docs/Conversation.md +26 -0
- data/docs/ConversationAgentAuthResponse.md +22 -0
- data/docs/ConversationApi.md +438 -0
- data/docs/ConversationMessage.md +26 -0
- data/docs/ConversationParticipant.md +30 -0
- data/docs/ConversationStartRequest.md +20 -0
- data/docs/ConversationStartResponse.md +20 -0
- data/docs/ConversationSummary.md +34 -0
- data/docs/ConversationsResponse.md +26 -0
- data/docs/CouponApi.md +152 -209
- data/docs/CustomerActivity.md +9 -1
- data/docs/CustomerApi.md +213 -192
- data/docs/CustomerMergeRequest.md +20 -0
- data/docs/FulfillmentApi.md +48 -66
- data/docs/GiftCertificateApi.md +64 -88
- data/docs/IntegrationLogApi.md +40 -55
- data/docs/ItemApi.md +72 -99
- data/docs/OauthApi.md +16 -32
- data/docs/OrderApi.md +184 -253
- data/docs/SsoApi.md +32 -44
- data/docs/StorefrontApi.md +1134 -2345
- data/docs/TaxApi.md +224 -308
- data/docs/UserApi.md +88 -121
- data/docs/WebhookApi.md +64 -88
- data/lib/ultracart_api/api/conversation_api.rb +418 -0
- data/lib/ultracart_api/api/customer_api.rb +78 -0
- data/lib/ultracart_api/models/activity.rb +19 -1
- data/lib/ultracart_api/models/conversation.rb +259 -0
- data/lib/ultracart_api/models/conversation_agent_auth_response.rb +237 -0
- data/lib/ultracart_api/models/conversation_message.rb +258 -0
- data/lib/ultracart_api/models/conversation_participant.rb +276 -0
- data/lib/ultracart_api/models/conversation_start_request.rb +230 -0
- data/lib/ultracart_api/models/conversation_start_response.rb +228 -0
- data/lib/ultracart_api/models/conversation_summary.rb +292 -0
- data/lib/ultracart_api/models/conversations_response.rb +258 -0
- data/lib/ultracart_api/models/customer_activity.rb +40 -4
- data/lib/ultracart_api/models/customer_merge_request.rb +230 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +10 -0
- metadata +22 -2
@@ -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 CustomerMergeRequest
|
18
|
+
# Customer profile oid to merge
|
19
|
+
attr_accessor :customer_profile_oid
|
20
|
+
|
21
|
+
# Email of the customer profile to merge
|
22
|
+
attr_accessor :email
|
23
|
+
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
25
|
+
def self.attribute_map
|
26
|
+
{
|
27
|
+
:'customer_profile_oid' => :'customer_profile_oid',
|
28
|
+
:'email' => :'email'
|
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
|
+
:'customer_profile_oid' => :'Integer',
|
41
|
+
:'email' => :'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::CustomerMergeRequest` 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::CustomerMergeRequest`. 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?(:'customer_profile_oid')
|
67
|
+
self.customer_profile_oid = attributes[:'customer_profile_oid']
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'email')
|
71
|
+
self.email = attributes[:'email']
|
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
|
+
customer_profile_oid == o.customer_profile_oid &&
|
94
|
+
email == o.email
|
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
|
+
[customer_profile_oid, email].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
|
data/lib/ultracart_api.rb
CHANGED
@@ -133,6 +133,14 @@ require 'ultracart_api/models/checkout_setup_browser_key_request'
|
|
133
133
|
require 'ultracart_api/models/checkout_setup_browser_key_response'
|
134
134
|
require 'ultracart_api/models/checkout_state_province_response'
|
135
135
|
require 'ultracart_api/models/city_state_zip'
|
136
|
+
require 'ultracart_api/models/conversation'
|
137
|
+
require 'ultracart_api/models/conversation_agent_auth_response'
|
138
|
+
require 'ultracart_api/models/conversation_message'
|
139
|
+
require 'ultracart_api/models/conversation_participant'
|
140
|
+
require 'ultracart_api/models/conversation_start_request'
|
141
|
+
require 'ultracart_api/models/conversation_start_response'
|
142
|
+
require 'ultracart_api/models/conversation_summary'
|
143
|
+
require 'ultracart_api/models/conversations_response'
|
136
144
|
require 'ultracart_api/models/countries_response'
|
137
145
|
require 'ultracart_api/models/country'
|
138
146
|
require 'ultracart_api/models/coupon'
|
@@ -210,6 +218,7 @@ require 'ultracart_api/models/customer_email_list_changes'
|
|
210
218
|
require 'ultracart_api/models/customer_loyalty'
|
211
219
|
require 'ultracart_api/models/customer_loyalty_ledger'
|
212
220
|
require 'ultracart_api/models/customer_loyalty_redemption'
|
221
|
+
require 'ultracart_api/models/customer_merge_request'
|
213
222
|
require 'ultracart_api/models/customer_orders_summary'
|
214
223
|
require 'ultracart_api/models/customer_pricing_tier'
|
215
224
|
require 'ultracart_api/models/customer_privacy'
|
@@ -656,6 +665,7 @@ require 'ultracart_api/api/auto_order_api'
|
|
656
665
|
require 'ultracart_api/api/channel_partner_api'
|
657
666
|
require 'ultracart_api/api/chargeback_api'
|
658
667
|
require 'ultracart_api/api/checkout_api'
|
668
|
+
require 'ultracart_api/api/conversation_api'
|
659
669
|
require 'ultracart_api/api/coupon_api'
|
660
670
|
require 'ultracart_api/api/customer_api'
|
661
671
|
require 'ultracart_api/api/fulfillment_api'
|
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.35.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-
|
11
|
+
date: 2022-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -182,6 +182,15 @@ files:
|
|
182
182
|
- docs/CheckoutSetupBrowserKeyResponse.md
|
183
183
|
- docs/CheckoutStateProvinceResponse.md
|
184
184
|
- docs/CityStateZip.md
|
185
|
+
- docs/Conversation.md
|
186
|
+
- docs/ConversationAgentAuthResponse.md
|
187
|
+
- docs/ConversationApi.md
|
188
|
+
- docs/ConversationMessage.md
|
189
|
+
- docs/ConversationParticipant.md
|
190
|
+
- docs/ConversationStartRequest.md
|
191
|
+
- docs/ConversationStartResponse.md
|
192
|
+
- docs/ConversationSummary.md
|
193
|
+
- docs/ConversationsResponse.md
|
185
194
|
- docs/CountriesResponse.md
|
186
195
|
- docs/Country.md
|
187
196
|
- docs/Coupon.md
|
@@ -261,6 +270,7 @@ files:
|
|
261
270
|
- docs/CustomerLoyalty.md
|
262
271
|
- docs/CustomerLoyaltyLedger.md
|
263
272
|
- docs/CustomerLoyaltyRedemption.md
|
273
|
+
- docs/CustomerMergeRequest.md
|
264
274
|
- docs/CustomerOrdersSummary.md
|
265
275
|
- docs/CustomerPricingTier.md
|
266
276
|
- docs/CustomerPrivacy.md
|
@@ -718,6 +728,7 @@ files:
|
|
718
728
|
- lib/ultracart_api/api/channel_partner_api.rb
|
719
729
|
- lib/ultracart_api/api/chargeback_api.rb
|
720
730
|
- lib/ultracart_api/api/checkout_api.rb
|
731
|
+
- lib/ultracart_api/api/conversation_api.rb
|
721
732
|
- lib/ultracart_api/api/coupon_api.rb
|
722
733
|
- lib/ultracart_api/api/customer_api.rb
|
723
734
|
- lib/ultracart_api/api/fulfillment_api.rb
|
@@ -850,6 +861,14 @@ files:
|
|
850
861
|
- lib/ultracart_api/models/checkout_setup_browser_key_response.rb
|
851
862
|
- lib/ultracart_api/models/checkout_state_province_response.rb
|
852
863
|
- lib/ultracart_api/models/city_state_zip.rb
|
864
|
+
- lib/ultracart_api/models/conversation.rb
|
865
|
+
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
866
|
+
- lib/ultracart_api/models/conversation_message.rb
|
867
|
+
- lib/ultracart_api/models/conversation_participant.rb
|
868
|
+
- lib/ultracart_api/models/conversation_start_request.rb
|
869
|
+
- lib/ultracart_api/models/conversation_start_response.rb
|
870
|
+
- lib/ultracart_api/models/conversation_summary.rb
|
871
|
+
- lib/ultracart_api/models/conversations_response.rb
|
853
872
|
- lib/ultracart_api/models/countries_response.rb
|
854
873
|
- lib/ultracart_api/models/country.rb
|
855
874
|
- lib/ultracart_api/models/coupon.rb
|
@@ -927,6 +946,7 @@ files:
|
|
927
946
|
- lib/ultracart_api/models/customer_loyalty.rb
|
928
947
|
- lib/ultracart_api/models/customer_loyalty_ledger.rb
|
929
948
|
- lib/ultracart_api/models/customer_loyalty_redemption.rb
|
949
|
+
- lib/ultracart_api/models/customer_merge_request.rb
|
930
950
|
- lib/ultracart_api/models/customer_orders_summary.rb
|
931
951
|
- lib/ultracart_api/models/customer_pricing_tier.rb
|
932
952
|
- lib/ultracart_api/models/customer_privacy.rb
|