ultracart_api 3.10.186 → 3.10.188

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5909f9761add65b9835d930b3e3a1b73b8539a0f29f8111990896670f7eee7bf
4
- data.tar.gz: 939cfe3ad130345fb726accbe3aeb4a72329a9832fed83bb9ce3aa9c8d7d512d
3
+ metadata.gz: c68d035cefd3446cda8e0ed93df690e80959496e7449c269fa38739ffc8df1a9
4
+ data.tar.gz: d2c1cfe5336259b5b0dbc01cf0633dc43b7050d3a911fc3863b83f936f57200f
5
5
  SHA512:
6
- metadata.gz: 275c21d6f2303773ff1d94c3623c625c073fb536e7f5595a520b0e7244c0f1d601354173268e5d616ca93b0913c6842df755f327b32d9d68107d5bd4f05b0321
7
- data.tar.gz: d59f6f1af8df53cebaefb52e3ef6e0a1aaf431136f48a0f11b29ab7942402a47a6b15c337bb858b1d5ab8da27c98fef2cd9a37eb0696b5bcde57946a2fd8eecb
6
+ metadata.gz: 8dba4ea1b5e1bbf150e3c47ad83585d9496a9ef4ddd4103e4c6940fde3d7b0839621cba882f2ace6620d671627d060c126ed8d0ab2ff0558c97cd01cd209994f
7
+ data.tar.gz: f2d3b55697983f3ce9399e6385d8001c9c6072526640da93290f8b63a5a0c6fc6d28b513e99408b3150bc85a14d51402fc217ceea558239dbd9d885190e48b96
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.186
10
+ - Package version: 3.10.188
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.186.gem
27
+ gem install ./ultracart_api-3.10.188.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.186.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.188.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.186'
35
+ gem 'ultracart_api', '~> 3.10.188'
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
@@ -563,6 +564,7 @@ Class | Method | HTTP request | Description
563
564
  *UltracartClient::WorkflowApi* | [**get_workflow_task**](docs/WorkflowApi.md#get_workflow_task) | **GET** /workflow/tasks/{task_uuid} | Retrieve a workflow task
564
565
  *UltracartClient::WorkflowApi* | [**get_workflow_task_attachment_upload_url**](docs/WorkflowApi.md#get_workflow_task_attachment_upload_url) | **GET** /workflow/tasks/attachments/{extension} | Get a presigned workflow task attachment upload URL
565
566
  *UltracartClient::WorkflowApi* | [**get_workflow_task_by_object_type**](docs/WorkflowApi.md#get_workflow_task_by_object_type) | **GET** /workflow/tasks/by/{object_type}/{object_id} | Retrieve a workflow task by object type and id
567
+ *UltracartClient::WorkflowApi* | [**get_workflow_task_open_count**](docs/WorkflowApi.md#get_workflow_task_open_count) | **GET** /workflow/tasks/open_count | Retrieve workflow task open count
566
568
  *UltracartClient::WorkflowApi* | [**get_workflow_task_tags**](docs/WorkflowApi.md#get_workflow_task_tags) | **GET** /workflow/tasks/tags | Get a list of existing workflow task tags
567
569
  *UltracartClient::WorkflowApi* | [**get_workflow_tasks**](docs/WorkflowApi.md#get_workflow_tasks) | **POST** /workflow/tasks/search | Search workflow tasks
568
570
  *UltracartClient::WorkflowApi* | [**insert_workflow_task**](docs/WorkflowApi.md#insert_workflow_task) | **POST** /workflow/tasks | Insert a workflow task
@@ -1404,6 +1406,7 @@ Class | Method | HTTP request | Description
1404
1406
  - [UltracartClient::WorkflowNote](docs/WorkflowNote.md)
1405
1407
  - [UltracartClient::WorkflowTask](docs/WorkflowTask.md)
1406
1408
  - [UltracartClient::WorkflowTaskHistory](docs/WorkflowTaskHistory.md)
1409
+ - [UltracartClient::WorkflowTaskOpenCountResponse](docs/WorkflowTaskOpenCountResponse.md)
1407
1410
  - [UltracartClient::WorkflowTaskResponse](docs/WorkflowTaskResponse.md)
1408
1411
  - [UltracartClient::WorkflowTaskTagsResponse](docs/WorkflowTaskTagsResponse.md)
1409
1412
  - [UltracartClient::WorkflowTasksRequest](docs/WorkflowTasksRequest.md)
@@ -1483,6 +1486,8 @@ Not every change is committed to every SDK.
1483
1486
 
1484
1487
  | Version | Date | Comments |
1485
1488
  | --: | :-: | --- |
1489
+ | 3.10.188 | 03/19/2024 | workflow task - method to obtain open task count |
1490
+ | 3.10.187 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
1486
1491
  | 3.10.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
1487
1492
  | 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
1488
1493
  | 3.10.184 | 02/27/2024 | esp - sms statistic layer |
@@ -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/WorkflowApi.md CHANGED
@@ -11,6 +11,7 @@ Method | HTTP request | Description
11
11
  [**get_workflow_task**](WorkflowApi.md#get_workflow_task) | **GET** /workflow/tasks/{task_uuid} | Retrieve a workflow task
12
12
  [**get_workflow_task_attachment_upload_url**](WorkflowApi.md#get_workflow_task_attachment_upload_url) | **GET** /workflow/tasks/attachments/{extension} | Get a presigned workflow task attachment upload URL
13
13
  [**get_workflow_task_by_object_type**](WorkflowApi.md#get_workflow_task_by_object_type) | **GET** /workflow/tasks/by/{object_type}/{object_id} | Retrieve a workflow task by object type and id
14
+ [**get_workflow_task_open_count**](WorkflowApi.md#get_workflow_task_open_count) | **GET** /workflow/tasks/open_count | Retrieve workflow task open count
14
15
  [**get_workflow_task_tags**](WorkflowApi.md#get_workflow_task_tags) | **GET** /workflow/tasks/tags | Get a list of existing workflow task tags
15
16
  [**get_workflow_tasks**](WorkflowApi.md#get_workflow_tasks) | **POST** /workflow/tasks/search | Search workflow tasks
16
17
  [**insert_workflow_task**](WorkflowApi.md#insert_workflow_task) | **POST** /workflow/tasks | Insert a workflow task
@@ -366,6 +367,51 @@ Name | Type | Description | Notes
366
367
 
367
368
 
368
369
 
370
+ # **get_workflow_task_open_count**
371
+ > WorkflowTaskOpenCountResponse get_workflow_task_open_count
372
+
373
+ Retrieve workflow task open count
374
+
375
+ Retrieve workflow task open count
376
+
377
+ ### Example
378
+ ```ruby
379
+ # load the gem
380
+ require 'ultracart_api'
381
+
382
+ # Create a Simple Key: https://ultracart.atlassian.net/wiki/spaces/ucdoc/pages/38688545/API+Simple+Key
383
+ simple_key = '109ee846ee69f50177018ab12f008a00748a25aa28dbdc0177018ab12f008a00'
384
+ api_instance = UltracartClient::WorkflowApi.new_using_api_key(simple_key, false, false)
385
+
386
+
387
+
388
+ begin
389
+ #Retrieve workflow task open count
390
+ result = api_instance.get_workflow_task_open_count
391
+ p result
392
+ rescue UltracartClient::ApiError => e
393
+ puts "Exception when calling WorkflowApi->get_workflow_task_open_count: #{e}"
394
+ end
395
+ ```
396
+
397
+ ### Parameters
398
+ This endpoint does not need any parameter.
399
+
400
+ ### Return type
401
+
402
+ [**WorkflowTaskOpenCountResponse**](WorkflowTaskOpenCountResponse.md)
403
+
404
+ ### Authorization
405
+
406
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
407
+
408
+ ### HTTP request headers
409
+
410
+ - **Content-Type**: application/json
411
+ - **Accept**: application/json
412
+
413
+
414
+
369
415
  # **get_workflow_task_tags**
370
416
  > WorkflowTaskTagsResponse get_workflow_task_tags
371
417
 
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]
@@ -0,0 +1,12 @@
1
+ # UltracartClient::WorkflowTaskOpenCountResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **error** | [**Error**](Error.md) | | [optional]
7
+ **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
+ **open_count** | **Integer** | Open Task Count | [optional]
9
+ **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
10
+ **warning** | [**Warning**](Warning.md) | | [optional]
11
+
12
+
@@ -5,6 +5,7 @@ Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
6
  **error** | [**Error**](Error.md) | | [optional]
7
7
  **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
+ **my_user_id** | **Integer** | User ID of myself | [optional]
8
9
  **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
9
10
  **users** | [**Array<WorkflowUser>**](WorkflowUser.md) | users | [optional]
10
11
  **warning** | [**Warning**](Warning.md) | | [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
@@ -411,6 +411,55 @@ module UltracartClient
411
411
  end
412
412
  return data, status_code, headers
413
413
  end
414
+ # Retrieve workflow task open count
415
+ # Retrieve workflow task open count
416
+ # @param [Hash] opts the optional parameters
417
+ # @return [WorkflowTaskOpenCountResponse]
418
+ def get_workflow_task_open_count(opts = {})
419
+ data, _status_code, _headers = get_workflow_task_open_count_with_http_info(opts)
420
+ data
421
+ end
422
+
423
+ # Retrieve workflow task open count
424
+ # Retrieve workflow task open count
425
+ # @param [Hash] opts the optional parameters
426
+ # @return [Array<(WorkflowTaskOpenCountResponse, Fixnum, Hash)>] WorkflowTaskOpenCountResponse data, response status code and response headers
427
+ def get_workflow_task_open_count_with_http_info(opts = {})
428
+ if @api_client.config.debugging
429
+ @api_client.config.logger.debug 'Calling API: WorkflowApi.get_workflow_task_open_count ...'
430
+ end
431
+ # resource path
432
+ local_var_path = '/workflow/tasks/open_count'
433
+
434
+ # query parameters
435
+ query_params = {}
436
+
437
+ # header parameters
438
+ header_params = {}
439
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
440
+ # HTTP header 'Accept' (if needed)
441
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
442
+ # HTTP header 'Content-Type'
443
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
444
+
445
+ # form parameters
446
+ form_params = {}
447
+
448
+ # http body (model)
449
+ post_body = nil
450
+ auth_names = ['ultraCartOauth', 'ultraCartSimpleApiKey']
451
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
452
+ :header_params => header_params,
453
+ :query_params => query_params,
454
+ :form_params => form_params,
455
+ :body => post_body,
456
+ :auth_names => auth_names,
457
+ :return_type => 'WorkflowTaskOpenCountResponse')
458
+ if @api_client.config.debugging
459
+ @api_client.config.logger.debug "API called: WorkflowApi#get_workflow_task_open_count\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
460
+ end
461
+ return data, status_code, headers
462
+ end
414
463
  # Get a list of existing workflow task tags
415
464
  # Retrieves a unique list of all the existing workflow task tags.
416
465
  # @param [Hash] opts the optional parameters
@@ -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
@@ -0,0 +1,222 @@
1
+ =begin
2
+ #UltraCart Rest API V2
3
+
4
+ #UltraCart REST API Version 2
5
+
6
+ OpenAPI spec version: 2.0.0
7
+ Contact: support@ultracart.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.15-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module UltracartClient
16
+ class WorkflowTaskOpenCountResponse
17
+ attr_accessor :error
18
+
19
+ attr_accessor :metadata
20
+
21
+ # Open Task Count
22
+ attr_accessor :open_count
23
+
24
+ # Indicates if API call was successful
25
+ attr_accessor :success
26
+
27
+ attr_accessor :warning
28
+
29
+ # Attribute mapping from ruby-style variable name to JSON key.
30
+ def self.attribute_map
31
+ {
32
+ :'error' => :'error',
33
+ :'metadata' => :'metadata',
34
+ :'open_count' => :'open_count',
35
+ :'success' => :'success',
36
+ :'warning' => :'warning'
37
+ }
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.swagger_types
42
+ {
43
+ :'error' => :'Error',
44
+ :'metadata' => :'ResponseMetadata',
45
+ :'open_count' => :'Integer',
46
+ :'success' => :'BOOLEAN',
47
+ :'warning' => :'Warning'
48
+ }
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ return unless attributes.is_a?(Hash)
55
+
56
+ # convert string to symbol for hash key
57
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
58
+
59
+ if attributes.has_key?(:'error')
60
+ self.error = attributes[:'error']
61
+ end
62
+
63
+ if attributes.has_key?(:'metadata')
64
+ self.metadata = attributes[:'metadata']
65
+ end
66
+
67
+ if attributes.has_key?(:'open_count')
68
+ self.open_count = attributes[:'open_count']
69
+ end
70
+
71
+ if attributes.has_key?(:'success')
72
+ self.success = attributes[:'success']
73
+ end
74
+
75
+ if attributes.has_key?(:'warning')
76
+ self.warning = attributes[:'warning']
77
+ end
78
+ end
79
+
80
+ # Show invalid properties with the reasons. Usually used together with valid?
81
+ # @return Array for valid properties with the reasons
82
+ def list_invalid_properties
83
+ invalid_properties = Array.new
84
+ invalid_properties
85
+ end
86
+
87
+ # Check to see if the all the properties in the model are valid
88
+ # @return true if the model is valid
89
+ def valid?
90
+ true
91
+ end
92
+
93
+ # Checks equality by comparing each attribute.
94
+ # @param [Object] Object to be compared
95
+ def ==(o)
96
+ return true if self.equal?(o)
97
+ self.class == o.class &&
98
+ error == o.error &&
99
+ metadata == o.metadata &&
100
+ open_count == o.open_count &&
101
+ success == o.success &&
102
+ warning == o.warning
103
+ end
104
+
105
+ # @see the `==` method
106
+ # @param [Object] Object to be compared
107
+ def eql?(o)
108
+ self == o
109
+ end
110
+
111
+ # Calculates hash code according to all attributes.
112
+ # @return [Fixnum] Hash code
113
+ def hash
114
+ [error, metadata, open_count, success, warning].hash
115
+ end
116
+
117
+ # Builds the object from hash
118
+ # @param [Hash] attributes Model attributes in the form of hash
119
+ # @return [Object] Returns the model itself
120
+ def build_from_hash(attributes)
121
+ return nil unless attributes.is_a?(Hash)
122
+ self.class.swagger_types.each_pair do |key, type|
123
+ if type =~ /\AArray<(.*)>/i
124
+ # check to ensure the input is an array given that the attribute
125
+ # is documented as an array but the input is not
126
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
127
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
128
+ end
129
+ elsif !attributes[self.class.attribute_map[key]].nil?
130
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
131
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
132
+ end
133
+
134
+ self
135
+ end
136
+
137
+ # Deserializes the data based on type
138
+ # @param string type Data type
139
+ # @param string value Value to be deserialized
140
+ # @return [Object] Deserialized data
141
+ def _deserialize(type, value)
142
+ case type.to_sym
143
+ when :DateTime
144
+ DateTime.parse(value)
145
+ when :Date
146
+ Date.parse(value)
147
+ when :String
148
+ value.to_s
149
+ when :Integer
150
+ value.to_i
151
+ when :Float
152
+ value.to_f
153
+ when :BOOLEAN
154
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
155
+ true
156
+ else
157
+ false
158
+ end
159
+ when :Object
160
+ # generic object (usually a Hash), return directly
161
+ value
162
+ when /\AArray<(?<inner_type>.+)>\z/
163
+ inner_type = Regexp.last_match[:inner_type]
164
+ value.map { |v| _deserialize(inner_type, v) }
165
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
166
+ k_type = Regexp.last_match[:k_type]
167
+ v_type = Regexp.last_match[:v_type]
168
+ {}.tap do |hash|
169
+ value.each do |k, v|
170
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
171
+ end
172
+ end
173
+ else # model
174
+ temp_model = UltracartClient.const_get(type).new
175
+ temp_model.build_from_hash(value)
176
+ end
177
+ end
178
+
179
+ # Returns the string representation of the object
180
+ # @return [String] String presentation of the object
181
+ def to_s
182
+ to_hash.to_s
183
+ end
184
+
185
+ # to_body is an alias to to_hash (backward compatibility)
186
+ # @return [Hash] Returns the object in the form of hash
187
+ def to_body
188
+ to_hash
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ next if value.nil?
198
+ hash[param] = _to_hash(value)
199
+ end
200
+ hash
201
+ end
202
+
203
+ # Outputs non-array value in the form of hash
204
+ # For object, use to_hash. Otherwise, just return the value
205
+ # @param [Object] value Any valid value
206
+ # @return [Hash] Returns the value in the form of hash
207
+ def _to_hash(value)
208
+ if value.is_a?(Array)
209
+ value.compact.map { |v| _to_hash(v) }
210
+ elsif value.is_a?(Hash)
211
+ {}.tap do |hash|
212
+ value.each { |k, v| hash[k] = _to_hash(v) }
213
+ end
214
+ elsif value.respond_to? :to_hash
215
+ value.to_hash
216
+ else
217
+ value
218
+ end
219
+ end
220
+
221
+ end
222
+ end
@@ -18,6 +18,9 @@ module UltracartClient
18
18
 
19
19
  attr_accessor :metadata
20
20
 
21
+ # User ID of myself
22
+ attr_accessor :my_user_id
23
+
21
24
  # Indicates if API call was successful
22
25
  attr_accessor :success
23
26
 
@@ -31,6 +34,7 @@ module UltracartClient
31
34
  {
32
35
  :'error' => :'error',
33
36
  :'metadata' => :'metadata',
37
+ :'my_user_id' => :'my_user_id',
34
38
  :'success' => :'success',
35
39
  :'users' => :'users',
36
40
  :'warning' => :'warning'
@@ -42,6 +46,7 @@ module UltracartClient
42
46
  {
43
47
  :'error' => :'Error',
44
48
  :'metadata' => :'ResponseMetadata',
49
+ :'my_user_id' => :'Integer',
45
50
  :'success' => :'BOOLEAN',
46
51
  :'users' => :'Array<WorkflowUser>',
47
52
  :'warning' => :'Warning'
@@ -64,6 +69,10 @@ module UltracartClient
64
69
  self.metadata = attributes[:'metadata']
65
70
  end
66
71
 
72
+ if attributes.has_key?(:'my_user_id')
73
+ self.my_user_id = attributes[:'my_user_id']
74
+ end
75
+
67
76
  if attributes.has_key?(:'success')
68
77
  self.success = attributes[:'success']
69
78
  end
@@ -99,6 +108,7 @@ module UltracartClient
99
108
  self.class == o.class &&
100
109
  error == o.error &&
101
110
  metadata == o.metadata &&
111
+ my_user_id == o.my_user_id &&
102
112
  success == o.success &&
103
113
  users == o.users &&
104
114
  warning == o.warning
@@ -113,7 +123,7 @@ module UltracartClient
113
123
  # Calculates hash code according to all attributes.
114
124
  # @return [Fixnum] Hash code
115
125
  def hash
116
- [error, metadata, success, users, warning].hash
126
+ [error, metadata, my_user_id, success, users, warning].hash
117
127
  end
118
128
 
119
129
  # Builds the object from hash
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.15-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '3.10.186'
14
+ VERSION = '3.10.188'
15
15
  end
data/lib/ultracart_api.rb CHANGED
@@ -850,6 +850,7 @@ require 'ultracart_api/models/workflow_groups_response'
850
850
  require 'ultracart_api/models/workflow_note'
851
851
  require 'ultracart_api/models/workflow_task'
852
852
  require 'ultracart_api/models/workflow_task_history'
853
+ require 'ultracart_api/models/workflow_task_open_count_response'
853
854
  require 'ultracart_api/models/workflow_task_response'
854
855
  require 'ultracart_api/models/workflow_task_tags_response'
855
856
  require 'ultracart_api/models/workflow_tasks_request'
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.186
4
+ version: 3.10.188
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-15 00:00:00.000000000 Z
11
+ date: 2024-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -1075,6 +1075,7 @@ files:
1075
1075
  - docs/WorkflowNote.md
1076
1076
  - docs/WorkflowTask.md
1077
1077
  - docs/WorkflowTaskHistory.md
1078
+ - docs/WorkflowTaskOpenCountResponse.md
1078
1079
  - docs/WorkflowTaskResponse.md
1079
1080
  - docs/WorkflowTaskTagsResponse.md
1080
1081
  - docs/WorkflowTasksRequest.md
@@ -1941,6 +1942,7 @@ files:
1941
1942
  - lib/ultracart_api/models/workflow_note.rb
1942
1943
  - lib/ultracart_api/models/workflow_task.rb
1943
1944
  - lib/ultracart_api/models/workflow_task_history.rb
1945
+ - lib/ultracart_api/models/workflow_task_open_count_response.rb
1944
1946
  - lib/ultracart_api/models/workflow_task_response.rb
1945
1947
  - lib/ultracart_api/models/workflow_task_tags_response.rb
1946
1948
  - lib/ultracart_api/models/workflow_tasks_request.rb