ultracart_api 3.10.25 → 3.10.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +14 -4
- data/docs/ConversationApi.md +99 -0
- data/docs/ConversationMessage.md +1 -0
- data/docs/ConversationWebchatQueueStatus.md +22 -0
- data/docs/ConversationWebchatQueueStatusAgent.md +12 -0
- data/docs/ConversationWebchatQueueStatusQueueEntry.md +13 -0
- data/docs/ConversationWebchatQueueStatusUpdateRequest.md +8 -0
- data/docs/ConversationWebchatQueueStatusesResponse.md +12 -0
- data/docs/ConversationWebsocketMessage.md +1 -0
- data/lib/ultracart_api/api/conversation_api.rb +109 -0
- data/lib/ultracart_api/models/conversation_message.rb +15 -4
- data/lib/ultracart_api/models/conversation_webchat_queue_status.rb +315 -0
- data/lib/ultracart_api/models/conversation_webchat_queue_status_agent.rb +221 -0
- data/lib/ultracart_api/models/conversation_webchat_queue_status_queue_entry.rb +230 -0
- data/lib/ultracart_api/models/conversation_webchat_queue_status_update_request.rb +184 -0
- data/lib/ultracart_api/models/conversation_webchat_queue_statuses_response.rb +223 -0
- data/lib/ultracart_api/models/conversation_websocket_message.rb +12 -3
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +5 -0
- metadata +12 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 318716e3c951f48123d5680ccb6eeaaae0d1730abdce2e8331d3147870e4e257
|
|
4
|
+
data.tar.gz: c36d17549fb0f6a52b7367e4f26278fc18052af5d08e529c2b2d00fb390a1b7c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1bc988c0d76418ab36b3cb64f395b1c7f79558c837e0511746b3b0365aa186cd01b04608aca5dd36243c16d437f8b9f589e068e4249458d3045127b3b5bdf2b
|
|
7
|
+
data.tar.gz: 9590096f203eceed86560be5a2599a595e15c21917ec3f9c9b04eefd270f72489e235eb8de0b10d0cd32a95a83cf71442124113a7ed4fce657faf43bddfb5c5a
|
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.28
|
|
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.28.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.28.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.28'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -128,10 +128,12 @@ Class | Method | HTTP request | Description
|
|
|
128
128
|
*UltracartClient::ConversationApi* | [**get_agent_websocket_authorization**](docs/ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
|
|
129
129
|
*UltracartClient::ConversationApi* | [**get_conversation**](docs/ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
|
|
130
130
|
*UltracartClient::ConversationApi* | [**get_conversation_multimedia_upload_url**](docs/ConversationApi.md#get_conversation_multimedia_upload_url) | **GET** /conversation/upload_url/{extension} | Get a presigned conersation multimedia upload URL
|
|
131
|
+
*UltracartClient::ConversationApi* | [**get_conversation_webchat_queue_statuses**](docs/ConversationApi.md#get_conversation_webchat_queue_statuses) | **GET** /conversation/conversations/queues/statuses | Retrieve a conversation webchat queue statuses
|
|
131
132
|
*UltracartClient::ConversationApi* | [**get_conversations**](docs/ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
|
132
133
|
*UltracartClient::ConversationApi* | [**join_conversation**](docs/ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
|
133
134
|
*UltracartClient::ConversationApi* | [**leave_conversation**](docs/ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
|
134
135
|
*UltracartClient::ConversationApi* | [**start_conversation**](docs/ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
|
136
|
+
*UltracartClient::ConversationApi* | [**update_conversation_webchat_queue_status**](docs/ConversationApi.md#update_conversation_webchat_queue_status) | **PUT** /conversation/conversations/queues/{queue_name}/status | Update status within the queue
|
|
135
137
|
*UltracartClient::CouponApi* | [**delete_coupon**](docs/CouponApi.md#delete_coupon) | **DELETE** /coupon/coupons/{coupon_oid} | Delete a coupon
|
|
136
138
|
*UltracartClient::CouponApi* | [**delete_coupons_by_code**](docs/CouponApi.md#delete_coupons_by_code) | **DELETE** /coupon/coupons/by_code | Deletes multiple coupons
|
|
137
139
|
*UltracartClient::CouponApi* | [**delete_coupons_by_oid**](docs/CouponApi.md#delete_coupons_by_oid) | **DELETE** /coupon/coupons/by_oid | Deletes multiple coupons
|
|
@@ -569,6 +571,11 @@ Class | Method | HTTP request | Description
|
|
|
569
571
|
- [UltracartClient::ConversationStartRequest](docs/ConversationStartRequest.md)
|
|
570
572
|
- [UltracartClient::ConversationStartResponse](docs/ConversationStartResponse.md)
|
|
571
573
|
- [UltracartClient::ConversationSummary](docs/ConversationSummary.md)
|
|
574
|
+
- [UltracartClient::ConversationWebchatQueueStatus](docs/ConversationWebchatQueueStatus.md)
|
|
575
|
+
- [UltracartClient::ConversationWebchatQueueStatusAgent](docs/ConversationWebchatQueueStatusAgent.md)
|
|
576
|
+
- [UltracartClient::ConversationWebchatQueueStatusQueueEntry](docs/ConversationWebchatQueueStatusQueueEntry.md)
|
|
577
|
+
- [UltracartClient::ConversationWebchatQueueStatusUpdateRequest](docs/ConversationWebchatQueueStatusUpdateRequest.md)
|
|
578
|
+
- [UltracartClient::ConversationWebchatQueueStatusesResponse](docs/ConversationWebchatQueueStatusesResponse.md)
|
|
572
579
|
- [UltracartClient::ConversationWebsocketMessage](docs/ConversationWebsocketMessage.md)
|
|
573
580
|
- [UltracartClient::ConversationsResponse](docs/ConversationsResponse.md)
|
|
574
581
|
- [UltracartClient::CountriesResponse](docs/CountriesResponse.md)
|
|
@@ -1159,6 +1166,9 @@ Not every change is committed to every SDK.
|
|
|
1159
1166
|
|
|
1160
1167
|
| Version | Date | Comments |
|
|
1161
1168
|
| --: | :-: | --- |
|
|
1169
|
+
| 3.10.28 | 07/28/2022 | conversation bug fixes |
|
|
1170
|
+
| 3.10.27 | 07/28/2022 | conversation message upload keys property |
|
|
1171
|
+
| 3.10.26 | 07/26/2022 | conversations - queue statistics |
|
|
1162
1172
|
| 3.10.25 | 07/25/2022 | conversation development |
|
|
1163
1173
|
| 3.10.24 | 07/25/2022 | conversations bug fixes |
|
|
1164
1174
|
| 3.10.23 | 07/25/2022 | conversations - add a websocket message model |
|
data/docs/ConversationApi.md
CHANGED
|
@@ -7,10 +7,12 @@ Method | HTTP request | Description
|
|
|
7
7
|
[**get_agent_websocket_authorization**](ConversationApi.md#get_agent_websocket_authorization) | **PUT** /conversation/agent/auth | Get agent websocket authorization
|
|
8
8
|
[**get_conversation**](ConversationApi.md#get_conversation) | **GET** /conversation/conversations/{conversation_uuid} | Retrieve a conversation
|
|
9
9
|
[**get_conversation_multimedia_upload_url**](ConversationApi.md#get_conversation_multimedia_upload_url) | **GET** /conversation/upload_url/{extension} | Get a presigned conersation multimedia upload URL
|
|
10
|
+
[**get_conversation_webchat_queue_statuses**](ConversationApi.md#get_conversation_webchat_queue_statuses) | **GET** /conversation/conversations/queues/statuses | Retrieve a conversation webchat queue statuses
|
|
10
11
|
[**get_conversations**](ConversationApi.md#get_conversations) | **GET** /conversation/conversations | Retrieve a list of conversation summaries newest to oldest
|
|
11
12
|
[**join_conversation**](ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
|
12
13
|
[**leave_conversation**](ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
|
13
14
|
[**start_conversation**](ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
|
15
|
+
[**update_conversation_webchat_queue_status**](ConversationApi.md#update_conversation_webchat_queue_status) | **PUT** /conversation/conversations/queues/{queue_name}/status | Update status within the queue
|
|
14
16
|
|
|
15
17
|
|
|
16
18
|
# **get_agent_websocket_authorization**
|
|
@@ -158,6 +160,51 @@ Name | Type | Description | Notes
|
|
|
158
160
|
|
|
159
161
|
|
|
160
162
|
|
|
163
|
+
# **get_conversation_webchat_queue_statuses**
|
|
164
|
+
> ConversationWebchatQueueStatusesResponse get_conversation_webchat_queue_statuses
|
|
165
|
+
|
|
166
|
+
Retrieve a conversation webchat queue statuses
|
|
167
|
+
|
|
168
|
+
Retrieve a conversation webchat queue statuses including agent status and queue entries
|
|
169
|
+
|
|
170
|
+
### Example
|
|
171
|
+
```ruby
|
|
172
|
+
# load the gem
|
|
173
|
+
require 'ultracart_api'
|
|
174
|
+
|
|
175
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
176
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
177
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
begin
|
|
182
|
+
#Retrieve a conversation webchat queue statuses
|
|
183
|
+
result = api_instance.get_conversation_webchat_queue_statuses
|
|
184
|
+
p result
|
|
185
|
+
rescue UltracartClient::ApiError => e
|
|
186
|
+
puts "Exception when calling ConversationApi->get_conversation_webchat_queue_statuses: #{e}"
|
|
187
|
+
end
|
|
188
|
+
```
|
|
189
|
+
|
|
190
|
+
### Parameters
|
|
191
|
+
This endpoint does not need any parameter.
|
|
192
|
+
|
|
193
|
+
### Return type
|
|
194
|
+
|
|
195
|
+
[**ConversationWebchatQueueStatusesResponse**](ConversationWebchatQueueStatusesResponse.md)
|
|
196
|
+
|
|
197
|
+
### Authorization
|
|
198
|
+
|
|
199
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
200
|
+
|
|
201
|
+
### HTTP request headers
|
|
202
|
+
|
|
203
|
+
- **Content-Type**: application/json
|
|
204
|
+
- **Accept**: application/json
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
|
|
161
208
|
# **get_conversations**
|
|
162
209
|
> ConversationsResponse get_conversations(opts)
|
|
163
210
|
|
|
@@ -359,3 +406,55 @@ Name | Type | Description | Notes
|
|
|
359
406
|
|
|
360
407
|
|
|
361
408
|
|
|
409
|
+
# **update_conversation_webchat_queue_status**
|
|
410
|
+
> update_conversation_webchat_queue_status(queue_name, status_request)
|
|
411
|
+
|
|
412
|
+
Update status within the queue
|
|
413
|
+
|
|
414
|
+
Update status within the queue
|
|
415
|
+
|
|
416
|
+
### Example
|
|
417
|
+
```ruby
|
|
418
|
+
# load the gem
|
|
419
|
+
require 'ultracart_api'
|
|
420
|
+
|
|
421
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
|
422
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
|
423
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
|
424
|
+
|
|
425
|
+
|
|
426
|
+
queue_name = 'queue_name_example' # String |
|
|
427
|
+
|
|
428
|
+
status_request = UltracartClient::ConversationWebchatQueueStatusUpdateRequest.new # ConversationWebchatQueueStatusUpdateRequest | Status request
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
begin
|
|
432
|
+
#Update status within the queue
|
|
433
|
+
api_instance.update_conversation_webchat_queue_status(queue_name, status_request)
|
|
434
|
+
rescue UltracartClient::ApiError => e
|
|
435
|
+
puts "Exception when calling ConversationApi->update_conversation_webchat_queue_status: #{e}"
|
|
436
|
+
end
|
|
437
|
+
```
|
|
438
|
+
|
|
439
|
+
### Parameters
|
|
440
|
+
|
|
441
|
+
Name | Type | Description | Notes
|
|
442
|
+
------------- | ------------- | ------------- | -------------
|
|
443
|
+
**queue_name** | **String**| |
|
|
444
|
+
**status_request** | [**ConversationWebchatQueueStatusUpdateRequest**](ConversationWebchatQueueStatusUpdateRequest.md)| Status request |
|
|
445
|
+
|
|
446
|
+
### Return type
|
|
447
|
+
|
|
448
|
+
nil (empty response body)
|
|
449
|
+
|
|
450
|
+
### Authorization
|
|
451
|
+
|
|
452
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
|
453
|
+
|
|
454
|
+
### HTTP request headers
|
|
455
|
+
|
|
456
|
+
- **Content-Type**: application/json
|
|
457
|
+
- **Accept**: application/json
|
|
458
|
+
|
|
459
|
+
|
|
460
|
+
|
data/docs/ConversationMessage.md
CHANGED
|
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
|
|
|
9
9
|
**media_urls** | **Array<String>** | | [optional]
|
|
10
10
|
**message_dts** | **String** | Message date/time | [optional]
|
|
11
11
|
**transport_statuses** | [**Array<ConversationMessageTransportStatus>**](ConversationMessageTransportStatus.md) | | [optional]
|
|
12
|
+
**upload_keys** | **Array<String>** | | [optional]
|
|
12
13
|
|
|
13
14
|
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# UltracartClient::ConversationWebchatQueueStatus
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**agent_available_count** | **Integer** | | [optional]
|
|
7
|
+
**agent_busy_count** | **Integer** | | [optional]
|
|
8
|
+
**agent_count** | **Integer** | | [optional]
|
|
9
|
+
**agent_unavailable_count** | **Integer** | | [optional]
|
|
10
|
+
**agents** | [**Array<ConversationWebchatQueueStatusAgent>**](ConversationWebchatQueueStatusAgent.md) | | [optional]
|
|
11
|
+
**customer_abandon_count** | **Integer** | | [optional]
|
|
12
|
+
**customer_active_count** | **Integer** | | [optional]
|
|
13
|
+
**customer_average_abandon_time_seconds** | **Integer** | | [optional]
|
|
14
|
+
**customer_average_chat_time_seconds** | **Integer** | | [optional]
|
|
15
|
+
**customer_average_hold_time_seconds** | **Integer** | | [optional]
|
|
16
|
+
**customer_chat_count** | **Integer** | | [optional]
|
|
17
|
+
**customer_waiting_count** | **Integer** | | [optional]
|
|
18
|
+
**customer_waiting_join_dts** | **String** | Date/time that the oldest person joined the queue | [optional]
|
|
19
|
+
**queue_entries** | [**Array<ConversationWebchatQueueStatusQueueEntry>**](ConversationWebchatQueueStatusQueueEntry.md) | | [optional]
|
|
20
|
+
**queue_name** | **String** | | [optional]
|
|
21
|
+
|
|
22
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::ConversationWebchatQueueStatusAgent
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**agent_status** | **String** | | [optional]
|
|
7
|
+
**conversation_participant_arn** | **String** | | [optional]
|
|
8
|
+
**conversation_participant_name** | **String** | | [optional]
|
|
9
|
+
**last_chat_dts** | **String** | Date/time that this agent took their last chat | [optional]
|
|
10
|
+
**next_round_robin** | **BOOLEAN** | | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# UltracartClient::ConversationWebchatQueueStatusQueueEntry
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**conversation_participant_arn** | **String** | | [optional]
|
|
7
|
+
**conversation_participant_name** | **String** | | [optional]
|
|
8
|
+
**conversation_webchat_queue_uuid** | **String** | | [optional]
|
|
9
|
+
**email** | **String** | | [optional]
|
|
10
|
+
**join_dts** | **String** | Date/time the customer joined the queue | [optional]
|
|
11
|
+
**question** | **String** | | [optional]
|
|
12
|
+
|
|
13
|
+
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
# UltracartClient::ConversationWebchatQueueStatusesResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
Name | Type | Description | Notes
|
|
5
|
+
------------ | ------------- | ------------- | -------------
|
|
6
|
+
**error** | [**Error**](Error.md) | | [optional]
|
|
7
|
+
**metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
|
|
8
|
+
**queue_statuses** | [**Array<ConversationWebchatQueueStatus>**](ConversationWebchatQueueStatus.md) | | [optional]
|
|
9
|
+
**success** | **BOOLEAN** | Indicates if API call was successful | [optional]
|
|
10
|
+
**warning** | [**Warning**](Warning.md) | | [optional]
|
|
11
|
+
|
|
12
|
+
|
|
@@ -8,6 +8,7 @@ Name | Type | Description | Notes
|
|
|
8
8
|
**event_new_conversation** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
|
|
9
9
|
**event_new_message** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
|
|
10
10
|
**event_queue_position** | [**ConversationEventQueuePosition**](ConversationEventQueuePosition.md) | | [optional]
|
|
11
|
+
**event_queue_status_update** | [**ConversationWebchatQueueStatus**](ConversationWebchatQueueStatus.md) | | [optional]
|
|
11
12
|
**event_type** | **String** | Type of event | [optional]
|
|
12
13
|
**event_updated_message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
|
13
14
|
**message** | [**ConversationMessage**](ConversationMessage.md) | | [optional]
|
|
@@ -191,6 +191,55 @@ module UltracartClient
|
|
|
191
191
|
end
|
|
192
192
|
return data, status_code, headers
|
|
193
193
|
end
|
|
194
|
+
# Retrieve a conversation webchat queue statuses
|
|
195
|
+
# Retrieve a conversation webchat queue statuses including agent status and queue entries
|
|
196
|
+
# @param [Hash] opts the optional parameters
|
|
197
|
+
# @return [ConversationWebchatQueueStatusesResponse]
|
|
198
|
+
def get_conversation_webchat_queue_statuses(opts = {})
|
|
199
|
+
data, _status_code, _headers = get_conversation_webchat_queue_statuses_with_http_info(opts)
|
|
200
|
+
data
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
# Retrieve a conversation webchat queue statuses
|
|
204
|
+
# Retrieve a conversation webchat queue statuses including agent status and queue entries
|
|
205
|
+
# @param [Hash] opts the optional parameters
|
|
206
|
+
# @return [Array<(ConversationWebchatQueueStatusesResponse, Fixnum, Hash)>] ConversationWebchatQueueStatusesResponse data, response status code and response headers
|
|
207
|
+
def get_conversation_webchat_queue_statuses_with_http_info(opts = {})
|
|
208
|
+
if @api_client.config.debugging
|
|
209
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.get_conversation_webchat_queue_statuses ...'
|
|
210
|
+
end
|
|
211
|
+
# resource path
|
|
212
|
+
local_var_path = '/conversation/conversations/queues/statuses'
|
|
213
|
+
|
|
214
|
+
# query parameters
|
|
215
|
+
query_params = {}
|
|
216
|
+
|
|
217
|
+
# header parameters
|
|
218
|
+
header_params = {}
|
|
219
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
220
|
+
# HTTP header 'Accept' (if needed)
|
|
221
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
222
|
+
# HTTP header 'Content-Type'
|
|
223
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
224
|
+
|
|
225
|
+
# form parameters
|
|
226
|
+
form_params = {}
|
|
227
|
+
|
|
228
|
+
# http body (model)
|
|
229
|
+
post_body = nil
|
|
230
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
231
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path,
|
|
232
|
+
:header_params => header_params,
|
|
233
|
+
:query_params => query_params,
|
|
234
|
+
:form_params => form_params,
|
|
235
|
+
:body => post_body,
|
|
236
|
+
:auth_names => auth_names,
|
|
237
|
+
:return_type => 'ConversationWebchatQueueStatusesResponse')
|
|
238
|
+
if @api_client.config.debugging
|
|
239
|
+
@api_client.config.logger.debug "API called: ConversationApi#get_conversation_webchat_queue_statuses\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
240
|
+
end
|
|
241
|
+
return data, status_code, headers
|
|
242
|
+
end
|
|
194
243
|
# Retrieve a list of conversation summaries newest to oldest
|
|
195
244
|
# Retrieve a list of conversation summaries that are ordered newest to oldest, include the most recent message and whether its been read.
|
|
196
245
|
# @param [Hash] opts the optional parameters
|
|
@@ -409,5 +458,65 @@ module UltracartClient
|
|
|
409
458
|
end
|
|
410
459
|
return data, status_code, headers
|
|
411
460
|
end
|
|
461
|
+
# Update status within the queue
|
|
462
|
+
# Update status within the queue
|
|
463
|
+
# @param queue_name
|
|
464
|
+
# @param status_request Status request
|
|
465
|
+
# @param [Hash] opts the optional parameters
|
|
466
|
+
# @return [nil]
|
|
467
|
+
def update_conversation_webchat_queue_status(queue_name, status_request, opts = {})
|
|
468
|
+
update_conversation_webchat_queue_status_with_http_info(queue_name, status_request, opts)
|
|
469
|
+
nil
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Update status within the queue
|
|
473
|
+
# Update status within the queue
|
|
474
|
+
# @param queue_name
|
|
475
|
+
# @param status_request Status request
|
|
476
|
+
# @param [Hash] opts the optional parameters
|
|
477
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
|
478
|
+
def update_conversation_webchat_queue_status_with_http_info(queue_name, status_request, opts = {})
|
|
479
|
+
if @api_client.config.debugging
|
|
480
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.update_conversation_webchat_queue_status ...'
|
|
481
|
+
end
|
|
482
|
+
# verify the required parameter 'queue_name' is set
|
|
483
|
+
if @api_client.config.client_side_validation && queue_name.nil?
|
|
484
|
+
fail ArgumentError, "Missing the required parameter 'queue_name' when calling ConversationApi.update_conversation_webchat_queue_status"
|
|
485
|
+
end
|
|
486
|
+
# verify the required parameter 'status_request' is set
|
|
487
|
+
if @api_client.config.client_side_validation && status_request.nil?
|
|
488
|
+
fail ArgumentError, "Missing the required parameter 'status_request' when calling ConversationApi.update_conversation_webchat_queue_status"
|
|
489
|
+
end
|
|
490
|
+
# resource path
|
|
491
|
+
local_var_path = '/conversation/conversations/queues/{queue_name}/status'.sub('{' + 'queue_name' + '}', queue_name.to_s)
|
|
492
|
+
|
|
493
|
+
# query parameters
|
|
494
|
+
query_params = {}
|
|
495
|
+
|
|
496
|
+
# header parameters
|
|
497
|
+
header_params = {}
|
|
498
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
|
499
|
+
# HTTP header 'Accept' (if needed)
|
|
500
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
|
501
|
+
# HTTP header 'Content-Type'
|
|
502
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
|
503
|
+
|
|
504
|
+
# form parameters
|
|
505
|
+
form_params = {}
|
|
506
|
+
|
|
507
|
+
# http body (model)
|
|
508
|
+
post_body = @api_client.object_to_http_body(status_request)
|
|
509
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
|
510
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
|
511
|
+
:header_params => header_params,
|
|
512
|
+
:query_params => query_params,
|
|
513
|
+
:form_params => form_params,
|
|
514
|
+
:body => post_body,
|
|
515
|
+
:auth_names => auth_names)
|
|
516
|
+
if @api_client.config.debugging
|
|
517
|
+
@api_client.config.logger.debug "API called: ConversationApi#update_conversation_webchat_queue_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
518
|
+
end
|
|
519
|
+
return data, status_code, headers
|
|
520
|
+
end
|
|
412
521
|
end
|
|
413
522
|
end
|
|
@@ -27,6 +27,8 @@ module UltracartClient
|
|
|
27
27
|
|
|
28
28
|
attr_accessor :transport_statuses
|
|
29
29
|
|
|
30
|
+
attr_accessor :upload_keys
|
|
31
|
+
|
|
30
32
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
31
33
|
def self.attribute_map
|
|
32
34
|
{
|
|
@@ -35,7 +37,8 @@ module UltracartClient
|
|
|
35
37
|
:'body' => :'body',
|
|
36
38
|
:'media_urls' => :'media_urls',
|
|
37
39
|
:'message_dts' => :'message_dts',
|
|
38
|
-
:'transport_statuses' => :'transport_statuses'
|
|
40
|
+
:'transport_statuses' => :'transport_statuses',
|
|
41
|
+
:'upload_keys' => :'upload_keys'
|
|
39
42
|
}
|
|
40
43
|
end
|
|
41
44
|
|
|
@@ -47,7 +50,8 @@ module UltracartClient
|
|
|
47
50
|
:'body' => :'String',
|
|
48
51
|
:'media_urls' => :'Array<String>',
|
|
49
52
|
:'message_dts' => :'String',
|
|
50
|
-
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>'
|
|
53
|
+
:'transport_statuses' => :'Array<ConversationMessageTransportStatus>',
|
|
54
|
+
:'upload_keys' => :'Array<String>'
|
|
51
55
|
}
|
|
52
56
|
end
|
|
53
57
|
|
|
@@ -86,6 +90,12 @@ module UltracartClient
|
|
|
86
90
|
self.transport_statuses = value
|
|
87
91
|
end
|
|
88
92
|
end
|
|
93
|
+
|
|
94
|
+
if attributes.has_key?(:'upload_keys')
|
|
95
|
+
if (value = attributes[:'upload_keys']).is_a?(Array)
|
|
96
|
+
self.upload_keys = value
|
|
97
|
+
end
|
|
98
|
+
end
|
|
89
99
|
end
|
|
90
100
|
|
|
91
101
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -111,7 +121,8 @@ module UltracartClient
|
|
|
111
121
|
body == o.body &&
|
|
112
122
|
media_urls == o.media_urls &&
|
|
113
123
|
message_dts == o.message_dts &&
|
|
114
|
-
transport_statuses == o.transport_statuses
|
|
124
|
+
transport_statuses == o.transport_statuses &&
|
|
125
|
+
upload_keys == o.upload_keys
|
|
115
126
|
end
|
|
116
127
|
|
|
117
128
|
# @see the `==` method
|
|
@@ -123,7 +134,7 @@ module UltracartClient
|
|
|
123
134
|
# Calculates hash code according to all attributes.
|
|
124
135
|
# @return [Fixnum] Hash code
|
|
125
136
|
def hash
|
|
126
|
-
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses].hash
|
|
137
|
+
[author_conversation_participant_arn, author_conversation_participant_name, body, media_urls, message_dts, transport_statuses, upload_keys].hash
|
|
127
138
|
end
|
|
128
139
|
|
|
129
140
|
# Builds the object from hash
|