ultracart_rest_api_v2_typescript 3.10.37 → 3.10.38
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 +3 -2
- package/api.ts +368 -0
- package/dist/api.d.ts +231 -0
- package/dist/api.js +185 -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.38
|
|
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.38 --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.38 | 08/12/2022 | internal code to allow merchant login as customer |
|
|
57
58
|
| 3.10.37 | 08/11/2022 | fix entry_dts type on gift certificate ledger |
|
|
58
59
|
| 3.10.36 | 08/10/2022 | conversation event refactoring |
|
|
59
60
|
| 3.10.35 | 08/05/2022 | conversation adjustments for ES integration |
|
package/api.ts
CHANGED
|
@@ -10738,6 +10738,44 @@ export interface CustomerLoyaltyRedemption {
|
|
|
10738
10738
|
remaining_balance?: number;
|
|
10739
10739
|
}
|
|
10740
10740
|
|
|
10741
|
+
/**
|
|
10742
|
+
*
|
|
10743
|
+
* @export
|
|
10744
|
+
* @interface CustomerMagicLinkResponse
|
|
10745
|
+
*/
|
|
10746
|
+
export interface CustomerMagicLinkResponse {
|
|
10747
|
+
/**
|
|
10748
|
+
*
|
|
10749
|
+
* @type {ModelError}
|
|
10750
|
+
* @memberof CustomerMagicLinkResponse
|
|
10751
|
+
*/
|
|
10752
|
+
error?: ModelError;
|
|
10753
|
+
/**
|
|
10754
|
+
*
|
|
10755
|
+
* @type {ResponseMetadata}
|
|
10756
|
+
* @memberof CustomerMagicLinkResponse
|
|
10757
|
+
*/
|
|
10758
|
+
metadata?: ResponseMetadata;
|
|
10759
|
+
/**
|
|
10760
|
+
* Indicates if API call was successful
|
|
10761
|
+
* @type {boolean}
|
|
10762
|
+
* @memberof CustomerMagicLinkResponse
|
|
10763
|
+
*/
|
|
10764
|
+
success?: boolean;
|
|
10765
|
+
/**
|
|
10766
|
+
* URL
|
|
10767
|
+
* @type {string}
|
|
10768
|
+
* @memberof CustomerMagicLinkResponse
|
|
10769
|
+
*/
|
|
10770
|
+
url?: string;
|
|
10771
|
+
/**
|
|
10772
|
+
*
|
|
10773
|
+
* @type {Warning}
|
|
10774
|
+
* @memberof CustomerMagicLinkResponse
|
|
10775
|
+
*/
|
|
10776
|
+
warning?: Warning;
|
|
10777
|
+
}
|
|
10778
|
+
|
|
10741
10779
|
/**
|
|
10742
10780
|
*
|
|
10743
10781
|
* @export
|
|
@@ -31679,6 +31717,118 @@ export interface StepWaiting {
|
|
|
31679
31717
|
number_waiting?: number;
|
|
31680
31718
|
}
|
|
31681
31719
|
|
|
31720
|
+
/**
|
|
31721
|
+
*
|
|
31722
|
+
* @export
|
|
31723
|
+
* @interface StoreFront
|
|
31724
|
+
*/
|
|
31725
|
+
export interface StoreFront {
|
|
31726
|
+
/**
|
|
31727
|
+
*
|
|
31728
|
+
* @type {string}
|
|
31729
|
+
* @memberof StoreFront
|
|
31730
|
+
*/
|
|
31731
|
+
host_alias1?: string;
|
|
31732
|
+
/**
|
|
31733
|
+
*
|
|
31734
|
+
* @type {string}
|
|
31735
|
+
* @memberof StoreFront
|
|
31736
|
+
*/
|
|
31737
|
+
host_alias2?: string;
|
|
31738
|
+
/**
|
|
31739
|
+
*
|
|
31740
|
+
* @type {string}
|
|
31741
|
+
* @memberof StoreFront
|
|
31742
|
+
*/
|
|
31743
|
+
host_alias3?: string;
|
|
31744
|
+
/**
|
|
31745
|
+
*
|
|
31746
|
+
* @type {string}
|
|
31747
|
+
* @memberof StoreFront
|
|
31748
|
+
*/
|
|
31749
|
+
host_alias4?: string;
|
|
31750
|
+
/**
|
|
31751
|
+
*
|
|
31752
|
+
* @type {string}
|
|
31753
|
+
* @memberof StoreFront
|
|
31754
|
+
*/
|
|
31755
|
+
host_alias5?: string;
|
|
31756
|
+
/**
|
|
31757
|
+
*
|
|
31758
|
+
* @type {string}
|
|
31759
|
+
* @memberof StoreFront
|
|
31760
|
+
*/
|
|
31761
|
+
host_name?: string;
|
|
31762
|
+
/**
|
|
31763
|
+
*
|
|
31764
|
+
* @type {boolean}
|
|
31765
|
+
* @memberof StoreFront
|
|
31766
|
+
*/
|
|
31767
|
+
locked?: boolean;
|
|
31768
|
+
/**
|
|
31769
|
+
*
|
|
31770
|
+
* @type {string}
|
|
31771
|
+
* @memberof StoreFront
|
|
31772
|
+
*/
|
|
31773
|
+
merchant_id?: string;
|
|
31774
|
+
/**
|
|
31775
|
+
*
|
|
31776
|
+
* @type {boolean}
|
|
31777
|
+
* @memberof StoreFront
|
|
31778
|
+
*/
|
|
31779
|
+
redirect_aliases?: boolean;
|
|
31780
|
+
/**
|
|
31781
|
+
*
|
|
31782
|
+
* @type {number}
|
|
31783
|
+
* @memberof StoreFront
|
|
31784
|
+
*/
|
|
31785
|
+
storefront_oid?: number;
|
|
31786
|
+
/**
|
|
31787
|
+
*
|
|
31788
|
+
* @type {string}
|
|
31789
|
+
* @memberof StoreFront
|
|
31790
|
+
*/
|
|
31791
|
+
unlock_password?: string;
|
|
31792
|
+
}
|
|
31793
|
+
|
|
31794
|
+
/**
|
|
31795
|
+
*
|
|
31796
|
+
* @export
|
|
31797
|
+
* @interface StoreFrontsResponse
|
|
31798
|
+
*/
|
|
31799
|
+
export interface StoreFrontsResponse {
|
|
31800
|
+
/**
|
|
31801
|
+
*
|
|
31802
|
+
* @type {ModelError}
|
|
31803
|
+
* @memberof StoreFrontsResponse
|
|
31804
|
+
*/
|
|
31805
|
+
error?: ModelError;
|
|
31806
|
+
/**
|
|
31807
|
+
*
|
|
31808
|
+
* @type {ResponseMetadata}
|
|
31809
|
+
* @memberof StoreFrontsResponse
|
|
31810
|
+
*/
|
|
31811
|
+
metadata?: ResponseMetadata;
|
|
31812
|
+
/**
|
|
31813
|
+
*
|
|
31814
|
+
* @type {Array<StoreFront>}
|
|
31815
|
+
* @memberof StoreFrontsResponse
|
|
31816
|
+
*/
|
|
31817
|
+
storeFronts?: Array<StoreFront>;
|
|
31818
|
+
/**
|
|
31819
|
+
* Indicates if API call was successful
|
|
31820
|
+
* @type {boolean}
|
|
31821
|
+
* @memberof StoreFrontsResponse
|
|
31822
|
+
*/
|
|
31823
|
+
success?: boolean;
|
|
31824
|
+
/**
|
|
31825
|
+
*
|
|
31826
|
+
* @type {Warning}
|
|
31827
|
+
* @memberof StoreFrontsResponse
|
|
31828
|
+
*/
|
|
31829
|
+
warning?: Warning;
|
|
31830
|
+
}
|
|
31831
|
+
|
|
31682
31832
|
/**
|
|
31683
31833
|
*
|
|
31684
31834
|
* @export
|
|
@@ -43435,6 +43585,64 @@ export const CustomerApiFetchParamCreator = function (configuration?: Configurat
|
|
|
43435
43585
|
options: localVarRequestOptions,
|
|
43436
43586
|
};
|
|
43437
43587
|
},
|
|
43588
|
+
/**
|
|
43589
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
43590
|
+
* @summary getMagicLink
|
|
43591
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
43592
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
43593
|
+
* @param {*} [options] Override http request option.
|
|
43594
|
+
* @throws {RequiredError}
|
|
43595
|
+
*/
|
|
43596
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options: any = {}): FetchArgs {
|
|
43597
|
+
// verify required parameter 'customer_profile_oid' is not null or undefined
|
|
43598
|
+
if (customer_profile_oid === null || customer_profile_oid === undefined) {
|
|
43599
|
+
throw new RequiredError('customer_profile_oid','Required parameter customer_profile_oid was null or undefined when calling getMagicLink.');
|
|
43600
|
+
}
|
|
43601
|
+
// verify required parameter 'storefront_host_name' is not null or undefined
|
|
43602
|
+
if (storefront_host_name === null || storefront_host_name === undefined) {
|
|
43603
|
+
throw new RequiredError('storefront_host_name','Required parameter storefront_host_name was null or undefined when calling getMagicLink.');
|
|
43604
|
+
}
|
|
43605
|
+
const localVarPath = `/customer/customers/{customer_profile_oid}/magic_link/{storefront_host_name}`
|
|
43606
|
+
.replace(`{${"customer_profile_oid"}}`, encodeURIComponent(String(customer_profile_oid)))
|
|
43607
|
+
.replace(`{${"storefront_host_name"}}`, encodeURIComponent(String(storefront_host_name)));
|
|
43608
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
43609
|
+
const localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
43610
|
+
const localVarHeaderParameter = {} as any;
|
|
43611
|
+
const localVarQueryParameter = {} as any;
|
|
43612
|
+
|
|
43613
|
+
if(configuration && configuration.apiVersion) {
|
|
43614
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
43615
|
+
}
|
|
43616
|
+
|
|
43617
|
+
|
|
43618
|
+
|
|
43619
|
+
// authentication ultraCartOauth required
|
|
43620
|
+
// oauth required
|
|
43621
|
+
if (configuration && configuration.accessToken) {
|
|
43622
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
43623
|
+
? configuration.accessToken("ultraCartOauth", ["customer_write"])
|
|
43624
|
+
: configuration.accessToken;
|
|
43625
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
43626
|
+
}
|
|
43627
|
+
|
|
43628
|
+
// authentication ultraCartSimpleApiKey required
|
|
43629
|
+
if (configuration && configuration.apiKey) {
|
|
43630
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
43631
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
43632
|
+
: configuration.apiKey;
|
|
43633
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
43634
|
+
}
|
|
43635
|
+
|
|
43636
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
43637
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
43638
|
+
delete localVarUrlObj.search;
|
|
43639
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
43640
|
+
|
|
43641
|
+
return {
|
|
43642
|
+
url: url.format(localVarUrlObj),
|
|
43643
|
+
options: localVarRequestOptions,
|
|
43644
|
+
};
|
|
43645
|
+
},
|
|
43438
43646
|
/**
|
|
43439
43647
|
* Insert a customer on the UltraCart account.
|
|
43440
43648
|
* @summary Insert a customer
|
|
@@ -44105,6 +44313,28 @@ export const CustomerApiFp = function(configuration?: Configuration) {
|
|
|
44105
44313
|
});
|
|
44106
44314
|
};
|
|
44107
44315
|
},
|
|
44316
|
+
/**
|
|
44317
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
44318
|
+
* @summary getMagicLink
|
|
44319
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
44320
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
44321
|
+
* @param {*} [options] Override http request option.
|
|
44322
|
+
* @throws {RequiredError}
|
|
44323
|
+
*/
|
|
44324
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CustomerMagicLinkResponse> {
|
|
44325
|
+
const localVarFetchArgs = CustomerApiFetchParamCreator(configuration).getMagicLink(customer_profile_oid, storefront_host_name, options);
|
|
44326
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
44327
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
44328
|
+
|
|
44329
|
+
if (response.status >= 200 && response.status < 300) {
|
|
44330
|
+
return response.json();
|
|
44331
|
+
|
|
44332
|
+
} else {
|
|
44333
|
+
throw response;
|
|
44334
|
+
}
|
|
44335
|
+
});
|
|
44336
|
+
};
|
|
44337
|
+
},
|
|
44108
44338
|
/**
|
|
44109
44339
|
* Insert a customer on the UltraCart account.
|
|
44110
44340
|
* @summary Insert a customer
|
|
@@ -44404,6 +44634,17 @@ export const CustomerApiFactory = function (configuration?: Configuration, fetch
|
|
|
44404
44634
|
getEmailVerificationToken(token_request: EmailVerifyTokenRequest, options?: any) {
|
|
44405
44635
|
return CustomerApiFp(configuration).getEmailVerificationToken(token_request, options)(fetch, basePath);
|
|
44406
44636
|
},
|
|
44637
|
+
/**
|
|
44638
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
44639
|
+
* @summary getMagicLink
|
|
44640
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
44641
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
44642
|
+
* @param {*} [options] Override http request option.
|
|
44643
|
+
* @throws {RequiredError}
|
|
44644
|
+
*/
|
|
44645
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any) {
|
|
44646
|
+
return CustomerApiFp(configuration).getMagicLink(customer_profile_oid, storefront_host_name, options)(fetch, basePath);
|
|
44647
|
+
},
|
|
44407
44648
|
/**
|
|
44408
44649
|
* Insert a customer on the UltraCart account.
|
|
44409
44650
|
* @summary Insert a customer
|
|
@@ -44637,6 +44878,17 @@ export interface CustomerApiInterface {
|
|
|
44637
44878
|
*/
|
|
44638
44879
|
getEmailVerificationToken(token_request: EmailVerifyTokenRequest, options?: any): Promise<EmailVerifyTokenResponse>;
|
|
44639
44880
|
|
|
44881
|
+
/**
|
|
44882
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
44883
|
+
* @summary getMagicLink
|
|
44884
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
44885
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
44886
|
+
* @param {*} [options] Override http request option.
|
|
44887
|
+
* @throws {RequiredError}
|
|
44888
|
+
* @memberof CustomerApiInterface
|
|
44889
|
+
*/
|
|
44890
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any): Promise<CustomerMagicLinkResponse>;
|
|
44891
|
+
|
|
44640
44892
|
/**
|
|
44641
44893
|
* Insert a customer on the UltraCart account.
|
|
44642
44894
|
* @summary Insert a customer
|
|
@@ -44894,6 +45146,19 @@ export class CustomerApi extends BaseAPI implements CustomerApiInterface {
|
|
|
44894
45146
|
return CustomerApiFp(this.configuration).getEmailVerificationToken(token_request, options)(this.fetch, this.basePath);
|
|
44895
45147
|
}
|
|
44896
45148
|
|
|
45149
|
+
/**
|
|
45150
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
45151
|
+
* @summary getMagicLink
|
|
45152
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
45153
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
45154
|
+
* @param {*} [options] Override http request option.
|
|
45155
|
+
* @throws {RequiredError}
|
|
45156
|
+
* @memberof CustomerApi
|
|
45157
|
+
*/
|
|
45158
|
+
public getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any) {
|
|
45159
|
+
return CustomerApiFp(this.configuration).getMagicLink(customer_profile_oid, storefront_host_name, options)(this.fetch, this.basePath);
|
|
45160
|
+
}
|
|
45161
|
+
|
|
44897
45162
|
/**
|
|
44898
45163
|
* Insert a customer on the UltraCart account.
|
|
44899
45164
|
* @summary Insert a customer
|
|
@@ -58814,6 +59079,60 @@ export const StorefrontApiFetchParamCreator = function (configuration?: Configur
|
|
|
58814
59079
|
options: localVarRequestOptions,
|
|
58815
59080
|
};
|
|
58816
59081
|
},
|
|
59082
|
+
/**
|
|
59083
|
+
*
|
|
59084
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
59085
|
+
* @param {*} [options] Override http request option.
|
|
59086
|
+
* @throws {RequiredError}
|
|
59087
|
+
*/
|
|
59088
|
+
getStoreFronts(options: any = {}): FetchArgs {
|
|
59089
|
+
const localVarPath = `/storefront/`;
|
|
59090
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
59091
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
59092
|
+
const localVarHeaderParameter = {} as any;
|
|
59093
|
+
const localVarQueryParameter = {} as any;
|
|
59094
|
+
|
|
59095
|
+
if(configuration && configuration.apiVersion) {
|
|
59096
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
59097
|
+
}
|
|
59098
|
+
|
|
59099
|
+
|
|
59100
|
+
|
|
59101
|
+
// authentication ultraCartBrowserApiKey required
|
|
59102
|
+
if (configuration && configuration.apiKey) {
|
|
59103
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
59104
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
59105
|
+
: configuration.apiKey;
|
|
59106
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
59107
|
+
}
|
|
59108
|
+
|
|
59109
|
+
// authentication ultraCartOauth required
|
|
59110
|
+
// oauth required
|
|
59111
|
+
if (configuration && configuration.accessToken) {
|
|
59112
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
59113
|
+
? configuration.accessToken("ultraCartOauth", ["ultrabooks_write", "auto_order_write", "coupon_read", "affiliate_read", "coupon_write", "channel_partner_read", "tax_read", "conversation_write", "fulfillment_write", "tax_write", "gift_certificate_write", "channel_partner_write", "item_read", "fulfillment_read", "webhook_write", "chargeback_write", "user_write", "gift_certificate_read", "checkout_write", "storefront_read", "webhook_read", "item_write", "auto_order_read", "customer_read", "user_read", "configuration_read", "customer_write", "order_read", "conversation_read", "affiliate_write", "storefront_write", "ultrabooks_read", "order_write", "chargeback_read", "integration_log_write", "configuration_write", "checkout_read", "integration_log_read"])
|
|
59114
|
+
: configuration.accessToken;
|
|
59115
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
59116
|
+
}
|
|
59117
|
+
|
|
59118
|
+
// authentication ultraCartSimpleApiKey required
|
|
59119
|
+
if (configuration && configuration.apiKey) {
|
|
59120
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
59121
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
59122
|
+
: configuration.apiKey;
|
|
59123
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
59124
|
+
}
|
|
59125
|
+
|
|
59126
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
59127
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
59128
|
+
delete localVarUrlObj.search;
|
|
59129
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
59130
|
+
|
|
59131
|
+
return {
|
|
59132
|
+
url: url.format(localVarUrlObj),
|
|
59133
|
+
options: localVarRequestOptions,
|
|
59134
|
+
};
|
|
59135
|
+
},
|
|
58817
59136
|
/**
|
|
58818
59137
|
*
|
|
58819
59138
|
* @summary Get thumbnail parameters
|
|
@@ -65371,6 +65690,26 @@ export const StorefrontApiFp = function(configuration?: Configuration) {
|
|
|
65371
65690
|
});
|
|
65372
65691
|
};
|
|
65373
65692
|
},
|
|
65693
|
+
/**
|
|
65694
|
+
*
|
|
65695
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
65696
|
+
* @param {*} [options] Override http request option.
|
|
65697
|
+
* @throws {RequiredError}
|
|
65698
|
+
*/
|
|
65699
|
+
getStoreFronts(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<StoreFrontsResponse> {
|
|
65700
|
+
const localVarFetchArgs = StorefrontApiFetchParamCreator(configuration).getStoreFronts(options);
|
|
65701
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
65702
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
65703
|
+
|
|
65704
|
+
if (response.status >= 200 && response.status < 300) {
|
|
65705
|
+
return response.json();
|
|
65706
|
+
|
|
65707
|
+
} else {
|
|
65708
|
+
throw response;
|
|
65709
|
+
}
|
|
65710
|
+
});
|
|
65711
|
+
};
|
|
65712
|
+
},
|
|
65374
65713
|
/**
|
|
65375
65714
|
*
|
|
65376
65715
|
* @summary Get thumbnail parameters
|
|
@@ -67878,6 +68217,15 @@ export const StorefrontApiFactory = function (configuration?: Configuration, fet
|
|
|
67878
68217
|
getStoreFrontPricingTiers(_expand?: string, options?: any) {
|
|
67879
68218
|
return StorefrontApiFp(configuration).getStoreFrontPricingTiers(_expand, options)(fetch, basePath);
|
|
67880
68219
|
},
|
|
68220
|
+
/**
|
|
68221
|
+
*
|
|
68222
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
68223
|
+
* @param {*} [options] Override http request option.
|
|
68224
|
+
* @throws {RequiredError}
|
|
68225
|
+
*/
|
|
68226
|
+
getStoreFronts(options?: any) {
|
|
68227
|
+
return StorefrontApiFp(configuration).getStoreFronts(options)(fetch, basePath);
|
|
68228
|
+
},
|
|
67881
68229
|
/**
|
|
67882
68230
|
*
|
|
67883
68231
|
* @summary Get thumbnail parameters
|
|
@@ -69703,6 +70051,15 @@ export interface StorefrontApiInterface {
|
|
|
69703
70051
|
*/
|
|
69704
70052
|
getStoreFrontPricingTiers(_expand?: string, options?: any): Promise<PricingTiersResponse>;
|
|
69705
70053
|
|
|
70054
|
+
/**
|
|
70055
|
+
*
|
|
70056
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
70057
|
+
* @param {*} [options] Override http request option.
|
|
70058
|
+
* @throws {RequiredError}
|
|
70059
|
+
* @memberof StorefrontApiInterface
|
|
70060
|
+
*/
|
|
70061
|
+
getStoreFronts(options?: any): Promise<StoreFrontsResponse>;
|
|
70062
|
+
|
|
69706
70063
|
/**
|
|
69707
70064
|
*
|
|
69708
70065
|
* @summary Get thumbnail parameters
|
|
@@ -71730,6 +72087,17 @@ export class StorefrontApi extends BaseAPI implements StorefrontApiInterface {
|
|
|
71730
72087
|
return StorefrontApiFp(this.configuration).getStoreFrontPricingTiers(_expand, options)(this.fetch, this.basePath);
|
|
71731
72088
|
}
|
|
71732
72089
|
|
|
72090
|
+
/**
|
|
72091
|
+
*
|
|
72092
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
72093
|
+
* @param {*} [options] Override http request option.
|
|
72094
|
+
* @throws {RequiredError}
|
|
72095
|
+
* @memberof StorefrontApi
|
|
72096
|
+
*/
|
|
72097
|
+
public getStoreFronts(options?: any) {
|
|
72098
|
+
return StorefrontApiFp(this.configuration).getStoreFronts(options)(this.fetch, this.basePath);
|
|
72099
|
+
}
|
|
72100
|
+
|
|
71733
72101
|
/**
|
|
71734
72102
|
*
|
|
71735
72103
|
* @summary Get thumbnail parameters
|
package/dist/api.d.ts
CHANGED
|
@@ -10483,6 +10483,43 @@ export interface CustomerLoyaltyRedemption {
|
|
|
10483
10483
|
*/
|
|
10484
10484
|
remaining_balance?: number;
|
|
10485
10485
|
}
|
|
10486
|
+
/**
|
|
10487
|
+
*
|
|
10488
|
+
* @export
|
|
10489
|
+
* @interface CustomerMagicLinkResponse
|
|
10490
|
+
*/
|
|
10491
|
+
export interface CustomerMagicLinkResponse {
|
|
10492
|
+
/**
|
|
10493
|
+
*
|
|
10494
|
+
* @type {ModelError}
|
|
10495
|
+
* @memberof CustomerMagicLinkResponse
|
|
10496
|
+
*/
|
|
10497
|
+
error?: ModelError;
|
|
10498
|
+
/**
|
|
10499
|
+
*
|
|
10500
|
+
* @type {ResponseMetadata}
|
|
10501
|
+
* @memberof CustomerMagicLinkResponse
|
|
10502
|
+
*/
|
|
10503
|
+
metadata?: ResponseMetadata;
|
|
10504
|
+
/**
|
|
10505
|
+
* Indicates if API call was successful
|
|
10506
|
+
* @type {boolean}
|
|
10507
|
+
* @memberof CustomerMagicLinkResponse
|
|
10508
|
+
*/
|
|
10509
|
+
success?: boolean;
|
|
10510
|
+
/**
|
|
10511
|
+
* URL
|
|
10512
|
+
* @type {string}
|
|
10513
|
+
* @memberof CustomerMagicLinkResponse
|
|
10514
|
+
*/
|
|
10515
|
+
url?: string;
|
|
10516
|
+
/**
|
|
10517
|
+
*
|
|
10518
|
+
* @type {Warning}
|
|
10519
|
+
* @memberof CustomerMagicLinkResponse
|
|
10520
|
+
*/
|
|
10521
|
+
warning?: Warning;
|
|
10522
|
+
}
|
|
10486
10523
|
/**
|
|
10487
10524
|
*
|
|
10488
10525
|
* @export
|
|
@@ -31010,6 +31047,116 @@ export interface StepWaiting {
|
|
|
31010
31047
|
*/
|
|
31011
31048
|
number_waiting?: number;
|
|
31012
31049
|
}
|
|
31050
|
+
/**
|
|
31051
|
+
*
|
|
31052
|
+
* @export
|
|
31053
|
+
* @interface StoreFront
|
|
31054
|
+
*/
|
|
31055
|
+
export interface StoreFront {
|
|
31056
|
+
/**
|
|
31057
|
+
*
|
|
31058
|
+
* @type {string}
|
|
31059
|
+
* @memberof StoreFront
|
|
31060
|
+
*/
|
|
31061
|
+
host_alias1?: string;
|
|
31062
|
+
/**
|
|
31063
|
+
*
|
|
31064
|
+
* @type {string}
|
|
31065
|
+
* @memberof StoreFront
|
|
31066
|
+
*/
|
|
31067
|
+
host_alias2?: string;
|
|
31068
|
+
/**
|
|
31069
|
+
*
|
|
31070
|
+
* @type {string}
|
|
31071
|
+
* @memberof StoreFront
|
|
31072
|
+
*/
|
|
31073
|
+
host_alias3?: string;
|
|
31074
|
+
/**
|
|
31075
|
+
*
|
|
31076
|
+
* @type {string}
|
|
31077
|
+
* @memberof StoreFront
|
|
31078
|
+
*/
|
|
31079
|
+
host_alias4?: string;
|
|
31080
|
+
/**
|
|
31081
|
+
*
|
|
31082
|
+
* @type {string}
|
|
31083
|
+
* @memberof StoreFront
|
|
31084
|
+
*/
|
|
31085
|
+
host_alias5?: string;
|
|
31086
|
+
/**
|
|
31087
|
+
*
|
|
31088
|
+
* @type {string}
|
|
31089
|
+
* @memberof StoreFront
|
|
31090
|
+
*/
|
|
31091
|
+
host_name?: string;
|
|
31092
|
+
/**
|
|
31093
|
+
*
|
|
31094
|
+
* @type {boolean}
|
|
31095
|
+
* @memberof StoreFront
|
|
31096
|
+
*/
|
|
31097
|
+
locked?: boolean;
|
|
31098
|
+
/**
|
|
31099
|
+
*
|
|
31100
|
+
* @type {string}
|
|
31101
|
+
* @memberof StoreFront
|
|
31102
|
+
*/
|
|
31103
|
+
merchant_id?: string;
|
|
31104
|
+
/**
|
|
31105
|
+
*
|
|
31106
|
+
* @type {boolean}
|
|
31107
|
+
* @memberof StoreFront
|
|
31108
|
+
*/
|
|
31109
|
+
redirect_aliases?: boolean;
|
|
31110
|
+
/**
|
|
31111
|
+
*
|
|
31112
|
+
* @type {number}
|
|
31113
|
+
* @memberof StoreFront
|
|
31114
|
+
*/
|
|
31115
|
+
storefront_oid?: number;
|
|
31116
|
+
/**
|
|
31117
|
+
*
|
|
31118
|
+
* @type {string}
|
|
31119
|
+
* @memberof StoreFront
|
|
31120
|
+
*/
|
|
31121
|
+
unlock_password?: string;
|
|
31122
|
+
}
|
|
31123
|
+
/**
|
|
31124
|
+
*
|
|
31125
|
+
* @export
|
|
31126
|
+
* @interface StoreFrontsResponse
|
|
31127
|
+
*/
|
|
31128
|
+
export interface StoreFrontsResponse {
|
|
31129
|
+
/**
|
|
31130
|
+
*
|
|
31131
|
+
* @type {ModelError}
|
|
31132
|
+
* @memberof StoreFrontsResponse
|
|
31133
|
+
*/
|
|
31134
|
+
error?: ModelError;
|
|
31135
|
+
/**
|
|
31136
|
+
*
|
|
31137
|
+
* @type {ResponseMetadata}
|
|
31138
|
+
* @memberof StoreFrontsResponse
|
|
31139
|
+
*/
|
|
31140
|
+
metadata?: ResponseMetadata;
|
|
31141
|
+
/**
|
|
31142
|
+
*
|
|
31143
|
+
* @type {Array<StoreFront>}
|
|
31144
|
+
* @memberof StoreFrontsResponse
|
|
31145
|
+
*/
|
|
31146
|
+
storeFronts?: Array<StoreFront>;
|
|
31147
|
+
/**
|
|
31148
|
+
* Indicates if API call was successful
|
|
31149
|
+
* @type {boolean}
|
|
31150
|
+
* @memberof StoreFrontsResponse
|
|
31151
|
+
*/
|
|
31152
|
+
success?: boolean;
|
|
31153
|
+
/**
|
|
31154
|
+
*
|
|
31155
|
+
* @type {Warning}
|
|
31156
|
+
* @memberof StoreFrontsResponse
|
|
31157
|
+
*/
|
|
31158
|
+
warning?: Warning;
|
|
31159
|
+
}
|
|
31013
31160
|
/**
|
|
31014
31161
|
*
|
|
31015
31162
|
* @export
|
|
@@ -37090,6 +37237,15 @@ export declare const CustomerApiFetchParamCreator: (configuration?: Configuratio
|
|
|
37090
37237
|
* @throws {RequiredError}
|
|
37091
37238
|
*/
|
|
37092
37239
|
getEmailVerificationToken(token_request: EmailVerifyTokenRequest, options?: any): FetchArgs;
|
|
37240
|
+
/**
|
|
37241
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
37242
|
+
* @summary getMagicLink
|
|
37243
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
37244
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
37245
|
+
* @param {*} [options] Override http request option.
|
|
37246
|
+
* @throws {RequiredError}
|
|
37247
|
+
*/
|
|
37248
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any): FetchArgs;
|
|
37093
37249
|
/**
|
|
37094
37250
|
* Insert a customer on the UltraCart account.
|
|
37095
37251
|
* @summary Insert a customer
|
|
@@ -37284,6 +37440,15 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
37284
37440
|
* @throws {RequiredError}
|
|
37285
37441
|
*/
|
|
37286
37442
|
getEmailVerificationToken(token_request: EmailVerifyTokenRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<EmailVerifyTokenResponse>;
|
|
37443
|
+
/**
|
|
37444
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
37445
|
+
* @summary getMagicLink
|
|
37446
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
37447
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
37448
|
+
* @param {*} [options] Override http request option.
|
|
37449
|
+
* @throws {RequiredError}
|
|
37450
|
+
*/
|
|
37451
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<CustomerMagicLinkResponse>;
|
|
37287
37452
|
/**
|
|
37288
37453
|
* Insert a customer on the UltraCart account.
|
|
37289
37454
|
* @summary Insert a customer
|
|
@@ -37478,6 +37643,15 @@ export declare const CustomerApiFactory: (configuration?: Configuration, fetch?:
|
|
|
37478
37643
|
* @throws {RequiredError}
|
|
37479
37644
|
*/
|
|
37480
37645
|
getEmailVerificationToken(token_request: EmailVerifyTokenRequest, options?: any): Promise<EmailVerifyTokenResponse>;
|
|
37646
|
+
/**
|
|
37647
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
37648
|
+
* @summary getMagicLink
|
|
37649
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
37650
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
37651
|
+
* @param {*} [options] Override http request option.
|
|
37652
|
+
* @throws {RequiredError}
|
|
37653
|
+
*/
|
|
37654
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any): Promise<CustomerMagicLinkResponse>;
|
|
37481
37655
|
/**
|
|
37482
37656
|
* Insert a customer on the UltraCart account.
|
|
37483
37657
|
* @summary Insert a customer
|
|
@@ -37685,6 +37859,16 @@ export interface CustomerApiInterface {
|
|
|
37685
37859
|
* @memberof CustomerApiInterface
|
|
37686
37860
|
*/
|
|
37687
37861
|
getEmailVerificationToken(token_request: EmailVerifyTokenRequest, options?: any): Promise<EmailVerifyTokenResponse>;
|
|
37862
|
+
/**
|
|
37863
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
37864
|
+
* @summary getMagicLink
|
|
37865
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
37866
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
37867
|
+
* @param {*} [options] Override http request option.
|
|
37868
|
+
* @throws {RequiredError}
|
|
37869
|
+
* @memberof CustomerApiInterface
|
|
37870
|
+
*/
|
|
37871
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any): Promise<CustomerMagicLinkResponse>;
|
|
37688
37872
|
/**
|
|
37689
37873
|
* Insert a customer on the UltraCart account.
|
|
37690
37874
|
* @summary Insert a customer
|
|
@@ -37899,6 +38083,16 @@ export declare class CustomerApi extends BaseAPI implements CustomerApiInterface
|
|
|
37899
38083
|
* @memberof CustomerApi
|
|
37900
38084
|
*/
|
|
37901
38085
|
getEmailVerificationToken(token_request: EmailVerifyTokenRequest, options?: any): Promise<EmailVerifyTokenResponse>;
|
|
38086
|
+
/**
|
|
38087
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
38088
|
+
* @summary getMagicLink
|
|
38089
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
38090
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
38091
|
+
* @param {*} [options] Override http request option.
|
|
38092
|
+
* @throws {RequiredError}
|
|
38093
|
+
* @memberof CustomerApi
|
|
38094
|
+
*/
|
|
38095
|
+
getMagicLink(customer_profile_oid: number, storefront_host_name: string, options?: any): Promise<CustomerMagicLinkResponse>;
|
|
37902
38096
|
/**
|
|
37903
38097
|
* Insert a customer on the UltraCart account.
|
|
37904
38098
|
* @summary Insert a customer
|
|
@@ -41959,6 +42153,13 @@ export declare const StorefrontApiFetchParamCreator: (configuration?: Configurat
|
|
|
41959
42153
|
* @throws {RequiredError}
|
|
41960
42154
|
*/
|
|
41961
42155
|
getStoreFrontPricingTiers(_expand?: string, options?: any): FetchArgs;
|
|
42156
|
+
/**
|
|
42157
|
+
*
|
|
42158
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
42159
|
+
* @param {*} [options] Override http request option.
|
|
42160
|
+
* @throws {RequiredError}
|
|
42161
|
+
*/
|
|
42162
|
+
getStoreFronts(options?: any): FetchArgs;
|
|
41962
42163
|
/**
|
|
41963
42164
|
*
|
|
41964
42165
|
* @summary Get thumbnail parameters
|
|
@@ -43455,6 +43656,13 @@ export declare const StorefrontApiFp: (configuration?: Configuration) => {
|
|
|
43455
43656
|
* @throws {RequiredError}
|
|
43456
43657
|
*/
|
|
43457
43658
|
getStoreFrontPricingTiers(_expand?: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<PricingTiersResponse>;
|
|
43659
|
+
/**
|
|
43660
|
+
*
|
|
43661
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
43662
|
+
* @param {*} [options] Override http request option.
|
|
43663
|
+
* @throws {RequiredError}
|
|
43664
|
+
*/
|
|
43665
|
+
getStoreFronts(options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<StoreFrontsResponse>;
|
|
43458
43666
|
/**
|
|
43459
43667
|
*
|
|
43460
43668
|
* @summary Get thumbnail parameters
|
|
@@ -44951,6 +45159,13 @@ export declare const StorefrontApiFactory: (configuration?: Configuration, fetch
|
|
|
44951
45159
|
* @throws {RequiredError}
|
|
44952
45160
|
*/
|
|
44953
45161
|
getStoreFrontPricingTiers(_expand?: string, options?: any): Promise<PricingTiersResponse>;
|
|
45162
|
+
/**
|
|
45163
|
+
*
|
|
45164
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
45165
|
+
* @param {*} [options] Override http request option.
|
|
45166
|
+
* @throws {RequiredError}
|
|
45167
|
+
*/
|
|
45168
|
+
getStoreFronts(options?: any): Promise<StoreFrontsResponse>;
|
|
44954
45169
|
/**
|
|
44955
45170
|
*
|
|
44956
45171
|
* @summary Get thumbnail parameters
|
|
@@ -46549,6 +46764,14 @@ export interface StorefrontApiInterface {
|
|
|
46549
46764
|
* @memberof StorefrontApiInterface
|
|
46550
46765
|
*/
|
|
46551
46766
|
getStoreFrontPricingTiers(_expand?: string, options?: any): Promise<PricingTiersResponse>;
|
|
46767
|
+
/**
|
|
46768
|
+
*
|
|
46769
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
46770
|
+
* @param {*} [options] Override http request option.
|
|
46771
|
+
* @throws {RequiredError}
|
|
46772
|
+
* @memberof StorefrontApiInterface
|
|
46773
|
+
*/
|
|
46774
|
+
getStoreFronts(options?: any): Promise<StoreFrontsResponse>;
|
|
46552
46775
|
/**
|
|
46553
46776
|
*
|
|
46554
46777
|
* @summary Get thumbnail parameters
|
|
@@ -48210,6 +48433,14 @@ export declare class StorefrontApi extends BaseAPI implements StorefrontApiInter
|
|
|
48210
48433
|
* @memberof StorefrontApi
|
|
48211
48434
|
*/
|
|
48212
48435
|
getStoreFrontPricingTiers(_expand?: string, options?: any): Promise<PricingTiersResponse>;
|
|
48436
|
+
/**
|
|
48437
|
+
*
|
|
48438
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
48439
|
+
* @param {*} [options] Override http request option.
|
|
48440
|
+
* @throws {RequiredError}
|
|
48441
|
+
* @memberof StorefrontApi
|
|
48442
|
+
*/
|
|
48443
|
+
getStoreFronts(options?: any): Promise<StoreFrontsResponse>;
|
|
48213
48444
|
/**
|
|
48214
48445
|
*
|
|
48215
48446
|
* @summary Get thumbnail parameters
|
package/dist/api.js
CHANGED
|
@@ -8927,6 +8927,58 @@ var CustomerApiFetchParamCreator = function (configuration) {
|
|
|
8927
8927
|
options: localVarRequestOptions,
|
|
8928
8928
|
};
|
|
8929
8929
|
},
|
|
8930
|
+
/**
|
|
8931
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
8932
|
+
* @summary getMagicLink
|
|
8933
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
8934
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
8935
|
+
* @param {*} [options] Override http request option.
|
|
8936
|
+
* @throws {RequiredError}
|
|
8937
|
+
*/
|
|
8938
|
+
getMagicLink: function (customer_profile_oid, storefront_host_name, options) {
|
|
8939
|
+
if (options === void 0) { options = {}; }
|
|
8940
|
+
// verify required parameter 'customer_profile_oid' is not null or undefined
|
|
8941
|
+
if (customer_profile_oid === null || customer_profile_oid === undefined) {
|
|
8942
|
+
throw new RequiredError('customer_profile_oid', 'Required parameter customer_profile_oid was null or undefined when calling getMagicLink.');
|
|
8943
|
+
}
|
|
8944
|
+
// verify required parameter 'storefront_host_name' is not null or undefined
|
|
8945
|
+
if (storefront_host_name === null || storefront_host_name === undefined) {
|
|
8946
|
+
throw new RequiredError('storefront_host_name', 'Required parameter storefront_host_name was null or undefined when calling getMagicLink.');
|
|
8947
|
+
}
|
|
8948
|
+
var localVarPath = "/customer/customers/{customer_profile_oid}/magic_link/{storefront_host_name}"
|
|
8949
|
+
.replace("{".concat("customer_profile_oid", "}"), encodeURIComponent(String(customer_profile_oid)))
|
|
8950
|
+
.replace("{".concat("storefront_host_name", "}"), encodeURIComponent(String(storefront_host_name)));
|
|
8951
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
8952
|
+
var localVarRequestOptions = Object.assign({ method: 'PUT' }, options);
|
|
8953
|
+
var localVarHeaderParameter = {};
|
|
8954
|
+
var localVarQueryParameter = {};
|
|
8955
|
+
if (configuration && configuration.apiVersion) {
|
|
8956
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
8957
|
+
}
|
|
8958
|
+
// authentication ultraCartOauth required
|
|
8959
|
+
// oauth required
|
|
8960
|
+
if (configuration && configuration.accessToken) {
|
|
8961
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
8962
|
+
? configuration.accessToken("ultraCartOauth", ["customer_write"])
|
|
8963
|
+
: configuration.accessToken;
|
|
8964
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
8965
|
+
}
|
|
8966
|
+
// authentication ultraCartSimpleApiKey required
|
|
8967
|
+
if (configuration && configuration.apiKey) {
|
|
8968
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
8969
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
8970
|
+
: configuration.apiKey;
|
|
8971
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
8972
|
+
}
|
|
8973
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
8974
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
8975
|
+
delete localVarUrlObj.search;
|
|
8976
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
8977
|
+
return {
|
|
8978
|
+
url: url.format(localVarUrlObj),
|
|
8979
|
+
options: localVarRequestOptions,
|
|
8980
|
+
};
|
|
8981
|
+
},
|
|
8930
8982
|
/**
|
|
8931
8983
|
* Insert a customer on the UltraCart account.
|
|
8932
8984
|
* @summary Insert a customer
|
|
@@ -9563,6 +9615,29 @@ var CustomerApiFp = function (configuration) {
|
|
|
9563
9615
|
});
|
|
9564
9616
|
};
|
|
9565
9617
|
},
|
|
9618
|
+
/**
|
|
9619
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
9620
|
+
* @summary getMagicLink
|
|
9621
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
9622
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
9623
|
+
* @param {*} [options] Override http request option.
|
|
9624
|
+
* @throws {RequiredError}
|
|
9625
|
+
*/
|
|
9626
|
+
getMagicLink: function (customer_profile_oid, storefront_host_name, options) {
|
|
9627
|
+
var localVarFetchArgs = (0, exports.CustomerApiFetchParamCreator)(configuration).getMagicLink(customer_profile_oid, storefront_host_name, options);
|
|
9628
|
+
return function (fetch, basePath) {
|
|
9629
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
9630
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
9631
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
9632
|
+
if (response.status >= 200 && response.status < 300) {
|
|
9633
|
+
return response.json();
|
|
9634
|
+
}
|
|
9635
|
+
else {
|
|
9636
|
+
throw response;
|
|
9637
|
+
}
|
|
9638
|
+
});
|
|
9639
|
+
};
|
|
9640
|
+
},
|
|
9566
9641
|
/**
|
|
9567
9642
|
* Insert a customer on the UltraCart account.
|
|
9568
9643
|
* @summary Insert a customer
|
|
@@ -9868,6 +9943,17 @@ var CustomerApiFactory = function (configuration, fetch, basePath) {
|
|
|
9868
9943
|
getEmailVerificationToken: function (token_request, options) {
|
|
9869
9944
|
return (0, exports.CustomerApiFp)(configuration).getEmailVerificationToken(token_request, options)(fetch, basePath);
|
|
9870
9945
|
},
|
|
9946
|
+
/**
|
|
9947
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
9948
|
+
* @summary getMagicLink
|
|
9949
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
9950
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
9951
|
+
* @param {*} [options] Override http request option.
|
|
9952
|
+
* @throws {RequiredError}
|
|
9953
|
+
*/
|
|
9954
|
+
getMagicLink: function (customer_profile_oid, storefront_host_name, options) {
|
|
9955
|
+
return (0, exports.CustomerApiFp)(configuration).getMagicLink(customer_profile_oid, storefront_host_name, options)(fetch, basePath);
|
|
9956
|
+
},
|
|
9871
9957
|
/**
|
|
9872
9958
|
* Insert a customer on the UltraCart account.
|
|
9873
9959
|
* @summary Insert a customer
|
|
@@ -10118,6 +10204,18 @@ var CustomerApi = /** @class */ (function (_super) {
|
|
|
10118
10204
|
CustomerApi.prototype.getEmailVerificationToken = function (token_request, options) {
|
|
10119
10205
|
return (0, exports.CustomerApiFp)(this.configuration).getEmailVerificationToken(token_request, options)(this.fetch, this.basePath);
|
|
10120
10206
|
};
|
|
10207
|
+
/**
|
|
10208
|
+
* Retrieves a magic link to allow a merchant to login as a customer. This method is a PUT call intentionally.
|
|
10209
|
+
* @summary getMagicLink
|
|
10210
|
+
* @param {number} customer_profile_oid The customer_profile_oid of the customer.
|
|
10211
|
+
* @param {string} storefront_host_name The storefront to log into.
|
|
10212
|
+
* @param {*} [options] Override http request option.
|
|
10213
|
+
* @throws {RequiredError}
|
|
10214
|
+
* @memberof CustomerApi
|
|
10215
|
+
*/
|
|
10216
|
+
CustomerApi.prototype.getMagicLink = function (customer_profile_oid, storefront_host_name, options) {
|
|
10217
|
+
return (0, exports.CustomerApiFp)(this.configuration).getMagicLink(customer_profile_oid, storefront_host_name, options)(this.fetch, this.basePath);
|
|
10218
|
+
};
|
|
10121
10219
|
/**
|
|
10122
10220
|
* Insert a customer on the UltraCart account.
|
|
10123
10221
|
* @summary Insert a customer
|
|
@@ -22152,6 +22250,53 @@ var StorefrontApiFetchParamCreator = function (configuration) {
|
|
|
22152
22250
|
options: localVarRequestOptions,
|
|
22153
22251
|
};
|
|
22154
22252
|
},
|
|
22253
|
+
/**
|
|
22254
|
+
*
|
|
22255
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
22256
|
+
* @param {*} [options] Override http request option.
|
|
22257
|
+
* @throws {RequiredError}
|
|
22258
|
+
*/
|
|
22259
|
+
getStoreFronts: function (options) {
|
|
22260
|
+
if (options === void 0) { options = {}; }
|
|
22261
|
+
var localVarPath = "/storefront/";
|
|
22262
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
22263
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
22264
|
+
var localVarHeaderParameter = {};
|
|
22265
|
+
var localVarQueryParameter = {};
|
|
22266
|
+
if (configuration && configuration.apiVersion) {
|
|
22267
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
22268
|
+
}
|
|
22269
|
+
// authentication ultraCartBrowserApiKey required
|
|
22270
|
+
if (configuration && configuration.apiKey) {
|
|
22271
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
22272
|
+
? configuration.apiKey("x-ultracart-browser-key")
|
|
22273
|
+
: configuration.apiKey;
|
|
22274
|
+
localVarHeaderParameter["x-ultracart-browser-key"] = localVarApiKeyValue;
|
|
22275
|
+
}
|
|
22276
|
+
// authentication ultraCartOauth required
|
|
22277
|
+
// oauth required
|
|
22278
|
+
if (configuration && configuration.accessToken) {
|
|
22279
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
22280
|
+
? configuration.accessToken("ultraCartOauth", ["ultrabooks_write", "auto_order_write", "coupon_read", "affiliate_read", "coupon_write", "channel_partner_read", "tax_read", "conversation_write", "fulfillment_write", "tax_write", "gift_certificate_write", "channel_partner_write", "item_read", "fulfillment_read", "webhook_write", "chargeback_write", "user_write", "gift_certificate_read", "checkout_write", "storefront_read", "webhook_read", "item_write", "auto_order_read", "customer_read", "user_read", "configuration_read", "customer_write", "order_read", "conversation_read", "affiliate_write", "storefront_write", "ultrabooks_read", "order_write", "chargeback_read", "integration_log_write", "configuration_write", "checkout_read", "integration_log_read"])
|
|
22281
|
+
: configuration.accessToken;
|
|
22282
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
22283
|
+
}
|
|
22284
|
+
// authentication ultraCartSimpleApiKey required
|
|
22285
|
+
if (configuration && configuration.apiKey) {
|
|
22286
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
22287
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
22288
|
+
: configuration.apiKey;
|
|
22289
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
22290
|
+
}
|
|
22291
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
22292
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
22293
|
+
delete localVarUrlObj.search;
|
|
22294
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
22295
|
+
return {
|
|
22296
|
+
url: url.format(localVarUrlObj),
|
|
22297
|
+
options: localVarRequestOptions,
|
|
22298
|
+
};
|
|
22299
|
+
},
|
|
22155
22300
|
/**
|
|
22156
22301
|
*
|
|
22157
22302
|
* @summary Get thumbnail parameters
|
|
@@ -28314,6 +28459,27 @@ var StorefrontApiFp = function (configuration) {
|
|
|
28314
28459
|
});
|
|
28315
28460
|
};
|
|
28316
28461
|
},
|
|
28462
|
+
/**
|
|
28463
|
+
*
|
|
28464
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
28465
|
+
* @param {*} [options] Override http request option.
|
|
28466
|
+
* @throws {RequiredError}
|
|
28467
|
+
*/
|
|
28468
|
+
getStoreFronts: function (options) {
|
|
28469
|
+
var localVarFetchArgs = (0, exports.StorefrontApiFetchParamCreator)(configuration).getStoreFronts(options);
|
|
28470
|
+
return function (fetch, basePath) {
|
|
28471
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
28472
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
28473
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
28474
|
+
if (response.status >= 200 && response.status < 300) {
|
|
28475
|
+
return response.json();
|
|
28476
|
+
}
|
|
28477
|
+
else {
|
|
28478
|
+
throw response;
|
|
28479
|
+
}
|
|
28480
|
+
});
|
|
28481
|
+
};
|
|
28482
|
+
},
|
|
28317
28483
|
/**
|
|
28318
28484
|
*
|
|
28319
28485
|
* @summary Get thumbnail parameters
|
|
@@ -30883,6 +31049,15 @@ var StorefrontApiFactory = function (configuration, fetch, basePath) {
|
|
|
30883
31049
|
getStoreFrontPricingTiers: function (_expand, options) {
|
|
30884
31050
|
return (0, exports.StorefrontApiFp)(configuration).getStoreFrontPricingTiers(_expand, options)(fetch, basePath);
|
|
30885
31051
|
},
|
|
31052
|
+
/**
|
|
31053
|
+
*
|
|
31054
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
31055
|
+
* @param {*} [options] Override http request option.
|
|
31056
|
+
* @throws {RequiredError}
|
|
31057
|
+
*/
|
|
31058
|
+
getStoreFronts: function (options) {
|
|
31059
|
+
return (0, exports.StorefrontApiFp)(configuration).getStoreFronts(options)(fetch, basePath);
|
|
31060
|
+
},
|
|
30886
31061
|
/**
|
|
30887
31062
|
*
|
|
30888
31063
|
* @summary Get thumbnail parameters
|
|
@@ -32814,6 +32989,16 @@ var StorefrontApi = /** @class */ (function (_super) {
|
|
|
32814
32989
|
StorefrontApi.prototype.getStoreFrontPricingTiers = function (_expand, options) {
|
|
32815
32990
|
return (0, exports.StorefrontApiFp)(this.configuration).getStoreFrontPricingTiers(_expand, options)(this.fetch, this.basePath);
|
|
32816
32991
|
};
|
|
32992
|
+
/**
|
|
32993
|
+
*
|
|
32994
|
+
* @summary Get storefronts (internal use only for security reasons)
|
|
32995
|
+
* @param {*} [options] Override http request option.
|
|
32996
|
+
* @throws {RequiredError}
|
|
32997
|
+
* @memberof StorefrontApi
|
|
32998
|
+
*/
|
|
32999
|
+
StorefrontApi.prototype.getStoreFronts = function (options) {
|
|
33000
|
+
return (0, exports.StorefrontApiFp)(this.configuration).getStoreFronts(options)(this.fetch, this.basePath);
|
|
33001
|
+
};
|
|
32817
33002
|
/**
|
|
32818
33003
|
*
|
|
32819
33004
|
* @summary Get thumbnail parameters
|