ultracart_api 4.0.159 → 4.0.161
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 +6 -4
- data/docs/OrderApi.md +10 -4
- data/docs/OrderShipping.md +2 -0
- data/docs/ReportDataSet.md +2 -0
- data/docs/ReportExecuteQueriesRequest.md +2 -0
- data/lib/ultracart_api/api/order_api.rb +6 -0
- data/lib/ultracart_api/models/order_shipping.rb +11 -1
- data/lib/ultracart_api/models/report_data_set.rb +11 -1
- data/lib/ultracart_api/models/report_execute_queries_request.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 494685de448ca7be3aeae8552443e99e60c95ed59103f10e3f75634e068c194d
|
4
|
+
data.tar.gz: 316c79bbdb1518f0ba06543313161ac8e9b01858017a9df219c6c01f9e2a0a6f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d49bac71f6d41b7d1935099ab7f3c3a3cc570348e01b17ce6652d10fd54ef085c41d18c8375492dba1ad69476b71b6a405c7a521a03d42dd19507bd19b05008
|
7
|
+
data.tar.gz: b02ca8e6ba175690c783739b762a9cef6d93982c4ac8a7190b47aa11aa1158bb6d4157f4e9519f1240ca05692308dd163ba9f7f877535fbd3e6fc450d80b48b5
|
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.
|
10
|
+
- Package version: 4.0.161
|
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.
|
27
|
+
gem install ./ultracart_api-4.0.161.gem
|
28
28
|
```
|
29
29
|
|
30
|
-
(for development, run `gem install --dev ./ultracart_api-4.0.
|
30
|
+
(for development, run `gem install --dev ./ultracart_api-4.0.161.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.
|
36
|
+
gem 'ultracart_api', '~> 4.0.161'
|
37
37
|
|
38
38
|
### Install from Git
|
39
39
|
|
@@ -1364,6 +1364,8 @@ Not every change is committed to every SDK.
|
|
1364
1364
|
|
1365
1365
|
| Version | Date | Comments |
|
1366
1366
|
| --: | :-: | --- |
|
1367
|
+
| 4.0.161 | 06/15/2023 | add pickup_dts to order.shipping object |
|
1368
|
+
| 4.0.160 | 06/14/2023 | dw bi: add request_dts on the execute queries request and report data set objects |
|
1367
1369
|
| 4.0.159 | 06/09/2023 | distribution center pickup times |
|
1368
1370
|
| 4.0.158 | 06/08/2023 | customer profile qb tax exempt reason code field |
|
1369
1371
|
| 4.0.157 | 06/06/2023 | auto order add_ons |
|
data/docs/OrderApi.md
CHANGED
@@ -107,7 +107,7 @@ end
|
|
107
107
|
|
108
108
|
## cancel_order
|
109
109
|
|
110
|
-
> <BaseResponse> cancel_order(order_id)
|
110
|
+
> <BaseResponse> cancel_order(order_id, opts)
|
111
111
|
|
112
112
|
Cancel an order
|
113
113
|
|
@@ -128,10 +128,14 @@ require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/
|
|
128
128
|
|
129
129
|
api = UltracartClient::OrderApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
130
130
|
order_id = 'order_id_example' # String | The order id to cancel.
|
131
|
+
opts = {
|
132
|
+
lock_self_ship_orders: true, # Boolean | Flag to prevent a order shipping during a refund process
|
133
|
+
skip_refund_and_hold: true # Boolean | Skip refund and move order to Held Orders department
|
134
|
+
}
|
131
135
|
|
132
136
|
begin
|
133
137
|
# Cancel an order
|
134
|
-
result = api_instance.cancel_order(order_id)
|
138
|
+
result = api_instance.cancel_order(order_id, opts)
|
135
139
|
p result
|
136
140
|
rescue UltracartClient::ApiError => e
|
137
141
|
puts "Error when calling OrderApi->cancel_order: #{e}"
|
@@ -142,12 +146,12 @@ end
|
|
142
146
|
|
143
147
|
This returns an Array which contains the response data, status code and headers.
|
144
148
|
|
145
|
-
> <Array(<BaseResponse>, Integer, Hash)> cancel_order_with_http_info(order_id)
|
149
|
+
> <Array(<BaseResponse>, Integer, Hash)> cancel_order_with_http_info(order_id, opts)
|
146
150
|
|
147
151
|
```ruby
|
148
152
|
begin
|
149
153
|
# Cancel an order
|
150
|
-
data, status_code, headers = api_instance.cancel_order_with_http_info(order_id)
|
154
|
+
data, status_code, headers = api_instance.cancel_order_with_http_info(order_id, opts)
|
151
155
|
p status_code # => 2xx
|
152
156
|
p headers # => { ... }
|
153
157
|
p data # => <BaseResponse>
|
@@ -161,6 +165,8 @@ end
|
|
161
165
|
| Name | Type | Description | Notes |
|
162
166
|
| ---- | ---- | ----------- | ----- |
|
163
167
|
| **order_id** | **String** | The order id to cancel. | |
|
168
|
+
| **lock_self_ship_orders** | **Boolean** | Flag to prevent a order shipping during a refund process | [optional] |
|
169
|
+
| **skip_refund_and_hold** | **Boolean** | Skip refund and move order to Held Orders department | [optional] |
|
164
170
|
|
165
171
|
### Return type
|
166
172
|
|
data/docs/OrderShipping.md
CHANGED
@@ -19,6 +19,7 @@
|
|
19
19
|
| **least_cost_route** | **Boolean** | If true, instructs UltraCart to apply the cheapest shipping method to this order. Used only for channel partner order inserts. | [optional] |
|
20
20
|
| **least_cost_route_shipping_methods** | **Array<String>** | List of shipping methods to consider if least_code_route is true. Used only for channel parter order inserts. | [optional] |
|
21
21
|
| **lift_gate** | **Boolean** | Lift gate requested (LTL shipping methods only) | [optional] |
|
22
|
+
| **pickup_dts** | **String** | Date/time the order should be picked up locally. | [optional] |
|
22
23
|
| **postal_code** | **String** | Postal code | [optional] |
|
23
24
|
| **rma** | **String** | RMA number | [optional] |
|
24
25
|
| **ship_on_date** | **String** | Date the customer is requesting that the order ship on. Typically used for perishable product delivery. | [optional] |
|
@@ -56,6 +57,7 @@ instance = UltracartClient::OrderShipping.new(
|
|
56
57
|
least_cost_route: null,
|
57
58
|
least_cost_route_shipping_methods: null,
|
58
59
|
lift_gate: null,
|
60
|
+
pickup_dts: null,
|
59
61
|
postal_code: null,
|
60
62
|
rma: null,
|
61
63
|
ship_on_date: null,
|
data/docs/ReportDataSet.md
CHANGED
@@ -16,6 +16,7 @@
|
|
16
16
|
| **merchant_id** | **String** | Merchant that owns this data set | [optional] |
|
17
17
|
| **page_count** | **Integer** | The total number of pages in the result set | [optional] |
|
18
18
|
| **page_size** | **Integer** | The size of the pages | [optional] |
|
19
|
+
| **request_dts** | **String** | Date/Time of the client submitted the request. Can be used to resolve out of order query completion results | [optional] |
|
19
20
|
| **schema** | [**Array<ReportDataSetSchema>**](ReportDataSetSchema.md) | The schema associated with the data set. | [optional] |
|
20
21
|
| **security_level** | **String** | Security level this dataset was read from. | [optional] |
|
21
22
|
| **timezone** | **String** | | [optional] |
|
@@ -39,6 +40,7 @@ instance = UltracartClient::ReportDataSet.new(
|
|
39
40
|
merchant_id: null,
|
40
41
|
page_count: null,
|
41
42
|
page_size: null,
|
43
|
+
request_dts: null,
|
42
44
|
schema: null,
|
43
45
|
security_level: null,
|
44
46
|
timezone: null,
|
@@ -10,6 +10,7 @@
|
|
10
10
|
| **default_project_id** | **String** | | [optional] |
|
11
11
|
| **merchant_id** | **String** | | [optional] |
|
12
12
|
| **queries** | [**Array<ReportDataSetQuery>**](ReportDataSetQuery.md) | An array of queries that we want the lambda function to execute. | [optional] |
|
13
|
+
| **request_dts** | **String** | Date/Time of the client submitted the request. Can be used to resolve out of order query completion results | [optional] |
|
13
14
|
| **security_level** | **String** | Security level to execute report under | [optional] |
|
14
15
|
|
15
16
|
## Example
|
@@ -24,6 +25,7 @@ instance = UltracartClient::ReportExecuteQueriesRequest.new(
|
|
24
25
|
default_project_id: null,
|
25
26
|
merchant_id: null,
|
26
27
|
queries: null,
|
28
|
+
request_dts: null,
|
27
29
|
security_level: null
|
28
30
|
)
|
29
31
|
```
|
@@ -106,6 +106,8 @@ module UltracartClient
|
|
106
106
|
# Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
|
107
107
|
# @param order_id [String] The order id to cancel.
|
108
108
|
# @param [Hash] opts the optional parameters
|
109
|
+
# @option opts [Boolean] :lock_self_ship_orders Flag to prevent a order shipping during a refund process
|
110
|
+
# @option opts [Boolean] :skip_refund_and_hold Skip refund and move order to Held Orders department
|
109
111
|
# @return [BaseResponse]
|
110
112
|
def cancel_order(order_id, opts = {})
|
111
113
|
data, _status_code, _headers = cancel_order_with_http_info(order_id, opts)
|
@@ -116,6 +118,8 @@ module UltracartClient
|
|
116
118
|
# Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
|
117
119
|
# @param order_id [String] The order id to cancel.
|
118
120
|
# @param [Hash] opts the optional parameters
|
121
|
+
# @option opts [Boolean] :lock_self_ship_orders Flag to prevent a order shipping during a refund process
|
122
|
+
# @option opts [Boolean] :skip_refund_and_hold Skip refund and move order to Held Orders department
|
119
123
|
# @return [Array<(BaseResponse, Integer, Hash)>] BaseResponse data, response status code and response headers
|
120
124
|
def cancel_order_with_http_info(order_id, opts = {})
|
121
125
|
if @api_client.config.debugging
|
@@ -130,6 +134,8 @@ module UltracartClient
|
|
130
134
|
|
131
135
|
# query parameters
|
132
136
|
query_params = opts[:query_params] || {}
|
137
|
+
query_params[:'lock_self_ship_orders'] = opts[:'lock_self_ship_orders'] if !opts[:'lock_self_ship_orders'].nil?
|
138
|
+
query_params[:'skip_refund_and_hold'] = opts[:'skip_refund_and_hold'] if !opts[:'skip_refund_and_hold'].nil?
|
133
139
|
|
134
140
|
# header parameters
|
135
141
|
header_params = opts[:header_params] || {}
|
@@ -60,6 +60,9 @@ module UltracartClient
|
|
60
60
|
# Lift gate requested (LTL shipping methods only)
|
61
61
|
attr_accessor :lift_gate
|
62
62
|
|
63
|
+
# Date/time the order should be picked up locally.
|
64
|
+
attr_accessor :pickup_dts
|
65
|
+
|
63
66
|
# Postal code
|
64
67
|
attr_accessor :postal_code
|
65
68
|
|
@@ -122,6 +125,7 @@ module UltracartClient
|
|
122
125
|
:'least_cost_route' => :'least_cost_route',
|
123
126
|
:'least_cost_route_shipping_methods' => :'least_cost_route_shipping_methods',
|
124
127
|
:'lift_gate' => :'lift_gate',
|
128
|
+
:'pickup_dts' => :'pickup_dts',
|
125
129
|
:'postal_code' => :'postal_code',
|
126
130
|
:'rma' => :'rma',
|
127
131
|
:'ship_on_date' => :'ship_on_date',
|
@@ -163,6 +167,7 @@ module UltracartClient
|
|
163
167
|
:'least_cost_route' => :'Boolean',
|
164
168
|
:'least_cost_route_shipping_methods' => :'Array<String>',
|
165
169
|
:'lift_gate' => :'Boolean',
|
170
|
+
:'pickup_dts' => :'String',
|
166
171
|
:'postal_code' => :'String',
|
167
172
|
:'rma' => :'String',
|
168
173
|
:'ship_on_date' => :'String',
|
@@ -264,6 +269,10 @@ module UltracartClient
|
|
264
269
|
self.lift_gate = attributes[:'lift_gate']
|
265
270
|
end
|
266
271
|
|
272
|
+
if attributes.key?(:'pickup_dts')
|
273
|
+
self.pickup_dts = attributes[:'pickup_dts']
|
274
|
+
end
|
275
|
+
|
267
276
|
if attributes.key?(:'postal_code')
|
268
277
|
self.postal_code = attributes[:'postal_code']
|
269
278
|
end
|
@@ -617,6 +626,7 @@ module UltracartClient
|
|
617
626
|
least_cost_route == o.least_cost_route &&
|
618
627
|
least_cost_route_shipping_methods == o.least_cost_route_shipping_methods &&
|
619
628
|
lift_gate == o.lift_gate &&
|
629
|
+
pickup_dts == o.pickup_dts &&
|
620
630
|
postal_code == o.postal_code &&
|
621
631
|
rma == o.rma &&
|
622
632
|
ship_on_date == o.ship_on_date &&
|
@@ -643,7 +653,7 @@ module UltracartClient
|
|
643
653
|
# Calculates hash code according to all attributes.
|
644
654
|
# @return [Integer] Hash code
|
645
655
|
def hash
|
646
|
-
[address1, address2, city, company, country_code, day_phone, day_phone_e164, delivery_date, evening_phone, evening_phone_e164, first_name, last_name, least_cost_route, least_cost_route_shipping_methods, lift_gate, postal_code, rma, ship_on_date, ship_to_residential, shipping_3rd_party_account_number, shipping_date, shipping_department_status, shipping_method, shipping_method_accounting_code, special_instructions, state_region, title, tracking_number_details, tracking_numbers, weight].hash
|
656
|
+
[address1, address2, city, company, country_code, day_phone, day_phone_e164, delivery_date, evening_phone, evening_phone_e164, first_name, last_name, least_cost_route, least_cost_route_shipping_methods, lift_gate, pickup_dts, postal_code, rma, ship_on_date, ship_to_residential, shipping_3rd_party_account_number, shipping_date, shipping_department_status, shipping_method, shipping_method_accounting_code, special_instructions, state_region, title, tracking_number_details, tracking_numbers, weight].hash
|
647
657
|
end
|
648
658
|
|
649
659
|
# Builds the object from hash
|
@@ -50,6 +50,9 @@ module UltracartClient
|
|
50
50
|
# The size of the pages
|
51
51
|
attr_accessor :page_size
|
52
52
|
|
53
|
+
# Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
|
54
|
+
attr_accessor :request_dts
|
55
|
+
|
53
56
|
# The schema associated with the data set.
|
54
57
|
attr_accessor :schema
|
55
58
|
|
@@ -98,6 +101,7 @@ module UltracartClient
|
|
98
101
|
:'merchant_id' => :'merchant_id',
|
99
102
|
:'page_count' => :'page_count',
|
100
103
|
:'page_size' => :'page_size',
|
104
|
+
:'request_dts' => :'request_dts',
|
101
105
|
:'schema' => :'schema',
|
102
106
|
:'security_level' => :'security_level',
|
103
107
|
:'timezone' => :'timezone',
|
@@ -125,6 +129,7 @@ module UltracartClient
|
|
125
129
|
:'merchant_id' => :'String',
|
126
130
|
:'page_count' => :'Integer',
|
127
131
|
:'page_size' => :'Integer',
|
132
|
+
:'request_dts' => :'String',
|
128
133
|
:'schema' => :'Array<ReportDataSetSchema>',
|
129
134
|
:'security_level' => :'String',
|
130
135
|
:'timezone' => :'String',
|
@@ -203,6 +208,10 @@ module UltracartClient
|
|
203
208
|
self.page_size = attributes[:'page_size']
|
204
209
|
end
|
205
210
|
|
211
|
+
if attributes.key?(:'request_dts')
|
212
|
+
self.request_dts = attributes[:'request_dts']
|
213
|
+
end
|
214
|
+
|
206
215
|
if attributes.key?(:'schema')
|
207
216
|
if (value = attributes[:'schema']).is_a?(Array)
|
208
217
|
self.schema = value
|
@@ -264,6 +273,7 @@ module UltracartClient
|
|
264
273
|
merchant_id == o.merchant_id &&
|
265
274
|
page_count == o.page_count &&
|
266
275
|
page_size == o.page_size &&
|
276
|
+
request_dts == o.request_dts &&
|
267
277
|
schema == o.schema &&
|
268
278
|
security_level == o.security_level &&
|
269
279
|
timezone == o.timezone &&
|
@@ -279,7 +289,7 @@ module UltracartClient
|
|
279
289
|
# Calculates hash code according to all attributes.
|
280
290
|
# @return [Integer] Hash code
|
281
291
|
def hash
|
282
|
-
[data_set_query_uuid, data_set_uuid, destination_table_id, error_message, executed_sql, for_object_id, for_object_type, initial_pages, max_results, merchant_id, page_count, page_size, schema, security_level, timezone, user_data].hash
|
292
|
+
[data_set_query_uuid, data_set_uuid, destination_table_id, error_message, executed_sql, for_object_id, for_object_type, initial_pages, max_results, merchant_id, page_count, page_size, request_dts, schema, security_level, timezone, user_data].hash
|
283
293
|
end
|
284
294
|
|
285
295
|
# Builds the object from hash
|
@@ -30,6 +30,9 @@ module UltracartClient
|
|
30
30
|
# An array of queries that we want the lambda function to execute.
|
31
31
|
attr_accessor :queries
|
32
32
|
|
33
|
+
# Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
|
34
|
+
attr_accessor :request_dts
|
35
|
+
|
33
36
|
# Security level to execute report under
|
34
37
|
attr_accessor :security_level
|
35
38
|
|
@@ -64,6 +67,7 @@ module UltracartClient
|
|
64
67
|
:'default_project_id' => :'default_project_id',
|
65
68
|
:'merchant_id' => :'merchant_id',
|
66
69
|
:'queries' => :'queries',
|
70
|
+
:'request_dts' => :'request_dts',
|
67
71
|
:'security_level' => :'security_level'
|
68
72
|
}
|
69
73
|
end
|
@@ -82,6 +86,7 @@ module UltracartClient
|
|
82
86
|
:'default_project_id' => :'String',
|
83
87
|
:'merchant_id' => :'String',
|
84
88
|
:'queries' => :'Array<ReportDataSetQuery>',
|
89
|
+
:'request_dts' => :'String',
|
85
90
|
:'security_level' => :'String'
|
86
91
|
}
|
87
92
|
end
|
@@ -133,6 +138,10 @@ module UltracartClient
|
|
133
138
|
end
|
134
139
|
end
|
135
140
|
|
141
|
+
if attributes.key?(:'request_dts')
|
142
|
+
self.request_dts = attributes[:'request_dts']
|
143
|
+
end
|
144
|
+
|
136
145
|
if attributes.key?(:'security_level')
|
137
146
|
self.security_level = attributes[:'security_level']
|
138
147
|
end
|
@@ -174,6 +183,7 @@ module UltracartClient
|
|
174
183
|
default_project_id == o.default_project_id &&
|
175
184
|
merchant_id == o.merchant_id &&
|
176
185
|
queries == o.queries &&
|
186
|
+
request_dts == o.request_dts &&
|
177
187
|
security_level == o.security_level
|
178
188
|
end
|
179
189
|
|
@@ -186,7 +196,7 @@ module UltracartClient
|
|
186
196
|
# Calculates hash code according to all attributes.
|
187
197
|
# @return [Integer] Hash code
|
188
198
|
def hash
|
189
|
-
[client_uuid, connection_id, default_dataset_id, default_project_id, merchant_id, queries, security_level].hash
|
199
|
+
[client_uuid, connection_id, default_dataset_id, default_project_id, merchant_id, queries, request_dts, security_level].hash
|
190
200
|
end
|
191
201
|
|
192
202
|
# Builds the object from hash
|
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.
|
4
|
+
version: 4.0.161
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- UltraCart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-06-
|
11
|
+
date: 2023-06-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|