ultracart_api 3.10.24 → 3.10.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 18fc0bd98e9f2132e1cbfb34642552e4f801fb8ebfc2842bb62ff578cd610dc8
4
- data.tar.gz: c89f34568f945dcf1b35748cd8c8f8561ae737f21d23a41cb853ad1b70d68d2e
3
+ metadata.gz: 5ff4845197e23f8e9359fd1d76f8dc17479b164b9761d8269afbe64c88a63fea
4
+ data.tar.gz: 316ce50df008a31a6eadd5315c3f6da01bcacbc402751b7d6688ef388c6d259d
5
5
  SHA512:
6
- metadata.gz: 2ced78c834db64181dd554e22a03699c892969a604a506e4be1825892bd4e5a0b7aeaa8325db035be96a3aacdefa1f4b2710cbf4332b42f0c58f21294e0b88e3
7
- data.tar.gz: 7caed710c21a724291eb3e251acb8b9c19799f4a892b73ba7f54a6d772fc6f7b46b39b40f71b39a0987ecf7bb66b0f97349e09b7ffcce864720c4ee2c41c967c
6
+ metadata.gz: 8886188997288dc5f2eaa5b1390a309a1202e7b4c7997e7328207a071f3daae417fedfcf2e54ff0d3ed9ad2cfb0ba429e535a62ce59100b5f8ab8122de4434fb
7
+ data.tar.gz: c966211a0af80d4e8999ea746851e33e8e777f0561d48690cd4780728379cc9f760fb1f40d6a79ebd6afb99d6b71015db99c951db8390c49eda659948dddeba5
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.24
10
+ - Package version: 3.10.27
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.24.gem
27
+ gem install ./ultracart_api-3.10.27.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.24.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.27.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.24'
35
+ gem 'ultracart_api', '~> 3.10.27'
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.27 | 07/28/2022 | conversation message upload keys property |
1170
+ | 3.10.26 | 07/26/2022 | conversations - queue statistics |
1171
+ | 3.10.25 | 07/25/2022 | conversation development |
1162
1172
  | 3.10.24 | 07/25/2022 | conversations bug fixes |
1163
1173
  | 3.10.23 | 07/25/2022 | conversations - add a websocket message model |
1164
1174
  | 3.10.22 | 07/20/2022 | conversation participant name added |
data/docs/Conversation.md CHANGED
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **closed** | **BOOLEAN** | | [optional]
6
7
  **conversation_arn** | **String** | | [optional]
7
8
  **conversation_uuid** | **String** | | [optional]
8
9
  **merchant_id** | **String** | | [optional]
@@ -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
+
@@ -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
 
@@ -3,6 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
+ **closed** | **BOOLEAN** | | [optional]
6
7
  **conversation_arn** | **String** | | [optional]
7
8
  **conversation_uuid** | **String** | | [optional]
8
9
  **last_conversation_message_body** | **String** | | [optional]
@@ -0,0 +1,21 @@
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_waiting_count** | **Integer** | | [optional]
17
+ **customer_waiting_join_dts** | **String** | Date/time that the oldest person joined the queue | [optional]
18
+ **queue_entries** | [**Array<ConversationWebchatQueueStatusQueueEntry>**](ConversationWebchatQueueStatusQueueEntry.md) | | [optional]
19
+ **queue_name** | **String** | | [optional]
20
+
21
+
@@ -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,12 @@
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
+ **join_dts** | **String** | Date/time the customer joined the queue | [optional]
10
+ **question** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,8 @@
1
+ # UltracartClient::ConversationWebchatQueueStatusUpdateRequest
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **agent_status** | **String** | | [optional]
7
+
8
+
@@ -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
+
@@ -4,10 +4,11 @@
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **conversation_uuid** | **String** | Conversation UUID if the websocket message is tied to a specific conversation | [optional]
7
- **event_conversation_closed** | [**Conversation**](Conversation.md) | | [optional]
8
- **event_new_conversation** | [**Conversation**](Conversation.md) | | [optional]
9
- **event_new_message** | [**Conversation**](Conversation.md) | | [optional]
7
+ **event_conversation_closed** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
8
+ **event_new_conversation** | [**ConversationSummary**](ConversationSummary.md) | | [optional]
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
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class Conversation
17
+ attr_accessor :closed
18
+
17
19
  attr_accessor :conversation_arn
18
20
 
19
21
  attr_accessor :conversation_uuid
@@ -27,6 +29,7 @@ module UltracartClient
27
29
  # Attribute mapping from ruby-style variable name to JSON key.
28
30
  def self.attribute_map
29
31
  {
32
+ :'closed' => :'closed',
30
33
  :'conversation_arn' => :'conversation_arn',
31
34
  :'conversation_uuid' => :'conversation_uuid',
32
35
  :'merchant_id' => :'merchant_id',
@@ -38,6 +41,7 @@ module UltracartClient
38
41
  # Attribute type mapping.
39
42
  def self.swagger_types
40
43
  {
44
+ :'closed' => :'BOOLEAN',
41
45
  :'conversation_arn' => :'String',
42
46
  :'conversation_uuid' => :'String',
43
47
  :'merchant_id' => :'String',
@@ -54,6 +58,10 @@ module UltracartClient
54
58
  # convert string to symbol for hash key
55
59
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
56
60
 
61
+ if attributes.has_key?(:'closed')
62
+ self.closed = attributes[:'closed']
63
+ end
64
+
57
65
  if attributes.has_key?(:'conversation_arn')
58
66
  self.conversation_arn = attributes[:'conversation_arn']
59
67
  end
@@ -97,6 +105,7 @@ module UltracartClient
97
105
  def ==(o)
98
106
  return true if self.equal?(o)
99
107
  self.class == o.class &&
108
+ closed == o.closed &&
100
109
  conversation_arn == o.conversation_arn &&
101
110
  conversation_uuid == o.conversation_uuid &&
102
111
  merchant_id == o.merchant_id &&
@@ -113,7 +122,7 @@ module UltracartClient
113
122
  # Calculates hash code according to all attributes.
114
123
  # @return [Fixnum] Hash code
115
124
  def hash
116
- [conversation_arn, conversation_uuid, merchant_id, messages, participants].hash
125
+ [closed, conversation_arn, conversation_uuid, merchant_id, messages, participants].hash
117
126
  end
118
127
 
119
128
  # Builds the object from hash
@@ -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
@@ -14,6 +14,8 @@ require 'date'
14
14
 
15
15
  module UltracartClient
16
16
  class ConversationSummary
17
+ attr_accessor :closed
18
+
17
19
  attr_accessor :conversation_arn
18
20
 
19
21
  attr_accessor :conversation_uuid
@@ -36,6 +38,7 @@ module UltracartClient
36
38
  # Attribute mapping from ruby-style variable name to JSON key.
37
39
  def self.attribute_map
38
40
  {
41
+ :'closed' => :'closed',
39
42
  :'conversation_arn' => :'conversation_arn',
40
43
  :'conversation_uuid' => :'conversation_uuid',
41
44
  :'last_conversation_message_body' => :'last_conversation_message_body',
@@ -51,6 +54,7 @@ module UltracartClient
51
54
  # Attribute type mapping.
52
55
  def self.swagger_types
53
56
  {
57
+ :'closed' => :'BOOLEAN',
54
58
  :'conversation_arn' => :'String',
55
59
  :'conversation_uuid' => :'String',
56
60
  :'last_conversation_message_body' => :'String',
@@ -71,6 +75,10 @@ module UltracartClient
71
75
  # convert string to symbol for hash key
72
76
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
77
 
78
+ if attributes.has_key?(:'closed')
79
+ self.closed = attributes[:'closed']
80
+ end
81
+
74
82
  if attributes.has_key?(:'conversation_arn')
75
83
  self.conversation_arn = attributes[:'conversation_arn']
76
84
  end
@@ -126,6 +134,7 @@ module UltracartClient
126
134
  def ==(o)
127
135
  return true if self.equal?(o)
128
136
  self.class == o.class &&
137
+ closed == o.closed &&
129
138
  conversation_arn == o.conversation_arn &&
130
139
  conversation_uuid == o.conversation_uuid &&
131
140
  last_conversation_message_body == o.last_conversation_message_body &&
@@ -146,7 +155,7 @@ module UltracartClient
146
155
  # Calculates hash code according to all attributes.
147
156
  # @return [Fixnum] Hash code
148
157
  def hash
149
- [conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, unread_messages].hash
158
+ [closed, conversation_arn, conversation_uuid, last_conversation_message_body, last_conversation_participant_arn, last_conversation_participant_name, last_message_dts, merchant_id, message_count, unread_messages].hash
150
159
  end
151
160
 
152
161
  # Builds the object from hash