ultracart_api 3.10.177 → 3.10.178

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: d48b225c4ce3b20a653433c433d178492b45afe0fc5d32ab08f7cc17f68b42c2
4
- data.tar.gz: ddbb534ce4ff00479e1dec95198483a6ac869bc2552e030bcc51fdbf96e31d87
3
+ metadata.gz: b524385bb0691e45d2c970d7efaffe9c1f8c5ad160f973ed1c4c3ff69c257416
4
+ data.tar.gz: d3d413ab77a535e600bba948cd3e84ed6c691a98438043d53793ad87b59f762e
5
5
  SHA512:
6
- metadata.gz: f80dfcc8c2f632b27cba07d49bd8628303a250e22ac02d1a273ed5b45febc88c35fb994351ce446b846391bad68bb519ef8b6193474ce163013d173c5c6d2845
7
- data.tar.gz: 5aeb3a8f88a362ed40c5210c3476a486f0a7c68f72047ac6ca2c333c41b99849205b8605384dd813ccf8566026e46a175085cc78c28faee6baa33880c5e4e25a
6
+ metadata.gz: aa1aed5d0fa41da8ca7aca043d1b074630b7aeb15ac7d4ea101072e84bbfcc95e837890f08a606cbe341f63dff343530ccaee9cf0d5b945fe44968c1e092bfd7
7
+ data.tar.gz: 10250cef183253c441d27bb2af940202d3d76ce88c7fc856192dfff1fd275fc67b1c43a2bc3e9e7c6181da43dd1c9cd01be7fc2b032cd8c3967f5878cabb07b3
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.177
10
+ - Package version: 3.10.178
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.177.gem
27
+ gem install ./ultracart_api-3.10.178.gem
28
28
  ```
29
- (for development, run `gem install --dev ./ultracart_api-3.10.177.gem` to install the development dependencies)
29
+ (for development, run `gem install --dev ./ultracart_api-3.10.178.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.177'
35
+ gem 'ultracart_api', '~> 3.10.178'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1398,6 +1398,7 @@ Not every change is committed to every SDK.
1398
1398
 
1399
1399
  | Version | Date | Comments |
1400
1400
  | --: | :-: | --- |
1401
+ | 3.10.178 | 01/03/2024 | workflow - add task_context field to task obj |
1401
1402
  | 3.10.177 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
1402
1403
  | 3.10.176 | 12/12/2023 | webhook - added event ruler property |
1403
1404
  | 3.10.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
data/docs/WorkflowTask.md CHANGED
@@ -22,6 +22,7 @@ Name | Type | Description | Notes
22
22
  **object_url** | **String** | Object URL | [optional]
23
23
  **priority** | **String** | Priority | [optional]
24
24
  **status** | **String** | Status of the workflow task | [optional]
25
+ **task_context** | **String** | User friendly string of the task context | [optional]
25
26
  **task_details** | **String** | Task Details | [optional]
26
27
  **task_name** | **String** | Task Name | [optional]
27
28
  **workflow_task_uuid** | **String** | Workflow Task UUID | [optional]
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
6
6
  **error** | [**Error**](Error.md) | | [optional]
7
7
  **metadata** | [**ResponseMetadata**](ResponseMetadata.md) | | [optional]
8
8
  **success** | **BOOLEAN** | Indicates if API call was successful | [optional]
9
+ **task_context** | **String** | User friendly string of the task context if querying for a specific object type/id | [optional]
9
10
  **tasks** | [**Array<WorkflowTask>**](WorkflowTask.md) | tasks | [optional]
10
11
  **warning** | [**Warning**](Warning.md) | | [optional]
11
12
 
@@ -70,6 +70,9 @@ module UltracartClient
70
70
  # Status of the workflow task
71
71
  attr_accessor :status
72
72
 
73
+ # User friendly string of the task context
74
+ attr_accessor :task_context
75
+
73
76
  # Task Details
74
77
  attr_accessor :task_details
75
78
 
@@ -123,6 +126,7 @@ module UltracartClient
123
126
  :'object_url' => :'object_url',
124
127
  :'priority' => :'priority',
125
128
  :'status' => :'status',
129
+ :'task_context' => :'task_context',
126
130
  :'task_details' => :'task_details',
127
131
  :'task_name' => :'task_name',
128
132
  :'workflow_task_uuid' => :'workflow_task_uuid'
@@ -151,6 +155,7 @@ module UltracartClient
151
155
  :'object_url' => :'String',
152
156
  :'priority' => :'String',
153
157
  :'status' => :'String',
158
+ :'task_context' => :'String',
154
159
  :'task_details' => :'String',
155
160
  :'task_name' => :'String',
156
161
  :'workflow_task_uuid' => :'String'
@@ -247,6 +252,10 @@ module UltracartClient
247
252
  self.status = attributes[:'status']
248
253
  end
249
254
 
255
+ if attributes.has_key?(:'task_context')
256
+ self.task_context = attributes[:'task_context']
257
+ end
258
+
250
259
  if attributes.has_key?(:'task_details')
251
260
  self.task_details = attributes[:'task_details']
252
261
  end
@@ -270,7 +279,7 @@ module UltracartClient
270
279
  # Check to see if the all the properties in the model are valid
271
280
  # @return true if the model is valid
272
281
  def valid?
273
- object_type_validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile'])
282
+ object_type_validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile', 'storefront'])
274
283
  return false unless object_type_validator.valid?(@object_type)
275
284
  priority_validator = EnumAttributeValidator.new('String', ['1 - low', '2 - medium', '3 - high', '4 - critical'])
276
285
  return false unless priority_validator.valid?(@priority)
@@ -282,7 +291,7 @@ module UltracartClient
282
291
  # Custom attribute writer method checking allowed values (enum).
283
292
  # @param [Object] object_type Object to be assigned
284
293
  def object_type=(object_type)
285
- validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile'])
294
+ validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile', 'storefront'])
286
295
  unless validator.valid?(object_type)
287
296
  fail ArgumentError, 'invalid value for "object_type", must be one of #{validator.allowable_values}.'
288
297
  end
@@ -333,6 +342,7 @@ module UltracartClient
333
342
  object_url == o.object_url &&
334
343
  priority == o.priority &&
335
344
  status == o.status &&
345
+ task_context == o.task_context &&
336
346
  task_details == o.task_details &&
337
347
  task_name == o.task_name &&
338
348
  workflow_task_uuid == o.workflow_task_uuid
@@ -347,7 +357,7 @@ module UltracartClient
347
357
  # Calculates hash code according to all attributes.
348
358
  # @return [Fixnum] Hash code
349
359
  def hash
350
- [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
360
+ [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
351
361
  end
352
362
 
353
363
  # Builds the object from hash
@@ -21,6 +21,9 @@ module UltracartClient
21
21
  # Indicates if API call was successful
22
22
  attr_accessor :success
23
23
 
24
+ # User friendly string of the task context if querying for a specific object type/id
25
+ attr_accessor :task_context
26
+
24
27
  # tasks
25
28
  attr_accessor :tasks
26
29
 
@@ -32,6 +35,7 @@ module UltracartClient
32
35
  :'error' => :'error',
33
36
  :'metadata' => :'metadata',
34
37
  :'success' => :'success',
38
+ :'task_context' => :'task_context',
35
39
  :'tasks' => :'tasks',
36
40
  :'warning' => :'warning'
37
41
  }
@@ -43,6 +47,7 @@ module UltracartClient
43
47
  :'error' => :'Error',
44
48
  :'metadata' => :'ResponseMetadata',
45
49
  :'success' => :'BOOLEAN',
50
+ :'task_context' => :'String',
46
51
  :'tasks' => :'Array<WorkflowTask>',
47
52
  :'warning' => :'Warning'
48
53
  }
@@ -68,6 +73,10 @@ module UltracartClient
68
73
  self.success = attributes[:'success']
69
74
  end
70
75
 
76
+ if attributes.has_key?(:'task_context')
77
+ self.task_context = attributes[:'task_context']
78
+ end
79
+
71
80
  if attributes.has_key?(:'tasks')
72
81
  if (value = attributes[:'tasks']).is_a?(Array)
73
82
  self.tasks = value
@@ -100,6 +109,7 @@ module UltracartClient
100
109
  error == o.error &&
101
110
  metadata == o.metadata &&
102
111
  success == o.success &&
112
+ task_context == o.task_context &&
103
113
  tasks == o.tasks &&
104
114
  warning == o.warning
105
115
  end
@@ -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, tasks, warning].hash
126
+ [error, metadata, success, task_context, tasks, 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.177'
14
+ VERSION = '3.10.178'
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: 3.10.177
4
+ version: 3.10.178
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