ultracart_api 3.10.177 → 3.10.179

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: a30a8f1c4e6966fbd17f9f047e321d91e646c5cedd5b974def1b09bfe9ac61cf
4
+ data.tar.gz: 40011cb8de421206f3bb3c41ff13ec4a79a660cd01efb9695dbbd3b2095cc241
5
5
  SHA512:
6
- metadata.gz: f80dfcc8c2f632b27cba07d49bd8628303a250e22ac02d1a273ed5b45febc88c35fb994351ce446b846391bad68bb519ef8b6193474ce163013d173c5c6d2845
7
- data.tar.gz: 5aeb3a8f88a362ed40c5210c3476a486f0a7c68f72047ac6ca2c333c41b99849205b8605384dd813ccf8566026e46a175085cc78c28faee6baa33880c5e4e25a
6
+ metadata.gz: e141a1f7b9d1b575aa2ba4c08821f92fecd5a7324387a95e5f0cf9a80b443aacb3d4a6dc0ab0caf1af162d1da36f12cbb9133e4a9af32eea5e3059528e3037f1
7
+ data.tar.gz: c61ed8837006d9fffadf49e5c193866ba4a342a50d21e10bebfda7f843e384566c4c45f90b41b1d473ee83459267951ecd5b8a6ecff18c0e4ca27eeecd9f7915
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.179
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.179.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.179.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.179'
36
36
 
37
37
  ### Install from Git
38
38
 
@@ -1398,6 +1398,8 @@ Not every change is committed to every SDK.
1398
1398
 
1399
1399
  | Version | Date | Comments |
1400
1400
  | --: | :-: | --- |
1401
+ | 3.10.179 | 01/10/2024 | workflow task - add uuids of related tasks and tags |
1402
+ | 3.10.178 | 01/03/2024 | workflow - add task_context field to task obj |
1401
1403
  | 3.10.177 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
1402
1404
  | 3.10.176 | 12/12/2023 | webhook - added event ruler property |
1403
1405
  | 3.10.175 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
data/docs/CartSummary.md CHANGED
@@ -8,6 +8,8 @@ Name | Type | Description | Notes
8
8
  **arbitrary_tax_rate** | [**Currency**](Currency.md) | | [optional]
9
9
  **arbitrary_taxable_subtotal** | [**Currency**](Currency.md) | | [optional]
10
10
  **health_benefit_card_amount** | [**Currency**](Currency.md) | | [optional]
11
+ **health_benefit_card_balance** | [**Currency**](Currency.md) | | [optional]
12
+ **health_benefit_card_requirements** | **String** | Health benefit card requirements | [optional]
11
13
  **internal_gift_certificate_amount** | [**Currency**](Currency.md) | | [optional]
12
14
  **shipping_handling** | [**Currency**](Currency.md) | | [optional]
13
15
  **shipping_handling_discount** | [**Currency**](Currency.md) | | [optional]
data/docs/OrderApi.md CHANGED
@@ -1144,7 +1144,7 @@ Name | Type | Description | Notes
1144
1144
 
1145
1145
  Refund an order
1146
1146
 
1147
- Perform a refund operation on an order and then update the order if successful
1147
+ Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
1148
1148
 
1149
1149
  ### Example
1150
1150
  ```ruby
data/docs/WorkflowTask.md CHANGED
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
11
11
  **created_by** | [**WorkflowUser**](WorkflowUser.md) | | [optional]
12
12
  **created_dts** | **String** | Date/time that the workflow task was created | [optional]
13
13
  **delay_until_dts** | **String** | Date/time that the workflow task should delay until | [optional]
14
+ **dependant_workflow_task_uuid** | **String** | Dependant Workflow Task UUID (must be completed before this task can be completed) | [optional]
14
15
  **due_dts** | **String** | Date/time that the workflow task is due | [optional]
15
16
  **histories** | [**Array<WorkflowTaskHistory>**](WorkflowTaskHistory.md) | Array of history records for the task | [optional]
16
17
  **last_update_dts** | **String** | Date/time that the workflow task was last updated | [optional]
@@ -21,7 +22,10 @@ Name | Type | Description | Notes
21
22
  **object_type** | **String** | Object Type | [optional]
22
23
  **object_url** | **String** | Object URL | [optional]
23
24
  **priority** | **String** | Priority | [optional]
25
+ **related_workflow_task_uuid** | **String** | Related Workflow Task UUID | [optional]
24
26
  **status** | **String** | Status of the workflow task | [optional]
27
+ **tags** | **Array<String>** | Tags | [optional]
28
+ **task_context** | **String** | User friendly string of the task context | [optional]
25
29
  **task_details** | **String** | Task Details | [optional]
26
30
  **task_name** | **String** | Task Name | [optional]
27
31
  **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
 
@@ -1270,7 +1270,7 @@ module UltracartClient
1270
1270
  return data, status_code, headers
1271
1271
  end
1272
1272
  # Refund an order
1273
- # Perform a refund operation on an order and then update the order if successful
1273
+ # Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
1274
1274
  # @param order Order to refund
1275
1275
  # @param order_id The order id to refund.
1276
1276
  # @param [Hash] opts the optional parameters
@@ -1288,7 +1288,7 @@ module UltracartClient
1288
1288
  end
1289
1289
 
1290
1290
  # Refund an order
1291
- # Perform a refund operation on an order and then update the order if successful
1291
+ # Perform a refund operation on an order and then update the order if successful. All of the object properties ending in _refunded should be the TOTAL amount that should end up being refunded. UltraCart will calculate the actual amount to refund based upon the prior refunds.
1292
1292
  # @param order Order to refund
1293
1293
  # @param order_id The order id to refund.
1294
1294
  # @param [Hash] opts the optional parameters
@@ -24,6 +24,11 @@ module UltracartClient
24
24
 
25
25
  attr_accessor :health_benefit_card_amount
26
26
 
27
+ attr_accessor :health_benefit_card_balance
28
+
29
+ # Health benefit card requirements
30
+ attr_accessor :health_benefit_card_requirements
31
+
27
32
  attr_accessor :internal_gift_certificate_amount
28
33
 
29
34
  attr_accessor :shipping_handling
@@ -58,6 +63,8 @@ module UltracartClient
58
63
  :'arbitrary_tax_rate' => :'arbitrary_tax_rate',
59
64
  :'arbitrary_taxable_subtotal' => :'arbitrary_taxable_subtotal',
60
65
  :'health_benefit_card_amount' => :'health_benefit_card_amount',
66
+ :'health_benefit_card_balance' => :'health_benefit_card_balance',
67
+ :'health_benefit_card_requirements' => :'health_benefit_card_requirements',
61
68
  :'internal_gift_certificate_amount' => :'internal_gift_certificate_amount',
62
69
  :'shipping_handling' => :'shipping_handling',
63
70
  :'shipping_handling_discount' => :'shipping_handling_discount',
@@ -82,6 +89,8 @@ module UltracartClient
82
89
  :'arbitrary_tax_rate' => :'Currency',
83
90
  :'arbitrary_taxable_subtotal' => :'Currency',
84
91
  :'health_benefit_card_amount' => :'Currency',
92
+ :'health_benefit_card_balance' => :'Currency',
93
+ :'health_benefit_card_requirements' => :'String',
85
94
  :'internal_gift_certificate_amount' => :'Currency',
86
95
  :'shipping_handling' => :'Currency',
87
96
  :'shipping_handling_discount' => :'Currency',
@@ -126,6 +135,14 @@ module UltracartClient
126
135
  self.health_benefit_card_amount = attributes[:'health_benefit_card_amount']
127
136
  end
128
137
 
138
+ if attributes.has_key?(:'health_benefit_card_balance')
139
+ self.health_benefit_card_balance = attributes[:'health_benefit_card_balance']
140
+ end
141
+
142
+ if attributes.has_key?(:'health_benefit_card_requirements')
143
+ self.health_benefit_card_requirements = attributes[:'health_benefit_card_requirements']
144
+ end
145
+
129
146
  if attributes.has_key?(:'internal_gift_certificate_amount')
130
147
  self.internal_gift_certificate_amount = attributes[:'internal_gift_certificate_amount']
131
148
  end
@@ -202,6 +219,8 @@ module UltracartClient
202
219
  arbitrary_tax_rate == o.arbitrary_tax_rate &&
203
220
  arbitrary_taxable_subtotal == o.arbitrary_taxable_subtotal &&
204
221
  health_benefit_card_amount == o.health_benefit_card_amount &&
222
+ health_benefit_card_balance == o.health_benefit_card_balance &&
223
+ health_benefit_card_requirements == o.health_benefit_card_requirements &&
205
224
  internal_gift_certificate_amount == o.internal_gift_certificate_amount &&
206
225
  shipping_handling == o.shipping_handling &&
207
226
  shipping_handling_discount == o.shipping_handling_discount &&
@@ -226,7 +245,7 @@ module UltracartClient
226
245
  # Calculates hash code according to all attributes.
227
246
  # @return [Fixnum] Hash code
228
247
  def hash
229
- [arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, health_benefit_card_amount, internal_gift_certificate_amount, shipping_handling, shipping_handling_discount, shipping_handling_with_discount, subtotal, subtotal_discount, subtotal_with_discount, surcharge, tax, taxable_subtotal, taxable_subtotal_discount, taxable_subtotal_with_discount, total].hash
248
+ [arbitrary_shipping_handling_total, arbitrary_tax, arbitrary_tax_rate, arbitrary_taxable_subtotal, health_benefit_card_amount, health_benefit_card_balance, health_benefit_card_requirements, internal_gift_certificate_amount, shipping_handling, shipping_handling_discount, shipping_handling_with_discount, subtotal, subtotal_discount, subtotal_with_discount, surcharge, tax, taxable_subtotal, taxable_subtotal_discount, taxable_subtotal_with_discount, total].hash
230
249
  end
231
250
 
232
251
  # Builds the object from hash
@@ -37,6 +37,9 @@ module UltracartClient
37
37
  # Date/time that the workflow task should delay until
38
38
  attr_accessor :delay_until_dts
39
39
 
40
+ # Dependant Workflow Task UUID (must be completed before this task can be completed)
41
+ attr_accessor :dependant_workflow_task_uuid
42
+
40
43
  # Date/time that the workflow task is due
41
44
  attr_accessor :due_dts
42
45
 
@@ -67,9 +70,18 @@ module UltracartClient
67
70
  # Priority
68
71
  attr_accessor :priority
69
72
 
73
+ # Related Workflow Task UUID
74
+ attr_accessor :related_workflow_task_uuid
75
+
70
76
  # Status of the workflow task
71
77
  attr_accessor :status
72
78
 
79
+ # Tags
80
+ attr_accessor :tags
81
+
82
+ # User friendly string of the task context
83
+ attr_accessor :task_context
84
+
73
85
  # Task Details
74
86
  attr_accessor :task_details
75
87
 
@@ -112,6 +124,7 @@ module UltracartClient
112
124
  :'created_by' => :'created_by',
113
125
  :'created_dts' => :'created_dts',
114
126
  :'delay_until_dts' => :'delay_until_dts',
127
+ :'dependant_workflow_task_uuid' => :'dependant_workflow_task_uuid',
115
128
  :'due_dts' => :'due_dts',
116
129
  :'histories' => :'histories',
117
130
  :'last_update_dts' => :'last_update_dts',
@@ -122,7 +135,10 @@ module UltracartClient
122
135
  :'object_type' => :'object_type',
123
136
  :'object_url' => :'object_url',
124
137
  :'priority' => :'priority',
138
+ :'related_workflow_task_uuid' => :'related_workflow_task_uuid',
125
139
  :'status' => :'status',
140
+ :'tags' => :'tags',
141
+ :'task_context' => :'task_context',
126
142
  :'task_details' => :'task_details',
127
143
  :'task_name' => :'task_name',
128
144
  :'workflow_task_uuid' => :'workflow_task_uuid'
@@ -140,6 +156,7 @@ module UltracartClient
140
156
  :'created_by' => :'WorkflowUser',
141
157
  :'created_dts' => :'String',
142
158
  :'delay_until_dts' => :'String',
159
+ :'dependant_workflow_task_uuid' => :'String',
143
160
  :'due_dts' => :'String',
144
161
  :'histories' => :'Array<WorkflowTaskHistory>',
145
162
  :'last_update_dts' => :'String',
@@ -150,7 +167,10 @@ module UltracartClient
150
167
  :'object_type' => :'String',
151
168
  :'object_url' => :'String',
152
169
  :'priority' => :'String',
170
+ :'related_workflow_task_uuid' => :'String',
153
171
  :'status' => :'String',
172
+ :'tags' => :'Array<String>',
173
+ :'task_context' => :'String',
154
174
  :'task_details' => :'String',
155
175
  :'task_name' => :'String',
156
176
  :'workflow_task_uuid' => :'String'
@@ -199,6 +219,10 @@ module UltracartClient
199
219
  self.delay_until_dts = attributes[:'delay_until_dts']
200
220
  end
201
221
 
222
+ if attributes.has_key?(:'dependant_workflow_task_uuid')
223
+ self.dependant_workflow_task_uuid = attributes[:'dependant_workflow_task_uuid']
224
+ end
225
+
202
226
  if attributes.has_key?(:'due_dts')
203
227
  self.due_dts = attributes[:'due_dts']
204
228
  end
@@ -243,10 +267,24 @@ module UltracartClient
243
267
  self.priority = attributes[:'priority']
244
268
  end
245
269
 
270
+ if attributes.has_key?(:'related_workflow_task_uuid')
271
+ self.related_workflow_task_uuid = attributes[:'related_workflow_task_uuid']
272
+ end
273
+
246
274
  if attributes.has_key?(:'status')
247
275
  self.status = attributes[:'status']
248
276
  end
249
277
 
278
+ if attributes.has_key?(:'tags')
279
+ if (value = attributes[:'tags']).is_a?(Array)
280
+ self.tags = value
281
+ end
282
+ end
283
+
284
+ if attributes.has_key?(:'task_context')
285
+ self.task_context = attributes[:'task_context']
286
+ end
287
+
250
288
  if attributes.has_key?(:'task_details')
251
289
  self.task_details = attributes[:'task_details']
252
290
  end
@@ -270,7 +308,7 @@ module UltracartClient
270
308
  # Check to see if the all the properties in the model are valid
271
309
  # @return true if the model is valid
272
310
  def valid?
273
- object_type_validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile'])
311
+ object_type_validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile', 'storefront'])
274
312
  return false unless object_type_validator.valid?(@object_type)
275
313
  priority_validator = EnumAttributeValidator.new('String', ['1 - low', '2 - medium', '3 - high', '4 - critical'])
276
314
  return false unless priority_validator.valid?(@priority)
@@ -282,7 +320,7 @@ module UltracartClient
282
320
  # Custom attribute writer method checking allowed values (enum).
283
321
  # @param [Object] object_type Object to be assigned
284
322
  def object_type=(object_type)
285
- validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile'])
323
+ validator = EnumAttributeValidator.new('String', ['order', 'auto order', 'item', 'customer profile', 'storefront'])
286
324
  unless validator.valid?(object_type)
287
325
  fail ArgumentError, 'invalid value for "object_type", must be one of #{validator.allowable_values}.'
288
326
  end
@@ -322,6 +360,7 @@ module UltracartClient
322
360
  created_by == o.created_by &&
323
361
  created_dts == o.created_dts &&
324
362
  delay_until_dts == o.delay_until_dts &&
363
+ dependant_workflow_task_uuid == o.dependant_workflow_task_uuid &&
325
364
  due_dts == o.due_dts &&
326
365
  histories == o.histories &&
327
366
  last_update_dts == o.last_update_dts &&
@@ -332,7 +371,10 @@ module UltracartClient
332
371
  object_type == o.object_type &&
333
372
  object_url == o.object_url &&
334
373
  priority == o.priority &&
374
+ related_workflow_task_uuid == o.related_workflow_task_uuid &&
335
375
  status == o.status &&
376
+ tags == o.tags &&
377
+ task_context == o.task_context &&
336
378
  task_details == o.task_details &&
337
379
  task_name == o.task_name &&
338
380
  workflow_task_uuid == o.workflow_task_uuid
@@ -347,7 +389,7 @@ module UltracartClient
347
389
  # Calculates hash code according to all attributes.
348
390
  # @return [Fixnum] Hash code
349
391
  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
392
+ [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, related_workflow_task_uuid, status, tags, task_context, task_details, task_name, workflow_task_uuid].hash
351
393
  end
352
394
 
353
395
  # 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.179'
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.179
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-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus