ultracart_rest_api_v2_typescript 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.
- package/README.md +4 -2
- package/dist/apis/OrderApi.d.ts +4 -0
- package/dist/apis/OrderApi.js +6 -0
- package/dist/models/OrderShipping.d.ts +6 -0
- package/dist/models/OrderShipping.js +2 -0
- package/dist/models/ReportDataSet.d.ts +6 -0
- package/dist/models/ReportDataSet.js +2 -0
- package/dist/models/ReportExecuteQueriesRequest.d.ts +6 -0
- package/dist/models/ReportExecuteQueriesRequest.js +2 -0
- package/package.json +1 -1
- package/src/apis/OrderApi.ts +12 -0
- package/src/models/OrderShipping.ts +8 -0
- package/src/models/ReportDataSet.ts +8 -0
- package/src/models/ReportExecuteQueriesRequest.ts +8 -0
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@4.0.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@4.0.161
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [Fetch API](https://fetch.spec.whatwg.org/). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install ultracart_rest_api_v2_typescript@4.0.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@4.0.161 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
|
@@ -54,6 +54,8 @@ Not every change is committed to every SDK.
|
|
|
54
54
|
|
|
55
55
|
| Version | Date | Comments |
|
|
56
56
|
| --: | :-: | --- |
|
|
57
|
+
| 4.0.161 | 06/15/2023 | add pickup_dts to order.shipping object |
|
|
58
|
+
| 4.0.160 | 06/14/2023 | dw bi: add request_dts on the execute queries request and report data set objects |
|
|
57
59
|
| 4.0.159 | 06/09/2023 | distribution center pickup times |
|
|
58
60
|
| 4.0.158 | 06/08/2023 | customer profile qb tax exempt reason code field |
|
|
59
61
|
| 4.0.157 | 06/06/2023 | auto order add_ons |
|
package/dist/apis/OrderApi.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export interface AdjustOrderTotalRequest {
|
|
|
17
17
|
}
|
|
18
18
|
export interface CancelOrderRequest {
|
|
19
19
|
orderId: string;
|
|
20
|
+
lockSelfShipOrders?: boolean;
|
|
21
|
+
skipRefundAndHold?: boolean;
|
|
20
22
|
}
|
|
21
23
|
export interface DeleteOrderRequest {
|
|
22
24
|
orderId: string;
|
|
@@ -167,6 +169,8 @@ export interface OrderApiInterface {
|
|
|
167
169
|
* Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
|
|
168
170
|
* @summary Cancel an order
|
|
169
171
|
* @param {string} orderId The order id to cancel.
|
|
172
|
+
* @param {boolean} [lockSelfShipOrders] Flag to prevent a order shipping during a refund process
|
|
173
|
+
* @param {boolean} [skipRefundAndHold] Skip refund and move order to Held Orders department
|
|
170
174
|
* @param {*} [options] Override http request option.
|
|
171
175
|
* @throws {RequiredError}
|
|
172
176
|
* @memberof OrderApiInterface
|
package/dist/apis/OrderApi.js
CHANGED
|
@@ -151,6 +151,12 @@ var OrderApi = /** @class */ (function (_super) {
|
|
|
151
151
|
throw new runtime.RequiredError('orderId', 'Required parameter requestParameters.orderId was null or undefined when calling cancelOrder.');
|
|
152
152
|
}
|
|
153
153
|
queryParameters = {};
|
|
154
|
+
if (requestParameters.lockSelfShipOrders !== undefined) {
|
|
155
|
+
queryParameters['lock_self_ship_orders'] = requestParameters.lockSelfShipOrders;
|
|
156
|
+
}
|
|
157
|
+
if (requestParameters.skipRefundAndHold !== undefined) {
|
|
158
|
+
queryParameters['skip_refund_and_hold'] = requestParameters.skipRefundAndHold;
|
|
159
|
+
}
|
|
154
160
|
headerParameters = {};
|
|
155
161
|
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
156
162
|
// oauth required
|
|
@@ -107,6 +107,12 @@ export interface OrderShipping {
|
|
|
107
107
|
* @memberof OrderShipping
|
|
108
108
|
*/
|
|
109
109
|
lift_gate?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Date/time the order should be picked up locally.
|
|
112
|
+
* @type {string}
|
|
113
|
+
* @memberof OrderShipping
|
|
114
|
+
*/
|
|
115
|
+
pickup_dts?: string;
|
|
110
116
|
/**
|
|
111
117
|
* Postal code
|
|
112
118
|
* @type {string}
|
|
@@ -41,6 +41,7 @@ function OrderShippingFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
41
41
|
'least_cost_route': !(0, runtime_1.exists)(json, 'least_cost_route') ? undefined : json['least_cost_route'],
|
|
42
42
|
'least_cost_route_shipping_methods': !(0, runtime_1.exists)(json, 'least_cost_route_shipping_methods') ? undefined : json['least_cost_route_shipping_methods'],
|
|
43
43
|
'lift_gate': !(0, runtime_1.exists)(json, 'lift_gate') ? undefined : json['lift_gate'],
|
|
44
|
+
'pickup_dts': !(0, runtime_1.exists)(json, 'pickup_dts') ? undefined : json['pickup_dts'],
|
|
44
45
|
'postal_code': !(0, runtime_1.exists)(json, 'postal_code') ? undefined : json['postal_code'],
|
|
45
46
|
'rma': !(0, runtime_1.exists)(json, 'rma') ? undefined : json['rma'],
|
|
46
47
|
'ship_on_date': !(0, runtime_1.exists)(json, 'ship_on_date') ? undefined : json['ship_on_date'],
|
|
@@ -82,6 +83,7 @@ function OrderShippingToJSON(value) {
|
|
|
82
83
|
'least_cost_route': value.least_cost_route,
|
|
83
84
|
'least_cost_route_shipping_methods': value.least_cost_route_shipping_methods,
|
|
84
85
|
'lift_gate': value.lift_gate,
|
|
86
|
+
'pickup_dts': value.pickup_dts,
|
|
85
87
|
'postal_code': value.postal_code,
|
|
86
88
|
'rma': value.rma,
|
|
87
89
|
'ship_on_date': value.ship_on_date,
|
|
@@ -89,6 +89,12 @@ export interface ReportDataSet {
|
|
|
89
89
|
* @memberof ReportDataSet
|
|
90
90
|
*/
|
|
91
91
|
page_size?: number;
|
|
92
|
+
/**
|
|
93
|
+
* Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
|
|
94
|
+
* @type {string}
|
|
95
|
+
* @memberof ReportDataSet
|
|
96
|
+
*/
|
|
97
|
+
request_dts?: string;
|
|
92
98
|
/**
|
|
93
99
|
* The schema associated with the data set.
|
|
94
100
|
* @type {Array<ReportDataSetSchema>}
|
|
@@ -46,6 +46,7 @@ function ReportDataSetFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
46
46
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
47
47
|
'page_count': !(0, runtime_1.exists)(json, 'page_count') ? undefined : json['page_count'],
|
|
48
48
|
'page_size': !(0, runtime_1.exists)(json, 'page_size') ? undefined : json['page_size'],
|
|
49
|
+
'request_dts': !(0, runtime_1.exists)(json, 'request_dts') ? undefined : json['request_dts'],
|
|
49
50
|
'schema': !(0, runtime_1.exists)(json, 'schema') ? undefined : (json['schema'].map(ReportDataSetSchema_1.ReportDataSetSchemaFromJSON)),
|
|
50
51
|
'security_level': !(0, runtime_1.exists)(json, 'security_level') ? undefined : json['security_level'],
|
|
51
52
|
'timezone': !(0, runtime_1.exists)(json, 'timezone') ? undefined : json['timezone'],
|
|
@@ -73,6 +74,7 @@ function ReportDataSetToJSON(value) {
|
|
|
73
74
|
'merchant_id': value.merchant_id,
|
|
74
75
|
'page_count': value.page_count,
|
|
75
76
|
'page_size': value.page_size,
|
|
77
|
+
'request_dts': value.request_dts,
|
|
76
78
|
'schema': value.schema === undefined ? undefined : (value.schema.map(ReportDataSetSchema_1.ReportDataSetSchemaToJSON)),
|
|
77
79
|
'security_level': value.security_level,
|
|
78
80
|
'timezone': value.timezone,
|
|
@@ -52,6 +52,12 @@ export interface ReportExecuteQueriesRequest {
|
|
|
52
52
|
* @memberof ReportExecuteQueriesRequest
|
|
53
53
|
*/
|
|
54
54
|
queries?: Array<ReportDataSetQuery>;
|
|
55
|
+
/**
|
|
56
|
+
* Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof ReportExecuteQueriesRequest
|
|
59
|
+
*/
|
|
60
|
+
request_dts?: string;
|
|
55
61
|
/**
|
|
56
62
|
* Security level to execute report under
|
|
57
63
|
* @type {string}
|
|
@@ -40,6 +40,7 @@ function ReportExecuteQueriesRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
40
40
|
'default_project_id': !(0, runtime_1.exists)(json, 'default_project_id') ? undefined : json['default_project_id'],
|
|
41
41
|
'merchant_id': !(0, runtime_1.exists)(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
42
42
|
'queries': !(0, runtime_1.exists)(json, 'queries') ? undefined : (json['queries'].map(ReportDataSetQuery_1.ReportDataSetQueryFromJSON)),
|
|
43
|
+
'request_dts': !(0, runtime_1.exists)(json, 'request_dts') ? undefined : json['request_dts'],
|
|
43
44
|
'security_level': !(0, runtime_1.exists)(json, 'security_level') ? undefined : json['security_level'],
|
|
44
45
|
};
|
|
45
46
|
}
|
|
@@ -58,6 +59,7 @@ function ReportExecuteQueriesRequestToJSON(value) {
|
|
|
58
59
|
'default_project_id': value.default_project_id,
|
|
59
60
|
'merchant_id': value.merchant_id,
|
|
60
61
|
'queries': value.queries === undefined ? undefined : (value.queries.map(ReportDataSetQuery_1.ReportDataSetQueryToJSON)),
|
|
62
|
+
'request_dts': value.request_dts,
|
|
61
63
|
'security_level': value.security_level,
|
|
62
64
|
};
|
|
63
65
|
}
|
package/package.json
CHANGED
package/src/apis/OrderApi.ts
CHANGED
|
@@ -90,6 +90,8 @@ export interface AdjustOrderTotalRequest {
|
|
|
90
90
|
|
|
91
91
|
export interface CancelOrderRequest {
|
|
92
92
|
orderId: string;
|
|
93
|
+
lockSelfShipOrders?: boolean;
|
|
94
|
+
skipRefundAndHold?: boolean;
|
|
93
95
|
}
|
|
94
96
|
|
|
95
97
|
export interface DeleteOrderRequest {
|
|
@@ -266,6 +268,8 @@ export interface OrderApiInterface {
|
|
|
266
268
|
* Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
|
|
267
269
|
* @summary Cancel an order
|
|
268
270
|
* @param {string} orderId The order id to cancel.
|
|
271
|
+
* @param {boolean} [lockSelfShipOrders] Flag to prevent a order shipping during a refund process
|
|
272
|
+
* @param {boolean} [skipRefundAndHold] Skip refund and move order to Held Orders department
|
|
269
273
|
* @param {*} [options] Override http request option.
|
|
270
274
|
* @throws {RequiredError}
|
|
271
275
|
* @memberof OrderApiInterface
|
|
@@ -778,6 +782,14 @@ export class OrderApi extends runtime.BaseAPI implements OrderApiInterface {
|
|
|
778
782
|
|
|
779
783
|
const queryParameters: any = {};
|
|
780
784
|
|
|
785
|
+
if (requestParameters.lockSelfShipOrders !== undefined) {
|
|
786
|
+
queryParameters['lock_self_ship_orders'] = requestParameters.lockSelfShipOrders;
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
if (requestParameters.skipRefundAndHold !== undefined) {
|
|
790
|
+
queryParameters['skip_refund_and_hold'] = requestParameters.skipRefundAndHold;
|
|
791
|
+
}
|
|
792
|
+
|
|
781
793
|
const headerParameters: runtime.HTTPHeaders = {};
|
|
782
794
|
|
|
783
795
|
if (this.configuration && this.configuration.accessToken) {
|
|
@@ -122,6 +122,12 @@ export interface OrderShipping {
|
|
|
122
122
|
* @memberof OrderShipping
|
|
123
123
|
*/
|
|
124
124
|
lift_gate?: boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Date/time the order should be picked up locally.
|
|
127
|
+
* @type {string}
|
|
128
|
+
* @memberof OrderShipping
|
|
129
|
+
*/
|
|
130
|
+
pickup_dts?: string;
|
|
125
131
|
/**
|
|
126
132
|
* Postal code
|
|
127
133
|
* @type {string}
|
|
@@ -239,6 +245,7 @@ export function OrderShippingFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
239
245
|
'least_cost_route': !exists(json, 'least_cost_route') ? undefined : json['least_cost_route'],
|
|
240
246
|
'least_cost_route_shipping_methods': !exists(json, 'least_cost_route_shipping_methods') ? undefined : json['least_cost_route_shipping_methods'],
|
|
241
247
|
'lift_gate': !exists(json, 'lift_gate') ? undefined : json['lift_gate'],
|
|
248
|
+
'pickup_dts': !exists(json, 'pickup_dts') ? undefined : json['pickup_dts'],
|
|
242
249
|
'postal_code': !exists(json, 'postal_code') ? undefined : json['postal_code'],
|
|
243
250
|
'rma': !exists(json, 'rma') ? undefined : json['rma'],
|
|
244
251
|
'ship_on_date': !exists(json, 'ship_on_date') ? undefined : json['ship_on_date'],
|
|
@@ -281,6 +288,7 @@ export function OrderShippingToJSON(value?: OrderShipping | null): any {
|
|
|
281
288
|
'least_cost_route': value.least_cost_route,
|
|
282
289
|
'least_cost_route_shipping_methods': value.least_cost_route_shipping_methods,
|
|
283
290
|
'lift_gate': value.lift_gate,
|
|
291
|
+
'pickup_dts': value.pickup_dts,
|
|
284
292
|
'postal_code': value.postal_code,
|
|
285
293
|
'rma': value.rma,
|
|
286
294
|
'ship_on_date': value.ship_on_date,
|
|
@@ -104,6 +104,12 @@ export interface ReportDataSet {
|
|
|
104
104
|
* @memberof ReportDataSet
|
|
105
105
|
*/
|
|
106
106
|
page_size?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
|
|
109
|
+
* @type {string}
|
|
110
|
+
* @memberof ReportDataSet
|
|
111
|
+
*/
|
|
112
|
+
request_dts?: string;
|
|
107
113
|
/**
|
|
108
114
|
* The schema associated with the data set.
|
|
109
115
|
* @type {Array<ReportDataSetSchema>}
|
|
@@ -164,6 +170,7 @@ export function ReportDataSetFromJSONTyped(json: any, ignoreDiscriminator: boole
|
|
|
164
170
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
165
171
|
'page_count': !exists(json, 'page_count') ? undefined : json['page_count'],
|
|
166
172
|
'page_size': !exists(json, 'page_size') ? undefined : json['page_size'],
|
|
173
|
+
'request_dts': !exists(json, 'request_dts') ? undefined : json['request_dts'],
|
|
167
174
|
'schema': !exists(json, 'schema') ? undefined : ((json['schema'] as Array<any>).map(ReportDataSetSchemaFromJSON)),
|
|
168
175
|
'security_level': !exists(json, 'security_level') ? undefined : json['security_level'],
|
|
169
176
|
'timezone': !exists(json, 'timezone') ? undefined : json['timezone'],
|
|
@@ -192,6 +199,7 @@ export function ReportDataSetToJSON(value?: ReportDataSet | null): any {
|
|
|
192
199
|
'merchant_id': value.merchant_id,
|
|
193
200
|
'page_count': value.page_count,
|
|
194
201
|
'page_size': value.page_size,
|
|
202
|
+
'request_dts': value.request_dts,
|
|
195
203
|
'schema': value.schema === undefined ? undefined : ((value.schema as Array<any>).map(ReportDataSetSchemaToJSON)),
|
|
196
204
|
'security_level': value.security_level,
|
|
197
205
|
'timezone': value.timezone,
|
|
@@ -62,6 +62,12 @@ export interface ReportExecuteQueriesRequest {
|
|
|
62
62
|
* @memberof ReportExecuteQueriesRequest
|
|
63
63
|
*/
|
|
64
64
|
queries?: Array<ReportDataSetQuery>;
|
|
65
|
+
/**
|
|
66
|
+
* Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
|
|
67
|
+
* @type {string}
|
|
68
|
+
* @memberof ReportExecuteQueriesRequest
|
|
69
|
+
*/
|
|
70
|
+
request_dts?: string;
|
|
65
71
|
/**
|
|
66
72
|
* Security level to execute report under
|
|
67
73
|
* @type {string}
|
|
@@ -99,6 +105,7 @@ export function ReportExecuteQueriesRequestFromJSONTyped(json: any, ignoreDiscri
|
|
|
99
105
|
'default_project_id': !exists(json, 'default_project_id') ? undefined : json['default_project_id'],
|
|
100
106
|
'merchant_id': !exists(json, 'merchant_id') ? undefined : json['merchant_id'],
|
|
101
107
|
'queries': !exists(json, 'queries') ? undefined : ((json['queries'] as Array<any>).map(ReportDataSetQueryFromJSON)),
|
|
108
|
+
'request_dts': !exists(json, 'request_dts') ? undefined : json['request_dts'],
|
|
102
109
|
'security_level': !exists(json, 'security_level') ? undefined : json['security_level'],
|
|
103
110
|
};
|
|
104
111
|
}
|
|
@@ -118,6 +125,7 @@ export function ReportExecuteQueriesRequestToJSON(value?: ReportExecuteQueriesRe
|
|
|
118
125
|
'default_project_id': value.default_project_id,
|
|
119
126
|
'merchant_id': value.merchant_id,
|
|
120
127
|
'queries': value.queries === undefined ? undefined : ((value.queries as Array<any>).map(ReportDataSetQueryToJSON)),
|
|
128
|
+
'request_dts': value.request_dts,
|
|
121
129
|
'security_level': value.security_level,
|
|
122
130
|
};
|
|
123
131
|
}
|