ultracart_api 3.10.31 → 3.10.32
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -4
- data/docs/ConversationEventTyping.md +10 -0
- data/docs/ConversationWebsocketMessage.md +1 -0
- data/lib/ultracart_api/models/conversation_event_typing.rb +202 -0
- data/lib/ultracart_api/models/conversation_websocket_message.rb +10 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2b344c52198212cfc7c83b6a1ac5f1520d6b6fcdaf5c549c30392549e728369
|
4
|
+
data.tar.gz: fed93ea72177fb94617dcc445c60ffd8a331c9fd97f58caa5164d7940e973be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56ed6c0e1680ec1d66959a42217132045f54afa559b30416b8926816bac2c933249a33285d3e8c7533ac034674eb3fddbdec4fdb313fe9cc79a60a95c607b1fa
|
7
|
+
data.tar.gz: 3316892e49d0f28626fa1cbda664c5980b9a01c250994529045a50489fb739eb9a4c12dedf07cd92a76adbea89a8ee27e1b2c5486ec154d36b6a70758be0a28a
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 3.10.
|
10
|
+
- Package version: 3.10.32
|
11
11
|
- Build package: io.swagger.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,15 +24,15 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-3.10.
|
27
|
+
gem install ./ultracart_api-3.10.32.gem
|
28
28
|
```
|
29
|
-
(for development, run `gem install --dev ./ultracart_api-3.10.
|
29
|
+
(for development, run `gem install --dev ./ultracart_api-3.10.32.gem` to install the development dependencies)
|
30
30
|
|
31
31
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
32
32
|
|
33
33
|
Finally add this to the Gemfile:
|
34
34
|
|
35
|
-
gem 'ultracart_api', '~> 3.10.
|
35
|
+
gem 'ultracart_api', '~> 3.10.32'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -564,6 +564,7 @@ Class | Method | HTTP request | Description
|
|
564
564
|
- [UltracartClient::ConversationAgentAuthResponse](docs/ConversationAgentAuthResponse.md)
|
565
565
|
- [UltracartClient::ConversationEventQueuePosition](docs/ConversationEventQueuePosition.md)
|
566
566
|
- [UltracartClient::ConversationEventRRWeb](docs/ConversationEventRRWeb.md)
|
567
|
+
- [UltracartClient::ConversationEventTyping](docs/ConversationEventTyping.md)
|
567
568
|
- [UltracartClient::ConversationMessage](docs/ConversationMessage.md)
|
568
569
|
- [UltracartClient::ConversationMessageTransportStatus](docs/ConversationMessageTransportStatus.md)
|
569
570
|
- [UltracartClient::ConversationMultimediaUploadUrl](docs/ConversationMultimediaUploadUrl.md)
|
@@ -1171,6 +1172,7 @@ Not every change is committed to every SDK.
|
|
1171
1172
|
|
1172
1173
|
| Version | Date | Comments |
|
1173
1174
|
| --: | :-: | --- |
|
1175
|
+
| 3.10.32 | 08/03/2022 | more conversation events |
|
1174
1176
|
| 3.10.31 | 08/02/2022 | storefront communication sequence test method |
|
1175
1177
|
| 3.10.30 | 08/01/2022 | conversation event refinement |
|
1176
1178
|
| 3.10.29 | 07/29/2022 | conversation development |
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# UltracartClient::ConversationEventTyping
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**author_conversation_participant_arn** | **String** | | [optional]
|
7
|
+
**author_conversation_participant_name** | **String** | | [optional]
|
8
|
+
**value** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
|
|
11
11
|
**event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional]
|
12
12
|
**event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional]
|
13
13
|
**event_type** | **String** | Type of event | [optional]
|
14
|
+
**event_typing** | [**ConversationEventTyping**](ConversationEventTyping.md) | | [optional]
|
14
15
|
**event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
15
16
|
**message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
16
17
|
**type** | **String** | Type of message | [optional]
|
@@ -0,0 +1,202 @@
|
|
1
|
+
=begin
|
2
|
+
#UltraCart Rest API V2
|
3
|
+
|
4
|
+
#UltraCart REST API Version 2
|
5
|
+
|
6
|
+
OpenAPI spec version: 2.0.0
|
7
|
+
Contact: support@ultracart.com
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.4.15-SNAPSHOT
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module UltracartClient
|
16
|
+
class ConversationEventTyping
|
17
|
+
attr_accessor :author_conversation_participant_arn
|
18
|
+
|
19
|
+
attr_accessor :author_conversation_participant_name
|
20
|
+
|
21
|
+
attr_accessor :value
|
22
|
+
|
23
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
24
|
+
def self.attribute_map
|
25
|
+
{
|
26
|
+
:'author_conversation_participant_arn' => :'author_conversation_participant_arn',
|
27
|
+
:'author_conversation_participant_name' => :'author_conversation_participant_name',
|
28
|
+
:'value' => :'value'
|
29
|
+
}
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.swagger_types
|
34
|
+
{
|
35
|
+
:'author_conversation_participant_arn' => :'String',
|
36
|
+
:'author_conversation_participant_name' => :'String',
|
37
|
+
:'value' => :'String'
|
38
|
+
}
|
39
|
+
end
|
40
|
+
|
41
|
+
# Initializes the object
|
42
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
43
|
+
def initialize(attributes = {})
|
44
|
+
return unless attributes.is_a?(Hash)
|
45
|
+
|
46
|
+
# convert string to symbol for hash key
|
47
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
48
|
+
|
49
|
+
if attributes.has_key?(:'author_conversation_participant_arn')
|
50
|
+
self.author_conversation_participant_arn = attributes[:'author_conversation_participant_arn']
|
51
|
+
end
|
52
|
+
|
53
|
+
if attributes.has_key?(:'author_conversation_participant_name')
|
54
|
+
self.author_conversation_participant_name = attributes[:'author_conversation_participant_name']
|
55
|
+
end
|
56
|
+
|
57
|
+
if attributes.has_key?(:'value')
|
58
|
+
self.value = attributes[:'value']
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
+
# @return Array for valid properties with the reasons
|
64
|
+
def list_invalid_properties
|
65
|
+
invalid_properties = Array.new
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
true
|
73
|
+
end
|
74
|
+
|
75
|
+
# Checks equality by comparing each attribute.
|
76
|
+
# @param [Object] Object to be compared
|
77
|
+
def ==(o)
|
78
|
+
return true if self.equal?(o)
|
79
|
+
self.class == o.class &&
|
80
|
+
author_conversation_participant_arn == o.author_conversation_participant_arn &&
|
81
|
+
author_conversation_participant_name == o.author_conversation_participant_name &&
|
82
|
+
value == o.value
|
83
|
+
end
|
84
|
+
|
85
|
+
# @see the `==` method
|
86
|
+
# @param [Object] Object to be compared
|
87
|
+
def eql?(o)
|
88
|
+
self == o
|
89
|
+
end
|
90
|
+
|
91
|
+
# Calculates hash code according to all attributes.
|
92
|
+
# @return [Fixnum] Hash code
|
93
|
+
def hash
|
94
|
+
[author_conversation_participant_arn, author_conversation_participant_name, value].hash
|
95
|
+
end
|
96
|
+
|
97
|
+
# Builds the object from hash
|
98
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
99
|
+
# @return [Object] Returns the model itself
|
100
|
+
def build_from_hash(attributes)
|
101
|
+
return nil unless attributes.is_a?(Hash)
|
102
|
+
self.class.swagger_types.each_pair do |key, type|
|
103
|
+
if type =~ /\AArray<(.*)>/i
|
104
|
+
# check to ensure the input is an array given that the attribute
|
105
|
+
# is documented as an array but the input is not
|
106
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
107
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
108
|
+
end
|
109
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
110
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
111
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
112
|
+
end
|
113
|
+
|
114
|
+
self
|
115
|
+
end
|
116
|
+
|
117
|
+
# Deserializes the data based on type
|
118
|
+
# @param string type Data type
|
119
|
+
# @param string value Value to be deserialized
|
120
|
+
# @return [Object] Deserialized data
|
121
|
+
def _deserialize(type, value)
|
122
|
+
case type.to_sym
|
123
|
+
when :DateTime
|
124
|
+
DateTime.parse(value)
|
125
|
+
when :Date
|
126
|
+
Date.parse(value)
|
127
|
+
when :String
|
128
|
+
value.to_s
|
129
|
+
when :Integer
|
130
|
+
value.to_i
|
131
|
+
when :Float
|
132
|
+
value.to_f
|
133
|
+
when :BOOLEAN
|
134
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
135
|
+
true
|
136
|
+
else
|
137
|
+
false
|
138
|
+
end
|
139
|
+
when :Object
|
140
|
+
# generic object (usually a Hash), return directly
|
141
|
+
value
|
142
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
143
|
+
inner_type = Regexp.last_match[:inner_type]
|
144
|
+
value.map { |v| _deserialize(inner_type, v) }
|
145
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
146
|
+
k_type = Regexp.last_match[:k_type]
|
147
|
+
v_type = Regexp.last_match[:v_type]
|
148
|
+
{}.tap do |hash|
|
149
|
+
value.each do |k, v|
|
150
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
151
|
+
end
|
152
|
+
end
|
153
|
+
else # model
|
154
|
+
temp_model = UltracartClient.const_get(type).new
|
155
|
+
temp_model.build_from_hash(value)
|
156
|
+
end
|
157
|
+
end
|
158
|
+
|
159
|
+
# Returns the string representation of the object
|
160
|
+
# @return [String] String presentation of the object
|
161
|
+
def to_s
|
162
|
+
to_hash.to_s
|
163
|
+
end
|
164
|
+
|
165
|
+
# to_body is an alias to to_hash (backward compatibility)
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
167
|
+
def to_body
|
168
|
+
to_hash
|
169
|
+
end
|
170
|
+
|
171
|
+
# Returns the object in the form of hash
|
172
|
+
# @return [Hash] Returns the object in the form of hash
|
173
|
+
def to_hash
|
174
|
+
hash = {}
|
175
|
+
self.class.attribute_map.each_pair do |attr, param|
|
176
|
+
value = self.send(attr)
|
177
|
+
next if value.nil?
|
178
|
+
hash[param] = _to_hash(value)
|
179
|
+
end
|
180
|
+
hash
|
181
|
+
end
|
182
|
+
|
183
|
+
# Outputs non-array value in the form of hash
|
184
|
+
# For object, use to_hash. Otherwise, just return the value
|
185
|
+
# @param [Object] value Any valid value
|
186
|
+
# @return [Hash] Returns the value in the form of hash
|
187
|
+
def _to_hash(value)
|
188
|
+
if value.is_a?(Array)
|
189
|
+
value.compact.map { |v| _to_hash(v) }
|
190
|
+
elsif value.is_a?(Hash)
|
191
|
+
{}.tap do |hash|
|
192
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
193
|
+
end
|
194
|
+
elsif value.respond_to? :to_hash
|
195
|
+
value.to_hash
|
196
|
+
else
|
197
|
+
value
|
198
|
+
end
|
199
|
+
end
|
200
|
+
|
201
|
+
end
|
202
|
+
end
|
@@ -32,6 +32,8 @@ module UltracartClient
|
|
32
32
|
# Type of event
|
33
33
|
attr_accessor :event_type
|
34
34
|
|
35
|
+
attr_accessor :event_typing
|
36
|
+
|
35
37
|
attr_accessor :event_updated_message
|
36
38
|
|
37
39
|
attr_accessor :message
|
@@ -72,6 +74,7 @@ module UltracartClient
|
|
72
74
|
:'event_queue_status_update' => :'event_queue_status_update',
|
73
75
|
:'event_rrweb' => :'event_rrweb',
|
74
76
|
:'event_type' => :'event_type',
|
77
|
+
:'event_typing' => :'event_typing',
|
75
78
|
:'event_updated_message' => :'event_updated_message',
|
76
79
|
:'message' => :'message',
|
77
80
|
:'type' => :'type'
|
@@ -89,6 +92,7 @@ module UltracartClient
|
|
89
92
|
:'event_queue_status_update' => :'ConversationWebchatQueueStatus',
|
90
93
|
:'event_rrweb' => :'ConversationEventRRWeb',
|
91
94
|
:'event_type' => :'String',
|
95
|
+
:'event_typing' => :'ConversationEventTyping',
|
92
96
|
:'event_updated_message' => :'ConversationMessage',
|
93
97
|
:'message' => :'ConversationMessage',
|
94
98
|
:'type' => :'String'
|
@@ -135,6 +139,10 @@ module UltracartClient
|
|
135
139
|
self.event_type = attributes[:'event_type']
|
136
140
|
end
|
137
141
|
|
142
|
+
if attributes.has_key?(:'event_typing')
|
143
|
+
self.event_typing = attributes[:'event_typing']
|
144
|
+
end
|
145
|
+
|
138
146
|
if attributes.has_key?(:'event_updated_message')
|
139
147
|
self.event_updated_message = attributes[:'event_updated_message']
|
140
148
|
end
|
@@ -198,6 +206,7 @@ module UltracartClient
|
|
198
206
|
event_queue_status_update == o.event_queue_status_update &&
|
199
207
|
event_rrweb == o.event_rrweb &&
|
200
208
|
event_type == o.event_type &&
|
209
|
+
event_typing == o.event_typing &&
|
201
210
|
event_updated_message == o.event_updated_message &&
|
202
211
|
message == o.message &&
|
203
212
|
type == o.type
|
@@ -212,7 +221,7 @@ module UltracartClient
|
|
212
221
|
# Calculates hash code according to all attributes.
|
213
222
|
# @return [Fixnum] Hash code
|
214
223
|
def hash
|
215
|
-
[conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_updated_message, message, type].hash
|
224
|
+
[conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_typing, event_updated_message, message, type].hash
|
216
225
|
end
|
217
226
|
|
218
227
|
# Builds the object from hash
|
data/lib/ultracart_api.rb
CHANGED
@@ -139,6 +139,7 @@ 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
141
|
require 'ultracart_api/models/conversation_event_rr_web'
|
142
|
+
require 'ultracart_api/models/conversation_event_typing'
|
142
143
|
require 'ultracart_api/models/conversation_message'
|
143
144
|
require 'ultracart_api/models/conversation_message_transport_status'
|
144
145
|
require 'ultracart_api/models/conversation_multimedia_upload_url'
|
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: 3.10.
|
4
|
+
version: 3.10.32
|
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-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -349,6 +349,7 @@ files:
|
|
349
349
|
- docs/ConversationApi.md
|
350
350
|
- docs/ConversationEventQueuePosition.md
|
351
351
|
- docs/ConversationEventRRWeb.md
|
352
|
+
- docs/ConversationEventTyping.md
|
352
353
|
- docs/ConversationMessage.md
|
353
354
|
- docs/ConversationMessageTransportStatus.md
|
354
355
|
- docs/ConversationMultimediaUploadUrl.md
|
@@ -1045,6 +1046,7 @@ files:
|
|
1045
1046
|
- lib/ultracart_api/models/conversation_agent_auth_response.rb
|
1046
1047
|
- lib/ultracart_api/models/conversation_event_queue_position.rb
|
1047
1048
|
- lib/ultracart_api/models/conversation_event_rr_web.rb
|
1049
|
+
- lib/ultracart_api/models/conversation_event_typing.rb
|
1048
1050
|
- lib/ultracart_api/models/conversation_message.rb
|
1049
1051
|
- lib/ultracart_api/models/conversation_message_transport_status.rb
|
1050
1052
|
- lib/ultracart_api/models/conversation_multimedia_upload_url.rb
|