ultracart_rest_api_v2_typescript 3.10.142 → 3.10.144

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 CHANGED
@@ -1,4 +1,4 @@
1
- ## ultracart_rest_api_v2_typescript@3.10.142
1
+ ## ultracart_rest_api_v2_typescript@3.10.144
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@3.10.142 --save
39
+ npm install ultracart_rest_api_v2_typescript@3.10.144 --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
+ | 3.10.144 | 06/15/2023 | add pickup_dts to order.shipping object |
58
+ | 3.10.143 | 06/14/2023 | dw bi: add request_dts on the execute queries request and report data set objects |
57
59
  | 3.10.142 | 06/09/2023 | distribution center pickup times |
58
60
  | 3.10.141 | 06/08/2023 | customer profile qb tax exempt reason code field |
59
61
  | 3.10.140 | 06/06/2023 | auto order add_ons |
package/api.ts CHANGED
@@ -32338,6 +32338,12 @@ export interface OrderShipping {
32338
32338
  * @memberof OrderShipping
32339
32339
  */
32340
32340
  lift_gate?: boolean;
32341
+ /**
32342
+ * Date/time the order should be picked up locally.
32343
+ * @type {string}
32344
+ * @memberof OrderShipping
32345
+ */
32346
+ pickup_dts?: string;
32341
32347
  /**
32342
32348
  * Postal code
32343
32349
  * @type {string}
@@ -33953,6 +33959,12 @@ export interface ReportDataSet {
33953
33959
  * @memberof ReportDataSet
33954
33960
  */
33955
33961
  page_size?: number;
33962
+ /**
33963
+ * Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
33964
+ * @type {string}
33965
+ * @memberof ReportDataSet
33966
+ */
33967
+ request_dts?: string;
33956
33968
  /**
33957
33969
  * The schema associated with the data set.
33958
33970
  * @type {Array<ReportDataSetSchema>}
@@ -34563,6 +34575,12 @@ export interface ReportExecuteQueriesRequest {
34563
34575
  * @memberof ReportExecuteQueriesRequest
34564
34576
  */
34565
34577
  queries?: Array<ReportDataSetQuery>;
34578
+ /**
34579
+ * Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
34580
+ * @type {string}
34581
+ * @memberof ReportExecuteQueriesRequest
34582
+ */
34583
+ request_dts?: string;
34566
34584
  /**
34567
34585
  * Security level to execute report under
34568
34586
  * @type {string}
@@ -61325,10 +61343,12 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
61325
61343
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
61326
61344
  * @summary Cancel an order
61327
61345
  * @param {string} order_id The order id to cancel.
61346
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
61347
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
61328
61348
  * @param {*} [options] Override http request option.
61329
61349
  * @throws {RequiredError}
61330
61350
  */
61331
- cancelOrder(order_id: string, options: any = {}): FetchArgs {
61351
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options: any = {}): FetchArgs {
61332
61352
  // verify required parameter 'order_id' is not null or undefined
61333
61353
  if (order_id === null || order_id === undefined) {
61334
61354
  throw new RequiredError('order_id','Required parameter order_id was null or undefined when calling cancelOrder.');
@@ -61363,6 +61383,14 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
61363
61383
  localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
61364
61384
  }
61365
61385
 
61386
+ if (lock_self_ship_orders !== undefined) {
61387
+ localVarQueryParameter['lock_self_ship_orders'] = lock_self_ship_orders;
61388
+ }
61389
+
61390
+ if (skip_refund_and_hold !== undefined) {
61391
+ localVarQueryParameter['skip_refund_and_hold'] = skip_refund_and_hold;
61392
+ }
61393
+
61366
61394
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
61367
61395
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
61368
61396
  delete localVarUrlObj.search;
@@ -62954,11 +62982,13 @@ export const OrderApiFp = function(configuration?: Configuration) {
62954
62982
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
62955
62983
  * @summary Cancel an order
62956
62984
  * @param {string} order_id The order id to cancel.
62985
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
62986
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
62957
62987
  * @param {*} [options] Override http request option.
62958
62988
  * @throws {RequiredError}
62959
62989
  */
62960
- cancelOrder(order_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BaseResponse> {
62961
- const localVarFetchArgs = OrderApiFetchParamCreator(configuration).cancelOrder(order_id, options);
62990
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BaseResponse> {
62991
+ const localVarFetchArgs = OrderApiFetchParamCreator(configuration).cancelOrder(order_id, lock_self_ship_orders, skip_refund_and_hold, options);
62962
62992
  return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
62963
62993
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
62964
62994
 
@@ -63552,11 +63582,13 @@ export const OrderApiFactory = function (configuration?: Configuration, fetch?:
63552
63582
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
63553
63583
  * @summary Cancel an order
63554
63584
  * @param {string} order_id The order id to cancel.
63585
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
63586
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
63555
63587
  * @param {*} [options] Override http request option.
63556
63588
  * @throws {RequiredError}
63557
63589
  */
63558
- cancelOrder(order_id: string, options?: any) {
63559
- return OrderApiFp(configuration).cancelOrder(order_id, options)(fetch, basePath);
63590
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any) {
63591
+ return OrderApiFp(configuration).cancelOrder(order_id, lock_self_ship_orders, skip_refund_and_hold, options)(fetch, basePath);
63560
63592
  },
63561
63593
  /**
63562
63594
  * Delete an order on the UltraCart account.
@@ -63875,11 +63907,13 @@ export interface OrderApiInterface {
63875
63907
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
63876
63908
  * @summary Cancel an order
63877
63909
  * @param {string} order_id The order id to cancel.
63910
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
63911
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
63878
63912
  * @param {*} [options] Override http request option.
63879
63913
  * @throws {RequiredError}
63880
63914
  * @memberof OrderApiInterface
63881
63915
  */
63882
- cancelOrder(order_id: string, options?: any): Promise<BaseResponse>;
63916
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any): Promise<BaseResponse>;
63883
63917
 
63884
63918
  /**
63885
63919
  * Delete an order on the UltraCart account.
@@ -64200,12 +64234,14 @@ export class OrderApi extends BaseAPI implements OrderApiInterface {
64200
64234
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
64201
64235
  * @summary Cancel an order
64202
64236
  * @param {string} order_id The order id to cancel.
64237
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
64238
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
64203
64239
  * @param {*} [options] Override http request option.
64204
64240
  * @throws {RequiredError}
64205
64241
  * @memberof OrderApi
64206
64242
  */
64207
- public cancelOrder(order_id: string, options?: any) {
64208
- return OrderApiFp(this.configuration).cancelOrder(order_id, options)(this.fetch, this.basePath);
64243
+ public cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any) {
64244
+ return OrderApiFp(this.configuration).cancelOrder(order_id, lock_self_ship_orders, skip_refund_and_hold, options)(this.fetch, this.basePath);
64209
64245
  }
64210
64246
 
64211
64247
  /**
package/dist/api.d.ts CHANGED
@@ -31657,6 +31657,12 @@ export interface OrderShipping {
31657
31657
  * @memberof OrderShipping
31658
31658
  */
31659
31659
  lift_gate?: boolean;
31660
+ /**
31661
+ * Date/time the order should be picked up locally.
31662
+ * @type {string}
31663
+ * @memberof OrderShipping
31664
+ */
31665
+ pickup_dts?: string;
31660
31666
  /**
31661
31667
  * Postal code
31662
31668
  * @type {string}
@@ -33246,6 +33252,12 @@ export interface ReportDataSet {
33246
33252
  * @memberof ReportDataSet
33247
33253
  */
33248
33254
  page_size?: number;
33255
+ /**
33256
+ * Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
33257
+ * @type {string}
33258
+ * @memberof ReportDataSet
33259
+ */
33260
+ request_dts?: string;
33249
33261
  /**
33250
33262
  * The schema associated with the data set.
33251
33263
  * @type {Array<ReportDataSetSchema>}
@@ -33839,6 +33851,12 @@ export interface ReportExecuteQueriesRequest {
33839
33851
  * @memberof ReportExecuteQueriesRequest
33840
33852
  */
33841
33853
  queries?: Array<ReportDataSetQuery>;
33854
+ /**
33855
+ * Date/Time of the client submitted the request. Can be used to resolve out of order query completion results
33856
+ * @type {string}
33857
+ * @memberof ReportExecuteQueriesRequest
33858
+ */
33859
+ request_dts?: string;
33842
33860
  /**
33843
33861
  * Security level to execute report under
33844
33862
  * @type {string}
@@ -48298,10 +48316,12 @@ export declare const OrderApiFetchParamCreator: (configuration?: Configuration)
48298
48316
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
48299
48317
  * @summary Cancel an order
48300
48318
  * @param {string} order_id The order id to cancel.
48319
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
48320
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
48301
48321
  * @param {*} [options] Override http request option.
48302
48322
  * @throws {RequiredError}
48303
48323
  */
48304
- cancelOrder(order_id: string, options?: any): FetchArgs;
48324
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any): FetchArgs;
48305
48325
  /**
48306
48326
  * Delete an order on the UltraCart account.
48307
48327
  * @summary Delete an order
@@ -48566,10 +48586,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
48566
48586
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
48567
48587
  * @summary Cancel an order
48568
48588
  * @param {string} order_id The order id to cancel.
48589
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
48590
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
48569
48591
  * @param {*} [options] Override http request option.
48570
48592
  * @throws {RequiredError}
48571
48593
  */
48572
- cancelOrder(order_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BaseResponse>;
48594
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BaseResponse>;
48573
48595
  /**
48574
48596
  * Delete an order on the UltraCart account.
48575
48597
  * @summary Delete an order
@@ -48834,10 +48856,12 @@ export declare const OrderApiFactory: (configuration?: Configuration, fetch?: Fe
48834
48856
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
48835
48857
  * @summary Cancel an order
48836
48858
  * @param {string} order_id The order id to cancel.
48859
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
48860
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
48837
48861
  * @param {*} [options] Override http request option.
48838
48862
  * @throws {RequiredError}
48839
48863
  */
48840
- cancelOrder(order_id: string, options?: any): Promise<BaseResponse>;
48864
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any): Promise<BaseResponse>;
48841
48865
  /**
48842
48866
  * Delete an order on the UltraCart account.
48843
48867
  * @summary Delete an order
@@ -49104,11 +49128,13 @@ export interface OrderApiInterface {
49104
49128
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
49105
49129
  * @summary Cancel an order
49106
49130
  * @param {string} order_id The order id to cancel.
49131
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
49132
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
49107
49133
  * @param {*} [options] Override http request option.
49108
49134
  * @throws {RequiredError}
49109
49135
  * @memberof OrderApiInterface
49110
49136
  */
49111
- cancelOrder(order_id: string, options?: any): Promise<BaseResponse>;
49137
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any): Promise<BaseResponse>;
49112
49138
  /**
49113
49139
  * Delete an order on the UltraCart account.
49114
49140
  * @summary Delete an order
@@ -49400,11 +49426,13 @@ export declare class OrderApi extends BaseAPI implements OrderApiInterface {
49400
49426
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
49401
49427
  * @summary Cancel an order
49402
49428
  * @param {string} order_id The order id to cancel.
49429
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
49430
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
49403
49431
  * @param {*} [options] Override http request option.
49404
49432
  * @throws {RequiredError}
49405
49433
  * @memberof OrderApi
49406
49434
  */
49407
- cancelOrder(order_id: string, options?: any): Promise<BaseResponse>;
49435
+ cancelOrder(order_id: string, lock_self_ship_orders?: boolean, skip_refund_and_hold?: boolean, options?: any): Promise<BaseResponse>;
49408
49436
  /**
49409
49437
  * Delete an order on the UltraCart account.
49410
49438
  * @summary Delete an order
package/dist/api.js CHANGED
@@ -19072,10 +19072,12 @@ var OrderApiFetchParamCreator = function (configuration) {
19072
19072
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
19073
19073
  * @summary Cancel an order
19074
19074
  * @param {string} order_id The order id to cancel.
19075
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
19076
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
19075
19077
  * @param {*} [options] Override http request option.
19076
19078
  * @throws {RequiredError}
19077
19079
  */
19078
- cancelOrder: function (order_id, options) {
19080
+ cancelOrder: function (order_id, lock_self_ship_orders, skip_refund_and_hold, options) {
19079
19081
  if (options === void 0) { options = {}; }
19080
19082
  // verify required parameter 'order_id' is not null or undefined
19081
19083
  if (order_id === null || order_id === undefined) {
@@ -19105,6 +19107,12 @@ var OrderApiFetchParamCreator = function (configuration) {
19105
19107
  : configuration.apiKey;
19106
19108
  localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
19107
19109
  }
19110
+ if (lock_self_ship_orders !== undefined) {
19111
+ localVarQueryParameter['lock_self_ship_orders'] = lock_self_ship_orders;
19112
+ }
19113
+ if (skip_refund_and_hold !== undefined) {
19114
+ localVarQueryParameter['skip_refund_and_hold'] = skip_refund_and_hold;
19115
+ }
19108
19116
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
19109
19117
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
19110
19118
  delete localVarUrlObj.search;
@@ -20492,11 +20500,13 @@ var OrderApiFp = function (configuration) {
20492
20500
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
20493
20501
  * @summary Cancel an order
20494
20502
  * @param {string} order_id The order id to cancel.
20503
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
20504
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
20495
20505
  * @param {*} [options] Override http request option.
20496
20506
  * @throws {RequiredError}
20497
20507
  */
20498
- cancelOrder: function (order_id, options) {
20499
- var localVarFetchArgs = (0, exports.OrderApiFetchParamCreator)(configuration).cancelOrder(order_id, options);
20508
+ cancelOrder: function (order_id, lock_self_ship_orders, skip_refund_and_hold, options) {
20509
+ var localVarFetchArgs = (0, exports.OrderApiFetchParamCreator)(configuration).cancelOrder(order_id, lock_self_ship_orders, skip_refund_and_hold, options);
20500
20510
  return function (fetch, basePath) {
20501
20511
  if (fetch === void 0) { fetch = portableFetch; }
20502
20512
  if (basePath === void 0) { basePath = BASE_PATH; }
@@ -21115,11 +21125,13 @@ var OrderApiFactory = function (configuration, fetch, basePath) {
21115
21125
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
21116
21126
  * @summary Cancel an order
21117
21127
  * @param {string} order_id The order id to cancel.
21128
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
21129
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
21118
21130
  * @param {*} [options] Override http request option.
21119
21131
  * @throws {RequiredError}
21120
21132
  */
21121
- cancelOrder: function (order_id, options) {
21122
- return (0, exports.OrderApiFp)(configuration).cancelOrder(order_id, options)(fetch, basePath);
21133
+ cancelOrder: function (order_id, lock_self_ship_orders, skip_refund_and_hold, options) {
21134
+ return (0, exports.OrderApiFp)(configuration).cancelOrder(order_id, lock_self_ship_orders, skip_refund_and_hold, options)(fetch, basePath);
21123
21135
  },
21124
21136
  /**
21125
21137
  * Delete an order on the UltraCart account.
@@ -21444,12 +21456,14 @@ var OrderApi = /** @class */ (function (_super) {
21444
21456
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
21445
21457
  * @summary Cancel an order
21446
21458
  * @param {string} order_id The order id to cancel.
21459
+ * @param {boolean} [lock_self_ship_orders] Flag to prevent a order shipping during a refund process
21460
+ * @param {boolean} [skip_refund_and_hold] Skip refund and move order to Held Orders department
21447
21461
  * @param {*} [options] Override http request option.
21448
21462
  * @throws {RequiredError}
21449
21463
  * @memberof OrderApi
21450
21464
  */
21451
- OrderApi.prototype.cancelOrder = function (order_id, options) {
21452
- return (0, exports.OrderApiFp)(this.configuration).cancelOrder(order_id, options)(this.fetch, this.basePath);
21465
+ OrderApi.prototype.cancelOrder = function (order_id, lock_self_ship_orders, skip_refund_and_hold, options) {
21466
+ return (0, exports.OrderApiFp)(this.configuration).cancelOrder(order_id, lock_self_ship_orders, skip_refund_and_hold, options)(this.fetch, this.basePath);
21453
21467
  };
21454
21468
  /**
21455
21469
  * Delete an order on the UltraCart account.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ultracart_rest_api_v2_typescript",
3
- "version": "3.10.142",
3
+ "version": "3.10.144",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [