ultracart_rest_api_v2_typescript 3.10.145 → 3.10.147
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 +116 -1
- package/dist/api.d.ts +49 -1
- package/dist/api.js +97 -0
- 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.147
|
|
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.147 --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.147 | 06/23/2023 | gauge constant for page visualization library |
|
|
58
|
+
| 3.10.146 | 06/20/2023 | auto order - establishAutoOrderByReferenceOrderId method added |
|
|
57
59
|
| 3.10.145 | 06/20/2023 | coupon add allowed values for usable_by and new OncePerNewCustomerForItem flag |
|
|
58
60
|
| 3.10.144 | 06/15/2023 | add pickup_dts to order.shipping object |
|
|
59
61
|
| 3.10.143 | 06/14/2023 | dw bi: add request_dts on the execute queries request and report data set objects |
|
package/api.ts
CHANGED
|
@@ -34851,7 +34851,8 @@ export namespace ReportPageVisualization {
|
|
|
34851
34851
|
LineChart = <any> 'line chart',
|
|
34852
34852
|
BarChart = <any> 'bar chart',
|
|
34853
34853
|
Text = <any> 'text',
|
|
34854
|
-
Table = <any> 'table'
|
|
34854
|
+
Table = <any> 'table',
|
|
34855
|
+
Gauge = <any> 'gauge'
|
|
34855
34856
|
}
|
|
34856
34857
|
}
|
|
34857
34858
|
|
|
@@ -40877,6 +40878,63 @@ export class AffiliateApi extends BaseAPI implements AffiliateApiInterface {
|
|
|
40877
40878
|
*/
|
|
40878
40879
|
export const AutoOrderApiFetchParamCreator = function (configuration?: Configuration) {
|
|
40879
40880
|
return {
|
|
40881
|
+
/**
|
|
40882
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
40883
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40884
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40885
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40886
|
+
* @param {*} [options] Override http request option.
|
|
40887
|
+
* @throws {RequiredError}
|
|
40888
|
+
*/
|
|
40889
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options: any = {}): FetchArgs {
|
|
40890
|
+
// verify required parameter 'reference_order_id' is not null or undefined
|
|
40891
|
+
if (reference_order_id === null || reference_order_id === undefined) {
|
|
40892
|
+
throw new RequiredError('reference_order_id','Required parameter reference_order_id was null or undefined when calling establishAutoOrderByReferenceOrderId.');
|
|
40893
|
+
}
|
|
40894
|
+
const localVarPath = `/auto_order/auto_orders/reference_order_id/{reference_order_id}`
|
|
40895
|
+
.replace(`{${"reference_order_id"}}`, encodeURIComponent(String(reference_order_id)));
|
|
40896
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
40897
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
40898
|
+
const localVarHeaderParameter = {} as any;
|
|
40899
|
+
const localVarQueryParameter = {} as any;
|
|
40900
|
+
|
|
40901
|
+
if(configuration && configuration.apiVersion) {
|
|
40902
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
40903
|
+
}
|
|
40904
|
+
|
|
40905
|
+
|
|
40906
|
+
|
|
40907
|
+
// authentication ultraCartOauth required
|
|
40908
|
+
// oauth required
|
|
40909
|
+
if (configuration && configuration.accessToken) {
|
|
40910
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
40911
|
+
? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
|
|
40912
|
+
: configuration.accessToken;
|
|
40913
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
40914
|
+
}
|
|
40915
|
+
|
|
40916
|
+
// authentication ultraCartSimpleApiKey required
|
|
40917
|
+
if (configuration && configuration.apiKey) {
|
|
40918
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
40919
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
40920
|
+
: configuration.apiKey;
|
|
40921
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
40922
|
+
}
|
|
40923
|
+
|
|
40924
|
+
if (_expand !== undefined) {
|
|
40925
|
+
localVarQueryParameter['_expand'] = _expand;
|
|
40926
|
+
}
|
|
40927
|
+
|
|
40928
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
40929
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
40930
|
+
delete localVarUrlObj.search;
|
|
40931
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
40932
|
+
|
|
40933
|
+
return {
|
|
40934
|
+
url: url.format(localVarUrlObj),
|
|
40935
|
+
options: localVarRequestOptions,
|
|
40936
|
+
};
|
|
40937
|
+
},
|
|
40880
40938
|
/**
|
|
40881
40939
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40882
40940
|
* @summary Retrieve an auto order by oid
|
|
@@ -41489,6 +41547,28 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41489
41547
|
*/
|
|
41490
41548
|
export const AutoOrderApiFp = function(configuration?: Configuration) {
|
|
41491
41549
|
return {
|
|
41550
|
+
/**
|
|
41551
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
41552
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
41553
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
41554
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41555
|
+
* @param {*} [options] Override http request option.
|
|
41556
|
+
* @throws {RequiredError}
|
|
41557
|
+
*/
|
|
41558
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
|
|
41559
|
+
const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options);
|
|
41560
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
41561
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
41562
|
+
|
|
41563
|
+
if (response.status >= 200 && response.status < 300) {
|
|
41564
|
+
return response.json();
|
|
41565
|
+
|
|
41566
|
+
} else {
|
|
41567
|
+
throw response;
|
|
41568
|
+
}
|
|
41569
|
+
});
|
|
41570
|
+
};
|
|
41571
|
+
},
|
|
41492
41572
|
/**
|
|
41493
41573
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41494
41574
|
* @summary Retrieve an auto order by oid
|
|
@@ -41701,6 +41781,17 @@ export const AutoOrderApiFp = function(configuration?: Configuration) {
|
|
|
41701
41781
|
*/
|
|
41702
41782
|
export const AutoOrderApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
|
|
41703
41783
|
return {
|
|
41784
|
+
/**
|
|
41785
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
41786
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
41787
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
41788
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41789
|
+
* @param {*} [options] Override http request option.
|
|
41790
|
+
* @throws {RequiredError}
|
|
41791
|
+
*/
|
|
41792
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any) {
|
|
41793
|
+
return AutoOrderApiFp(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(fetch, basePath);
|
|
41794
|
+
},
|
|
41704
41795
|
/**
|
|
41705
41796
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41706
41797
|
* @summary Retrieve an auto order by oid
|
|
@@ -41825,6 +41916,17 @@ export const AutoOrderApiFactory = function (configuration?: Configuration, fetc
|
|
|
41825
41916
|
* @interface AutoOrderApi
|
|
41826
41917
|
*/
|
|
41827
41918
|
export interface AutoOrderApiInterface {
|
|
41919
|
+
/**
|
|
41920
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
41921
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
41922
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
41923
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41924
|
+
* @param {*} [options] Override http request option.
|
|
41925
|
+
* @throws {RequiredError}
|
|
41926
|
+
* @memberof AutoOrderApiInterface
|
|
41927
|
+
*/
|
|
41928
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
41929
|
+
|
|
41828
41930
|
/**
|
|
41829
41931
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41830
41932
|
* @summary Retrieve an auto order by oid
|
|
@@ -41949,6 +42051,19 @@ export interface AutoOrderApiInterface {
|
|
|
41949
42051
|
* @extends {BaseAPI}
|
|
41950
42052
|
*/
|
|
41951
42053
|
export class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
|
|
42054
|
+
/**
|
|
42055
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
42056
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
42057
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
42058
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42059
|
+
* @param {*} [options] Override http request option.
|
|
42060
|
+
* @throws {RequiredError}
|
|
42061
|
+
* @memberof AutoOrderApi
|
|
42062
|
+
*/
|
|
42063
|
+
public establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any) {
|
|
42064
|
+
return AutoOrderApiFp(this.configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(this.fetch, this.basePath);
|
|
42065
|
+
}
|
|
42066
|
+
|
|
41952
42067
|
/**
|
|
41953
42068
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41954
42069
|
* @summary Retrieve an auto order by oid
|
package/dist/api.d.ts
CHANGED
|
@@ -34118,7 +34118,8 @@ export declare namespace ReportPageVisualization {
|
|
|
34118
34118
|
LineChart,
|
|
34119
34119
|
BarChart,
|
|
34120
34120
|
Text,
|
|
34121
|
-
Table
|
|
34121
|
+
Table,
|
|
34122
|
+
Gauge
|
|
34122
34123
|
}
|
|
34123
34124
|
}
|
|
34124
34125
|
/**
|
|
@@ -39845,6 +39846,15 @@ export declare class AffiliateApi extends BaseAPI implements AffiliateApiInterfa
|
|
|
39845
39846
|
* @export
|
|
39846
39847
|
*/
|
|
39847
39848
|
export declare const AutoOrderApiFetchParamCreator: (configuration?: Configuration) => {
|
|
39849
|
+
/**
|
|
39850
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
39851
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
39852
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
39853
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
39854
|
+
* @param {*} [options] Override http request option.
|
|
39855
|
+
* @throws {RequiredError}
|
|
39856
|
+
*/
|
|
39857
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): FetchArgs;
|
|
39848
39858
|
/**
|
|
39849
39859
|
* Retrieves a single auto order using the specified auto order oid.
|
|
39850
39860
|
* @summary Retrieve an auto order by oid
|
|
@@ -39950,6 +39960,15 @@ export declare const AutoOrderApiFetchParamCreator: (configuration?: Configurati
|
|
|
39950
39960
|
* @export
|
|
39951
39961
|
*/
|
|
39952
39962
|
export declare const AutoOrderApiFp: (configuration?: Configuration) => {
|
|
39963
|
+
/**
|
|
39964
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
39965
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
39966
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
39967
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
39968
|
+
* @param {*} [options] Override http request option.
|
|
39969
|
+
* @throws {RequiredError}
|
|
39970
|
+
*/
|
|
39971
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
|
|
39953
39972
|
/**
|
|
39954
39973
|
* Retrieves a single auto order using the specified auto order oid.
|
|
39955
39974
|
* @summary Retrieve an auto order by oid
|
|
@@ -40055,6 +40074,15 @@ export declare const AutoOrderApiFp: (configuration?: Configuration) => {
|
|
|
40055
40074
|
* @export
|
|
40056
40075
|
*/
|
|
40057
40076
|
export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
|
|
40077
|
+
/**
|
|
40078
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
40079
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40080
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40081
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40082
|
+
* @param {*} [options] Override http request option.
|
|
40083
|
+
* @throws {RequiredError}
|
|
40084
|
+
*/
|
|
40085
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40058
40086
|
/**
|
|
40059
40087
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40060
40088
|
* @summary Retrieve an auto order by oid
|
|
@@ -40161,6 +40189,16 @@ export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?
|
|
|
40161
40189
|
* @interface AutoOrderApi
|
|
40162
40190
|
*/
|
|
40163
40191
|
export interface AutoOrderApiInterface {
|
|
40192
|
+
/**
|
|
40193
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
40194
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40195
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40196
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40197
|
+
* @param {*} [options] Override http request option.
|
|
40198
|
+
* @throws {RequiredError}
|
|
40199
|
+
* @memberof AutoOrderApiInterface
|
|
40200
|
+
*/
|
|
40201
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40164
40202
|
/**
|
|
40165
40203
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40166
40204
|
* @summary Retrieve an auto order by oid
|
|
@@ -40276,6 +40314,16 @@ export interface AutoOrderApiInterface {
|
|
|
40276
40314
|
* @extends {BaseAPI}
|
|
40277
40315
|
*/
|
|
40278
40316
|
export declare class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
|
|
40317
|
+
/**
|
|
40318
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
40319
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40320
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40321
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40322
|
+
* @param {*} [options] Override http request option.
|
|
40323
|
+
* @throws {RequiredError}
|
|
40324
|
+
* @memberof AutoOrderApi
|
|
40325
|
+
*/
|
|
40326
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40279
40327
|
/**
|
|
40280
40328
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40281
40329
|
* @summary Retrieve an auto order by oid
|
package/dist/api.js
CHANGED
|
@@ -1460,6 +1460,7 @@ var ReportPageVisualization;
|
|
|
1460
1460
|
TypeEnum[TypeEnum["BarChart"] = 'bar chart'] = "BarChart";
|
|
1461
1461
|
TypeEnum[TypeEnum["Text"] = 'text'] = "Text";
|
|
1462
1462
|
TypeEnum[TypeEnum["Table"] = 'table'] = "Table";
|
|
1463
|
+
TypeEnum[TypeEnum["Gauge"] = 'gauge'] = "Gauge";
|
|
1463
1464
|
})(TypeEnum = ReportPageVisualization.TypeEnum || (ReportPageVisualization.TypeEnum = {}));
|
|
1464
1465
|
})(ReportPageVisualization = exports.ReportPageVisualization || (exports.ReportPageVisualization = {}));
|
|
1465
1466
|
/**
|
|
@@ -1828,6 +1829,56 @@ exports.AffiliateApi = AffiliateApi;
|
|
|
1828
1829
|
*/
|
|
1829
1830
|
var AutoOrderApiFetchParamCreator = function (configuration) {
|
|
1830
1831
|
return {
|
|
1832
|
+
/**
|
|
1833
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
1834
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
1835
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
1836
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
1837
|
+
* @param {*} [options] Override http request option.
|
|
1838
|
+
* @throws {RequiredError}
|
|
1839
|
+
*/
|
|
1840
|
+
establishAutoOrderByReferenceOrderId: function (reference_order_id, _expand, options) {
|
|
1841
|
+
if (options === void 0) { options = {}; }
|
|
1842
|
+
// verify required parameter 'reference_order_id' is not null or undefined
|
|
1843
|
+
if (reference_order_id === null || reference_order_id === undefined) {
|
|
1844
|
+
throw new RequiredError('reference_order_id', 'Required parameter reference_order_id was null or undefined when calling establishAutoOrderByReferenceOrderId.');
|
|
1845
|
+
}
|
|
1846
|
+
var localVarPath = "/auto_order/auto_orders/reference_order_id/{reference_order_id}"
|
|
1847
|
+
.replace("{".concat("reference_order_id", "}"), encodeURIComponent(String(reference_order_id)));
|
|
1848
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
1849
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
1850
|
+
var localVarHeaderParameter = {};
|
|
1851
|
+
var localVarQueryParameter = {};
|
|
1852
|
+
if (configuration && configuration.apiVersion) {
|
|
1853
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
1854
|
+
}
|
|
1855
|
+
// authentication ultraCartOauth required
|
|
1856
|
+
// oauth required
|
|
1857
|
+
if (configuration && configuration.accessToken) {
|
|
1858
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
1859
|
+
? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
|
|
1860
|
+
: configuration.accessToken;
|
|
1861
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
1862
|
+
}
|
|
1863
|
+
// authentication ultraCartSimpleApiKey required
|
|
1864
|
+
if (configuration && configuration.apiKey) {
|
|
1865
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1866
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
1867
|
+
: configuration.apiKey;
|
|
1868
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
1869
|
+
}
|
|
1870
|
+
if (_expand !== undefined) {
|
|
1871
|
+
localVarQueryParameter['_expand'] = _expand;
|
|
1872
|
+
}
|
|
1873
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
1874
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1875
|
+
delete localVarUrlObj.search;
|
|
1876
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
1877
|
+
return {
|
|
1878
|
+
url: url.format(localVarUrlObj),
|
|
1879
|
+
options: localVarRequestOptions,
|
|
1880
|
+
};
|
|
1881
|
+
},
|
|
1831
1882
|
/**
|
|
1832
1883
|
* Retrieves a single auto order using the specified auto order oid.
|
|
1833
1884
|
* @summary Retrieve an auto order by oid
|
|
@@ -2353,6 +2404,29 @@ exports.AutoOrderApiFetchParamCreator = AutoOrderApiFetchParamCreator;
|
|
|
2353
2404
|
*/
|
|
2354
2405
|
var AutoOrderApiFp = function (configuration) {
|
|
2355
2406
|
return {
|
|
2407
|
+
/**
|
|
2408
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
2409
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
2410
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
2411
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2412
|
+
* @param {*} [options] Override http request option.
|
|
2413
|
+
* @throws {RequiredError}
|
|
2414
|
+
*/
|
|
2415
|
+
establishAutoOrderByReferenceOrderId: function (reference_order_id, _expand, options) {
|
|
2416
|
+
var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options);
|
|
2417
|
+
return function (fetch, basePath) {
|
|
2418
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
2419
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
2420
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
2421
|
+
if (response.status >= 200 && response.status < 300) {
|
|
2422
|
+
return response.json();
|
|
2423
|
+
}
|
|
2424
|
+
else {
|
|
2425
|
+
throw response;
|
|
2426
|
+
}
|
|
2427
|
+
});
|
|
2428
|
+
};
|
|
2429
|
+
},
|
|
2356
2430
|
/**
|
|
2357
2431
|
* Retrieves a single auto order using the specified auto order oid.
|
|
2358
2432
|
* @summary Retrieve an auto order by oid
|
|
@@ -2573,6 +2647,17 @@ exports.AutoOrderApiFp = AutoOrderApiFp;
|
|
|
2573
2647
|
*/
|
|
2574
2648
|
var AutoOrderApiFactory = function (configuration, fetch, basePath) {
|
|
2575
2649
|
return {
|
|
2650
|
+
/**
|
|
2651
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
2652
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
2653
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
2654
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2655
|
+
* @param {*} [options] Override http request option.
|
|
2656
|
+
* @throws {RequiredError}
|
|
2657
|
+
*/
|
|
2658
|
+
establishAutoOrderByReferenceOrderId: function (reference_order_id, _expand, options) {
|
|
2659
|
+
return (0, exports.AutoOrderApiFp)(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(fetch, basePath);
|
|
2660
|
+
},
|
|
2576
2661
|
/**
|
|
2577
2662
|
* Retrieves a single auto order using the specified auto order oid.
|
|
2578
2663
|
* @summary Retrieve an auto order by oid
|
|
@@ -2702,6 +2787,18 @@ var AutoOrderApi = /** @class */ (function (_super) {
|
|
|
2702
2787
|
function AutoOrderApi() {
|
|
2703
2788
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2704
2789
|
}
|
|
2790
|
+
/**
|
|
2791
|
+
* Establish an auto order by referencing a regular order id. The result will be an auto order without any items. You should add the items and perform an update call. Orders must be less than 60 days old and use a credit card payment.
|
|
2792
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
2793
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
2794
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2795
|
+
* @param {*} [options] Override http request option.
|
|
2796
|
+
* @throws {RequiredError}
|
|
2797
|
+
* @memberof AutoOrderApi
|
|
2798
|
+
*/
|
|
2799
|
+
AutoOrderApi.prototype.establishAutoOrderByReferenceOrderId = function (reference_order_id, _expand, options) {
|
|
2800
|
+
return (0, exports.AutoOrderApiFp)(this.configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(this.fetch, this.basePath);
|
|
2801
|
+
};
|
|
2705
2802
|
/**
|
|
2706
2803
|
* Retrieves a single auto order using the specified auto order oid.
|
|
2707
2804
|
* @summary Retrieve an auto order by oid
|