ultracart_api 4.0.49.rc → 4.0.52.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 +7 -4
- data/docs/Conversation.md +19 -1
- data/docs/ConversationApi.md +2 -0
- data/docs/ConversationMessage.md +4 -0
- data/docs/ConversationSummary.md +4 -0
- data/docs/ConversationWebsocketMessage.md +2 -0
- data/lib/ultracart_api/api/conversation_api.rb +3 -0
- data/lib/ultracart_api/models/conversation.rb +122 -4
- data/lib/ultracart_api/models/conversation_message.rb +19 -1
- data/lib/ultracart_api/models/conversation_summary.rb +56 -1
- data/lib/ultracart_api/models/conversation_websocket_message.rb +12 -3
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9934de6bf631146a417c171eccb5221176b363b6885ed827b59895d09819394c
|
4
|
+
data.tar.gz: 5051d974c29f7ae6f8066b3b631578e2d7f70e976cc176fcb8e16bb38a0728a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5dfc20d26a058aafdcc50ff8d06feeb9cc3002f403577b3fc087d0bba703614ee12462a8a6f99ae41befaedc52e18a69cd29382bb41e47d091e79d8eeee0b802
|
7
|
+
data.tar.gz: c51ec7e764de01427f7bc6f4ab3fbb0abcdb6bc19964f8ab1acb0d2240f5718533f3425e2fe347cdefbc8e1910a42891a22e800fb830d032ece49e28843110e9
|
data/README.md
CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
|
|
7
7
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
8
8
|
|
9
9
|
- API version: 2.0.0
|
10
|
-
- Package version: 4.0.
|
10
|
+
- Package version: 4.0.52.rc
|
11
11
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
12
12
|
For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
|
13
13
|
|
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
|
|
24
24
|
Then either install the gem locally:
|
25
25
|
|
26
26
|
```shell
|
27
|
-
gem install ./ultracart_api-4.0.
|
27
|
+
gem install ./ultracart_api-4.0.52.rc.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.52.rc.gem` to install the development dependencies)
|
31
31
|
|
32
32
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
33
33
|
|
34
34
|
Finally add this to the Gemfile:
|
35
35
|
|
36
|
-
gem 'ultracart_api', '~> 4.0.
|
36
|
+
gem 'ultracart_api', '~> 4.0.52.rc'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1180,6 +1180,9 @@ Not every change is committed to every SDK.
|
|
1180
1180
|
|
1181
1181
|
| Version | Date | Comments |
|
1182
1182
|
| --: | :-: | --- |
|
1183
|
+
| 4.0.52-RC | 08/05/2022 | conversation adjustments for ES integration |
|
1184
|
+
| 4.0.51-RC | 08/05/2022 | conversations query by medium and stats fixes |
|
1185
|
+
| 4.0.50-RC | 08/03/2022 | conversation summary participants |
|
1183
1186
|
| 4.0.49-RC | 08/03/2022 | more conversation events |
|
1184
1187
|
| 4.0.48-RC | 08/02/2022 | storefront communication sequence test method |
|
1185
1188
|
| 4.0.47-RC | 08/01/2022 | conversation event refinement |
|
data/docs/Conversation.md
CHANGED
@@ -7,9 +7,18 @@
|
|
7
7
|
| **closed** | **Boolean** | | [optional] |
|
8
8
|
| **conversation_arn** | **String** | | [optional] |
|
9
9
|
| **conversation_uuid** | **String** | | [optional] |
|
10
|
+
| **last_conversation_message_body** | **String** | | [optional] |
|
11
|
+
| **last_conversation_participant_arn** | **String** | | [optional] |
|
12
|
+
| **last_conversation_participant_name** | **String** | | [optional] |
|
13
|
+
| **last_message_dts** | **String** | Last message date/time | [optional] |
|
14
|
+
| **medium** | **String** | The communication medium of the customer. | [optional] |
|
10
15
|
| **merchant_id** | **String** | | [optional] |
|
16
|
+
| **message_count** | **Integer** | | [optional] |
|
11
17
|
| **messages** | [**Array<ConversationMessage>**](ConversationMessage.md) | | [optional] |
|
12
18
|
| **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
|
19
|
+
| **start_dts** | **String** | Start of the conversation date/time | [optional] |
|
20
|
+
| **unread_messages** | **Boolean** | | [optional] |
|
21
|
+
| **visible** | **Boolean** | | [optional] |
|
13
22
|
|
14
23
|
## Example
|
15
24
|
|
@@ -20,9 +29,18 @@ instance = UltracartClient::Conversation.new(
|
|
20
29
|
closed: null,
|
21
30
|
conversation_arn: null,
|
22
31
|
conversation_uuid: null,
|
32
|
+
last_conversation_message_body: null,
|
33
|
+
last_conversation_participant_arn: null,
|
34
|
+
last_conversation_participant_name: null,
|
35
|
+
last_message_dts: null,
|
36
|
+
medium: null,
|
23
37
|
merchant_id: null,
|
38
|
+
message_count: null,
|
24
39
|
messages: null,
|
25
|
-
participants: null
|
40
|
+
participants: null,
|
41
|
+
start_dts: null,
|
42
|
+
unread_messages: null,
|
43
|
+
visible: null
|
26
44
|
)
|
27
45
|
```
|
28
46
|
|
data/docs/ConversationApi.md
CHANGED
@@ -316,6 +316,7 @@ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/
|
|
316
316
|
|
317
317
|
api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
318
318
|
opts = {
|
319
|
+
medium: 'medium_example', # String |
|
319
320
|
_limit: 56, # Integer | The maximum number of records to return on this one API call. (Max 200)
|
320
321
|
_offset: 56 # Integer | Pagination of the record set. Offset is a zero based index.
|
321
322
|
}
|
@@ -351,6 +352,7 @@ end
|
|
351
352
|
|
352
353
|
| Name | Type | Description | Notes |
|
353
354
|
| ---- | ---- | ----------- | ----- |
|
355
|
+
| **medium** | **String** | | [optional] |
|
354
356
|
| **_limit** | **Integer** | The maximum number of records to return on this one API call. (Max 200) | [optional][default to 100] |
|
355
357
|
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
|
356
358
|
|
data/docs/ConversationMessage.md
CHANGED
@@ -8,7 +8,9 @@
|
|
8
8
|
| **author_conversation_participant_name** | **String** | | [optional] |
|
9
9
|
| **body** | **String** | | [optional] |
|
10
10
|
| **client_message_id** | **String** | | [optional] |
|
11
|
+
| **conversation_message_uuid** | **String** | | [optional] |
|
11
12
|
| **media_urls** | **Array<String>** | | [optional] |
|
13
|
+
| **merchant_id** | **String** | | [optional] |
|
12
14
|
| **message_dts** | **String** | Message date/time | [optional] |
|
13
15
|
| **transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional] |
|
14
16
|
| **type** | **String** | Message type | [optional] |
|
@@ -24,7 +26,9 @@ instance = UltracartClient::ConversationMessage.new(
|
|
24
26
|
author_conversation_participant_name: null,
|
25
27
|
body: null,
|
26
28
|
client_message_id: null,
|
29
|
+
conversation_message_uuid: null,
|
27
30
|
media_urls: null,
|
31
|
+
merchant_id: null,
|
28
32
|
message_dts: null,
|
29
33
|
transport_statuses: null,
|
30
34
|
type: null,
|
data/docs/ConversationSummary.md
CHANGED
@@ -11,8 +11,10 @@
|
|
11
11
|
| **last_conversation_participant_arn** | **String** | | [optional] |
|
12
12
|
| **last_conversation_participant_name** | **String** | | [optional] |
|
13
13
|
| **last_message_dts** | **String** | Last message date/time | [optional] |
|
14
|
+
| **medium** | **String** | The communication medium of the customer. | [optional] |
|
14
15
|
| **merchant_id** | **String** | | [optional] |
|
15
16
|
| **message_count** | **Integer** | | [optional] |
|
17
|
+
| **participants** | [**Array<ConversationParticipant>**](ConversationParticipant.md) | | [optional] |
|
16
18
|
| **start_dts** | **String** | Start of the conversation date/time | [optional] |
|
17
19
|
| **unread_messages** | **Boolean** | | [optional] |
|
18
20
|
| **visible** | **Boolean** | | [optional] |
|
@@ -30,8 +32,10 @@ instance = UltracartClient::ConversationSummary.new(
|
|
30
32
|
last_conversation_participant_arn: null,
|
31
33
|
last_conversation_participant_name: null,
|
32
34
|
last_message_dts: null,
|
35
|
+
medium: null,
|
33
36
|
merchant_id: null,
|
34
37
|
message_count: null,
|
38
|
+
participants: null,
|
35
39
|
start_dts: null,
|
36
40
|
unread_messages: null,
|
37
41
|
visible: null
|
@@ -8,6 +8,7 @@
|
|
8
8
|
| **event_conversation_closed** | [**ConversationSummary**](ConversationSummary.md) | | [optional] |
|
9
9
|
| **event_new_conversation** | [**ConversationSummary**](ConversationSummary.md) | | [optional] |
|
10
10
|
| **event_new_message** | [**ConversationSummary**](ConversationSummary.md) | | [optional] |
|
11
|
+
| **event_participant_update** | [**ConversationSummary**](ConversationSummary.md) | | [optional] |
|
11
12
|
| **event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional] |
|
12
13
|
| **event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional] |
|
13
14
|
| **event_rrweb** | [**ConversationEventRRWeb**](ConversationEventRRWeb.md) | | [optional] |
|
@@ -27,6 +28,7 @@ instance = UltracartClient::ConversationWebsocketMessage.new(
|
|
27
28
|
event_conversation_closed: null,
|
28
29
|
event_new_conversation: null,
|
29
30
|
event_new_message: null,
|
31
|
+
event_participant_update: null,
|
30
32
|
event_queue_position: null,
|
31
33
|
event_queue_status_update: null,
|
32
34
|
event_rrweb: null,
|
@@ -279,6 +279,7 @@ module UltracartClient
|
|
279
279
|
# Retrieve a list of conversation summaries newest to oldest
|
280
280
|
# Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
281
281
|
# @param [Hash] opts the optional parameters
|
282
|
+
# @option opts [String] :medium
|
282
283
|
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
283
284
|
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
284
285
|
# @return [ConversationsResponse]
|
@@ -290,6 +291,7 @@ module UltracartClient
|
|
290
291
|
# Retrieve a list of conversation summaries newest to oldest
|
291
292
|
# Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
292
293
|
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [String] :medium
|
293
295
|
# @option opts [Integer] :_limit The maximum number of records to return on this one API call. (Max 200) (default to 100)
|
294
296
|
# @option opts [Integer] :_offset Pagination of the record set. Offset is a zero based index. (default to 0)
|
295
297
|
# @return [Array<(ConversationsResponse, Integer, Hash)>] ConversationsResponse data, response status code and response headers
|
@@ -302,6 +304,7 @@ module UltracartClient
|
|
302
304
|
|
303
305
|
# query parameters
|
304
306
|
query_params = opts[:query_params] || {}
|
307
|
+
query_params[:'medium'] = opts[:'medium'] if !opts[:'medium'].nil?
|
305
308
|
query_params[:'_limit'] = opts[:'_limit'] if !opts[:'_limit'].nil?
|
306
309
|
query_params[:'_offset'] = opts[:'_offset'] if !opts[:'_offset'].nil?
|
307
310
|
|
@@ -21,21 +21,73 @@ module UltracartClient
|
|
21
21
|
|
22
22
|
attr_accessor :conversation_uuid
|
23
23
|
|
24
|
+
attr_accessor :last_conversation_message_body
|
25
|
+
|
26
|
+
attr_accessor :last_conversation_participant_arn
|
27
|
+
|
28
|
+
attr_accessor :last_conversation_participant_name
|
29
|
+
|
30
|
+
# Last message date/time
|
31
|
+
attr_accessor :last_message_dts
|
32
|
+
|
33
|
+
# The communication medium of the customer.
|
34
|
+
attr_accessor :medium
|
35
|
+
|
24
36
|
attr_accessor :merchant_id
|
25
37
|
|
38
|
+
attr_accessor :message_count
|
39
|
+
|
26
40
|
attr_accessor :messages
|
27
41
|
|
28
42
|
attr_accessor :participants
|
29
43
|
|
44
|
+
# Start of the conversation date/time
|
45
|
+
attr_accessor :start_dts
|
46
|
+
|
47
|
+
attr_accessor :unread_messages
|
48
|
+
|
49
|
+
attr_accessor :visible
|
50
|
+
|
51
|
+
class EnumAttributeValidator
|
52
|
+
attr_reader :datatype
|
53
|
+
attr_reader :allowable_values
|
54
|
+
|
55
|
+
def initialize(datatype, allowable_values)
|
56
|
+
@allowable_values = allowable_values.map do |value|
|
57
|
+
case datatype.to_s
|
58
|
+
when /Integer/i
|
59
|
+
value.to_i
|
60
|
+
when /Float/i
|
61
|
+
value.to_f
|
62
|
+
else
|
63
|
+
value
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
def valid?(value)
|
69
|
+
!value || allowable_values.include?(value)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
30
73
|
# Attribute mapping from ruby-style variable name to JSON key.
|
31
74
|
def self.attribute_map
|
32
75
|
{
|
33
76
|
:'closed' => :'closed',
|
34
77
|
:'conversation_arn' => :'conversation_arn',
|
35
78
|
:'conversation_uuid' => :'conversation_uuid',
|
79
|
+
:'last_conversation_message_body' => :'last_conversation_message_body',
|
80
|
+
:'last_conversation_participant_arn' => :'last_conversation_participant_arn',
|
81
|
+
:'last_conversation_participant_name' => :'last_conversation_participant_name',
|
82
|
+
:'last_message_dts' => :'last_message_dts',
|
83
|
+
:'medium' => :'medium',
|
36
84
|
:'merchant_id' => :'merchant_id',
|
85
|
+
:'message_count' => :'message_count',
|
37
86
|
:'messages' => :'messages',
|
38
|
-
:'participants' => :'participants'
|
87
|
+
:'participants' => :'participants',
|
88
|
+
:'start_dts' => :'start_dts',
|
89
|
+
:'unread_messages' => :'unread_messages',
|
90
|
+
:'visible' => :'visible'
|
39
91
|
}
|
40
92
|
end
|
41
93
|
|
@@ -50,9 +102,18 @@ module UltracartClient
|
|
50
102
|
:'closed' => :'Boolean',
|
51
103
|
:'conversation_arn' => :'String',
|
52
104
|
:'conversation_uuid' => :'String',
|
105
|
+
:'last_conversation_message_body' => :'String',
|
106
|
+
:'last_conversation_participant_arn' => :'String',
|
107
|
+
:'last_conversation_participant_name' => :'String',
|
108
|
+
:'last_message_dts' => :'String',
|
109
|
+
:'medium' => :'String',
|
53
110
|
:'merchant_id' => :'String',
|
111
|
+
:'message_count' => :'Integer',
|
54
112
|
:'messages' => :'Array<ConversationMessage>',
|
55
|
-
:'participants' => :'Array<ConversationParticipant>'
|
113
|
+
:'participants' => :'Array<ConversationParticipant>',
|
114
|
+
:'start_dts' => :'String',
|
115
|
+
:'unread_messages' => :'Boolean',
|
116
|
+
:'visible' => :'Boolean'
|
56
117
|
}
|
57
118
|
end
|
58
119
|
|
@@ -89,10 +150,34 @@ module UltracartClient
|
|
89
150
|
self.conversation_uuid = attributes[:'conversation_uuid']
|
90
151
|
end
|
91
152
|
|
153
|
+
if attributes.key?(:'last_conversation_message_body')
|
154
|
+
self.last_conversation_message_body = attributes[:'last_conversation_message_body']
|
155
|
+
end
|
156
|
+
|
157
|
+
if attributes.key?(:'last_conversation_participant_arn')
|
158
|
+
self.last_conversation_participant_arn = attributes[:'last_conversation_participant_arn']
|
159
|
+
end
|
160
|
+
|
161
|
+
if attributes.key?(:'last_conversation_participant_name')
|
162
|
+
self.last_conversation_participant_name = attributes[:'last_conversation_participant_name']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'last_message_dts')
|
166
|
+
self.last_message_dts = attributes[:'last_message_dts']
|
167
|
+
end
|
168
|
+
|
169
|
+
if attributes.key?(:'medium')
|
170
|
+
self.medium = attributes[:'medium']
|
171
|
+
end
|
172
|
+
|
92
173
|
if attributes.key?(:'merchant_id')
|
93
174
|
self.merchant_id = attributes[:'merchant_id']
|
94
175
|
end
|
95
176
|
|
177
|
+
if attributes.key?(:'message_count')
|
178
|
+
self.message_count = attributes[:'message_count']
|
179
|
+
end
|
180
|
+
|
96
181
|
if attributes.key?(:'messages')
|
97
182
|
if (value = attributes[:'messages']).is_a?(Array)
|
98
183
|
self.messages = value
|
@@ -104,6 +189,18 @@ module UltracartClient
|
|
104
189
|
self.participants = value
|
105
190
|
end
|
106
191
|
end
|
192
|
+
|
193
|
+
if attributes.key?(:'start_dts')
|
194
|
+
self.start_dts = attributes[:'start_dts']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.key?(:'unread_messages')
|
198
|
+
self.unread_messages = attributes[:'unread_messages']
|
199
|
+
end
|
200
|
+
|
201
|
+
if attributes.key?(:'visible')
|
202
|
+
self.visible = attributes[:'visible']
|
203
|
+
end
|
107
204
|
end
|
108
205
|
|
109
206
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -116,9 +213,21 @@ module UltracartClient
|
|
116
213
|
# Check to see if the all the properties in the model are valid
|
117
214
|
# @return true if the model is valid
|
118
215
|
def valid?
|
216
|
+
medium_validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
|
217
|
+
return false unless medium_validator.valid?(@medium)
|
119
218
|
true
|
120
219
|
end
|
121
220
|
|
221
|
+
# Custom attribute writer method checking allowed values (enum).
|
222
|
+
# @param [Object] medium Object to be assigned
|
223
|
+
def medium=(medium)
|
224
|
+
validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
|
225
|
+
unless validator.valid?(medium)
|
226
|
+
fail ArgumentError, "invalid value for \"medium\", must be one of #{validator.allowable_values}."
|
227
|
+
end
|
228
|
+
@medium = medium
|
229
|
+
end
|
230
|
+
|
122
231
|
# Checks equality by comparing each attribute.
|
123
232
|
# @param [Object] Object to be compared
|
124
233
|
def ==(o)
|
@@ -127,9 +236,18 @@ module UltracartClient
|
|
127
236
|
closed == o.closed &&
|
128
237
|
conversation_arn == o.conversation_arn &&
|
129
238
|
conversation_uuid == o.conversation_uuid &&
|
239
|
+
last_conversation_message_body == o.last_conversation_message_body &&
|
240
|
+
last_conversation_participant_arn == o.last_conversation_participant_arn &&
|
241
|
+
last_conversation_participant_name == o.last_conversation_participant_name &&
|
242
|
+
last_message_dts == o.last_message_dts &&
|
243
|
+
medium == o.medium &&
|
130
244
|
merchant_id == o.merchant_id &&
|
245
|
+
message_count == o.message_count &&
|
131
246
|
messages == o.messages &&
|
132
|
-
participants == o.participants
|
247
|
+
participants == o.participants &&
|
248
|
+
start_dts == o.start_dts &&
|
249
|
+
unread_messages == o.unread_messages &&
|
250
|
+
visible == o.visible
|
133
251
|
end
|
134
252
|
|
135
253
|
# @see the `==` method
|
@@ -141,7 +259,7 @@ module UltracartClient
|
|
141
259
|
# Calculates hash code according to all attributes.
|
142
260
|
# @return [Integer] Hash code
|
143
261
|
def hash
|
144
|
-
[closed, conversation_arn, conversation_uuid, merchant_id, messages, participants].hash
|
262
|
+
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, medium, merchant_id, message_count, messages, participants, start_dts, unread_messages, visible].hash
|
145
263
|
end
|
146
264
|
|
147
265
|
# Builds the object from hash
|
@@ -23,8 +23,12 @@ module UltracartClient
|
|
23
23
|
|
24
24
|
attr_accessor :client_message_id
|
25
25
|
|
26
|
+
attr_accessor :conversation_message_uuid
|
27
|
+
|
26
28
|
attr_accessor :media_urls
|
27
29
|
|
30
|
+
attr_accessor :merchant_id
|
31
|
+
|
28
32
|
# Message date/time
|
29
33
|
attr_accessor :message_dts
|
30
34
|
|
@@ -64,7 +68,9 @@ module UltracartClient
|
|
64
68
|
:'author_conversation_participant_name' => :'author_conversation_participant_name',
|
65
69
|
:'body' => :'body',
|
66
70
|
:'client_message_id' => :'client_message_id',
|
71
|
+
:'conversation_message_uuid' => :'conversation_message_uuid',
|
67
72
|
:'media_urls' => :'media_urls',
|
73
|
+
:'merchant_id' => :'merchant_id',
|
68
74
|
:'message_dts' => :'message_dts',
|
69
75
|
:'transport_statuses' => :'transport_statuses',
|
70
76
|
:'type' => :'type',
|
@@ -84,7 +90,9 @@ module UltracartClient
|
|
84
90
|
:'author_conversation_participant_name' => :'String',
|
85
91
|
:'body' => :'String',
|
86
92
|
:'client_message_id' => :'String',
|
93
|
+
:'conversation_message_uuid' => :'String',
|
87
94
|
:'media_urls' => :'Array<String>',
|
95
|
+
:'merchant_id' => :'String',
|
88
96
|
:'message_dts' => :'String',
|
89
97
|
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
|
90
98
|
:'type' => :'String',
|
@@ -129,12 +137,20 @@ module UltracartClient
|
|
129
137
|
self.client_message_id = attributes[:'client_message_id']
|
130
138
|
end
|
131
139
|
|
140
|
+
if attributes.key?(:'conversation_message_uuid')
|
141
|
+
self.conversation_message_uuid = attributes[:'conversation_message_uuid']
|
142
|
+
end
|
143
|
+
|
132
144
|
if attributes.key?(:'media_urls')
|
133
145
|
if (value = attributes[:'media_urls']).is_a?(Array)
|
134
146
|
self.media_urls = value
|
135
147
|
end
|
136
148
|
end
|
137
149
|
|
150
|
+
if attributes.key?(:'merchant_id')
|
151
|
+
self.merchant_id = attributes[:'merchant_id']
|
152
|
+
end
|
153
|
+
|
138
154
|
if attributes.key?(:'message_dts')
|
139
155
|
self.message_dts = attributes[:'message_dts']
|
140
156
|
end
|
@@ -190,7 +206,9 @@ module UltracartClient
|
|
190
206
|
author_conversation_participant_name == o.author_conversation_participant_name &&
|
191
207
|
body == o.body &&
|
192
208
|
client_message_id == o.client_message_id &&
|
209
|
+
conversation_message_uuid == o.conversation_message_uuid &&
|
193
210
|
media_urls == o.media_urls &&
|
211
|
+
merchant_id == o.merchant_id &&
|
194
212
|
message_dts == o.message_dts &&
|
195
213
|
transport_statuses == o.transport_statuses &&
|
196
214
|
type == o.type &&
|
@@ -206,7 +224,7 @@ module UltracartClient
|
|
206
224
|
# Calculates hash code according to all attributes.
|
207
225
|
# @return [Integer] Hash code
|
208
226
|
def hash
|
209
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, media_urls, message_dts, transport_statuses, type, upload_keys].hash
|
227
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, client_message_id, conversation_message_uuid, media_urls, merchant_id, message_dts, transport_statuses, type, upload_keys].hash
|
210
228
|
end
|
211
229
|
|
212
230
|
# Builds the object from hash
|
@@ -30,10 +30,15 @@ module UltracartClient
|
|
30
30
|
# Last message date/time
|
31
31
|
attr_accessor :last_message_dts
|
32
32
|
|
33
|
+
# The communication medium of the customer.
|
34
|
+
attr_accessor :medium
|
35
|
+
|
33
36
|
attr_accessor :merchant_id
|
34
37
|
|
35
38
|
attr_accessor :message_count
|
36
39
|
|
40
|
+
attr_accessor :participants
|
41
|
+
|
37
42
|
# Start of the conversation date/time
|
38
43
|
attr_accessor :start_dts
|
39
44
|
|
@@ -41,6 +46,28 @@ module UltracartClient
|
|
41
46
|
|
42
47
|
attr_accessor :visible
|
43
48
|
|
49
|
+
class EnumAttributeValidator
|
50
|
+
attr_reader :datatype
|
51
|
+
attr_reader :allowable_values
|
52
|
+
|
53
|
+
def initialize(datatype, allowable_values)
|
54
|
+
@allowable_values = allowable_values.map do |value|
|
55
|
+
case datatype.to_s
|
56
|
+
when /Integer/i
|
57
|
+
value.to_i
|
58
|
+
when /Float/i
|
59
|
+
value.to_f
|
60
|
+
else
|
61
|
+
value
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
def valid?(value)
|
67
|
+
!value || allowable_values.include?(value)
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
44
71
|
# Attribute mapping from ruby-style variable name to JSON key.
|
45
72
|
def self.attribute_map
|
46
73
|
{
|
@@ -51,8 +78,10 @@ module UltracartClient
|
|
51
78
|
:'last_conversation_participant_arn' => :'last_conversation_participant_arn',
|
52
79
|
:'last_conversation_participant_name' => :'last_conversation_participant_name',
|
53
80
|
:'last_message_dts' => :'last_message_dts',
|
81
|
+
:'medium' => :'medium',
|
54
82
|
:'merchant_id' => :'merchant_id',
|
55
83
|
:'message_count' => :'message_count',
|
84
|
+
:'participants' => :'participants',
|
56
85
|
:'start_dts' => :'start_dts',
|
57
86
|
:'unread_messages' => :'unread_messages',
|
58
87
|
:'visible' => :'visible'
|
@@ -74,8 +103,10 @@ module UltracartClient
|
|
74
103
|
:'last_conversation_participant_arn' => :'String',
|
75
104
|
:'last_conversation_participant_name' => :'String',
|
76
105
|
:'last_message_dts' => :'String',
|
106
|
+
:'medium' => :'String',
|
77
107
|
:'merchant_id' => :'String',
|
78
108
|
:'message_count' => :'Integer',
|
109
|
+
:'participants' => :'Array<ConversationParticipant>',
|
79
110
|
:'start_dts' => :'String',
|
80
111
|
:'unread_messages' => :'Boolean',
|
81
112
|
:'visible' => :'Boolean'
|
@@ -131,6 +162,10 @@ module UltracartClient
|
|
131
162
|
self.last_message_dts = attributes[:'last_message_dts']
|
132
163
|
end
|
133
164
|
|
165
|
+
if attributes.key?(:'medium')
|
166
|
+
self.medium = attributes[:'medium']
|
167
|
+
end
|
168
|
+
|
134
169
|
if attributes.key?(:'merchant_id')
|
135
170
|
self.merchant_id = attributes[:'merchant_id']
|
136
171
|
end
|
@@ -139,6 +174,12 @@ module UltracartClient
|
|
139
174
|
self.message_count = attributes[:'message_count']
|
140
175
|
end
|
141
176
|
|
177
|
+
if attributes.key?(:'participants')
|
178
|
+
if (value = attributes[:'participants']).is_a?(Array)
|
179
|
+
self.participants = value
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
142
183
|
if attributes.key?(:'start_dts')
|
143
184
|
self.start_dts = attributes[:'start_dts']
|
144
185
|
end
|
@@ -162,9 +203,21 @@ module UltracartClient
|
|
162
203
|
# Check to see if the all the properties in the model are valid
|
163
204
|
# @return true if the model is valid
|
164
205
|
def valid?
|
206
|
+
medium_validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
|
207
|
+
return false unless medium_validator.valid?(@medium)
|
165
208
|
true
|
166
209
|
end
|
167
210
|
|
211
|
+
# Custom attribute writer method checking allowed values (enum).
|
212
|
+
# @param [Object] medium Object to be assigned
|
213
|
+
def medium=(medium)
|
214
|
+
validator = EnumAttributeValidator.new('String', ["sms", "websocket"])
|
215
|
+
unless validator.valid?(medium)
|
216
|
+
fail ArgumentError, "invalid value for \"medium\", must be one of #{validator.allowable_values}."
|
217
|
+
end
|
218
|
+
@medium = medium
|
219
|
+
end
|
220
|
+
|
168
221
|
# Checks equality by comparing each attribute.
|
169
222
|
# @param [Object] Object to be compared
|
170
223
|
def ==(o)
|
@@ -177,8 +230,10 @@ module UltracartClient
|
|
177
230
|
last_conversation_participant_arn == o.last_conversation_participant_arn &&
|
178
231
|
last_conversation_participant_name == o.last_conversation_participant_name &&
|
179
232
|
last_message_dts == o.last_message_dts &&
|
233
|
+
medium == o.medium &&
|
180
234
|
merchant_id == o.merchant_id &&
|
181
235
|
message_count == o.message_count &&
|
236
|
+
participants == o.participants &&
|
182
237
|
start_dts == o.start_dts &&
|
183
238
|
unread_messages == o.unread_messages &&
|
184
239
|
visible == o.visible
|
@@ -193,7 +248,7 @@ module UltracartClient
|
|
193
248
|
# Calculates hash code according to all attributes.
|
194
249
|
# @return [Integer] Hash code
|
195
250
|
def hash
|
196
|
-
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, start_dts, unread_messages, visible].hash
|
251
|
+
[closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, medium, merchant_id, message_count, participants, start_dts, unread_messages, visible].hash
|
197
252
|
end
|
198
253
|
|
199
254
|
# Builds the object from hash
|
@@ -24,6 +24,8 @@ module UltracartClient
|
|
24
24
|
|
25
25
|
attr_accessor :event_new_message
|
26
26
|
|
27
|
+
attr_accessor :event_participant_update
|
28
|
+
|
27
29
|
attr_accessor :event_queue_position
|
28
30
|
|
29
31
|
attr_accessor :event_queue_status_update
|
@@ -71,6 +73,7 @@ module UltracartClient
|
|
71
73
|
:'event_conversation_closed' => :'event_conversation_closed',
|
72
74
|
:'event_new_conversation' => :'event_new_conversation',
|
73
75
|
:'event_new_message' => :'event_new_message',
|
76
|
+
:'event_participant_update' => :'event_participant_update',
|
74
77
|
:'event_queue_position' => :'event_queue_position',
|
75
78
|
:'event_queue_status_update' => :'event_queue_status_update',
|
76
79
|
:'event_rrweb' => :'event_rrweb',
|
@@ -94,6 +97,7 @@ module UltracartClient
|
|
94
97
|
:'event_conversation_closed' => :'ConversationSummary',
|
95
98
|
:'event_new_conversation' => :'ConversationSummary',
|
96
99
|
:'event_new_message' => :'ConversationSummary',
|
100
|
+
:'event_participant_update' => :'ConversationSummary',
|
97
101
|
:'event_queue_position' => :'ConversationEventQueuePosition',
|
98
102
|
:'event_queue_status_update' => :'ConversationWebchatQueueStatus',
|
99
103
|
:'event_rrweb' => :'ConversationEventRRWeb',
|
@@ -142,6 +146,10 @@ module UltracartClient
|
|
142
146
|
self.event_new_message = attributes[:'event_new_message']
|
143
147
|
end
|
144
148
|
|
149
|
+
if attributes.key?(:'event_participant_update')
|
150
|
+
self.event_participant_update = attributes[:'event_participant_update']
|
151
|
+
end
|
152
|
+
|
145
153
|
if attributes.key?(:'event_queue_position')
|
146
154
|
self.event_queue_position = attributes[:'event_queue_position']
|
147
155
|
end
|
@@ -185,7 +193,7 @@ module UltracartClient
|
|
185
193
|
# Check to see if the all the properties in the model are valid
|
186
194
|
# @return true if the model is valid
|
187
195
|
def valid?
|
188
|
-
event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb"])
|
196
|
+
event_type_validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update"])
|
189
197
|
return false unless event_type_validator.valid?(@event_type)
|
190
198
|
type_validator = EnumAttributeValidator.new('String', ["message", "event", "ping", "check queue position"])
|
191
199
|
return false unless type_validator.valid?(@type)
|
@@ -195,7 +203,7 @@ module UltracartClient
|
|
195
203
|
# Custom attribute writer method checking allowed values (enum).
|
196
204
|
# @param [Object] event_type Object to be assigned
|
197
205
|
def event_type=(event_type)
|
198
|
-
validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb"])
|
206
|
+
validator = EnumAttributeValidator.new('String', ["queue position", "webchat start conversation", "conversation closed", "new conversation", "new message", "updated message", "queue status update", "rrweb", "participant update"])
|
199
207
|
unless validator.valid?(event_type)
|
200
208
|
fail ArgumentError, "invalid value for \"event_type\", must be one of #{validator.allowable_values}."
|
201
209
|
end
|
@@ -221,6 +229,7 @@ module UltracartClient
|
|
221
229
|
event_conversation_closed == o.event_conversation_closed &&
|
222
230
|
event_new_conversation == o.event_new_conversation &&
|
223
231
|
event_new_message == o.event_new_message &&
|
232
|
+
event_participant_update == o.event_participant_update &&
|
224
233
|
event_queue_position == o.event_queue_position &&
|
225
234
|
event_queue_status_update == o.event_queue_status_update &&
|
226
235
|
event_rrweb == o.event_rrweb &&
|
@@ -240,7 +249,7 @@ module UltracartClient
|
|
240
249
|
# Calculates hash code according to all attributes.
|
241
250
|
# @return [Integer] Hash code
|
242
251
|
def hash
|
243
|
-
[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
|
252
|
+
[conversation_uuid, event_conversation_closed, event_new_conversation, event_new_message, event_participant_update, event_queue_position, event_queue_status_update, event_rrweb, event_type, event_typing, event_updated_message, message, type].hash
|
244
253
|
end
|
245
254
|
|
246
255
|
# Builds the object from hash
|
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.52.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-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|