ultracart_api 4.0.45.rc → 4.0.48.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 +12 -4
- data/docs/ConversationAgentAuth.md +2 -2
- data/docs/ConversationEventRRWeb.md +30 -0
- data/docs/ConversationMessage.md +4 -0
- data/docs/ConversationSummary.md +5 -1
- data/docs/ConversationTwilioAccount.md +20 -0
- data/docs/ConversationWebsocketMessage.md +2 -0
- data/docs/EmailCommseqSequenceTestRequest.md +32 -0
- data/docs/EmailCommseqSequenceTestResponse.md +24 -0
- data/docs/StorefrontApi.md +74 -0
- data/lib/ultracart_api/api/storefront_api.rb +79 -0
- data/lib/ultracart_api/models/conversation_agent_auth.rb +8 -8
- data/lib/ultracart_api/models/conversation_event_rr_web.rb +308 -0
- data/lib/ultracart_api/models/conversation_message.rb +54 -1
- data/lib/ultracart_api/models/conversation_summary.rb +23 -4
- data/lib/ultracart_api/models/conversation_twilio_account.rb +230 -0
- data/lib/ultracart_api/models/conversation_websocket_message.rb +14 -5
- data/lib/ultracart_api/models/email_commseq_sequence_test_request.rb +284 -0
- data/lib/ultracart_api/models/email_commseq_sequence_test_response.rb +247 -0
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +4 -0
- metadata +10 -2
@@ -0,0 +1,247 @@
|
|
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 EmailCommseqSequenceTestResponse
|
18
|
+
attr_accessor :error
|
19
|
+
|
20
|
+
attr_accessor :metadata
|
21
|
+
|
22
|
+
# Indicates if API call was successful
|
23
|
+
attr_accessor :success
|
24
|
+
|
25
|
+
attr_accessor :warning
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'error' => :'error',
|
31
|
+
:'metadata' => :'metadata',
|
32
|
+
:'success' => :'success',
|
33
|
+
:'warning' => :'warning'
|
34
|
+
}
|
35
|
+
end
|
36
|
+
|
37
|
+
# Returns all the JSON keys this model knows about
|
38
|
+
def self.acceptable_attributes
|
39
|
+
attribute_map.values
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'error' => :'Error',
|
46
|
+
:'metadata' => :'ResponseMetadata',
|
47
|
+
:'success' => :'Boolean',
|
48
|
+
:'warning' => :'Warning'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# List of attributes with nullable: true
|
53
|
+
def self.openapi_nullable
|
54
|
+
Set.new([
|
55
|
+
])
|
56
|
+
end
|
57
|
+
|
58
|
+
# Initializes the object
|
59
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
60
|
+
def initialize(attributes = {})
|
61
|
+
if (!attributes.is_a?(Hash))
|
62
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `UltracartClient::EmailCommseqSequenceTestResponse` initialize method"
|
63
|
+
end
|
64
|
+
|
65
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
67
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `UltracartClient::EmailCommseqSequenceTestResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
69
|
+
end
|
70
|
+
h[k.to_sym] = v
|
71
|
+
}
|
72
|
+
|
73
|
+
if attributes.key?(:'error')
|
74
|
+
self.error = attributes[:'error']
|
75
|
+
end
|
76
|
+
|
77
|
+
if attributes.key?(:'metadata')
|
78
|
+
self.metadata = attributes[:'metadata']
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'success')
|
82
|
+
self.success = attributes[:'success']
|
83
|
+
end
|
84
|
+
|
85
|
+
if attributes.key?(:'warning')
|
86
|
+
self.warning = attributes[:'warning']
|
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
|
+
error == o.error &&
|
109
|
+
metadata == o.metadata &&
|
110
|
+
success == o.success &&
|
111
|
+
warning == o.warning
|
112
|
+
end
|
113
|
+
|
114
|
+
# @see the `==` method
|
115
|
+
# @param [Object] Object to be compared
|
116
|
+
def eql?(o)
|
117
|
+
self == o
|
118
|
+
end
|
119
|
+
|
120
|
+
# Calculates hash code according to all attributes.
|
121
|
+
# @return [Integer] Hash code
|
122
|
+
def hash
|
123
|
+
[error, metadata, success, warning].hash
|
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 self.build_from_hash(attributes)
|
130
|
+
new.build_from_hash(attributes)
|
131
|
+
end
|
132
|
+
|
133
|
+
# Builds the object from hash
|
134
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
135
|
+
# @return [Object] Returns the model itself
|
136
|
+
def build_from_hash(attributes)
|
137
|
+
return nil unless attributes.is_a?(Hash)
|
138
|
+
attributes = attributes.transform_keys(&:to_sym)
|
139
|
+
self.class.openapi_types.each_pair do |key, type|
|
140
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
141
|
+
self.send("#{key}=", nil)
|
142
|
+
elsif type =~ /\AArray<(.*)>/i
|
143
|
+
# check to ensure the input is an array given that the attribute
|
144
|
+
# is documented as an array but the input is not
|
145
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
146
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
147
|
+
end
|
148
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
149
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
self
|
154
|
+
end
|
155
|
+
|
156
|
+
# Deserializes the data based on type
|
157
|
+
# @param string type Data type
|
158
|
+
# @param string value Value to be deserialized
|
159
|
+
# @return [Object] Deserialized data
|
160
|
+
def _deserialize(type, value)
|
161
|
+
case type.to_sym
|
162
|
+
when :Time
|
163
|
+
Time.parse(value)
|
164
|
+
when :Date
|
165
|
+
Date.parse(value)
|
166
|
+
when :String
|
167
|
+
value.to_s
|
168
|
+
when :Integer
|
169
|
+
value.to_i
|
170
|
+
when :Float
|
171
|
+
value.to_f
|
172
|
+
when :Boolean
|
173
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
174
|
+
true
|
175
|
+
else
|
176
|
+
false
|
177
|
+
end
|
178
|
+
when :Object
|
179
|
+
# generic object (usually a Hash), return directly
|
180
|
+
value
|
181
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
182
|
+
inner_type = Regexp.last_match[:inner_type]
|
183
|
+
value.map { |v| _deserialize(inner_type, v) }
|
184
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
185
|
+
k_type = Regexp.last_match[:k_type]
|
186
|
+
v_type = Regexp.last_match[:v_type]
|
187
|
+
{}.tap do |hash|
|
188
|
+
value.each do |k, v|
|
189
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
190
|
+
end
|
191
|
+
end
|
192
|
+
else # model
|
193
|
+
# models (e.g. Pet) or oneOf
|
194
|
+
klass = UltracartClient.const_get(type)
|
195
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
196
|
+
end
|
197
|
+
end
|
198
|
+
|
199
|
+
# Returns the string representation of the object
|
200
|
+
# @return [String] String presentation of the object
|
201
|
+
def to_s
|
202
|
+
to_hash.to_s
|
203
|
+
end
|
204
|
+
|
205
|
+
# to_body is an alias to to_hash (backward compatibility)
|
206
|
+
# @return [Hash] Returns the object in the form of hash
|
207
|
+
def to_body
|
208
|
+
to_hash
|
209
|
+
end
|
210
|
+
|
211
|
+
# Returns the object in the form of hash
|
212
|
+
# @return [Hash] Returns the object in the form of hash
|
213
|
+
def to_hash
|
214
|
+
hash = {}
|
215
|
+
self.class.attribute_map.each_pair do |attr, param|
|
216
|
+
value = self.send(attr)
|
217
|
+
if value.nil?
|
218
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
219
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
220
|
+
end
|
221
|
+
|
222
|
+
hash[param] = _to_hash(value)
|
223
|
+
end
|
224
|
+
hash
|
225
|
+
end
|
226
|
+
|
227
|
+
# Outputs non-array value in the form of hash
|
228
|
+
# For object, use to_hash. Otherwise, just return the value
|
229
|
+
# @param [Object] value Any valid value
|
230
|
+
# @return [Hash] Returns the value in the form of hash
|
231
|
+
def _to_hash(value)
|
232
|
+
if value.is_a?(Array)
|
233
|
+
value.compact.map { |v| _to_hash(v) }
|
234
|
+
elsif value.is_a?(Hash)
|
235
|
+
{}.tap do |hash|
|
236
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
237
|
+
end
|
238
|
+
elsif value.respond_to? :to_hash
|
239
|
+
value.to_hash
|
240
|
+
else
|
241
|
+
value
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
end
|
246
|
+
|
247
|
+
end
|
data/lib/ultracart_api.rb
CHANGED
@@ -138,6 +138,7 @@ require 'ultracart_api/models/conversation'
|
|
138
138
|
require 'ultracart_api/models/conversation_agent_auth'
|
139
139
|
require 'ultracart_api/models/conversation_agent_auth_response'
|
140
140
|
require 'ultracart_api/models/conversation_event_queue_position'
|
141
|
+
require 'ultracart_api/models/conversation_event_rr_web'
|
141
142
|
require 'ultracart_api/models/conversation_message'
|
142
143
|
require 'ultracart_api/models/conversation_message_transport_status'
|
143
144
|
require 'ultracart_api/models/conversation_multimedia_upload_url'
|
@@ -147,6 +148,7 @@ require 'ultracart_api/models/conversation_response'
|
|
147
148
|
require 'ultracart_api/models/conversation_start_request'
|
148
149
|
require 'ultracart_api/models/conversation_start_response'
|
149
150
|
require 'ultracart_api/models/conversation_summary'
|
151
|
+
require 'ultracart_api/models/conversation_twilio_account'
|
150
152
|
require 'ultracart_api/models/conversation_webchat_queue_status'
|
151
153
|
require 'ultracart_api/models/conversation_webchat_queue_status_agent'
|
152
154
|
require 'ultracart_api/models/conversation_webchat_queue_status_queue_entry'
|
@@ -275,6 +277,8 @@ require 'ultracart_api/models/email_commseq_postcard_send_test_response'
|
|
275
277
|
require 'ultracart_api/models/email_commseq_postcards_request'
|
276
278
|
require 'ultracart_api/models/email_commseq_postcards_response'
|
277
279
|
require 'ultracart_api/models/email_commseq_response'
|
280
|
+
require 'ultracart_api/models/email_commseq_sequence_test_request'
|
281
|
+
require 'ultracart_api/models/email_commseq_sequence_test_response'
|
278
282
|
require 'ultracart_api/models/email_commseq_stat'
|
279
283
|
require 'ultracart_api/models/email_commseq_stat_response'
|
280
284
|
require 'ultracart_api/models/email_commseq_step'
|
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.48.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-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -188,6 +188,7 @@ files:
|
|
188
188
|
- docs/ConversationAgentAuthResponse.md
|
189
189
|
- docs/ConversationApi.md
|
190
190
|
- docs/ConversationEventQueuePosition.md
|
191
|
+
- docs/ConversationEventRRWeb.md
|
191
192
|
- docs/ConversationMessage.md
|
192
193
|
- docs/ConversationMessageTransportStatus.md
|
193
194
|
- docs/ConversationMultimediaUploadUrl.md
|
@@ -197,6 +198,7 @@ files:
|
|
197
198
|
- docs/ConversationStartRequest.md
|
198
199
|
- docs/ConversationStartResponse.md
|
199
200
|
- docs/ConversationSummary.md
|
201
|
+
- docs/ConversationTwilioAccount.md
|
200
202
|
- docs/ConversationWebchatQueueStatus.md
|
201
203
|
- docs/ConversationWebchatQueueStatusAgent.md
|
202
204
|
- docs/ConversationWebchatQueueStatusQueueEntry.md
|
@@ -327,6 +329,8 @@ files:
|
|
327
329
|
- docs/EmailCommseqPostcardsRequest.md
|
328
330
|
- docs/EmailCommseqPostcardsResponse.md
|
329
331
|
- docs/EmailCommseqResponse.md
|
332
|
+
- docs/EmailCommseqSequenceTestRequest.md
|
333
|
+
- docs/EmailCommseqSequenceTestResponse.md
|
330
334
|
- docs/EmailCommseqStat.md
|
331
335
|
- docs/EmailCommseqStatResponse.md
|
332
336
|
- docs/EmailCommseqStep.md
|
@@ -879,6 +883,7 @@ files:
|
|
879
883
|
- lib/ultracart_api/models/conversation_agent_auth.rb
|
880
884
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
881
885
|
- lib/ultracart_api/models/conversation_event_queue_position.rb
|
886
|
+
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
882
887
|
- lib/ultracart_api/models/conversation_message.rb
|
883
888
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
884
889
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|
@@ -888,6 +893,7 @@ files:
|
|
888
893
|
- lib/ultracart_api/models/conversation_start_request.rb
|
889
894
|
- lib/ultracart_api/models/conversation_start_response.rb
|
890
895
|
- lib/ultracart_api/models/conversation_summary.rb
|
896
|
+
- lib/ultracart_api/models/conversation_twilio_account.rb
|
891
897
|
- lib/ultracart_api/models/conversation_webchat_queue_status.rb
|
892
898
|
- lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb
|
893
899
|
- lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb
|
@@ -1016,6 +1022,8 @@ files:
|
|
1016
1022
|
- lib/ultracart_api/models/email_commseq_postcards_request.rb
|
1017
1023
|
- lib/ultracart_api/models/email_commseq_postcards_response.rb
|
1018
1024
|
- lib/ultracart_api/models/email_commseq_response.rb
|
1025
|
+
- lib/ultracart_api/models/email_commseq_sequence_test_request.rb
|
1026
|
+
- lib/ultracart_api/models/email_commseq_sequence_test_response.rb
|
1019
1027
|
- lib/ultracart_api/models/email_commseq_stat.rb
|
1020
1028
|
- lib/ultracart_api/models/email_commseq_stat_response.rb
|
1021
1029
|
- lib/ultracart_api/models/email_commseq_step.rb
|