ultracart_api 3.10.187 → 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 +4 -4
- data/README.md +7 -4
- data/docs/WorkflowApi.md +46 -0
- data/docs/WorkflowTaskOpenCountResponse.md +12 -0
- data/docs/WorkflowUsersResponse.md +1 -0
- data/lib/ultracart_api/api/workflow_api.rb +49 -0
- data/lib/ultracart_api/models/workflow_task_open_count_response.rb +222 -0
- data/lib/ultracart_api/models/workflow_users_response.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- data/lib/ultracart_api.rb +1 -0
- metadata +3 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c68d035cefd3446cda8e0ed93df690e80959496e7449c269fa38739ffc8df1a9
|
|
4
|
+
data.tar.gz: d2c1cfe5336259b5b0dbc01cf0633dc43b7050d3a911fc3863b83f936f57200f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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.
|
|
27
|
+
gem install ./ultracart_api-3.10.188.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.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.
|
|
35
|
+
gem 'ultracart_api', '~> 3.10.188'
|
|
36
36
|
|
|
37
37
|
### Install from Git
|
|
38
38
|
|
|
@@ -564,6 +564,7 @@ Class | Method | HTTP request | Description
|
|
|
564
564
|
*UltracartClient::WorkflowApi* | [**get_workflow_task**](docs/WorkflowApi.md#get_workflow_task) | **GET** /workflow/tasks/{task_uuid} | Retrieve a workflow task
|
|
565
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
|
|
566
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
|
|
567
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
|
|
568
569
|
*UltracartClient::WorkflowApi* | [**get_workflow_tasks**](docs/WorkflowApi.md#get_workflow_tasks) | **POST** /workflow/tasks/search | Search workflow tasks
|
|
569
570
|
*UltracartClient::WorkflowApi* | [**insert_workflow_task**](docs/WorkflowApi.md#insert_workflow_task) | **POST** /workflow/tasks | Insert a workflow task
|
|
@@ -1405,6 +1406,7 @@ Class | Method | HTTP request | Description
|
|
|
1405
1406
|
- [UltracartClient::WorkflowNote](docs/WorkflowNote.md)
|
|
1406
1407
|
- [UltracartClient::WorkflowTask](docs/WorkflowTask.md)
|
|
1407
1408
|
- [UltracartClient::WorkflowTaskHistory](docs/WorkflowTaskHistory.md)
|
|
1409
|
+
- [UltracartClient::WorkflowTaskOpenCountResponse](docs/WorkflowTaskOpenCountResponse.md)
|
|
1408
1410
|
- [UltracartClient::WorkflowTaskResponse](docs/WorkflowTaskResponse.md)
|
|
1409
1411
|
- [UltracartClient::WorkflowTaskTagsResponse](docs/WorkflowTaskTagsResponse.md)
|
|
1410
1412
|
- [UltracartClient::WorkflowTasksRequest](docs/WorkflowTasksRequest.md)
|
|
@@ -1484,6 +1486,7 @@ Not every change is committed to every SDK.
|
|
|
1484
1486
|
|
|
1485
1487
|
| Version | Date | Comments |
|
|
1486
1488
|
| --: | :-: | --- |
|
|
1489
|
+
| 3.10.188 | 03/19/2024 | workflow task - method to obtain open task count |
|
|
1487
1490
|
| 3.10.187 | 03/19/2024 | workflow task - addl status values, expiration_dts, and system task type |
|
|
1488
1491
|
| 3.10.186 | 03/15/2024 | workflow - getWorkflowAgentWebsocketAuthorization method added |
|
|
1489
1492
|
| 3.10.185 | 03/08/2024 | added getWorkflowTaskTags method |
|
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
|
|
|
@@ -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]
|
|
@@ -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
|
|
@@ -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
|
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,7 +1,7 @@
|
|
|
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.188
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- UltraCart
|
|
@@ -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
|