ultracart_rest_api_v2_typescript 3.10.143 → 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.143
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.143 --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,7 @@ 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 |
57
58
  | 3.10.143 | 06/14/2023 | dw bi: add request_dts on the execute queries request and report data set objects |
58
59
  | 3.10.142 | 06/09/2023 | distribution center pickup times |
59
60
  | 3.10.141 | 06/08/2023 | customer profile qb tax exempt reason code field |
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}
@@ -61337,10 +61343,12 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
61337
61343
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
61338
61344
  * @summary Cancel an order
61339
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
61340
61348
  * @param {*} [options] Override http request option.
61341
61349
  * @throws {RequiredError}
61342
61350
  */
61343
- 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 {
61344
61352
  // verify required parameter 'order_id' is not null or undefined
61345
61353
  if (order_id === null || order_id === undefined) {
61346
61354
  throw new RequiredError('order_id','Required parameter order_id was null or undefined when calling cancelOrder.');
@@ -61375,6 +61383,14 @@ export const OrderApiFetchParamCreator = function (configuration?: Configuration
61375
61383
  localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
61376
61384
  }
61377
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
+
61378
61394
  localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
61379
61395
  // fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
61380
61396
  delete localVarUrlObj.search;
@@ -62966,11 +62982,13 @@ export const OrderApiFp = function(configuration?: Configuration) {
62966
62982
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
62967
62983
  * @summary Cancel an order
62968
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
62969
62987
  * @param {*} [options] Override http request option.
62970
62988
  * @throws {RequiredError}
62971
62989
  */
62972
- cancelOrder(order_id: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<BaseResponse> {
62973
- 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);
62974
62992
  return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
62975
62993
  return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
62976
62994
 
@@ -63564,11 +63582,13 @@ export const OrderApiFactory = function (configuration?: Configuration, fetch?:
63564
63582
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
63565
63583
  * @summary Cancel an order
63566
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
63567
63587
  * @param {*} [options] Override http request option.
63568
63588
  * @throws {RequiredError}
63569
63589
  */
63570
- cancelOrder(order_id: string, options?: any) {
63571
- 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);
63572
63592
  },
63573
63593
  /**
63574
63594
  * Delete an order on the UltraCart account.
@@ -63887,11 +63907,13 @@ export interface OrderApiInterface {
63887
63907
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
63888
63908
  * @summary Cancel an order
63889
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
63890
63912
  * @param {*} [options] Override http request option.
63891
63913
  * @throws {RequiredError}
63892
63914
  * @memberof OrderApiInterface
63893
63915
  */
63894
- 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>;
63895
63917
 
63896
63918
  /**
63897
63919
  * Delete an order on the UltraCart account.
@@ -64212,12 +64234,14 @@ export class OrderApi extends BaseAPI implements OrderApiInterface {
64212
64234
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
64213
64235
  * @summary Cancel an order
64214
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
64215
64239
  * @param {*} [options] Override http request option.
64216
64240
  * @throws {RequiredError}
64217
64241
  * @memberof OrderApi
64218
64242
  */
64219
- public cancelOrder(order_id: string, options?: any) {
64220
- 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);
64221
64245
  }
64222
64246
 
64223
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}
@@ -48310,10 +48316,12 @@ export declare const OrderApiFetchParamCreator: (configuration?: Configuration)
48310
48316
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
48311
48317
  * @summary Cancel an order
48312
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
48313
48321
  * @param {*} [options] Override http request option.
48314
48322
  * @throws {RequiredError}
48315
48323
  */
48316
- 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;
48317
48325
  /**
48318
48326
  * Delete an order on the UltraCart account.
48319
48327
  * @summary Delete an order
@@ -48578,10 +48586,12 @@ export declare const OrderApiFp: (configuration?: Configuration) => {
48578
48586
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
48579
48587
  * @summary Cancel an order
48580
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
48581
48591
  * @param {*} [options] Override http request option.
48582
48592
  * @throws {RequiredError}
48583
48593
  */
48584
- 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>;
48585
48595
  /**
48586
48596
  * Delete an order on the UltraCart account.
48587
48597
  * @summary Delete an order
@@ -48846,10 +48856,12 @@ export declare const OrderApiFactory: (configuration?: Configuration, fetch?: Fe
48846
48856
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
48847
48857
  * @summary Cancel an order
48848
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
48849
48861
  * @param {*} [options] Override http request option.
48850
48862
  * @throws {RequiredError}
48851
48863
  */
48852
- 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>;
48853
48865
  /**
48854
48866
  * Delete an order on the UltraCart account.
48855
48867
  * @summary Delete an order
@@ -49116,11 +49128,13 @@ export interface OrderApiInterface {
49116
49128
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
49117
49129
  * @summary Cancel an order
49118
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
49119
49133
  * @param {*} [options] Override http request option.
49120
49134
  * @throws {RequiredError}
49121
49135
  * @memberof OrderApiInterface
49122
49136
  */
49123
- 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>;
49124
49138
  /**
49125
49139
  * Delete an order on the UltraCart account.
49126
49140
  * @summary Delete an order
@@ -49412,11 +49426,13 @@ export declare class OrderApi extends BaseAPI implements OrderApiInterface {
49412
49426
  * Cancel an order on the UltraCart account. If the success flag is false, then consult the error message for why it failed.
49413
49427
  * @summary Cancel an order
49414
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
49415
49431
  * @param {*} [options] Override http request option.
49416
49432
  * @throws {RequiredError}
49417
49433
  * @memberof OrderApi
49418
49434
  */
49419
- 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>;
49420
49436
  /**
49421
49437
  * Delete an order on the UltraCart account.
49422
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.143",
3
+ "version": "3.10.144",
4
4
  "description": "UltraCart Rest TypeScript SDK",
5
5
  "author": "UltraCart",
6
6
  "keywords": [