ultracart_api 4.0.194 → 4.0.196

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: 3c55f53122912472b5f1486d5873c6e8855d3f77e9c36266b389b4e185845b44
4
+ data.tar.gz: 8f2918ed1962e0d4783034f8608fb7cd00b12bd043ce0b0f66a3f95dfdd9df7b
5
5
  SHA512:
6
- metadata.gz: 5d53b4d9864069679cc278a9fa0a3ebe8ee4729e9ce1b3ac718f95c284302a87a3d6fb177abb91f926ff3e048fa42f126b71cd412817dba651056afb9ae1b426
7
- data.tar.gz: dfee6303b751ce955b07784ac7b1ff53974d2ad926f14ce1bc8819759bd915db4ab6dd318bf47cd530104e9efa4d41cfcca9794eb5c9298e57669394b931937b
6
+ metadata.gz: a91867ba183e2426b47ca233a47c1499cd7108a39aa42a223d6daec7f9b7a05506a5209d273c48cf70fbcbb1eac3f2a0649c261adaa967663229e3586a755f10
7
+ data.tar.gz: 23a19c9840ebf972664d36bf7fa0ac8cad3c6be3f8132cd47495f43ceadad8dc9e61171bfd0ed3acc2068d87d5fb81f11725429c83a2b53abfdc0f50e425fa7a
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.196
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.196.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.196.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.196'
37
37
 
38
38
  ### Install from Git
39
39
 
@@ -1406,6 +1406,8 @@ Not every change is committed to every SDK.
1406
1406
 
1407
1407
  | Version | Date | Comments |
1408
1408
  | --: | :-: | --- |
1409
+ | 4.0.196 | 01/10/2024 | workflow task - add uuids of related tasks and tags |
1410
+ | 4.0.195 | 01/03/2024 | workflow - add task_context field to task obj |
1409
1411
  | 4.0.194 | 12/15/2023 | bug fix on bad docs breaking yaml schema |
1410
1412
  | 4.0.193 | 12/12/2023 | webhook - added event ruler property |
1411
1413
  | 4.0.192 | 11/21/2023 | coupons - addl support on tiered amount/percent off items |
data/docs/CartSummary.md CHANGED
@@ -9,6 +9,8 @@
9
9
  | **arbitrary_tax_rate** | [**Currency**](Currency.md) | | [optional] |
10
10
  | **arbitrary_taxable_subtotal** | [**Currency**](Currency.md) | | [optional] |
11
11
  | **health_benefit_card_amount** | [**Currency**](Currency.md) | | [optional] |
12
+ | **health_benefit_card_balance** | [**Currency**](Currency.md) | | [optional] |
13
+ | **health_benefit_card_requirements** | **String** | Health benefit card requirements | [optional] |
12
14
  | **internal_gift_certificate_amount** | [**Currency**](Currency.md) | | [optional] |
13
15
  | **shipping_handling** | [**Currency**](Currency.md) | | [optional] |
14
16
  | **shipping_handling_discount** | [**Currency**](Currency.md) | | [optional] |
@@ -34,6 +36,8 @@ instance = UltracartClient::CartSummary.new(
34
36
  arbitrary_tax_rate: null,
35
37
  arbitrary_taxable_subtotal: null,
36
38
  health_benefit_card_amount: null,
39
+ health_benefit_card_balance: null,
40
+ health_benefit_card_requirements: null,
37
41
  internal_gift_certificate_amount: null,
38
42
  shipping_handling: null,
39
43
  shipping_handling_discount: null,
data/docs/OrderApi.md CHANGED
@@ -1565,7 +1565,7 @@ end
1565
1565
 
1566
1566
  Refund an order
1567
1567
 
1568
- Perform a refund operation on an order and then update the order if successful
1568
+ 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.
1569
1569
 
1570
1570
  ### Examples
1571
1571
 
data/docs/WorkflowTask.md CHANGED
@@ -12,6 +12,7 @@
12
12
  | **created_by** | [**WorkflowUser**](WorkflowUser.md) | | [optional] |
13
13
  | **created_dts** | **String** | Date/time that the workflow task was created | [optional] |
14
14
  | **delay_until_dts** | **String** | Date/time that the workflow task should delay until | [optional] |
15
+ | **dependant_workflow_task_uuid** | **String** | Dependant Workflow Task UUID (must be completed before this task can be completed) | [optional] |
15
16
  | **due_dts** | **String** | Date/time that the workflow task is due | [optional] |
16
17
  | **histories** | [**Array<WorkflowTaskHistory>**](WorkflowTaskHistory.md) | Array of history records for the task | [optional] |
17
18
  | **last_update_dts** | **String** | Date/time that the workflow task was last updated | [optional] |
@@ -22,7 +23,10 @@
22
23
  | **object_type** | **String** | Object Type | [optional] |
23
24
  | **object_url** | **String** | Object URL | [optional] |
24
25
  | **priority** | **String** | Priority | [optional] |
26
+ | **related_workflow_task_uuid** | **String** | Related Workflow Task UUID | [optional] |
25
27
  | **status** | **String** | Status of the workflow task | [optional] |
28
+ | **tags** | **Array<String>** | Tags | [optional] |
29
+ | **task_context** | **String** | User friendly string of the task context | [optional] |
26
30
  | **task_details** | **String** | Task Details | [optional] |
27
31
  | **task_name** | **String** | Task Name | [optional] |
28
32
  | **workflow_task_uuid** | **String** | Workflow Task UUID | [optional] |
@@ -41,6 +45,7 @@ instance = UltracartClient::WorkflowTask.new(
41
45
  created_by: null,
42
46
  created_dts: null,
43
47
  delay_until_dts: null,
48
+ dependant_workflow_task_uuid: null,
44
49
  due_dts: null,
45
50
  histories: null,
46
51
  last_update_dts: null,
@@ -51,7 +56,10 @@ instance = UltracartClient::WorkflowTask.new(
51
56
  object_type: null,
52
57
  object_url: null,
53
58
  priority: null,
59
+ related_workflow_task_uuid: null,
54
60
  status: null,
61
+ tags: null,
62
+ task_context: null,
55
63
  task_details: null,
56
64
  task_name: null,
57
65
  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
  )
@@ -1481,7 +1481,7 @@ module UltracartClient
1481
1481
  end
1482
1482
 
1483
1483
  # Refund an order
1484
- # Perform a refund operation on an order and then update the order if successful
1484
+ # 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.
1485
1485
  # @param order_id [String] The order id to refund.
1486
1486
  # @param order [Order] Order to refund
1487
1487
  # @param [Hash] opts the optional parameters
@@ -1499,7 +1499,7 @@ module UltracartClient
1499
1499
  end
1500
1500
 
1501
1501
  # Refund an order
1502
- # Perform a refund operation on an order and then update the order if successful
1502
+ # 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.
1503
1503
  # @param order_id [String] The order id to refund.
1504
1504
  # @param order [Order] Order to refund
1505
1505
  # @param [Hash] opts the optional parameters
@@ -25,6 +25,11 @@ module UltracartClient
25
25
 
26
26
  attr_accessor :health_benefit_card_amount
27
27
 
28
+ attr_accessor :health_benefit_card_balance
29
+
30
+ # Health benefit card requirements
31
+ attr_accessor :health_benefit_card_requirements
32
+
28
33
  attr_accessor :internal_gift_certificate_amount
29
34
 
30
35
  attr_accessor :shipping_handling
@@ -59,6 +64,8 @@ module UltracartClient
59
64
  :'arbitrary_tax_rate' => :'arbitrary_tax_rate',
60
65
  :'arbitrary_taxable_subtotal' => :'arbitrary_taxable_subtotal',
61
66
  :'health_benefit_card_amount' => :'health_benefit_card_amount',
67
+ :'health_benefit_card_balance' => :'health_benefit_card_balance',
68
+ :'health_benefit_card_requirements' => :'health_benefit_card_requirements',
62
69
  :'internal_gift_certificate_amount' => :'internal_gift_certificate_amount',
63
70
  :'shipping_handling' => :'shipping_handling',
64
71
  :'shipping_handling_discount' => :'shipping_handling_discount',
@@ -88,6 +95,8 @@ module UltracartClient
88
95
  :'arbitrary_tax_rate' => :'Currency',
89
96
  :'arbitrary_taxable_subtotal' => :'Currency',
90
97
  :'health_benefit_card_amount' => :'Currency',
98
+ :'health_benefit_card_balance' => :'Currency',
99
+ :'health_benefit_card_requirements' => :'String',
91
100
  :'internal_gift_certificate_amount' => :'Currency',
92
101
  :'shipping_handling' => :'Currency',
93
102
  :'shipping_handling_discount' => :'Currency',
@@ -145,6 +154,14 @@ module UltracartClient
145
154
  self.health_benefit_card_amount = attributes[:'health_benefit_card_amount']
146
155
  end
147
156
 
157
+ if attributes.key?(:'health_benefit_card_balance')
158
+ self.health_benefit_card_balance = attributes[:'health_benefit_card_balance']
159
+ end
160
+
161
+ if attributes.key?(:'health_benefit_card_requirements')
162
+ self.health_benefit_card_requirements = attributes[:'health_benefit_card_requirements']
163
+ end
164
+
148
165
  if attributes.key?(:'internal_gift_certificate_amount')
149
166
  self.internal_gift_certificate_amount = attributes[:'internal_gift_certificate_amount']
150
167
  end
@@ -221,6 +238,8 @@ module UltracartClient
221
238
  arbitrary_tax_rate == o.arbitrary_tax_rate &&
222
239
  arbitrary_taxable_subtotal == o.arbitrary_taxable_subtotal &&
223
240
  health_benefit_card_amount == o.health_benefit_card_amount &&
241
+ health_benefit_card_balance == o.health_benefit_card_balance &&
242
+ health_benefit_card_requirements == o.health_benefit_card_requirements &&
224
243
  internal_gift_certificate_amount == o.internal_gift_certificate_amount &&
225
244
  shipping_handling == o.shipping_handling &&
226
245
  shipping_handling_discount == o.shipping_handling_discount &&
@@ -245,7 +264,7 @@ module UltracartClient
245
264
  # Calculates hash code according to all attributes.
246
265
  # @return [Integer] Hash code
247
266
  def hash
248
- [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
267
+ [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
249
268
  end
250
269
 
251
270
  # Builds the object from hash
@@ -38,6 +38,9 @@ module UltracartClient
38
38
  # Date/time that the workflow task should delay until
39
39
  attr_accessor :delay_until_dts
40
40
 
41
+ # Dependant Workflow Task UUID (must be completed before this task can be completed)
42
+ attr_accessor :dependant_workflow_task_uuid
43
+
41
44
  # Date/time that the workflow task is due
42
45
  attr_accessor :due_dts
43
46
 
@@ -68,9 +71,18 @@ module UltracartClient
68
71
  # Priority
69
72
  attr_accessor :priority
70
73
 
74
+ # Related Workflow Task UUID
75
+ attr_accessor :related_workflow_task_uuid
76
+
71
77
  # Status of the workflow task
72
78
  attr_accessor :status
73
79
 
80
+ # Tags
81
+ attr_accessor :tags
82
+
83
+ # User friendly string of the task context
84
+ attr_accessor :task_context
85
+
74
86
  # Task Details
75
87
  attr_accessor :task_details
76
88
 
@@ -113,6 +125,7 @@ module UltracartClient
113
125
  :'created_by' => :'created_by',
114
126
  :'created_dts' => :'created_dts',
115
127
  :'delay_until_dts' => :'delay_until_dts',
128
+ :'dependant_workflow_task_uuid' => :'dependant_workflow_task_uuid',
116
129
  :'due_dts' => :'due_dts',
117
130
  :'histories' => :'histories',
118
131
  :'last_update_dts' => :'last_update_dts',
@@ -123,7 +136,10 @@ module UltracartClient
123
136
  :'object_type' => :'object_type',
124
137
  :'object_url' => :'object_url',
125
138
  :'priority' => :'priority',
139
+ :'related_workflow_task_uuid' => :'related_workflow_task_uuid',
126
140
  :'status' => :'status',
141
+ :'tags' => :'tags',
142
+ :'task_context' => :'task_context',
127
143
  :'task_details' => :'task_details',
128
144
  :'task_name' => :'task_name',
129
145
  :'workflow_task_uuid' => :'workflow_task_uuid'
@@ -146,6 +162,7 @@ module UltracartClient
146
162
  :'created_by' => :'WorkflowUser',
147
163
  :'created_dts' => :'String',
148
164
  :'delay_until_dts' => :'String',
165
+ :'dependant_workflow_task_uuid' => :'String',
149
166
  :'due_dts' => :'String',
150
167
  :'histories' => :'Array<WorkflowTaskHistory>',
151
168
  :'last_update_dts' => :'String',
@@ -156,7 +173,10 @@ module UltracartClient
156
173
  :'object_type' => :'String',
157
174
  :'object_url' => :'String',
158
175
  :'priority' => :'String',
176
+ :'related_workflow_task_uuid' => :'String',
159
177
  :'status' => :'String',
178
+ :'tags' => :'Array<String>',
179
+ :'task_context' => :'String',
160
180
  :'task_details' => :'String',
161
181
  :'task_name' => :'String',
162
182
  :'workflow_task_uuid' => :'String'
@@ -218,6 +238,10 @@ module UltracartClient
218
238
  self.delay_until_dts = attributes[:'delay_until_dts']
219
239
  end
220
240
 
241
+ if attributes.key?(:'dependant_workflow_task_uuid')
242
+ self.dependant_workflow_task_uuid = attributes[:'dependant_workflow_task_uuid']
243
+ end
244
+
221
245
  if attributes.key?(:'due_dts')
222
246
  self.due_dts = attributes[:'due_dts']
223
247
  end
@@ -262,10 +286,24 @@ module UltracartClient
262
286
  self.priority = attributes[:'priority']
263
287
  end
264
288
 
289
+ if attributes.key?(:'related_workflow_task_uuid')
290
+ self.related_workflow_task_uuid = attributes[:'related_workflow_task_uuid']
291
+ end
292
+
265
293
  if attributes.key?(:'status')
266
294
  self.status = attributes[:'status']
267
295
  end
268
296
 
297
+ if attributes.key?(:'tags')
298
+ if (value = attributes[:'tags']).is_a?(Array)
299
+ self.tags = value
300
+ end
301
+ end
302
+
303
+ if attributes.key?(:'task_context')
304
+ self.task_context = attributes[:'task_context']
305
+ end
306
+
269
307
  if attributes.key?(:'task_details')
270
308
  self.task_details = attributes[:'task_details']
271
309
  end
@@ -289,7 +327,7 @@ module UltracartClient
289
327
  # Check to see if the all the properties in the model are valid
290
328
  # @return true if the model is valid
291
329
  def valid?
292
- object_type_validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile"])
330
+ object_type_validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile", "storefront"])
293
331
  return false unless object_type_validator.valid?(@object_type)
294
332
  priority_validator = EnumAttributeValidator.new('String', ["1 - low", "2 - medium", "3 - high", "4 - critical"])
295
333
  return false unless priority_validator.valid?(@priority)
@@ -301,7 +339,7 @@ module UltracartClient
301
339
  # Custom attribute writer method checking allowed values (enum).
302
340
  # @param [Object] object_type Object to be assigned
303
341
  def object_type=(object_type)
304
- validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile"])
342
+ validator = EnumAttributeValidator.new('String', ["order", "auto order", "item", "customer profile", "storefront"])
305
343
  unless validator.valid?(object_type)
306
344
  fail ArgumentError, "invalid value for \"object_type\", must be one of #{validator.allowable_values}."
307
345
  end
@@ -341,6 +379,7 @@ module UltracartClient
341
379
  created_by == o.created_by &&
342
380
  created_dts == o.created_dts &&
343
381
  delay_until_dts == o.delay_until_dts &&
382
+ dependant_workflow_task_uuid == o.dependant_workflow_task_uuid &&
344
383
  due_dts == o.due_dts &&
345
384
  histories == o.histories &&
346
385
  last_update_dts == o.last_update_dts &&
@@ -351,7 +390,10 @@ module UltracartClient
351
390
  object_type == o.object_type &&
352
391
  object_url == o.object_url &&
353
392
  priority == o.priority &&
393
+ related_workflow_task_uuid == o.related_workflow_task_uuid &&
354
394
  status == o.status &&
395
+ tags == o.tags &&
396
+ task_context == o.task_context &&
355
397
  task_details == o.task_details &&
356
398
  task_name == o.task_name &&
357
399
  workflow_task_uuid == o.workflow_task_uuid
@@ -366,7 +408,7 @@ module UltracartClient
366
408
  # Calculates hash code according to all attributes.
367
409
  # @return [Integer] Hash code
368
410
  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
411
+ [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
370
412
  end
371
413
 
372
414
  # 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.196'
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.196
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