ultracart_rest_api_v2_typescript 3.10.154 → 3.10.156
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/api.ts +87 -8
- package/dist/api.d.ts +78 -5
- package/dist/api.js +14 -7
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.10.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.10.156
|
|
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.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.10.156 --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.156 | 08/31/2023 | new coupon - free item and free shipping with purchase |
|
|
58
|
+
| 3.10.155 | 08/16/2023 | added validate_original_order query param to auto order update method |
|
|
57
59
|
| 3.10.154 | 08/14/2023 | esp - add require_order_within_last to the settings object |
|
|
58
60
|
| 3.10.153 | 08/14/2023 | esp - expose rate limiter values in settings object |
|
|
59
61
|
| 3.10.152 | 07/27/2023 | dw bi - add settings to the report and page objects |
|
package/api.ts
CHANGED
|
@@ -9625,6 +9625,12 @@ export interface Coupon {
|
|
|
9625
9625
|
* @memberof Coupon
|
|
9626
9626
|
*/
|
|
9627
9627
|
free_item_with_item_purchase?: CouponFreeItemWithItemPurchase;
|
|
9628
|
+
/**
|
|
9629
|
+
*
|
|
9630
|
+
* @type {CouponFreeItemWithItemPurchaseAndFreeShipping}
|
|
9631
|
+
* @memberof Coupon
|
|
9632
|
+
*/
|
|
9633
|
+
free_item_with_item_purchase_and_free_shipping?: CouponFreeItemWithItemPurchaseAndFreeShipping;
|
|
9628
9634
|
/**
|
|
9629
9635
|
*
|
|
9630
9636
|
* @type {CouponFreeItemWithSubtotal}
|
|
@@ -10651,6 +10657,38 @@ export interface CouponFreeItemWithItemPurchase {
|
|
|
10651
10657
|
required_purchase_items?: Array<string>;
|
|
10652
10658
|
}
|
|
10653
10659
|
|
|
10660
|
+
/**
|
|
10661
|
+
*
|
|
10662
|
+
* @export
|
|
10663
|
+
* @interface CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10664
|
+
*/
|
|
10665
|
+
export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
|
|
10666
|
+
/**
|
|
10667
|
+
* A list of free items which will receive a discount if one of the required purchase items is purchased.
|
|
10668
|
+
* @type {Array<string>}
|
|
10669
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10670
|
+
*/
|
|
10671
|
+
items?: Array<string>;
|
|
10672
|
+
/**
|
|
10673
|
+
* The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though.
|
|
10674
|
+
* @type {number}
|
|
10675
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10676
|
+
*/
|
|
10677
|
+
limit?: number;
|
|
10678
|
+
/**
|
|
10679
|
+
* If true then the free item is matched 1:1 with the free item in the list.
|
|
10680
|
+
* @type {boolean}
|
|
10681
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10682
|
+
*/
|
|
10683
|
+
match_required_purchase_item_to_free_item?: boolean;
|
|
10684
|
+
/**
|
|
10685
|
+
* Required items (at least one from the list) that must be purchased for coupon to be valid
|
|
10686
|
+
* @type {Array<string>}
|
|
10687
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10688
|
+
*/
|
|
10689
|
+
required_purchase_items?: Array<string>;
|
|
10690
|
+
}
|
|
10691
|
+
|
|
10654
10692
|
/**
|
|
10655
10693
|
*
|
|
10656
10694
|
* @export
|
|
@@ -12109,6 +12147,12 @@ export interface Customer {
|
|
|
12109
12147
|
* @memberof Customer
|
|
12110
12148
|
*/
|
|
12111
12149
|
privacy?: CustomerPrivacy;
|
|
12150
|
+
/**
|
|
12151
|
+
* Properties for this customer
|
|
12152
|
+
* @type {Array<CustomerProperty>}
|
|
12153
|
+
* @memberof Customer
|
|
12154
|
+
*/
|
|
12155
|
+
properties?: Array<CustomerProperty>;
|
|
12112
12156
|
/**
|
|
12113
12157
|
* QuickBooks class to import this customer as
|
|
12114
12158
|
* @type {string}
|
|
@@ -13081,6 +13125,32 @@ export interface CustomerPrivacy {
|
|
|
13081
13125
|
statistics?: boolean;
|
|
13082
13126
|
}
|
|
13083
13127
|
|
|
13128
|
+
/**
|
|
13129
|
+
*
|
|
13130
|
+
* @export
|
|
13131
|
+
* @interface CustomerProperty
|
|
13132
|
+
*/
|
|
13133
|
+
export interface CustomerProperty {
|
|
13134
|
+
/**
|
|
13135
|
+
* The date/time that the property expires and is deleted
|
|
13136
|
+
* @type {string}
|
|
13137
|
+
* @memberof CustomerProperty
|
|
13138
|
+
*/
|
|
13139
|
+
expiration_dts?: string;
|
|
13140
|
+
/**
|
|
13141
|
+
* Name
|
|
13142
|
+
* @type {string}
|
|
13143
|
+
* @memberof CustomerProperty
|
|
13144
|
+
*/
|
|
13145
|
+
name?: string;
|
|
13146
|
+
/**
|
|
13147
|
+
* Value
|
|
13148
|
+
* @type {string}
|
|
13149
|
+
* @memberof CustomerProperty
|
|
13150
|
+
*/
|
|
13151
|
+
value?: string;
|
|
13152
|
+
}
|
|
13153
|
+
|
|
13084
13154
|
/**
|
|
13085
13155
|
*
|
|
13086
13156
|
* @export
|
|
@@ -41519,11 +41589,12 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41519
41589
|
* @summary Update an auto order
|
|
41520
41590
|
* @param {AutoOrder} auto_order Auto order to update
|
|
41521
41591
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
41592
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
41522
41593
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41523
41594
|
* @param {*} [options] Override http request option.
|
|
41524
41595
|
* @throws {RequiredError}
|
|
41525
41596
|
*/
|
|
41526
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options: any = {}): FetchArgs {
|
|
41597
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options: any = {}): FetchArgs {
|
|
41527
41598
|
// verify required parameter 'auto_order' is not null or undefined
|
|
41528
41599
|
if (auto_order === null || auto_order === undefined) {
|
|
41529
41600
|
throw new RequiredError('auto_order','Required parameter auto_order was null or undefined when calling updateAutoOrder.');
|
|
@@ -41562,6 +41633,10 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41562
41633
|
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
41563
41634
|
}
|
|
41564
41635
|
|
|
41636
|
+
if (validate_original_order !== undefined) {
|
|
41637
|
+
localVarQueryParameter['validate_original_order'] = validate_original_order;
|
|
41638
|
+
}
|
|
41639
|
+
|
|
41565
41640
|
if (_expand !== undefined) {
|
|
41566
41641
|
localVarQueryParameter['_expand'] = _expand;
|
|
41567
41642
|
}
|
|
@@ -41842,12 +41917,13 @@ export const AutoOrderApiFp = function(configuration?: Configuration) {
|
|
|
41842
41917
|
* @summary Update an auto order
|
|
41843
41918
|
* @param {AutoOrder} auto_order Auto order to update
|
|
41844
41919
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
41920
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
41845
41921
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41846
41922
|
* @param {*} [options] Override http request option.
|
|
41847
41923
|
* @throws {RequiredError}
|
|
41848
41924
|
*/
|
|
41849
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
|
|
41850
|
-
const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options);
|
|
41925
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
|
|
41926
|
+
const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options);
|
|
41851
41927
|
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
41852
41928
|
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
41853
41929
|
|
|
@@ -41999,12 +42075,13 @@ export const AutoOrderApiFactory = function (configuration?: Configuration, fetc
|
|
|
41999
42075
|
* @summary Update an auto order
|
|
42000
42076
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42001
42077
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42078
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42002
42079
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42003
42080
|
* @param {*} [options] Override http request option.
|
|
42004
42081
|
* @throws {RequiredError}
|
|
42005
42082
|
*/
|
|
42006
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any) {
|
|
42007
|
-
return AutoOrderApiFp(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(fetch, basePath);
|
|
42083
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any) {
|
|
42084
|
+
return AutoOrderApiFp(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(fetch, basePath);
|
|
42008
42085
|
},
|
|
42009
42086
|
/**
|
|
42010
42087
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -42134,12 +42211,13 @@ export interface AutoOrderApiInterface {
|
|
|
42134
42211
|
* @summary Update an auto order
|
|
42135
42212
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42136
42213
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42214
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42137
42215
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42138
42216
|
* @param {*} [options] Override http request option.
|
|
42139
42217
|
* @throws {RequiredError}
|
|
42140
42218
|
* @memberof AutoOrderApiInterface
|
|
42141
42219
|
*/
|
|
42142
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
42220
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
42143
42221
|
|
|
42144
42222
|
/**
|
|
42145
42223
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -42283,13 +42361,14 @@ export class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
|
|
|
42283
42361
|
* @summary Update an auto order
|
|
42284
42362
|
* @param {AutoOrder} auto_order Auto order to update
|
|
42285
42363
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
42364
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
42286
42365
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42287
42366
|
* @param {*} [options] Override http request option.
|
|
42288
42367
|
* @throws {RequiredError}
|
|
42289
42368
|
* @memberof AutoOrderApi
|
|
42290
42369
|
*/
|
|
42291
|
-
public updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any) {
|
|
42292
|
-
return AutoOrderApiFp(this.configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(this.fetch, this.basePath);
|
|
42370
|
+
public updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any) {
|
|
42371
|
+
return AutoOrderApiFp(this.configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(this.fetch, this.basePath);
|
|
42293
42372
|
}
|
|
42294
42373
|
|
|
42295
42374
|
/**
|
package/dist/api.d.ts
CHANGED
|
@@ -9395,6 +9395,12 @@ export interface Coupon {
|
|
|
9395
9395
|
* @memberof Coupon
|
|
9396
9396
|
*/
|
|
9397
9397
|
free_item_with_item_purchase?: CouponFreeItemWithItemPurchase;
|
|
9398
|
+
/**
|
|
9399
|
+
*
|
|
9400
|
+
* @type {CouponFreeItemWithItemPurchaseAndFreeShipping}
|
|
9401
|
+
* @memberof Coupon
|
|
9402
|
+
*/
|
|
9403
|
+
free_item_with_item_purchase_and_free_shipping?: CouponFreeItemWithItemPurchaseAndFreeShipping;
|
|
9398
9404
|
/**
|
|
9399
9405
|
*
|
|
9400
9406
|
* @type {CouponFreeItemWithSubtotal}
|
|
@@ -10396,6 +10402,37 @@ export interface CouponFreeItemWithItemPurchase {
|
|
|
10396
10402
|
*/
|
|
10397
10403
|
required_purchase_items?: Array<string>;
|
|
10398
10404
|
}
|
|
10405
|
+
/**
|
|
10406
|
+
*
|
|
10407
|
+
* @export
|
|
10408
|
+
* @interface CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10409
|
+
*/
|
|
10410
|
+
export interface CouponFreeItemWithItemPurchaseAndFreeShipping {
|
|
10411
|
+
/**
|
|
10412
|
+
* A list of free items which will receive a discount if one of the required purchase items is purchased.
|
|
10413
|
+
* @type {Array<string>}
|
|
10414
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10415
|
+
*/
|
|
10416
|
+
items?: Array<string>;
|
|
10417
|
+
/**
|
|
10418
|
+
* The (optional) maximum quantity of discounted items. Free shipping will apply to all units of the free item ids though.
|
|
10419
|
+
* @type {number}
|
|
10420
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10421
|
+
*/
|
|
10422
|
+
limit?: number;
|
|
10423
|
+
/**
|
|
10424
|
+
* If true then the free item is matched 1:1 with the free item in the list.
|
|
10425
|
+
* @type {boolean}
|
|
10426
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10427
|
+
*/
|
|
10428
|
+
match_required_purchase_item_to_free_item?: boolean;
|
|
10429
|
+
/**
|
|
10430
|
+
* Required items (at least one from the list) that must be purchased for coupon to be valid
|
|
10431
|
+
* @type {Array<string>}
|
|
10432
|
+
* @memberof CouponFreeItemWithItemPurchaseAndFreeShipping
|
|
10433
|
+
*/
|
|
10434
|
+
required_purchase_items?: Array<string>;
|
|
10435
|
+
}
|
|
10399
10436
|
/**
|
|
10400
10437
|
*
|
|
10401
10438
|
* @export
|
|
@@ -11809,6 +11846,12 @@ export interface Customer {
|
|
|
11809
11846
|
* @memberof Customer
|
|
11810
11847
|
*/
|
|
11811
11848
|
privacy?: CustomerPrivacy;
|
|
11849
|
+
/**
|
|
11850
|
+
* Properties for this customer
|
|
11851
|
+
* @type {Array<CustomerProperty>}
|
|
11852
|
+
* @memberof Customer
|
|
11853
|
+
*/
|
|
11854
|
+
properties?: Array<CustomerProperty>;
|
|
11812
11855
|
/**
|
|
11813
11856
|
* QuickBooks class to import this customer as
|
|
11814
11857
|
* @type {string}
|
|
@@ -12763,6 +12806,31 @@ export interface CustomerPrivacy {
|
|
|
12763
12806
|
*/
|
|
12764
12807
|
statistics?: boolean;
|
|
12765
12808
|
}
|
|
12809
|
+
/**
|
|
12810
|
+
*
|
|
12811
|
+
* @export
|
|
12812
|
+
* @interface CustomerProperty
|
|
12813
|
+
*/
|
|
12814
|
+
export interface CustomerProperty {
|
|
12815
|
+
/**
|
|
12816
|
+
* The date/time that the property expires and is deleted
|
|
12817
|
+
* @type {string}
|
|
12818
|
+
* @memberof CustomerProperty
|
|
12819
|
+
*/
|
|
12820
|
+
expiration_dts?: string;
|
|
12821
|
+
/**
|
|
12822
|
+
* Name
|
|
12823
|
+
* @type {string}
|
|
12824
|
+
* @memberof CustomerProperty
|
|
12825
|
+
*/
|
|
12826
|
+
name?: string;
|
|
12827
|
+
/**
|
|
12828
|
+
* Value
|
|
12829
|
+
* @type {string}
|
|
12830
|
+
* @memberof CustomerProperty
|
|
12831
|
+
*/
|
|
12832
|
+
value?: string;
|
|
12833
|
+
}
|
|
12766
12834
|
/**
|
|
12767
12835
|
*
|
|
12768
12836
|
* @export
|
|
@@ -40048,11 +40116,12 @@ export declare const AutoOrderApiFetchParamCreator: (configuration?: Configurati
|
|
|
40048
40116
|
* @summary Update an auto order
|
|
40049
40117
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40050
40118
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40119
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40051
40120
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40052
40121
|
* @param {*} [options] Override http request option.
|
|
40053
40122
|
* @throws {RequiredError}
|
|
40054
40123
|
*/
|
|
40055
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): FetchArgs;
|
|
40124
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): FetchArgs;
|
|
40056
40125
|
/**
|
|
40057
40126
|
* Update multiple auto orders on the UltraCart account.
|
|
40058
40127
|
* @summary Update multiple auto orders
|
|
@@ -40162,11 +40231,12 @@ export declare const AutoOrderApiFp: (configuration?: Configuration) => {
|
|
|
40162
40231
|
* @summary Update an auto order
|
|
40163
40232
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40164
40233
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40234
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40165
40235
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40166
40236
|
* @param {*} [options] Override http request option.
|
|
40167
40237
|
* @throws {RequiredError}
|
|
40168
40238
|
*/
|
|
40169
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
|
|
40239
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
|
|
40170
40240
|
/**
|
|
40171
40241
|
* Update multiple auto orders on the UltraCart account.
|
|
40172
40242
|
* @summary Update multiple auto orders
|
|
@@ -40276,11 +40346,12 @@ export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?
|
|
|
40276
40346
|
* @summary Update an auto order
|
|
40277
40347
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40278
40348
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40349
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40279
40350
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40280
40351
|
* @param {*} [options] Override http request option.
|
|
40281
40352
|
* @throws {RequiredError}
|
|
40282
40353
|
*/
|
|
40283
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40354
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40284
40355
|
/**
|
|
40285
40356
|
* Update multiple auto orders on the UltraCart account.
|
|
40286
40357
|
* @summary Update multiple auto orders
|
|
@@ -40398,12 +40469,13 @@ export interface AutoOrderApiInterface {
|
|
|
40398
40469
|
* @summary Update an auto order
|
|
40399
40470
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40400
40471
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40472
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40401
40473
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40402
40474
|
* @param {*} [options] Override http request option.
|
|
40403
40475
|
* @throws {RequiredError}
|
|
40404
40476
|
* @memberof AutoOrderApiInterface
|
|
40405
40477
|
*/
|
|
40406
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40478
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40407
40479
|
/**
|
|
40408
40480
|
* Update multiple auto orders on the UltraCart account.
|
|
40409
40481
|
* @summary Update multiple auto orders
|
|
@@ -40523,12 +40595,13 @@ export declare class AutoOrderApi extends BaseAPI implements AutoOrderApiInterfa
|
|
|
40523
40595
|
* @summary Update an auto order
|
|
40524
40596
|
* @param {AutoOrder} auto_order Auto order to update
|
|
40525
40597
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
40598
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
40526
40599
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40527
40600
|
* @param {*} [options] Override http request option.
|
|
40528
40601
|
* @throws {RequiredError}
|
|
40529
40602
|
* @memberof AutoOrderApi
|
|
40530
40603
|
*/
|
|
40531
|
-
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40604
|
+
updateAutoOrder(auto_order: AutoOrder, auto_order_oid: number, validate_original_order?: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40532
40605
|
/**
|
|
40533
40606
|
* Update multiple auto orders on the UltraCart account.
|
|
40534
40607
|
* @summary Update multiple auto orders
|
package/dist/api.js
CHANGED
|
@@ -2288,11 +2288,12 @@ var AutoOrderApiFetchParamCreator = function (configuration) {
|
|
|
2288
2288
|
* @summary Update an auto order
|
|
2289
2289
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2290
2290
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2291
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2291
2292
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2292
2293
|
* @param {*} [options] Override http request option.
|
|
2293
2294
|
* @throws {RequiredError}
|
|
2294
2295
|
*/
|
|
2295
|
-
updateAutoOrder: function (auto_order, auto_order_oid, _expand, options) {
|
|
2296
|
+
updateAutoOrder: function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2296
2297
|
if (options === void 0) { options = {}; }
|
|
2297
2298
|
// verify required parameter 'auto_order' is not null or undefined
|
|
2298
2299
|
if (auto_order === null || auto_order === undefined) {
|
|
@@ -2326,6 +2327,9 @@ var AutoOrderApiFetchParamCreator = function (configuration) {
|
|
|
2326
2327
|
: configuration.apiKey;
|
|
2327
2328
|
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
2328
2329
|
}
|
|
2330
|
+
if (validate_original_order !== undefined) {
|
|
2331
|
+
localVarQueryParameter['validate_original_order'] = validate_original_order;
|
|
2332
|
+
}
|
|
2329
2333
|
if (_expand !== undefined) {
|
|
2330
2334
|
localVarQueryParameter['_expand'] = _expand;
|
|
2331
2335
|
}
|
|
@@ -2600,12 +2604,13 @@ var AutoOrderApiFp = function (configuration) {
|
|
|
2600
2604
|
* @summary Update an auto order
|
|
2601
2605
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2602
2606
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2607
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2603
2608
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2604
2609
|
* @param {*} [options] Override http request option.
|
|
2605
2610
|
* @throws {RequiredError}
|
|
2606
2611
|
*/
|
|
2607
|
-
updateAutoOrder: function (auto_order, auto_order_oid, _expand, options) {
|
|
2608
|
-
var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options);
|
|
2612
|
+
updateAutoOrder: function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2613
|
+
var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options);
|
|
2609
2614
|
return function (fetch, basePath) {
|
|
2610
2615
|
if (fetch === void 0) { fetch = portableFetch; }
|
|
2611
2616
|
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
@@ -2759,12 +2764,13 @@ var AutoOrderApiFactory = function (configuration, fetch, basePath) {
|
|
|
2759
2764
|
* @summary Update an auto order
|
|
2760
2765
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2761
2766
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2767
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2762
2768
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2763
2769
|
* @param {*} [options] Override http request option.
|
|
2764
2770
|
* @throws {RequiredError}
|
|
2765
2771
|
*/
|
|
2766
|
-
updateAutoOrder: function (auto_order, auto_order_oid, _expand, options) {
|
|
2767
|
-
return (0, exports.AutoOrderApiFp)(configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(fetch, basePath);
|
|
2772
|
+
updateAutoOrder: function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2773
|
+
return (0, exports.AutoOrderApiFp)(configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(fetch, basePath);
|
|
2768
2774
|
},
|
|
2769
2775
|
/**
|
|
2770
2776
|
* Update multiple auto orders on the UltraCart account.
|
|
@@ -2906,13 +2912,14 @@ var AutoOrderApi = /** @class */ (function (_super) {
|
|
|
2906
2912
|
* @summary Update an auto order
|
|
2907
2913
|
* @param {AutoOrder} auto_order Auto order to update
|
|
2908
2914
|
* @param {number} auto_order_oid The auto order oid to update.
|
|
2915
|
+
* @param {string} [validate_original_order] Validate original order before updating
|
|
2909
2916
|
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2910
2917
|
* @param {*} [options] Override http request option.
|
|
2911
2918
|
* @throws {RequiredError}
|
|
2912
2919
|
* @memberof AutoOrderApi
|
|
2913
2920
|
*/
|
|
2914
|
-
AutoOrderApi.prototype.updateAutoOrder = function (auto_order, auto_order_oid, _expand, options) {
|
|
2915
|
-
return (0, exports.AutoOrderApiFp)(this.configuration).updateAutoOrder(auto_order, auto_order_oid, _expand, options)(this.fetch, this.basePath);
|
|
2921
|
+
AutoOrderApi.prototype.updateAutoOrder = function (auto_order, auto_order_oid, validate_original_order, _expand, options) {
|
|
2922
|
+
return (0, exports.AutoOrderApiFp)(this.configuration).updateAutoOrder(auto_order, auto_order_oid, validate_original_order, _expand, options)(this.fetch, this.basePath);
|
|
2916
2923
|
};
|
|
2917
2924
|
/**
|
|
2918
2925
|
* Update multiple auto orders on the UltraCart account.
|