ultracart_api 4.0.203 → 4.0.204

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: 2741f3ab5cd18a9833cadc8808fba3d863b042f81b7f5c681c838691c53239c6
4
- data.tar.gz: b0ef5867ded4987ffd1df0286c5a33f21e1396c39444877a14b1bcb1e954140c
3
+ metadata.gz: cdcbb03fdcded697195997c256609bdb9d663f40b6f9df73b2d414d25596491d
4
+ data.tar.gz: '09c586cf32123cd87bfac438ca903c0f2d8e0cd3da4e2aa9a82d1c0c689fada2'
5
5
  SHA512:
6
- metadata.gz: 907343341ebb75dbf1292d6833886ba79d0340c23fcebfb0011595c9c2cc87689852e5367721de2604d160834f83b11b94a9c8f7421009c71d84038d0496e57b
7
- data.tar.gz: 9a49b85125ae2377508cdcc2627bdf74191d91998ce2dab74f5fa4e1b62c3444817d2b048db46abf7ac275a616b0b9f7682fbc547ea19c119c8cf0c4db027ca1
6
+ metadata.gz: 28dc158ef75f566e72e87a7b754c7275575eb5f196d4069b12df18903806870ecc4c65ec11f47ecea437551507f62d4f99e5776fb022ee01089d15dbf21217da
7
+ data.tar.gz: d938415376be7ff6108688521b9447560a8be3f93220c2f40e781a5631cbd9b90323ae62d1f1cf24130fec5f931af2885783fa5af77c0fafebc5aaa662e1c121
data/README.md CHANGED
@@ -7,7 +7,7 @@ UltraCart REST API Version 2
7
7
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
8
8
 
9
9
  - API version: 2.0.0
10
- - Package version: 4.0.203
10
+ - Package version: 4.0.204
11
11
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
12
12
  For more information, please visit [http://www.ultracart.com](http://www.ultracart.com)
13
13
 
@@ -24,16 +24,16 @@ gem build ultracart_api.gemspec
24
24
  Then either install the gem locally:
25
25
 
26
26
  ```shell
27
- gem install ./ultracart_api-4.0.203.gem
27
+ gem install ./ultracart_api-4.0.204.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.203.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.204.gem` to install the development dependencies)
31
31
 
32
32
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
33
33
 
34
34
  Finally add this to the Gemfile:
35
35
 
36
- gem 'ultracart_api', '~> 4.0.203'
36
+ gem 'ultracart_api', '~> 4.0.204'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -199,6 +199,7 @@ Class | Method | HTTP request | Description
199
199
  *UltracartClient::ConversationApi* | [**join_conversation**](docs/ConversationApi.md#join_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/join | Join a conversation
200
200
  *UltracartClient::ConversationApi* | [**leave_conversation**](docs/ConversationApi.md#leave_conversation) | **DELETE** /conversation/conversations/{conversation_uuid}/leave | Leave a conversation
201
201
  *UltracartClient::ConversationApi* | [**mark_read_conversation**](docs/ConversationApi.md#mark_read_conversation) | **PUT** /conversation/conversations/{conversation_uuid}/markread | Mark a conversation as read
202
+ *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
202
203
  *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
203
204
  *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
204
205
  *UltracartClient::ConversationApi* | [**start_conversation**](docs/ConversationApi.md#start_conversation) | **PUT** /conversation/conversations | Start a conversation
@@ -1491,6 +1492,7 @@ Not every change is committed to every SDK.
1491
1492
 
1492
1493
  | Version | Date | Comments |
1493
1494
  | --: | :-: | --- |
1495
+ | 4.0.204 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
1494
1496
  | 4.0.203 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
1495
1497
  | 4.0.202 | 03/08/2024 | added getWorkflowTaskTags method |
1496
1498
  | 4.0.201 | 02/27/2024 | esp - sms statistic layer |
@@ -65,6 +65,7 @@ All URIs are relative to *https://secure.ultracart.com/rest/v2*
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 |
@@ -4375,6 +4376,76 @@ nil (empty response body)
4375
4376
  - **Accept**: application/json
4376
4377
 
4377
4378
 
4379
+ ## reset_conversation_pbx_queue_statistics
4380
+
4381
+ > reset_conversation_pbx_queue_statistics(queue_uuid)
4382
+
4383
+ reset statistics within the queue
4384
+
4385
+ reset statistics within the queue
4386
+
4387
+ ### Examples
4388
+
4389
+ ```ruby
4390
+ require 'time'
4391
+ require 'ultracart_api'
4392
+ require 'json'
4393
+ require 'yaml'
4394
+ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
4395
+
4396
+ # This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
4397
+ # As such, this might not be the best way to use this object.
4398
+ # Please see https://github.com/UltraCart/sdk_samples for working examples.
4399
+
4400
+ api = UltracartClient::ConversationApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
4401
+ queue_uuid = 'queue_uuid_example' # String |
4402
+
4403
+ begin
4404
+ # reset statistics within the queue
4405
+ api_instance.reset_conversation_pbx_queue_statistics(queue_uuid)
4406
+ rescue UltracartClient::ApiError => e
4407
+ puts "Error when calling ConversationApi->reset_conversation_pbx_queue_statistics: #{e}"
4408
+ end
4409
+ ```
4410
+
4411
+ #### Using the reset_conversation_pbx_queue_statistics_with_http_info variant
4412
+
4413
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
4414
+
4415
+ > <Array(nil, Integer, Hash)> reset_conversation_pbx_queue_statistics_with_http_info(queue_uuid)
4416
+
4417
+ ```ruby
4418
+ begin
4419
+ # reset statistics within the queue
4420
+ data, status_code, headers = api_instance.reset_conversation_pbx_queue_statistics_with_http_info(queue_uuid)
4421
+ p status_code # => 2xx
4422
+ p headers # => { ... }
4423
+ p data # => nil
4424
+ rescue UltracartClient::ApiError => e
4425
+ puts "Error when calling ConversationApi->reset_conversation_pbx_queue_statistics_with_http_info: #{e}"
4426
+ end
4427
+ ```
4428
+
4429
+ ### Parameters
4430
+
4431
+ | Name | Type | Description | Notes |
4432
+ | ---- | ---- | ----------- | ----- |
4433
+ | **queue_uuid** | **String** | | |
4434
+
4435
+ ### Return type
4436
+
4437
+ nil (empty response body)
4438
+
4439
+ ### Authorization
4440
+
4441
+ [ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
4442
+
4443
+ ### HTTP request headers
4444
+
4445
+ - **Content-Type**: Not defined
4446
+ - **Accept**: application/json
4447
+
4448
+
4378
4449
  ## search_conversation_canned_messages
4379
4450
 
4380
4451
  > <ConversationCannedMessagesResponse> search_conversation_canned_messages(search_request)
data/docs/WorkflowTask.md CHANGED
@@ -14,6 +14,7 @@
14
14
  | **delay_until_dts** | **String** | Date/time that the workflow task should delay until | [optional] |
15
15
  | **dependant_workflow_task_uuid** | **String** | Dependant Workflow Task UUID (must be completed before this task can be completed) | [optional] |
16
16
  | **due_dts** | **String** | Date/time that the workflow task is due | [optional] |
17
+ | **expiration_dts** | **String** | Date/time that the workflow task will expire and be closed. This is set by system generated tasks. | [optional] |
17
18
  | **histories** | [**Array&lt;WorkflowTaskHistory&gt;**](WorkflowTaskHistory.md) | Array of history records for the task | [optional] |
18
19
  | **last_update_dts** | **String** | Date/time that the workflow task was last updated | [optional] |
19
20
  | **merchant_id** | **String** | Merchant ID | [optional] |
@@ -26,6 +27,7 @@
26
27
  | **properties** | [**Array&lt;Property&gt;**](Property.md) | Properties | [optional] |
27
28
  | **related_workflow_task_uuid** | **String** | Related Workflow Task UUID | [optional] |
28
29
  | **status** | **String** | Status of the workflow task | [optional] |
30
+ | **system_task_type** | **String** | Constant for the type of system generated task | [optional] |
29
31
  | **tags** | **Array&lt;String&gt;** | Tags | [optional] |
30
32
  | **task_context** | **String** | User friendly string of the task context | [optional] |
31
33
  | **task_details** | **String** | Task Details | [optional] |
@@ -48,6 +50,7 @@ instance = UltracartClient::WorkflowTask.new(
48
50
  delay_until_dts: null,
49
51
  dependant_workflow_task_uuid: null,
50
52
  due_dts: null,
53
+ expiration_dts: null,
51
54
  histories: null,
52
55
  last_update_dts: null,
53
56
  merchant_id: null,
@@ -60,6 +63,7 @@ instance = UltracartClient::WorkflowTask.new(
60
63
  properties: null,
61
64
  related_workflow_task_uuid: null,
62
65
  status: null,
66
+ system_task_type: null,
63
67
  tags: null,
64
68
  task_context: null,
65
69
  task_details: null,
@@ -3923,6 +3923,70 @@ module UltracartClient
3923
3923
  return data, status_code, headers
3924
3924
  end
3925
3925
 
3926
+ # reset statistics within the queue
3927
+ # reset statistics within the queue
3928
+ # @param queue_uuid [String]
3929
+ # @param [Hash] opts the optional parameters
3930
+ # @return [nil]
3931
+ def reset_conversation_pbx_queue_statistics(queue_uuid, opts = {})
3932
+ reset_conversation_pbx_queue_statistics_with_http_info(queue_uuid, opts)
3933
+ nil
3934
+ end
3935
+
3936
+ # reset statistics within the queue
3937
+ # reset statistics within the queue
3938
+ # @param queue_uuid [String]
3939
+ # @param [Hash] opts the optional parameters
3940
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
3941
+ def reset_conversation_pbx_queue_statistics_with_http_info(queue_uuid, opts = {})
3942
+ if @api_client.config.debugging
3943
+ @api_client.config.logger.debug 'Calling API: ConversationApi.reset_conversation_pbx_queue_statistics ...'
3944
+ end
3945
+ # verify the required parameter 'queue_uuid' is set
3946
+ if @api_client.config.client_side_validation && queue_uuid.nil?
3947
+ fail ArgumentError, "Missing the required parameter 'queue_uuid' when calling ConversationApi.reset_conversation_pbx_queue_statistics"
3948
+ end
3949
+ # resource path
3950
+ local_var_path = '/conversation/pbx/queues/{queue_uuid}/reset_statistics'.sub('{' + 'queue_uuid' + '}', CGI.escape(queue_uuid.to_s))
3951
+
3952
+ # query parameters
3953
+ query_params = opts[:query_params] || {}
3954
+
3955
+ # header parameters
3956
+ header_params = opts[:header_params] || {}
3957
+ header_params['X-UltraCart-Api-Version'] = @api_client.select_header_api_version()
3958
+ # HTTP header 'Accept' (if needed)
3959
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
3960
+
3961
+ # form parameters
3962
+ form_params = opts[:form_params] || {}
3963
+
3964
+ # http body (model)
3965
+ post_body = opts[:debug_body]
3966
+
3967
+ # return_type
3968
+ return_type = opts[:debug_return_type]
3969
+
3970
+ # auth_names
3971
+ auth_names = opts[:debug_auth_names] || ['ultraCartOauth', 'ultraCartSimpleApiKey']
3972
+
3973
+ new_options = opts.merge(
3974
+ :operation => :"ConversationApi.reset_conversation_pbx_queue_statistics",
3975
+ :header_params => header_params,
3976
+ :query_params => query_params,
3977
+ :form_params => form_params,
3978
+ :body => post_body,
3979
+ :auth_names => auth_names,
3980
+ :return_type => return_type
3981
+ )
3982
+
3983
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
3984
+ if @api_client.config.debugging
3985
+ @api_client.config.logger.debug "API called: ConversationApi#reset_conversation_pbx_queue_statistics\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3986
+ end
3987
+ return data, status_code, headers
3988
+ end
3989
+
3926
3990
  # Search for canned messages by short_code
3927
3991
  # Search for canned messages by short_code
3928
3992
  # @param search_request [ConversationCannedMessagesSearch] Search request
@@ -44,6 +44,9 @@ module UltracartClient
44
44
  # Date/time that the workflow task is due
45
45
  attr_accessor :due_dts
46
46
 
47
+ # Date/time that the workflow task will expire and be closed. This is set by system generated tasks.
48
+ attr_accessor :expiration_dts
49
+
47
50
  # Array of history records for the task
48
51
  attr_accessor :histories
49
52
 
@@ -80,6 +83,9 @@ module UltracartClient
80
83
  # Status of the workflow task
81
84
  attr_accessor :status
82
85
 
86
+ # Constant for the type of system generated task
87
+ attr_accessor :system_task_type
88
+
83
89
  # Tags
84
90
  attr_accessor :tags
85
91
 
@@ -130,6 +136,7 @@ module UltracartClient
130
136
  :'delay_until_dts' => :'delay_until_dts',
131
137
  :'dependant_workflow_task_uuid' => :'dependant_workflow_task_uuid',
132
138
  :'due_dts' => :'due_dts',
139
+ :'expiration_dts' => :'expiration_dts',
133
140
  :'histories' => :'histories',
134
141
  :'last_update_dts' => :'last_update_dts',
135
142
  :'merchant_id' => :'merchant_id',
@@ -142,6 +149,7 @@ module UltracartClient
142
149
  :'properties' => :'properties',
143
150
  :'related_workflow_task_uuid' => :'related_workflow_task_uuid',
144
151
  :'status' => :'status',
152
+ :'system_task_type' => :'system_task_type',
145
153
  :'tags' => :'tags',
146
154
  :'task_context' => :'task_context',
147
155
  :'task_details' => :'task_details',
@@ -168,6 +176,7 @@ module UltracartClient
168
176
  :'delay_until_dts' => :'String',
169
177
  :'dependant_workflow_task_uuid' => :'String',
170
178
  :'due_dts' => :'String',
179
+ :'expiration_dts' => :'String',
171
180
  :'histories' => :'Array<WorkflowTaskHistory>',
172
181
  :'last_update_dts' => :'String',
173
182
  :'merchant_id' => :'String',
@@ -180,6 +189,7 @@ module UltracartClient
180
189
  :'properties' => :'Array<Property>',
181
190
  :'related_workflow_task_uuid' => :'String',
182
191
  :'status' => :'String',
192
+ :'system_task_type' => :'String',
183
193
  :'tags' => :'Array<String>',
184
194
  :'task_context' => :'String',
185
195
  :'task_details' => :'String',
@@ -251,6 +261,10 @@ module UltracartClient
251
261
  self.due_dts = attributes[:'due_dts']
252
262
  end
253
263
 
264
+ if attributes.key?(:'expiration_dts')
265
+ self.expiration_dts = attributes[:'expiration_dts']
266
+ end
267
+
254
268
  if attributes.key?(:'histories')
255
269
  if (value = attributes[:'histories']).is_a?(Array)
256
270
  self.histories = value
@@ -305,6 +319,10 @@ module UltracartClient
305
319
  self.status = attributes[:'status']
306
320
  end
307
321
 
322
+ if attributes.key?(:'system_task_type')
323
+ self.system_task_type = attributes[:'system_task_type']
324
+ end
325
+
308
326
  if attributes.key?(:'tags')
309
327
  if (value = attributes[:'tags']).is_a?(Array)
310
328
  self.tags = value
@@ -342,8 +360,10 @@ module UltracartClient
342
360
  return false unless object_type_validator.valid?(@object_type)
343
361
  priority_validator = EnumAttributeValidator.new('String', ["1 - low", "2 - medium", "3 - high", "4 - critical"])
344
362
  return false unless priority_validator.valid?(@priority)
345
- status_validator = EnumAttributeValidator.new('String', ["open", "closed", "delayed", "awaiting customer feedback"])
363
+ status_validator = EnumAttributeValidator.new('String', ["open", "closed", "delayed", "awaiting customer feedback", "closed - system", "closed - customer", "closed - expiration"])
346
364
  return false unless status_validator.valid?(@status)
365
+ 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"])
366
+ return false unless system_task_type_validator.valid?(@system_task_type)
347
367
  true
348
368
  end
349
369
 
@@ -370,13 +390,23 @@ module UltracartClient
370
390
  # Custom attribute writer method checking allowed values (enum).
371
391
  # @param [Object] status Object to be assigned
372
392
  def status=(status)
373
- validator = EnumAttributeValidator.new('String', ["open", "closed", "delayed", "awaiting customer feedback"])
393
+ validator = EnumAttributeValidator.new('String', ["open", "closed", "delayed", "awaiting customer feedback", "closed - system", "closed - customer", "closed - expiration"])
374
394
  unless validator.valid?(status)
375
395
  fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
376
396
  end
377
397
  @status = status
378
398
  end
379
399
 
400
+ # Custom attribute writer method checking allowed values (enum).
401
+ # @param [Object] system_task_type Object to be assigned
402
+ def system_task_type=(system_task_type)
403
+ 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"])
404
+ unless validator.valid?(system_task_type)
405
+ fail ArgumentError, "invalid value for \"system_task_type\", must be one of #{validator.allowable_values}."
406
+ end
407
+ @system_task_type = system_task_type
408
+ end
409
+
380
410
  # Checks equality by comparing each attribute.
381
411
  # @param [Object] Object to be compared
382
412
  def ==(o)
@@ -392,6 +422,7 @@ module UltracartClient
392
422
  delay_until_dts == o.delay_until_dts &&
393
423
  dependant_workflow_task_uuid == o.dependant_workflow_task_uuid &&
394
424
  due_dts == o.due_dts &&
425
+ expiration_dts == o.expiration_dts &&
395
426
  histories == o.histories &&
396
427
  last_update_dts == o.last_update_dts &&
397
428
  merchant_id == o.merchant_id &&
@@ -404,6 +435,7 @@ module UltracartClient
404
435
  properties == o.properties &&
405
436
  related_workflow_task_uuid == o.related_workflow_task_uuid &&
406
437
  status == o.status &&
438
+ system_task_type == o.system_task_type &&
407
439
  tags == o.tags &&
408
440
  task_context == o.task_context &&
409
441
  task_details == o.task_details &&
@@ -420,7 +452,7 @@ module UltracartClient
420
452
  # Calculates hash code according to all attributes.
421
453
  # @return [Integer] Hash code
422
454
  def hash
423
- [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
455
+ [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
424
456
  end
425
457
 
426
458
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 6.0.1-SNAPSHOT
11
11
  =end
12
12
 
13
13
  module UltracartClient
14
- VERSION = '4.0.203'
14
+ VERSION = '4.0.204'
15
15
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultracart_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.203
4
+ version: 4.0.204
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