ultracart_rest_api_v2_typescript 3.10.144 → 3.10.146
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 +133 -1
- package/dist/api.d.ts +65 -1
- package/dist/api.js +119 -3
- 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.146
|
|
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.146 --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.146 | 06/20/2023 | auto order - establishAutoOrderByReferenceOrderId method added |
|
|
58
|
+
| 3.10.145 | 06/20/2023 | coupon add allowed values for usable_by and new OncePerNewCustomerForItem flag |
|
|
57
59
|
| 3.10.144 | 06/15/2023 | add pickup_dts to order.shipping object |
|
|
58
60
|
| 3.10.143 | 06/14/2023 | dw bi: add request_dts on the execute queries request and report data set objects |
|
|
59
61
|
| 3.10.142 | 06/09/2023 | distribution center pickup times |
|
package/api.ts
CHANGED
|
@@ -9870,7 +9870,25 @@ export interface Coupon {
|
|
|
9870
9870
|
* @type {string}
|
|
9871
9871
|
* @memberof Coupon
|
|
9872
9872
|
*/
|
|
9873
|
-
usable_by?:
|
|
9873
|
+
usable_by?: Coupon.UsableByEnum;
|
|
9874
|
+
}
|
|
9875
|
+
|
|
9876
|
+
/**
|
|
9877
|
+
* @export
|
|
9878
|
+
* @namespace Coupon
|
|
9879
|
+
*/
|
|
9880
|
+
export namespace Coupon {
|
|
9881
|
+
/**
|
|
9882
|
+
* @export
|
|
9883
|
+
* @enum {string}
|
|
9884
|
+
*/
|
|
9885
|
+
export enum UsableByEnum {
|
|
9886
|
+
Anyone = <any> 'Anyone',
|
|
9887
|
+
UniqueCode = <any> 'UniqueCode',
|
|
9888
|
+
OncePerCustomer = <any> 'OncePerCustomer',
|
|
9889
|
+
OncePerNewCustomer = <any> 'OncePerNewCustomer',
|
|
9890
|
+
OncePerNewCustomerForItem = <any> 'OncePerNewCustomerForItem'
|
|
9891
|
+
}
|
|
9874
9892
|
}
|
|
9875
9893
|
|
|
9876
9894
|
/**
|
|
@@ -40859,6 +40877,63 @@ export class AffiliateApi extends BaseAPI implements AffiliateApiInterface {
|
|
|
40859
40877
|
*/
|
|
40860
40878
|
export const AutoOrderApiFetchParamCreator = function (configuration?: Configuration) {
|
|
40861
40879
|
return {
|
|
40880
|
+
/**
|
|
40881
|
+
* 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.
|
|
40882
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40883
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40884
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40885
|
+
* @param {*} [options] Override http request option.
|
|
40886
|
+
* @throws {RequiredError}
|
|
40887
|
+
*/
|
|
40888
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options: any = {}): FetchArgs {
|
|
40889
|
+
// verify required parameter 'reference_order_id' is not null or undefined
|
|
40890
|
+
if (reference_order_id === null || reference_order_id === undefined) {
|
|
40891
|
+
throw new RequiredError('reference_order_id','Required parameter reference_order_id was null or undefined when calling establishAutoOrderByReferenceOrderId.');
|
|
40892
|
+
}
|
|
40893
|
+
const localVarPath = `/auto_order/auto_orders/reference_order_id/{reference_order_id}`
|
|
40894
|
+
.replace(`{${"reference_order_id"}}`, encodeURIComponent(String(reference_order_id)));
|
|
40895
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
40896
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
40897
|
+
const localVarHeaderParameter = {} as any;
|
|
40898
|
+
const localVarQueryParameter = {} as any;
|
|
40899
|
+
|
|
40900
|
+
if(configuration && configuration.apiVersion) {
|
|
40901
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
40902
|
+
}
|
|
40903
|
+
|
|
40904
|
+
|
|
40905
|
+
|
|
40906
|
+
// authentication ultraCartOauth required
|
|
40907
|
+
// oauth required
|
|
40908
|
+
if (configuration && configuration.accessToken) {
|
|
40909
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
40910
|
+
? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
|
|
40911
|
+
: configuration.accessToken;
|
|
40912
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
40913
|
+
}
|
|
40914
|
+
|
|
40915
|
+
// authentication ultraCartSimpleApiKey required
|
|
40916
|
+
if (configuration && configuration.apiKey) {
|
|
40917
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
40918
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
40919
|
+
: configuration.apiKey;
|
|
40920
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
40921
|
+
}
|
|
40922
|
+
|
|
40923
|
+
if (_expand !== undefined) {
|
|
40924
|
+
localVarQueryParameter['_expand'] = _expand;
|
|
40925
|
+
}
|
|
40926
|
+
|
|
40927
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
40928
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
40929
|
+
delete localVarUrlObj.search;
|
|
40930
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
40931
|
+
|
|
40932
|
+
return {
|
|
40933
|
+
url: url.format(localVarUrlObj),
|
|
40934
|
+
options: localVarRequestOptions,
|
|
40935
|
+
};
|
|
40936
|
+
},
|
|
40862
40937
|
/**
|
|
40863
40938
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40864
40939
|
* @summary Retrieve an auto order by oid
|
|
@@ -41471,6 +41546,28 @@ export const AutoOrderApiFetchParamCreator = function (configuration?: Configura
|
|
|
41471
41546
|
*/
|
|
41472
41547
|
export const AutoOrderApiFp = function(configuration?: Configuration) {
|
|
41473
41548
|
return {
|
|
41549
|
+
/**
|
|
41550
|
+
* 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.
|
|
41551
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
41552
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
41553
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41554
|
+
* @param {*} [options] Override http request option.
|
|
41555
|
+
* @throws {RequiredError}
|
|
41556
|
+
*/
|
|
41557
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse> {
|
|
41558
|
+
const localVarFetchArgs = AutoOrderApiFetchParamCreator(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options);
|
|
41559
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
41560
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
41561
|
+
|
|
41562
|
+
if (response.status >= 200 && response.status < 300) {
|
|
41563
|
+
return response.json();
|
|
41564
|
+
|
|
41565
|
+
} else {
|
|
41566
|
+
throw response;
|
|
41567
|
+
}
|
|
41568
|
+
});
|
|
41569
|
+
};
|
|
41570
|
+
},
|
|
41474
41571
|
/**
|
|
41475
41572
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41476
41573
|
* @summary Retrieve an auto order by oid
|
|
@@ -41683,6 +41780,17 @@ export const AutoOrderApiFp = function(configuration?: Configuration) {
|
|
|
41683
41780
|
*/
|
|
41684
41781
|
export const AutoOrderApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
|
|
41685
41782
|
return {
|
|
41783
|
+
/**
|
|
41784
|
+
* 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.
|
|
41785
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
41786
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
41787
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41788
|
+
* @param {*} [options] Override http request option.
|
|
41789
|
+
* @throws {RequiredError}
|
|
41790
|
+
*/
|
|
41791
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any) {
|
|
41792
|
+
return AutoOrderApiFp(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(fetch, basePath);
|
|
41793
|
+
},
|
|
41686
41794
|
/**
|
|
41687
41795
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41688
41796
|
* @summary Retrieve an auto order by oid
|
|
@@ -41807,6 +41915,17 @@ export const AutoOrderApiFactory = function (configuration?: Configuration, fetc
|
|
|
41807
41915
|
* @interface AutoOrderApi
|
|
41808
41916
|
*/
|
|
41809
41917
|
export interface AutoOrderApiInterface {
|
|
41918
|
+
/**
|
|
41919
|
+
* 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.
|
|
41920
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
41921
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
41922
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
41923
|
+
* @param {*} [options] Override http request option.
|
|
41924
|
+
* @throws {RequiredError}
|
|
41925
|
+
* @memberof AutoOrderApiInterface
|
|
41926
|
+
*/
|
|
41927
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
41928
|
+
|
|
41810
41929
|
/**
|
|
41811
41930
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41812
41931
|
* @summary Retrieve an auto order by oid
|
|
@@ -41931,6 +42050,19 @@ export interface AutoOrderApiInterface {
|
|
|
41931
42050
|
* @extends {BaseAPI}
|
|
41932
42051
|
*/
|
|
41933
42052
|
export class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
|
|
42053
|
+
/**
|
|
42054
|
+
* 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.
|
|
42055
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
42056
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
42057
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
42058
|
+
* @param {*} [options] Override http request option.
|
|
42059
|
+
* @throws {RequiredError}
|
|
42060
|
+
* @memberof AutoOrderApi
|
|
42061
|
+
*/
|
|
42062
|
+
public establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any) {
|
|
42063
|
+
return AutoOrderApiFp(this.configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(this.fetch, this.basePath);
|
|
42064
|
+
}
|
|
42065
|
+
|
|
41934
42066
|
/**
|
|
41935
42067
|
* Retrieves a single auto order using the specified auto order oid.
|
|
41936
42068
|
* @summary Retrieve an auto order by oid
|
package/dist/api.d.ts
CHANGED
|
@@ -9640,7 +9640,24 @@ export interface Coupon {
|
|
|
9640
9640
|
* @type {string}
|
|
9641
9641
|
* @memberof Coupon
|
|
9642
9642
|
*/
|
|
9643
|
-
usable_by?:
|
|
9643
|
+
usable_by?: Coupon.UsableByEnum;
|
|
9644
|
+
}
|
|
9645
|
+
/**
|
|
9646
|
+
* @export
|
|
9647
|
+
* @namespace Coupon
|
|
9648
|
+
*/
|
|
9649
|
+
export declare namespace Coupon {
|
|
9650
|
+
/**
|
|
9651
|
+
* @export
|
|
9652
|
+
* @enum {string}
|
|
9653
|
+
*/
|
|
9654
|
+
enum UsableByEnum {
|
|
9655
|
+
Anyone,
|
|
9656
|
+
UniqueCode,
|
|
9657
|
+
OncePerCustomer,
|
|
9658
|
+
OncePerNewCustomer,
|
|
9659
|
+
OncePerNewCustomerForItem
|
|
9660
|
+
}
|
|
9644
9661
|
}
|
|
9645
9662
|
/**
|
|
9646
9663
|
*
|
|
@@ -39828,6 +39845,15 @@ export declare class AffiliateApi extends BaseAPI implements AffiliateApiInterfa
|
|
|
39828
39845
|
* @export
|
|
39829
39846
|
*/
|
|
39830
39847
|
export declare const AutoOrderApiFetchParamCreator: (configuration?: Configuration) => {
|
|
39848
|
+
/**
|
|
39849
|
+
* 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.
|
|
39850
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
39851
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
39852
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
39853
|
+
* @param {*} [options] Override http request option.
|
|
39854
|
+
* @throws {RequiredError}
|
|
39855
|
+
*/
|
|
39856
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): FetchArgs;
|
|
39831
39857
|
/**
|
|
39832
39858
|
* Retrieves a single auto order using the specified auto order oid.
|
|
39833
39859
|
* @summary Retrieve an auto order by oid
|
|
@@ -39933,6 +39959,15 @@ export declare const AutoOrderApiFetchParamCreator: (configuration?: Configurati
|
|
|
39933
39959
|
* @export
|
|
39934
39960
|
*/
|
|
39935
39961
|
export declare const AutoOrderApiFp: (configuration?: Configuration) => {
|
|
39962
|
+
/**
|
|
39963
|
+
* 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.
|
|
39964
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
39965
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
39966
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
39967
|
+
* @param {*} [options] Override http request option.
|
|
39968
|
+
* @throws {RequiredError}
|
|
39969
|
+
*/
|
|
39970
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AutoOrderResponse>;
|
|
39936
39971
|
/**
|
|
39937
39972
|
* Retrieves a single auto order using the specified auto order oid.
|
|
39938
39973
|
* @summary Retrieve an auto order by oid
|
|
@@ -40038,6 +40073,15 @@ export declare const AutoOrderApiFp: (configuration?: Configuration) => {
|
|
|
40038
40073
|
* @export
|
|
40039
40074
|
*/
|
|
40040
40075
|
export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
|
|
40076
|
+
/**
|
|
40077
|
+
* 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.
|
|
40078
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40079
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40080
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40081
|
+
* @param {*} [options] Override http request option.
|
|
40082
|
+
* @throws {RequiredError}
|
|
40083
|
+
*/
|
|
40084
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40041
40085
|
/**
|
|
40042
40086
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40043
40087
|
* @summary Retrieve an auto order by oid
|
|
@@ -40144,6 +40188,16 @@ export declare const AutoOrderApiFactory: (configuration?: Configuration, fetch?
|
|
|
40144
40188
|
* @interface AutoOrderApi
|
|
40145
40189
|
*/
|
|
40146
40190
|
export interface AutoOrderApiInterface {
|
|
40191
|
+
/**
|
|
40192
|
+
* 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.
|
|
40193
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40194
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40195
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40196
|
+
* @param {*} [options] Override http request option.
|
|
40197
|
+
* @throws {RequiredError}
|
|
40198
|
+
* @memberof AutoOrderApiInterface
|
|
40199
|
+
*/
|
|
40200
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40147
40201
|
/**
|
|
40148
40202
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40149
40203
|
* @summary Retrieve an auto order by oid
|
|
@@ -40259,6 +40313,16 @@ export interface AutoOrderApiInterface {
|
|
|
40259
40313
|
* @extends {BaseAPI}
|
|
40260
40314
|
*/
|
|
40261
40315
|
export declare class AutoOrderApi extends BaseAPI implements AutoOrderApiInterface {
|
|
40316
|
+
/**
|
|
40317
|
+
* 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.
|
|
40318
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
40319
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
40320
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
40321
|
+
* @param {*} [options] Override http request option.
|
|
40322
|
+
* @throws {RequiredError}
|
|
40323
|
+
* @memberof AutoOrderApi
|
|
40324
|
+
*/
|
|
40325
|
+
establishAutoOrderByReferenceOrderId(reference_order_id: string, _expand?: string, options?: any): Promise<AutoOrderResponse>;
|
|
40262
40326
|
/**
|
|
40263
40327
|
* Retrieves a single auto order using the specified auto order oid.
|
|
40264
40328
|
* @summary Retrieve an auto order by oid
|
package/dist/api.js
CHANGED
|
@@ -28,9 +28,10 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
28
28
|
};
|
|
29
29
|
})();
|
|
30
30
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
31
|
+
exports.OrderFormat = exports.OrderEdiDocument = exports.OrderAutoOrder = exports.OrderAffiliateLedger = exports.Order = exports.OauthTokenResponse = exports.ItemThirdPartyEmailMarketing = exports.ItemTax = exports.ItemTag = exports.ItemShippingMethod = exports.ItemShippingDestinationRestriction = exports.ItemReview = exports.ItemRestrictionItem = exports.ItemRelatedItem = exports.ItemOptionValue = exports.ItemOption = exports.ItemContentMultimedia = exports.ItemAutoOrderStep = exports.Experiment = exports.EmailPerformance = exports.EmailCommseqStep = exports.Distance = exports.Coupon = exports.ConversationWebsocketMessage = exports.ConversationWebchatQueueStatusUpdateRequest = exports.ConversationWebchatQueueStatusAgent = exports.ConversationSummary = exports.ConversationSentiment = exports.ConversationMessageTransportStatus = exports.ConversationMessage = exports.ConversationEventRRWeb = exports.ConversationEngagementEquationFunction = exports.ConversationEngagement = exports.ConversationAgentProfile = exports.Conversation = exports.CheckoutHandoffRequest = exports.ChannelPartnerOrderItem = exports.ChannelPartnerOrder = exports.CartKitComponentOption = exports.CartItemOption = exports.CartItemMultimedia = exports.CartCustomerProfileCreditCard = exports.AutoOrderItemSimpleSchedule = exports.AutoOrderItem = exports.AutoOrder = exports.AffiliateLink = exports.AffiliateLedger = exports.RequiredError = exports.BaseAPI = exports.COLLECTION_FORMATS = void 0;
|
|
32
|
+
exports.CustomerApiFetchParamCreator = exports.CouponApi = exports.CouponApiFactory = exports.CouponApiFp = exports.CouponApiFetchParamCreator = exports.ConversationApi = exports.ConversationApiFactory = exports.ConversationApiFp = exports.ConversationApiFetchParamCreator = exports.CheckoutApi = exports.CheckoutApiFactory = exports.CheckoutApiFp = exports.CheckoutApiFetchParamCreator = exports.ChargebackApi = exports.ChargebackApiFactory = exports.ChargebackApiFp = exports.ChargebackApiFetchParamCreator = exports.ChannelPartnerApi = exports.ChannelPartnerApiFactory = exports.ChannelPartnerApiFp = exports.ChannelPartnerApiFetchParamCreator = exports.AutoOrderApi = exports.AutoOrderApiFactory = exports.AutoOrderApiFp = exports.AutoOrderApiFetchParamCreator = exports.AffiliateApi = exports.AffiliateApiFactory = exports.AffiliateApiFp = exports.AffiliateApiFetchParamCreator = exports.Weight = exports.Webhook = exports.TempMultimedia = exports.ReportWebsocketEvent = exports.ReportPageVisualizationMetric = exports.ReportPageVisualization = exports.ReportFilter = exports.ReportExecuteQueriesRequest = exports.ReportDataSourceSchema = exports.ReportDataSetSchema = exports.ReportDataSetQuery = exports.ReportDataSet = exports.Report = exports.PointOfSaleReader = exports.OrderQuery = exports.OrderPaymentECheck = exports.OrderPaymentCreditCard = exports.OrderPayment = exports.OrderItemOption = exports.OrderItem = exports.OrderFraudScore = void 0;
|
|
33
|
+
exports.WebhookApiFactory = exports.WebhookApiFp = exports.WebhookApiFetchParamCreator = exports.UserApi = exports.UserApiFactory = exports.UserApiFp = exports.UserApiFetchParamCreator = exports.TaxApi = exports.TaxApiFactory = exports.TaxApiFp = exports.TaxApiFetchParamCreator = exports.StorefrontApi = exports.StorefrontApiFactory = exports.StorefrontApiFp = exports.StorefrontApiFetchParamCreator = exports.SsoApi = exports.SsoApiFactory = exports.SsoApiFp = exports.SsoApiFetchParamCreator = exports.OrderApi = exports.OrderApiFactory = exports.OrderApiFp = exports.OrderApiFetchParamCreator = exports.OauthApi = exports.OauthApiFactory = exports.OauthApiFp = exports.OauthApiFetchParamCreator = exports.ItemApi = exports.ItemApiFactory = exports.ItemApiFp = exports.ItemApiFetchParamCreator = exports.IntegrationLogApi = exports.IntegrationLogApiFactory = exports.IntegrationLogApiFp = exports.IntegrationLogApiFetchParamCreator = exports.GiftCertificateApi = exports.GiftCertificateApiFactory = exports.GiftCertificateApiFp = exports.GiftCertificateApiFetchParamCreator = exports.FulfillmentApi = exports.FulfillmentApiFactory = exports.FulfillmentApiFp = exports.FulfillmentApiFetchParamCreator = exports.DatawarehouseApi = exports.DatawarehouseApiFactory = exports.DatawarehouseApiFp = exports.DatawarehouseApiFetchParamCreator = exports.CustomerApi = exports.CustomerApiFactory = exports.CustomerApiFp = void 0;
|
|
34
|
+
exports.WebhookApi = void 0;
|
|
34
35
|
var url = require("url");
|
|
35
36
|
var portableFetch = require("portable-fetch");
|
|
36
37
|
var BASE_PATH = "https://secure.ultracart.com/rest/v2".replace(/\/+$/, "");
|
|
@@ -662,6 +663,25 @@ var ConversationWebsocketMessage;
|
|
|
662
663
|
TypeEnum[TypeEnum["CheckQueuePosition"] = 'check queue position'] = "CheckQueuePosition";
|
|
663
664
|
})(TypeEnum = ConversationWebsocketMessage.TypeEnum || (ConversationWebsocketMessage.TypeEnum = {}));
|
|
664
665
|
})(ConversationWebsocketMessage = exports.ConversationWebsocketMessage || (exports.ConversationWebsocketMessage = {}));
|
|
666
|
+
/**
|
|
667
|
+
* @export
|
|
668
|
+
* @namespace Coupon
|
|
669
|
+
*/
|
|
670
|
+
var Coupon;
|
|
671
|
+
(function (Coupon) {
|
|
672
|
+
/**
|
|
673
|
+
* @export
|
|
674
|
+
* @enum {string}
|
|
675
|
+
*/
|
|
676
|
+
var UsableByEnum;
|
|
677
|
+
(function (UsableByEnum) {
|
|
678
|
+
UsableByEnum[UsableByEnum["Anyone"] = 'Anyone'] = "Anyone";
|
|
679
|
+
UsableByEnum[UsableByEnum["UniqueCode"] = 'UniqueCode'] = "UniqueCode";
|
|
680
|
+
UsableByEnum[UsableByEnum["OncePerCustomer"] = 'OncePerCustomer'] = "OncePerCustomer";
|
|
681
|
+
UsableByEnum[UsableByEnum["OncePerNewCustomer"] = 'OncePerNewCustomer'] = "OncePerNewCustomer";
|
|
682
|
+
UsableByEnum[UsableByEnum["OncePerNewCustomerForItem"] = 'OncePerNewCustomerForItem'] = "OncePerNewCustomerForItem";
|
|
683
|
+
})(UsableByEnum = Coupon.UsableByEnum || (Coupon.UsableByEnum = {}));
|
|
684
|
+
})(Coupon = exports.Coupon || (exports.Coupon = {}));
|
|
665
685
|
/**
|
|
666
686
|
* @export
|
|
667
687
|
* @namespace Distance
|
|
@@ -1808,6 +1828,56 @@ exports.AffiliateApi = AffiliateApi;
|
|
|
1808
1828
|
*/
|
|
1809
1829
|
var AutoOrderApiFetchParamCreator = function (configuration) {
|
|
1810
1830
|
return {
|
|
1831
|
+
/**
|
|
1832
|
+
* 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.
|
|
1833
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
1834
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
1835
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
1836
|
+
* @param {*} [options] Override http request option.
|
|
1837
|
+
* @throws {RequiredError}
|
|
1838
|
+
*/
|
|
1839
|
+
establishAutoOrderByReferenceOrderId: function (reference_order_id, _expand, options) {
|
|
1840
|
+
if (options === void 0) { options = {}; }
|
|
1841
|
+
// verify required parameter 'reference_order_id' is not null or undefined
|
|
1842
|
+
if (reference_order_id === null || reference_order_id === undefined) {
|
|
1843
|
+
throw new RequiredError('reference_order_id', 'Required parameter reference_order_id was null or undefined when calling establishAutoOrderByReferenceOrderId.');
|
|
1844
|
+
}
|
|
1845
|
+
var localVarPath = "/auto_order/auto_orders/reference_order_id/{reference_order_id}"
|
|
1846
|
+
.replace("{".concat("reference_order_id", "}"), encodeURIComponent(String(reference_order_id)));
|
|
1847
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
1848
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
1849
|
+
var localVarHeaderParameter = {};
|
|
1850
|
+
var localVarQueryParameter = {};
|
|
1851
|
+
if (configuration && configuration.apiVersion) {
|
|
1852
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
1853
|
+
}
|
|
1854
|
+
// authentication ultraCartOauth required
|
|
1855
|
+
// oauth required
|
|
1856
|
+
if (configuration && configuration.accessToken) {
|
|
1857
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
1858
|
+
? configuration.accessToken("ultraCartOauth", ["auto_order_write"])
|
|
1859
|
+
: configuration.accessToken;
|
|
1860
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
1861
|
+
}
|
|
1862
|
+
// authentication ultraCartSimpleApiKey required
|
|
1863
|
+
if (configuration && configuration.apiKey) {
|
|
1864
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
1865
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
1866
|
+
: configuration.apiKey;
|
|
1867
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
1868
|
+
}
|
|
1869
|
+
if (_expand !== undefined) {
|
|
1870
|
+
localVarQueryParameter['_expand'] = _expand;
|
|
1871
|
+
}
|
|
1872
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
1873
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
1874
|
+
delete localVarUrlObj.search;
|
|
1875
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
1876
|
+
return {
|
|
1877
|
+
url: url.format(localVarUrlObj),
|
|
1878
|
+
options: localVarRequestOptions,
|
|
1879
|
+
};
|
|
1880
|
+
},
|
|
1811
1881
|
/**
|
|
1812
1882
|
* Retrieves a single auto order using the specified auto order oid.
|
|
1813
1883
|
* @summary Retrieve an auto order by oid
|
|
@@ -2333,6 +2403,29 @@ exports.AutoOrderApiFetchParamCreator = AutoOrderApiFetchParamCreator;
|
|
|
2333
2403
|
*/
|
|
2334
2404
|
var AutoOrderApiFp = function (configuration) {
|
|
2335
2405
|
return {
|
|
2406
|
+
/**
|
|
2407
|
+
* 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.
|
|
2408
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
2409
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
2410
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2411
|
+
* @param {*} [options] Override http request option.
|
|
2412
|
+
* @throws {RequiredError}
|
|
2413
|
+
*/
|
|
2414
|
+
establishAutoOrderByReferenceOrderId: function (reference_order_id, _expand, options) {
|
|
2415
|
+
var localVarFetchArgs = (0, exports.AutoOrderApiFetchParamCreator)(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options);
|
|
2416
|
+
return function (fetch, basePath) {
|
|
2417
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
2418
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
2419
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
2420
|
+
if (response.status >= 200 && response.status < 300) {
|
|
2421
|
+
return response.json();
|
|
2422
|
+
}
|
|
2423
|
+
else {
|
|
2424
|
+
throw response;
|
|
2425
|
+
}
|
|
2426
|
+
});
|
|
2427
|
+
};
|
|
2428
|
+
},
|
|
2336
2429
|
/**
|
|
2337
2430
|
* Retrieves a single auto order using the specified auto order oid.
|
|
2338
2431
|
* @summary Retrieve an auto order by oid
|
|
@@ -2553,6 +2646,17 @@ exports.AutoOrderApiFp = AutoOrderApiFp;
|
|
|
2553
2646
|
*/
|
|
2554
2647
|
var AutoOrderApiFactory = function (configuration, fetch, basePath) {
|
|
2555
2648
|
return {
|
|
2649
|
+
/**
|
|
2650
|
+
* 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.
|
|
2651
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
2652
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
2653
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2654
|
+
* @param {*} [options] Override http request option.
|
|
2655
|
+
* @throws {RequiredError}
|
|
2656
|
+
*/
|
|
2657
|
+
establishAutoOrderByReferenceOrderId: function (reference_order_id, _expand, options) {
|
|
2658
|
+
return (0, exports.AutoOrderApiFp)(configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(fetch, basePath);
|
|
2659
|
+
},
|
|
2556
2660
|
/**
|
|
2557
2661
|
* Retrieves a single auto order using the specified auto order oid.
|
|
2558
2662
|
* @summary Retrieve an auto order by oid
|
|
@@ -2682,6 +2786,18 @@ var AutoOrderApi = /** @class */ (function (_super) {
|
|
|
2682
2786
|
function AutoOrderApi() {
|
|
2683
2787
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
2684
2788
|
}
|
|
2789
|
+
/**
|
|
2790
|
+
* 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.
|
|
2791
|
+
* @summary Establish an auto order by referencing a regular order id
|
|
2792
|
+
* @param {string} reference_order_id The order id to attach this auto order to
|
|
2793
|
+
* @param {string} [_expand] The object expansion to perform on the result. See documentation for examples
|
|
2794
|
+
* @param {*} [options] Override http request option.
|
|
2795
|
+
* @throws {RequiredError}
|
|
2796
|
+
* @memberof AutoOrderApi
|
|
2797
|
+
*/
|
|
2798
|
+
AutoOrderApi.prototype.establishAutoOrderByReferenceOrderId = function (reference_order_id, _expand, options) {
|
|
2799
|
+
return (0, exports.AutoOrderApiFp)(this.configuration).establishAutoOrderByReferenceOrderId(reference_order_id, _expand, options)(this.fetch, this.basePath);
|
|
2800
|
+
};
|
|
2685
2801
|
/**
|
|
2686
2802
|
* Retrieves a single auto order using the specified auto order oid.
|
|
2687
2803
|
* @summary Retrieve an auto order by oid
|