ultracart_api 3.10.186 → 3.10.187
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/ConversationApi.md +50 -0
- data/docs/WorkflowTask.md +2 -0
- data/lib/ultracart_api/api/conversation_api.rb +54 -0
- data/lib/ultracart_api/models/workflow_task.rb +35 -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: e17cdf0aa137f414487fec5c4da52010db9191af8fe8bde623fb046dab7201ca
|
4
|
+
data.tar.gz: 4c006506465353652a478aba76972ddb75014be2a4f8d732e4ec7bd84284cc0a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '00488bd9b47fec1d11db5447f1c28d9aa7ca2aac01dc983cfcae5e2f8588d165d8e9d245bab308408979037c3984a2e904d3f89afe4b54955f275b2137fcbf4b'
|
7
|
+
data.tar.gz: 81127e64bdff43f2852c9bed27461702e1bd4683e26edb651469028057860a666399098b8ea21900ce10552c9a61df1a486f7c2116c6df599c153a329275ef80
|
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.187
|
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.187.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.187.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.187'
|
36
36
|
|
37
37
|
### Install from Git
|
38
38
|
|
@@ -193,6 +193,7 @@ Class | Method | HTTP request | Description
|
|
193
193
|
*UltracartClient::ConversationApi* | [**join_conversation**](docs/ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
194
194
|
*UltracartClient::ConversationApi* | [**leave_conversation**](docs/ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
195
195
|
*UltracartClient::ConversationApi* | [**mark_read_conversation**](docs/ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
|
196
|
+
*UltracartClient::ConversationApi* | [**reset_conversation_pbx_queue_statistics**](docs/ConversationApi.md#reset_conversation_pbx_queue_statistics) | **POST** /conversation/pbx/queues/{queue_uuid}/reset_statistics | reset statistics within the queue
|
196
197
|
*UltracartClient::ConversationApi* | [**search_conversation_canned_messages**](docs/ConversationApi.md#search_conversation_canned_messages) | **POST** /conversation/canned_messages/search | Search for canned messages by short_code
|
197
198
|
*UltracartClient::ConversationApi* | [**sms_unsubscribe_conversation**](docs/ConversationApi.md#sms_unsubscribe_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/sms_unsubscribe | Unsubscribe any SMS participants in this conversation
|
198
199
|
*UltracartClient::ConversationApi* | [**start_conversation**](docs/ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
@@ -1483,6 +1484,7 @@ Not every change is committed to every SDK.
|
|
1483
1484
|
|
1484
1485
|
| Version | Date | Comments |
|
1485
1486
|
| --: | :-: | --- |
|
1487
|
+
| 3.10.187 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
|
1486
1488
|
| 3.10.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
|
1487
1489
|
| 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
|
1488
1490
|
| 3.10.184 | 02/27/2024 | esp - sms statistic layer |
|
data/docs/ConversationApi.md
CHANGED
@@ -65,6 +65,7 @@ Method | HTTP request | Description
|
|
65
65
|
[**join_conversation**](ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
|
66
66
|
[**leave_conversation**](ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
|
67
67
|
[**mark_read_conversation**](ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
|
68
|
+
[**reset_conversation_pbx_queue_statistics**](ConversationApi.md#reset_conversation_pbx_queue_statistics) | **POST** /conversation/pbx/queues/{queue_uuid}/reset_statistics | reset statistics within the queue
|
68
69
|
[**search_conversation_canned_messages**](ConversationApi.md#search_conversation_canned_messages) | **POST** /conversation/canned_messages/search | Search for canned messages by short_code
|
69
70
|
[**sms_unsubscribe_conversation**](ConversationApi.md#sms_unsubscribe_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/sms_unsubscribe | Unsubscribe any SMS participants in this conversation
|
70
71
|
[**start_conversation**](ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
|
@@ -3058,6 +3059,55 @@ nil (empty response body)
|
|
3058
3059
|
|
3059
3060
|
|
3060
3061
|
|
3062
|
+
# **reset_conversation_pbx_queue_statistics**
|
3063
|
+
> reset_conversation_pbx_queue_statistics(queue_uuid)
|
3064
|
+
|
3065
|
+
reset statistics within the queue
|
3066
|
+
|
3067
|
+
reset statistics within the queue
|
3068
|
+
|
3069
|
+
### Example
|
3070
|
+
```ruby
|
3071
|
+
# load the gem
|
3072
|
+
require 'ultracart_api'
|
3073
|
+
|
3074
|
+
# Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
|
3075
|
+
simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
|
3076
|
+
api_instance = UltracartClient::ConversationApi.new_using_api_key(simple_key, false, false)
|
3077
|
+
|
3078
|
+
|
3079
|
+
queue_uuid = 'queue_uuid_example' # String |
|
3080
|
+
|
3081
|
+
|
3082
|
+
begin
|
3083
|
+
#reset statistics within the queue
|
3084
|
+
api_instance.reset_conversation_pbx_queue_statistics(queue_uuid)
|
3085
|
+
rescue UltracartClient::ApiError => e
|
3086
|
+
puts "Exception when calling ConversationApi->reset_conversation_pbx_queue_statistics: #{e}"
|
3087
|
+
end
|
3088
|
+
```
|
3089
|
+
|
3090
|
+
### Parameters
|
3091
|
+
|
3092
|
+
Name | Type | Description | Notes
|
3093
|
+
------------- | ------------- | ------------- | -------------
|
3094
|
+
**queue_uuid** | **String**| |
|
3095
|
+
|
3096
|
+
### Return type
|
3097
|
+
|
3098
|
+
nil (empty response body)
|
3099
|
+
|
3100
|
+
### Authorization
|
3101
|
+
|
3102
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
3103
|
+
|
3104
|
+
### HTTP request headers
|
3105
|
+
|
3106
|
+
- **Content-Type**: application/json
|
3107
|
+
- **Accept**: application/json
|
3108
|
+
|
3109
|
+
|
3110
|
+
|
3061
3111
|
# **search_conversation_canned_messages**
|
3062
3112
|
> ConversationCannedMessagesResponse search_conversation_canned_messages(search_request)
|
3063
3113
|
|
data/docs/WorkflowTask.md
CHANGED
@@ -13,6 +13,7 @@ Name | Type | Description | Notes
|
|
13
13
|
**delay_until_dts** | **String** | Date/time that the workflow task should delay until | [optional]
|
14
14
|
**dependant_workflow_task_uuid** | **String** | Dependant Workflow Task UUID (must be completed before this task can be completed) | [optional]
|
15
15
|
**due_dts** | **String** | Date/time that the workflow task is due | [optional]
|
16
|
+
**expiration_dts** | **String** | Date/time that the workflow task will expire and be closed. This is set by system generated tasks. | [optional]
|
16
17
|
**histories** | [**Array<WorkflowTaskHistory>**](WorkflowTaskHistory.md) | Array of history records for the task | [optional]
|
17
18
|
**last_update_dts** | **String** | Date/time that the workflow task was last updated | [optional]
|
18
19
|
**merchant_id** | **String** | Merchant ID | [optional]
|
@@ -25,6 +26,7 @@ Name | Type | Description | Notes
|
|
25
26
|
**properties** | [**Array<Property>**](Property.md) | Properties | [optional]
|
26
27
|
**related_workflow_task_uuid** | **String** | Related Workflow Task UUID | [optional]
|
27
28
|
**status** | **String** | Status of the workflow task | [optional]
|
29
|
+
**system_task_type** | **String** | Constant for the type of system generated task | [optional]
|
28
30
|
**tags** | **Array<String>** | Tags | [optional]
|
29
31
|
**task_context** | **String** | User friendly string of the task context | [optional]
|
30
32
|
**task_details** | **String** | Task Details | [optional]
|
@@ -3292,6 +3292,60 @@ module UltracartClient
|
|
3292
3292
|
end
|
3293
3293
|
return data, status_code, headers
|
3294
3294
|
end
|
3295
|
+
# reset statistics within the queue
|
3296
|
+
# reset statistics within the queue
|
3297
|
+
# @param queue_uuid
|
3298
|
+
# @param [Hash] opts the optional parameters
|
3299
|
+
# @return [nil]
|
3300
|
+
def reset_conversation_pbx_queue_statistics(queue_uuid, opts = {})
|
3301
|
+
reset_conversation_pbx_queue_statistics_with_http_info(queue_uuid, opts)
|
3302
|
+
nil
|
3303
|
+
end
|
3304
|
+
|
3305
|
+
# reset statistics within the queue
|
3306
|
+
# reset statistics within the queue
|
3307
|
+
# @param queue_uuid
|
3308
|
+
# @param [Hash] opts the optional parameters
|
3309
|
+
# @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
|
3310
|
+
def reset_conversation_pbx_queue_statistics_with_http_info(queue_uuid, opts = {})
|
3311
|
+
if @api_client.config.debugging
|
3312
|
+
@api_client.config.logger.debug 'Calling API: ConversationApi.reset_conversation_pbx_queue_statistics ...'
|
3313
|
+
end
|
3314
|
+
# verify the required parameter 'queue_uuid' is set
|
3315
|
+
if @api_client.config.client_side_validation && queue_uuid.nil?
|
3316
|
+
fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.reset_conversation_pbx_queue_statistics"
|
3317
|
+
end
|
3318
|
+
# resource path
|
3319
|
+
local_var_path = '/conversation/pbx/queues/{queue_uuid}/reset_statistics'.sub('{' + 'queue_uuid' + '}', queue_uuid.to_s)
|
3320
|
+
|
3321
|
+
# query parameters
|
3322
|
+
query_params = {}
|
3323
|
+
|
3324
|
+
# header parameters
|
3325
|
+
header_params = {}
|
3326
|
+
header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
|
3327
|
+
# HTTP header 'Accept' (if needed)
|
3328
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
3329
|
+
# HTTP header 'Content-Type'
|
3330
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
3331
|
+
|
3332
|
+
# form parameters
|
3333
|
+
form_params = {}
|
3334
|
+
|
3335
|
+
# http body (model)
|
3336
|
+
post_body = nil
|
3337
|
+
auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
|
3338
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
3339
|
+
:header_params => header_params,
|
3340
|
+
:query_params => query_params,
|
3341
|
+
:form_params => form_params,
|
3342
|
+
:body => post_body,
|
3343
|
+
:auth_names => auth_names)
|
3344
|
+
if @api_client.config.debugging
|
3345
|
+
@api_client.config.logger.debug "API called: ConversationApi#reset_conversation_pbx_queue_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
3346
|
+
end
|
3347
|
+
return data, status_code, headers
|
3348
|
+
end
|
3295
3349
|
# Search for canned messages by short_code
|
3296
3350
|
# Search for canned messages by short_code
|
3297
3351
|
# @param search_request Search request
|
@@ -43,6 +43,9 @@ module UltracartClient
|
|
43
43
|
# Date/time that the workflow task is due
|
44
44
|
attr_accessor :due_dts
|
45
45
|
|
46
|
+
# Date/time that the workflow task will expire and be closed. This is set by system generated tasks.
|
47
|
+
attr_accessor :expiration_dts
|
48
|
+
|
46
49
|
# Array of history records for the task
|
47
50
|
attr_accessor :histories
|
48
51
|
|
@@ -79,6 +82,9 @@ module UltracartClient
|
|
79
82
|
# Status of the workflow task
|
80
83
|
attr_accessor :status
|
81
84
|
|
85
|
+
# Constant for the type of system generated task
|
86
|
+
attr_accessor :system_task_type
|
87
|
+
|
82
88
|
# Tags
|
83
89
|
attr_accessor :tags
|
84
90
|
|
@@ -129,6 +135,7 @@ module UltracartClient
|
|
129
135
|
:'delay_until_dts' => :'delay_until_dts',
|
130
136
|
:'dependant_workflow_task_uuid' => :'dependant_workflow_task_uuid',
|
131
137
|
:'due_dts' => :'due_dts',
|
138
|
+
:'expiration_dts' => :'expiration_dts',
|
132
139
|
:'histories' => :'histories',
|
133
140
|
:'last_update_dts' => :'last_update_dts',
|
134
141
|
:'merchant_id' => :'merchant_id',
|
@@ -141,6 +148,7 @@ module UltracartClient
|
|
141
148
|
:'properties' => :'properties',
|
142
149
|
:'related_workflow_task_uuid' => :'related_workflow_task_uuid',
|
143
150
|
:'status' => :'status',
|
151
|
+
:'system_task_type' => :'system_task_type',
|
144
152
|
:'tags' => :'tags',
|
145
153
|
:'task_context' => :'task_context',
|
146
154
|
:'task_details' => :'task_details',
|
@@ -162,6 +170,7 @@ module UltracartClient
|
|
162
170
|
:'delay_until_dts' => :'String',
|
163
171
|
:'dependant_workflow_task_uuid' => :'String',
|
164
172
|
:'due_dts' => :'String',
|
173
|
+
:'expiration_dts' => :'String',
|
165
174
|
:'histories' => :'Array<WorkflowTaskHistory>',
|
166
175
|
:'last_update_dts' => :'String',
|
167
176
|
:'merchant_id' => :'String',
|
@@ -174,6 +183,7 @@ module UltracartClient
|
|
174
183
|
:'properties' => :'Array<Property>',
|
175
184
|
:'related_workflow_task_uuid' => :'String',
|
176
185
|
:'status' => :'String',
|
186
|
+
:'system_task_type' => :'String',
|
177
187
|
:'tags' => :'Array<String>',
|
178
188
|
:'task_context' => :'String',
|
179
189
|
:'task_details' => :'String',
|
@@ -232,6 +242,10 @@ module UltracartClient
|
|
232
242
|
self.due_dts = attributes[:'due_dts']
|
233
243
|
end
|
234
244
|
|
245
|
+
if attributes.has_key?(:'expiration_dts')
|
246
|
+
self.expiration_dts = attributes[:'expiration_dts']
|
247
|
+
end
|
248
|
+
|
235
249
|
if attributes.has_key?(:'histories')
|
236
250
|
if (value = attributes[:'histories']).is_a?(Array)
|
237
251
|
self.histories = value
|
@@ -286,6 +300,10 @@ module UltracartClient
|
|
286
300
|
self.status = attributes[:'status']
|
287
301
|
end
|
288
302
|
|
303
|
+
if attributes.has_key?(:'system_task_type')
|
304
|
+
self.system_task_type = attributes[:'system_task_type']
|
305
|
+
end
|
306
|
+
|
289
307
|
if attributes.has_key?(:'tags')
|
290
308
|
if (value = attributes[:'tags']).is_a?(Array)
|
291
309
|
self.tags = value
|
@@ -323,8 +341,10 @@ module UltracartClient
|
|
323
341
|
return false unless object_type_validator.valid?(@object_type)
|
324
342
|
priority_validator = EnumAttributeValidator.new('String', ['1 - low', '2 - medium', '3 - high', '4 - critical'])
|
325
343
|
return false unless priority_validator.valid?(@priority)
|
326
|
-
status_validator = EnumAttributeValidator.new('String', ['open', 'closed', 'delayed', 'awaiting customer feedback'])
|
344
|
+
status_validator = EnumAttributeValidator.new('String', ['open', 'closed', 'delayed', 'awaiting customer feedback', 'closed - system', 'closed - customer', 'closed - expiration'])
|
327
345
|
return false unless status_validator.valid?(@status)
|
346
|
+
system_task_type_validator = EnumAttributeValidator.new('String', ['order_accounts_receivable', 'order_fraud_review', 'auto_order_card_update_issue', 'auto_order_canceled_payment', 'item_low_stock', 'item_out_of_stock'])
|
347
|
+
return false unless system_task_type_validator.valid?(@system_task_type)
|
328
348
|
true
|
329
349
|
end
|
330
350
|
|
@@ -351,13 +371,23 @@ module UltracartClient
|
|
351
371
|
# Custom attribute writer method checking allowed values (enum).
|
352
372
|
# @param [Object] status Object to be assigned
|
353
373
|
def status=(status)
|
354
|
-
validator = EnumAttributeValidator.new('String', ['open', 'closed', 'delayed', 'awaiting customer feedback'])
|
374
|
+
validator = EnumAttributeValidator.new('String', ['open', 'closed', 'delayed', 'awaiting customer feedback', 'closed - system', 'closed - customer', 'closed - expiration'])
|
355
375
|
unless validator.valid?(status)
|
356
376
|
fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
|
357
377
|
end
|
358
378
|
@status = status
|
359
379
|
end
|
360
380
|
|
381
|
+
# Custom attribute writer method checking allowed values (enum).
|
382
|
+
# @param [Object] system_task_type Object to be assigned
|
383
|
+
def system_task_type=(system_task_type)
|
384
|
+
validator = EnumAttributeValidator.new('String', ['order_accounts_receivable', 'order_fraud_review', 'auto_order_card_update_issue', 'auto_order_canceled_payment', 'item_low_stock', 'item_out_of_stock'])
|
385
|
+
unless validator.valid?(system_task_type)
|
386
|
+
fail ArgumentError, 'invalid value for "system_task_type", must be one of #{validator.allowable_values}.'
|
387
|
+
end
|
388
|
+
@system_task_type = system_task_type
|
389
|
+
end
|
390
|
+
|
361
391
|
# Checks equality by comparing each attribute.
|
362
392
|
# @param [Object] Object to be compared
|
363
393
|
def ==(o)
|
@@ -373,6 +403,7 @@ module UltracartClient
|
|
373
403
|
delay_until_dts == o.delay_until_dts &&
|
374
404
|
dependant_workflow_task_uuid == o.dependant_workflow_task_uuid &&
|
375
405
|
due_dts == o.due_dts &&
|
406
|
+
expiration_dts == o.expiration_dts &&
|
376
407
|
histories == o.histories &&
|
377
408
|
last_update_dts == o.last_update_dts &&
|
378
409
|
merchant_id == o.merchant_id &&
|
@@ -385,6 +416,7 @@ module UltracartClient
|
|
385
416
|
properties == o.properties &&
|
386
417
|
related_workflow_task_uuid == o.related_workflow_task_uuid &&
|
387
418
|
status == o.status &&
|
419
|
+
system_task_type == o.system_task_type &&
|
388
420
|
tags == o.tags &&
|
389
421
|
task_context == o.task_context &&
|
390
422
|
task_details == o.task_details &&
|
@@ -401,7 +433,7 @@ module UltracartClient
|
|
401
433
|
# Calculates hash code according to all attributes.
|
402
434
|
# @return [Fixnum] Hash code
|
403
435
|
def hash
|
404
|
-
[assigned_to_group, assigned_to_group_id, assigned_to_user, assigned_to_user_id, attachments, created_by, created_dts, delay_until_dts, dependant_workflow_task_uuid, due_dts, histories, last_update_dts, merchant_id, notes, object_email, object_id, object_type, object_url, priority, properties, related_workflow_task_uuid, status, tags, task_context, task_details, task_name, workflow_task_uuid].hash
|
436
|
+
[assigned_to_group, assigned_to_group_id, assigned_to_user, assigned_to_user_id, attachments, created_by, created_dts, delay_until_dts, dependant_workflow_task_uuid, due_dts, expiration_dts, histories, last_update_dts, merchant_id, notes, object_email, object_id, object_type, object_url, priority, properties, related_workflow_task_uuid, status, system_task_type, tags, task_context, task_details, task_name, workflow_task_uuid].hash
|
405
437
|
end
|
406
438
|
|
407
439
|
# 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: 3.10.
|
4
|
+
version: 3.10.187
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|