ultracart_api 4.0.194 → 4.0.195

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 62cb34154ee2c02d4fed8962fb74ed0823b03e343c1acaebea18ad44bc59ddc8
4
- data.tar.gz: 9925e0891e2c77605d2eeee39fa4579b8021a1f59426e6685e70648ca48610b5
3
+ metadata.gz: f26b248b637505cfa791a06bf2a401e79b85c9796f99bb47811a67b49365e495
4
+ data.tar.gz: 3e73d0cdb28a68ea701909dcd2e9870ed11668707d9a500b10cd01803592d8bb
5
5
  SHA512:
6
- metadata.gz: 5d53b4d9864069679cc278a9fa0a3ebe8ee4729e9ce1b3ac718f95c284302a87a3d6fb177abb91f926ff3e048fa42f126b71cd412817dba651056afb9ae1b426
7
- data.tar.gz: dfee6303b751ce955b07784ac7b1ff53974d2ad926f14ce1bc8819759bd915db4ab6dd318bf47cd530104e9efa4d41cfcca9794eb5c9298e57669394b931937b
6
+ metadata.gz: 798a5f9345a487a413d2d4765b0d69f37fd1255d7fcca8b269b43718f3c8fcd3e3d5f79dde6fd19ef8b7cb91afca66eb9284c645cd2173b4dfb18d65992a6a2a
7
+ data.tar.gz: 41b57f1f36756676abc90ee4a37fa188ba648473bed1ea47afb13884896f1cb1ee5afd8446ddd0a8050974c174502b73b69261ee7cfe883c025dc6e15e0250f1
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.194
10
+ - Package version: 4.0.195
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.194.gem
27
+ gem install ./ultracart_api-4.0.195.gem
28
28
  ```
29
29
 
30
- (for development, run `gem install --dev ./ultracart_api-4.0.194.gem` to install the development dependencies)
30
+ (for development, run `gem install --dev ./ultracart_api-4.0.195.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.194'
36
+ gem 'ultracart_api', '~> 4.0.195'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1406,6 +1406,7 @@ Not every change is committed to every SDK.
1406
1406
 
1407
1407
  | Version | Date | Comments |
1408
1408
  | --: | :-: | --- |
1409
+ | 4.0.195 | 01/03/2024 | workflow - add task_context field to task obj |
1409
1410
  | 4.0.194 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
1410
1411
  | 4.0.193 | 12/12/2023 | webhook - added event ruler property |
1411
1412
  | 4.0.192 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
data/docs/WorkflowTask.md CHANGED
@@ -23,6 +23,7 @@
23
23
  | **object_url** | **String** | Object URL | [optional] |
24
24
  | **priority** | **String** | Priority | [optional] |
25
25
  | **status** | **String** | Status of the workflow task | [optional] |
26
+ | **task_context** | **String** | User friendly string of the task context | [optional] |
26
27
  | **task_details** | **String** | Task Details | [optional] |
27
28
  | **task_name** | **String** | Task Name | [optional] |
28
29
  | **workflow_task_uuid** | **String** | Workflow Task UUID | [optional] |
@@ -52,6 +53,7 @@ instance = UltracartClient::WorkflowTask.new(
52
53
  object_url: null,
53
54
  priority: null,
54
55
  status: null,
56
+ task_context: null,
55
57
  task_details: null,
56
58
  task_name: null,
57
59
  workflow_task_uuid: null
@@ -7,6 +7,7 @@
7
7
  | **error** | [**Error**](Error.md) | | [optional] |
8
8
  | **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional] |
9
9
  | **success** | **Boolean** | Indicates if API call was successful | [optional] |
10
+ | **task_context** | **String** | User friendly string of the task context if querying for a specific object type/id | [optional] |
10
11
  | **tasks** | [**Array<WorkflowTask>**](WorkflowTask.md) | tasks | [optional] |
11
12
  | **warning** | [**Warning**](Warning.md) | | [optional] |
12
13
 
@@ -19,6 +20,7 @@ instance = UltracartClient::WorkflowTasksResponse.new(
19
20
  error: null,
20
21
  metadata: null,
21
22
  success: null,
23
+ task_context: null,
22
24
  tasks: null,
23
25
  warning: null
24
26
  )
@@ -71,6 +71,9 @@ module UltracartClient
71
71
  # Status of the workflow task
72
72
  attr_accessor :status
73
73
 
74
+ # User friendly string of the task context
75
+ attr_accessor :task_context
76
+
74
77
  # Task Details
75
78
  attr_accessor :task_details
76
79
 
@@ -124,6 +127,7 @@ module UltracartClient
124
127
  :'object_url' => :'object_url',
125
128
  :'priority' => :'priority',
126
129
  :'status' => :'status',
130
+ :'task_context' => :'task_context',
127
131
  :'task_details' => :'task_details',
128
132
  :'task_name' => :'task_name',
129
133
  :'workflow_task_uuid' => :'workflow_task_uuid'
@@ -157,6 +161,7 @@ module UltracartClient
157
161
  :'object_url' => :'String',
158
162
  :'priority' => :'String',
159
163
  :'status' => :'String',
164
+ :'task_context' => :'String',
160
165
  :'task_details' => :'String',
161
166
  :'task_name' => :'String',
162
167
  :'workflow_task_uuid' => :'String'
@@ -266,6 +271,10 @@ module UltracartClient
266
271
  self.status = attributes[:'status']
267
272
  end
268
273
 
274
+ if attributes.key?(:'task_context')
275
+ self.task_context = attributes[:'task_context']
276
+ end
277
+
269
278
  if attributes.key?(:'task_details')
270
279
  self.task_details = attributes[:'task_details']
271
280
  end
@@ -289,7 +298,7 @@ module UltracartClient
289
298
  # Check to see if the all the properties in the model are valid
290
299
  # @return true if the model is valid
291
300
  def valid?
292
- object_type_validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile"])
301
+ object_type_validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile", "storefront"])
293
302
  return false unless object_type_validator.valid?(@object_type)
294
303
  priority_validator = EnumAttributeValidator.new('String', ["1 - low", "2 - medium", "3 - high", "4 - critical"])
295
304
  return false unless priority_validator.valid?(@priority)
@@ -301,7 +310,7 @@ module UltracartClient
301
310
  # Custom attribute writer method checking allowed values (enum).
302
311
  # @param [Object] object_type Object to be assigned
303
312
  def object_type=(object_type)
304
- validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile"])
313
+ validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile", "storefront"])
305
314
  unless validator.valid?(object_type)
306
315
  fail ArgumentError, "invalid value for \"object_type\", must be one of #{validator.allowable_values}."
307
316
  end
@@ -352,6 +361,7 @@ module UltracartClient
352
361
  object_url == o.object_url &&
353
362
  priority == o.priority &&
354
363
  status == o.status &&
364
+ task_context == o.task_context &&
355
365
  task_details == o.task_details &&
356
366
  task_name == o.task_name &&
357
367
  workflow_task_uuid == o.workflow_task_uuid
@@ -366,7 +376,7 @@ module UltracartClient
366
376
  # Calculates hash code according to all attributes.
367
377
  # @return [Integer] Hash code
368
378
  def hash
369
- [assigned_to_group, assigned_to_group_id, assigned_to_user, assigned_to_user_id, attachments, created_by, created_dts, delay_until_dts, due_dts, histories, last_update_dts, merchant_id, notes, object_email, object_id, object_type, object_url, priority, status, task_details, task_name, workflow_task_uuid].hash
379
+ [assigned_to_group, assigned_to_group_id, assigned_to_user, assigned_to_user_id, attachments, created_by, created_dts, delay_until_dts, due_dts, histories, last_update_dts, merchant_id, notes, object_email, object_id, object_type, object_url, priority, status, task_context, task_details, task_name, workflow_task_uuid].hash
370
380
  end
371
381
 
372
382
  # Builds the object from hash
@@ -22,6 +22,9 @@ module UltracartClient
22
22
  # Indicates if API call was successful
23
23
  attr_accessor :success
24
24
 
25
+ # User friendly string of the task context if querying for a specific object type/id
26
+ attr_accessor :task_context
27
+
25
28
  # tasks
26
29
  attr_accessor :tasks
27
30
 
@@ -33,6 +36,7 @@ module UltracartClient
33
36
  :'error' => :'error',
34
37
  :'metadata' => :'metadata',
35
38
  :'success' => :'success',
39
+ :'task_context' => :'task_context',
36
40
  :'tasks' => :'tasks',
37
41
  :'warning' => :'warning'
38
42
  }
@@ -49,6 +53,7 @@ module UltracartClient
49
53
  :'error' => :'Error',
50
54
  :'metadata' => :'ResponseMetadata',
51
55
  :'success' => :'Boolean',
56
+ :'task_context' => :'String',
52
57
  :'tasks' => :'Array<WorkflowTask>',
53
58
  :'warning' => :'Warning'
54
59
  }
@@ -87,6 +92,10 @@ module UltracartClient
87
92
  self.success = attributes[:'success']
88
93
  end
89
94
 
95
+ if attributes.key?(:'task_context')
96
+ self.task_context = attributes[:'task_context']
97
+ end
98
+
90
99
  if attributes.key?(:'tasks')
91
100
  if (value = attributes[:'tasks']).is_a?(Array)
92
101
  self.tasks = value
@@ -119,6 +128,7 @@ module UltracartClient
119
128
  error == o.error &&
120
129
  metadata == o.metadata &&
121
130
  success == o.success &&
131
+ task_context == o.task_context &&
122
132
  tasks == o.tasks &&
123
133
  warning == o.warning
124
134
  end
@@ -132,7 +142,7 @@ module UltracartClient
132
142
  # Calculates hash code according to all attributes.
133
143
  # @return [Integer] Hash code
134
144
  def hash
135
- [error, metadata, success, tasks, warning].hash
145
+ [error, metadata, success, task_context, tasks, warning].hash
136
146
  end
137
147
 
138
148
  # 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.194'
14
+ VERSION = '4.0.195'
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.194
4
+ version: 4.0.195
5
5
  platform: ruby
6
6
  authors:
7
7
  - UltraCart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-12-15 00:00:00.000000000 Z
11
+ date: 2024-01-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus