ultracart_rest_api_v2_typescript 3.9.6 → 3.9.7
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 +338 -1
- package/dist/api.d.ts +192 -1
- package/dist/api.js +207 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## ultracart_rest_api_v2_typescript@3.9.
|
|
1
|
+
## ultracart_rest_api_v2_typescript@3.9.7
|
|
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.9.
|
|
39
|
+
npm install ultracart_rest_api_v2_typescript@3.9.7 --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.9.7 | 04/25/2022 | integration logs method for zpl to pdf conversion |
|
|
57
58
|
| 3.9.6 | 04/25/2022 | storefront communications email magic link setting |
|
|
58
59
|
| 3.9.5 | 04/14/2022 | postcard screenshot bug fixes |
|
|
59
60
|
| 3.9.4 | 04/13/2022 | Added spf DNS record to the sending domain object |
|
package/api.ts
CHANGED
|
@@ -546,6 +546,94 @@ export interface AddLibraryItemRequest {
|
|
|
546
546
|
uuid?: string;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
+
/**
|
|
550
|
+
*
|
|
551
|
+
* @export
|
|
552
|
+
* @interface AdjustInternalCertificateRequest
|
|
553
|
+
*/
|
|
554
|
+
export interface AdjustInternalCertificateRequest {
|
|
555
|
+
/**
|
|
556
|
+
* The adjustment amount
|
|
557
|
+
* @type {number}
|
|
558
|
+
* @memberof AdjustInternalCertificateRequest
|
|
559
|
+
*/
|
|
560
|
+
adjustment_amount?: number;
|
|
561
|
+
/**
|
|
562
|
+
* Description of this adjustment, 50 characters max
|
|
563
|
+
* @type {string}
|
|
564
|
+
* @memberof AdjustInternalCertificateRequest
|
|
565
|
+
*/
|
|
566
|
+
description?: string;
|
|
567
|
+
/**
|
|
568
|
+
* Optional timestamp for the adjustment, defaults to current time
|
|
569
|
+
* @type {string}
|
|
570
|
+
* @memberof AdjustInternalCertificateRequest
|
|
571
|
+
*/
|
|
572
|
+
entry_dts?: string;
|
|
573
|
+
/**
|
|
574
|
+
* Optional expiration days from the entry_dts when these adjustment becomes worthless
|
|
575
|
+
* @type {number}
|
|
576
|
+
* @memberof AdjustInternalCertificateRequest
|
|
577
|
+
*/
|
|
578
|
+
expiration_days?: number;
|
|
579
|
+
/**
|
|
580
|
+
* Optional order id if this adjustment is related to a particular order
|
|
581
|
+
* @type {string}
|
|
582
|
+
* @memberof AdjustInternalCertificateRequest
|
|
583
|
+
*/
|
|
584
|
+
order_id?: string;
|
|
585
|
+
/**
|
|
586
|
+
* Optional days required for this adjustment to vest
|
|
587
|
+
* @type {number}
|
|
588
|
+
* @memberof AdjustInternalCertificateRequest
|
|
589
|
+
*/
|
|
590
|
+
vesting_days?: number;
|
|
591
|
+
}
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
*
|
|
595
|
+
* @export
|
|
596
|
+
* @interface AdjustInternalCertificateResponse
|
|
597
|
+
*/
|
|
598
|
+
export interface AdjustInternalCertificateResponse {
|
|
599
|
+
/**
|
|
600
|
+
* The adjustment amount
|
|
601
|
+
* @type {number}
|
|
602
|
+
* @memberof AdjustInternalCertificateResponse
|
|
603
|
+
*/
|
|
604
|
+
adjustment_amount?: number;
|
|
605
|
+
/**
|
|
606
|
+
* The balance amount after the adjustment was made
|
|
607
|
+
* @type {number}
|
|
608
|
+
* @memberof AdjustInternalCertificateResponse
|
|
609
|
+
*/
|
|
610
|
+
balance_amount?: number;
|
|
611
|
+
/**
|
|
612
|
+
*
|
|
613
|
+
* @type {ModelError}
|
|
614
|
+
* @memberof AdjustInternalCertificateResponse
|
|
615
|
+
*/
|
|
616
|
+
error?: ModelError;
|
|
617
|
+
/**
|
|
618
|
+
*
|
|
619
|
+
* @type {ResponseMetadata}
|
|
620
|
+
* @memberof AdjustInternalCertificateResponse
|
|
621
|
+
*/
|
|
622
|
+
metadata?: ResponseMetadata;
|
|
623
|
+
/**
|
|
624
|
+
* Indicates if API call was successful
|
|
625
|
+
* @type {boolean}
|
|
626
|
+
* @memberof AdjustInternalCertificateResponse
|
|
627
|
+
*/
|
|
628
|
+
success?: boolean;
|
|
629
|
+
/**
|
|
630
|
+
*
|
|
631
|
+
* @type {Warning}
|
|
632
|
+
* @memberof AdjustInternalCertificateResponse
|
|
633
|
+
*/
|
|
634
|
+
warning?: Warning;
|
|
635
|
+
}
|
|
636
|
+
|
|
549
637
|
/**
|
|
550
638
|
*
|
|
551
639
|
* @export
|
|
@@ -8333,11 +8421,17 @@ export interface CustomerEmailListChanges {
|
|
|
8333
8421
|
*/
|
|
8334
8422
|
export interface CustomerLoyalty {
|
|
8335
8423
|
/**
|
|
8336
|
-
* Current
|
|
8424
|
+
* Current points
|
|
8337
8425
|
* @type {number}
|
|
8338
8426
|
* @memberof CustomerLoyalty
|
|
8339
8427
|
*/
|
|
8340
8428
|
current_points?: number;
|
|
8429
|
+
/**
|
|
8430
|
+
*
|
|
8431
|
+
* @type {GiftCertificate}
|
|
8432
|
+
* @memberof CustomerLoyalty
|
|
8433
|
+
*/
|
|
8434
|
+
internal_gift_certificate?: GiftCertificate;
|
|
8341
8435
|
/**
|
|
8342
8436
|
* Loyalty Cashback / Store credit balance (internal gift certificate balance)
|
|
8343
8437
|
* @type {string}
|
|
@@ -42992,6 +43086,67 @@ export class CouponApi extends BaseAPI implements CouponApiInterface {
|
|
|
42992
43086
|
*/
|
|
42993
43087
|
export const CustomerApiFetchParamCreator = function (configuration?: Configuration) {
|
|
42994
43088
|
return {
|
|
43089
|
+
/**
|
|
43090
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
43091
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
43092
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
43093
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
43094
|
+
* @param {*} [options] Override http request option.
|
|
43095
|
+
* @throws {RequiredError}
|
|
43096
|
+
*/
|
|
43097
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options: any = {}): FetchArgs {
|
|
43098
|
+
// verify required parameter 'customer_profile_oid' is not null or undefined
|
|
43099
|
+
if (customer_profile_oid === null || customer_profile_oid === undefined) {
|
|
43100
|
+
throw new RequiredError('customer_profile_oid','Required parameter customer_profile_oid was null or undefined when calling adjustInternalCertificate.');
|
|
43101
|
+
}
|
|
43102
|
+
// verify required parameter 'adjust_internal_certificate_request' is not null or undefined
|
|
43103
|
+
if (adjust_internal_certificate_request === null || adjust_internal_certificate_request === undefined) {
|
|
43104
|
+
throw new RequiredError('adjust_internal_certificate_request','Required parameter adjust_internal_certificate_request was null or undefined when calling adjustInternalCertificate.');
|
|
43105
|
+
}
|
|
43106
|
+
const localVarPath = `/customer/customers/{customer_profile_oid}/adjust_cashback_balance`
|
|
43107
|
+
.replace(`{${"customer_profile_oid"}}`, encodeURIComponent(String(customer_profile_oid)));
|
|
43108
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
43109
|
+
const localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
43110
|
+
const localVarHeaderParameter = {} as any;
|
|
43111
|
+
const localVarQueryParameter = {} as any;
|
|
43112
|
+
|
|
43113
|
+
if(configuration && configuration.apiVersion) {
|
|
43114
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
43115
|
+
}
|
|
43116
|
+
|
|
43117
|
+
|
|
43118
|
+
|
|
43119
|
+
// authentication ultraCartOauth required
|
|
43120
|
+
// oauth required
|
|
43121
|
+
if (configuration && configuration.accessToken) {
|
|
43122
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
43123
|
+
? configuration.accessToken("ultraCartOauth", ["customer_write"])
|
|
43124
|
+
: configuration.accessToken;
|
|
43125
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
43126
|
+
}
|
|
43127
|
+
|
|
43128
|
+
// authentication ultraCartSimpleApiKey required
|
|
43129
|
+
if (configuration && configuration.apiKey) {
|
|
43130
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
43131
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
43132
|
+
: configuration.apiKey;
|
|
43133
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
43134
|
+
}
|
|
43135
|
+
|
|
43136
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
43137
|
+
|
|
43138
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
43139
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
43140
|
+
delete localVarUrlObj.search;
|
|
43141
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
43142
|
+
const needsSerialization = (<any>"AdjustInternalCertificateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
43143
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(adjust_internal_certificate_request || {}) : (adjust_internal_certificate_request || "");
|
|
43144
|
+
|
|
43145
|
+
return {
|
|
43146
|
+
url: url.format(localVarUrlObj),
|
|
43147
|
+
options: localVarRequestOptions,
|
|
43148
|
+
};
|
|
43149
|
+
},
|
|
42995
43150
|
/**
|
|
42996
43151
|
* Delete a customer on the UltraCart account.
|
|
42997
43152
|
* @summary Delete a customer
|
|
@@ -43893,6 +44048,28 @@ export const CustomerApiFetchParamCreator = function (configuration?: Configurat
|
|
|
43893
44048
|
*/
|
|
43894
44049
|
export const CustomerApiFp = function(configuration?: Configuration) {
|
|
43895
44050
|
return {
|
|
44051
|
+
/**
|
|
44052
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44053
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44054
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
44055
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
44056
|
+
* @param {*} [options] Override http request option.
|
|
44057
|
+
* @throws {RequiredError}
|
|
44058
|
+
*/
|
|
44059
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AdjustInternalCertificateResponse> {
|
|
44060
|
+
const localVarFetchArgs = CustomerApiFetchParamCreator(configuration).adjustInternalCertificate(customer_profile_oid, adjust_internal_certificate_request, options);
|
|
44061
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
44062
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
44063
|
+
|
|
44064
|
+
if (response.status >= 200 && response.status < 300) {
|
|
44065
|
+
return response.json();
|
|
44066
|
+
|
|
44067
|
+
} else {
|
|
44068
|
+
throw response;
|
|
44069
|
+
}
|
|
44070
|
+
});
|
|
44071
|
+
};
|
|
44072
|
+
},
|
|
43896
44073
|
/**
|
|
43897
44074
|
* Delete a customer on the UltraCart account.
|
|
43898
44075
|
* @summary Delete a customer
|
|
@@ -44215,6 +44392,17 @@ export const CustomerApiFp = function(configuration?: Configuration) {
|
|
|
44215
44392
|
*/
|
|
44216
44393
|
export const CustomerApiFactory = function (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) {
|
|
44217
44394
|
return {
|
|
44395
|
+
/**
|
|
44396
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44397
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44398
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
44399
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
44400
|
+
* @param {*} [options] Override http request option.
|
|
44401
|
+
* @throws {RequiredError}
|
|
44402
|
+
*/
|
|
44403
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any) {
|
|
44404
|
+
return CustomerApiFp(configuration).adjustInternalCertificate(customer_profile_oid, adjust_internal_certificate_request, options)(fetch, basePath);
|
|
44405
|
+
},
|
|
44218
44406
|
/**
|
|
44219
44407
|
* Delete a customer on the UltraCart account.
|
|
44220
44408
|
* @summary Delete a customer
|
|
@@ -44394,6 +44582,17 @@ export const CustomerApiFactory = function (configuration?: Configuration, fetch
|
|
|
44394
44582
|
* @interface CustomerApi
|
|
44395
44583
|
*/
|
|
44396
44584
|
export interface CustomerApiInterface {
|
|
44585
|
+
/**
|
|
44586
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44587
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44588
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
44589
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
44590
|
+
* @param {*} [options] Override http request option.
|
|
44591
|
+
* @throws {RequiredError}
|
|
44592
|
+
* @memberof CustomerApiInterface
|
|
44593
|
+
*/
|
|
44594
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any): Promise<AdjustInternalCertificateResponse>;
|
|
44595
|
+
|
|
44397
44596
|
/**
|
|
44398
44597
|
* Delete a customer on the UltraCart account.
|
|
44399
44598
|
* @summary Delete a customer
|
|
@@ -44573,6 +44772,19 @@ export interface CustomerApiInterface {
|
|
|
44573
44772
|
* @extends {BaseAPI}
|
|
44574
44773
|
*/
|
|
44575
44774
|
export class CustomerApi extends BaseAPI implements CustomerApiInterface {
|
|
44775
|
+
/**
|
|
44776
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44777
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
44778
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
44779
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
44780
|
+
* @param {*} [options] Override http request option.
|
|
44781
|
+
* @throws {RequiredError}
|
|
44782
|
+
* @memberof CustomerApi
|
|
44783
|
+
*/
|
|
44784
|
+
public adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any) {
|
|
44785
|
+
return CustomerApiFp(this.configuration).adjustInternalCertificate(customer_profile_oid, adjust_internal_certificate_request, options)(this.fetch, this.basePath);
|
|
44786
|
+
}
|
|
44787
|
+
|
|
44576
44788
|
/**
|
|
44577
44789
|
* Delete a customer on the UltraCart account.
|
|
44578
44790
|
* @summary Delete a customer
|
|
@@ -46546,6 +46758,70 @@ export const IntegrationLogApiFetchParamCreator = function (configuration?: Conf
|
|
|
46546
46758
|
|
|
46547
46759
|
|
|
46548
46760
|
|
|
46761
|
+
// authentication ultraCartOauth required
|
|
46762
|
+
// oauth required
|
|
46763
|
+
if (configuration && configuration.accessToken) {
|
|
46764
|
+
const localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
46765
|
+
? configuration.accessToken("ultraCartOauth", ["integration_log_read"])
|
|
46766
|
+
: configuration.accessToken;
|
|
46767
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
46768
|
+
}
|
|
46769
|
+
|
|
46770
|
+
// authentication ultraCartSimpleApiKey required
|
|
46771
|
+
if (configuration && configuration.apiKey) {
|
|
46772
|
+
const localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
46773
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
46774
|
+
: configuration.apiKey;
|
|
46775
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
46776
|
+
}
|
|
46777
|
+
|
|
46778
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
46779
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
46780
|
+
delete localVarUrlObj.search;
|
|
46781
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
46782
|
+
|
|
46783
|
+
return {
|
|
46784
|
+
url: url.format(localVarUrlObj),
|
|
46785
|
+
options: localVarRequestOptions,
|
|
46786
|
+
};
|
|
46787
|
+
},
|
|
46788
|
+
/**
|
|
46789
|
+
* Retrieve an integration log file from the account based identifiers
|
|
46790
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
46791
|
+
* @param {string} pk
|
|
46792
|
+
* @param {string} sk
|
|
46793
|
+
* @param {string} uuid
|
|
46794
|
+
* @param {*} [options] Override http request option.
|
|
46795
|
+
* @throws {RequiredError}
|
|
46796
|
+
*/
|
|
46797
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options: any = {}): FetchArgs {
|
|
46798
|
+
// verify required parameter 'pk' is not null or undefined
|
|
46799
|
+
if (pk === null || pk === undefined) {
|
|
46800
|
+
throw new RequiredError('pk','Required parameter pk was null or undefined when calling getIntegrationLogFilePdf.');
|
|
46801
|
+
}
|
|
46802
|
+
// verify required parameter 'sk' is not null or undefined
|
|
46803
|
+
if (sk === null || sk === undefined) {
|
|
46804
|
+
throw new RequiredError('sk','Required parameter sk was null or undefined when calling getIntegrationLogFilePdf.');
|
|
46805
|
+
}
|
|
46806
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
46807
|
+
if (uuid === null || uuid === undefined) {
|
|
46808
|
+
throw new RequiredError('uuid','Required parameter uuid was null or undefined when calling getIntegrationLogFilePdf.');
|
|
46809
|
+
}
|
|
46810
|
+
const localVarPath = `/integration_log/query/{pk}/{sk}/{uuid}/pdf`
|
|
46811
|
+
.replace(`{${"pk"}}`, encodeURIComponent(String(pk)))
|
|
46812
|
+
.replace(`{${"sk"}}`, encodeURIComponent(String(sk)))
|
|
46813
|
+
.replace(`{${"uuid"}}`, encodeURIComponent(String(uuid)));
|
|
46814
|
+
const localVarUrlObj = url.parse(localVarPath, true);
|
|
46815
|
+
const localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
46816
|
+
const localVarHeaderParameter = {} as any;
|
|
46817
|
+
const localVarQueryParameter = {} as any;
|
|
46818
|
+
|
|
46819
|
+
if(configuration && configuration.apiVersion) {
|
|
46820
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
46821
|
+
}
|
|
46822
|
+
|
|
46823
|
+
|
|
46824
|
+
|
|
46549
46825
|
// authentication ultraCartOauth required
|
|
46550
46826
|
// oauth required
|
|
46551
46827
|
if (configuration && configuration.accessToken) {
|
|
@@ -46752,6 +47028,29 @@ export const IntegrationLogApiFp = function(configuration?: Configuration) {
|
|
|
46752
47028
|
});
|
|
46753
47029
|
};
|
|
46754
47030
|
},
|
|
47031
|
+
/**
|
|
47032
|
+
* Retrieve an integration log file from the account based identifiers
|
|
47033
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
47034
|
+
* @param {string} pk
|
|
47035
|
+
* @param {string} sk
|
|
47036
|
+
* @param {string} uuid
|
|
47037
|
+
* @param {*} [options] Override http request option.
|
|
47038
|
+
* @throws {RequiredError}
|
|
47039
|
+
*/
|
|
47040
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Blob> {
|
|
47041
|
+
const localVarFetchArgs = IntegrationLogApiFetchParamCreator(configuration).getIntegrationLogFilePdf(pk, sk, uuid, options);
|
|
47042
|
+
return (fetch: FetchAPI = portableFetch, basePath: string = BASE_PATH) => {
|
|
47043
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then((response) => {
|
|
47044
|
+
|
|
47045
|
+
if (response.status >= 200 && response.status < 300) {
|
|
47046
|
+
|
|
47047
|
+
return response.blob();
|
|
47048
|
+
} else {
|
|
47049
|
+
throw response;
|
|
47050
|
+
}
|
|
47051
|
+
});
|
|
47052
|
+
};
|
|
47053
|
+
},
|
|
46755
47054
|
/**
|
|
46756
47055
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
46757
47056
|
* @summary Retrieve integration log summaries
|
|
@@ -46829,6 +47128,18 @@ export const IntegrationLogApiFactory = function (configuration?: Configuration,
|
|
|
46829
47128
|
getIntegrationLogFile(pk: string, sk: string, uuid: string, options?: any) {
|
|
46830
47129
|
return IntegrationLogApiFp(configuration).getIntegrationLogFile(pk, sk, uuid, options)(fetch, basePath);
|
|
46831
47130
|
},
|
|
47131
|
+
/**
|
|
47132
|
+
* Retrieve an integration log file from the account based identifiers
|
|
47133
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
47134
|
+
* @param {string} pk
|
|
47135
|
+
* @param {string} sk
|
|
47136
|
+
* @param {string} uuid
|
|
47137
|
+
* @param {*} [options] Override http request option.
|
|
47138
|
+
* @throws {RequiredError}
|
|
47139
|
+
*/
|
|
47140
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any) {
|
|
47141
|
+
return IntegrationLogApiFp(configuration).getIntegrationLogFilePdf(pk, sk, uuid, options)(fetch, basePath);
|
|
47142
|
+
},
|
|
46832
47143
|
/**
|
|
46833
47144
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
46834
47145
|
* @summary Retrieve integration log summaries
|
|
@@ -46884,6 +47195,18 @@ export interface IntegrationLogApiInterface {
|
|
|
46884
47195
|
*/
|
|
46885
47196
|
getIntegrationLogFile(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
46886
47197
|
|
|
47198
|
+
/**
|
|
47199
|
+
* Retrieve an integration log file from the account based identifiers
|
|
47200
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
47201
|
+
* @param {string} pk
|
|
47202
|
+
* @param {string} sk
|
|
47203
|
+
* @param {string} uuid
|
|
47204
|
+
* @param {*} [options] Override http request option.
|
|
47205
|
+
* @throws {RequiredError}
|
|
47206
|
+
* @memberof IntegrationLogApiInterface
|
|
47207
|
+
*/
|
|
47208
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
47209
|
+
|
|
46887
47210
|
/**
|
|
46888
47211
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
46889
47212
|
* @summary Retrieve integration log summaries
|
|
@@ -46943,6 +47266,20 @@ export class IntegrationLogApi extends BaseAPI implements IntegrationLogApiInter
|
|
|
46943
47266
|
return IntegrationLogApiFp(this.configuration).getIntegrationLogFile(pk, sk, uuid, options)(this.fetch, this.basePath);
|
|
46944
47267
|
}
|
|
46945
47268
|
|
|
47269
|
+
/**
|
|
47270
|
+
* Retrieve an integration log file from the account based identifiers
|
|
47271
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
47272
|
+
* @param {string} pk
|
|
47273
|
+
* @param {string} sk
|
|
47274
|
+
* @param {string} uuid
|
|
47275
|
+
* @param {*} [options] Override http request option.
|
|
47276
|
+
* @throws {RequiredError}
|
|
47277
|
+
* @memberof IntegrationLogApi
|
|
47278
|
+
*/
|
|
47279
|
+
public getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any) {
|
|
47280
|
+
return IntegrationLogApiFp(this.configuration).getIntegrationLogFilePdf(pk, sk, uuid, options)(this.fetch, this.basePath);
|
|
47281
|
+
}
|
|
47282
|
+
|
|
46946
47283
|
/**
|
|
46947
47284
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
46948
47285
|
* @summary Retrieve integration log summaries
|
package/dist/api.d.ts
CHANGED
|
@@ -519,6 +519,92 @@ export interface AddLibraryItemRequest {
|
|
|
519
519
|
*/
|
|
520
520
|
uuid?: string;
|
|
521
521
|
}
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @export
|
|
525
|
+
* @interface AdjustInternalCertificateRequest
|
|
526
|
+
*/
|
|
527
|
+
export interface AdjustInternalCertificateRequest {
|
|
528
|
+
/**
|
|
529
|
+
* The adjustment amount
|
|
530
|
+
* @type {number}
|
|
531
|
+
* @memberof AdjustInternalCertificateRequest
|
|
532
|
+
*/
|
|
533
|
+
adjustment_amount?: number;
|
|
534
|
+
/**
|
|
535
|
+
* Description of this adjustment, 50 characters max
|
|
536
|
+
* @type {string}
|
|
537
|
+
* @memberof AdjustInternalCertificateRequest
|
|
538
|
+
*/
|
|
539
|
+
description?: string;
|
|
540
|
+
/**
|
|
541
|
+
* Optional timestamp for the adjustment, defaults to current time
|
|
542
|
+
* @type {string}
|
|
543
|
+
* @memberof AdjustInternalCertificateRequest
|
|
544
|
+
*/
|
|
545
|
+
entry_dts?: string;
|
|
546
|
+
/**
|
|
547
|
+
* Optional expiration days from the entry_dts when these adjustment becomes worthless
|
|
548
|
+
* @type {number}
|
|
549
|
+
* @memberof AdjustInternalCertificateRequest
|
|
550
|
+
*/
|
|
551
|
+
expiration_days?: number;
|
|
552
|
+
/**
|
|
553
|
+
* Optional order id if this adjustment is related to a particular order
|
|
554
|
+
* @type {string}
|
|
555
|
+
* @memberof AdjustInternalCertificateRequest
|
|
556
|
+
*/
|
|
557
|
+
order_id?: string;
|
|
558
|
+
/**
|
|
559
|
+
* Optional days required for this adjustment to vest
|
|
560
|
+
* @type {number}
|
|
561
|
+
* @memberof AdjustInternalCertificateRequest
|
|
562
|
+
*/
|
|
563
|
+
vesting_days?: number;
|
|
564
|
+
}
|
|
565
|
+
/**
|
|
566
|
+
*
|
|
567
|
+
* @export
|
|
568
|
+
* @interface AdjustInternalCertificateResponse
|
|
569
|
+
*/
|
|
570
|
+
export interface AdjustInternalCertificateResponse {
|
|
571
|
+
/**
|
|
572
|
+
* The adjustment amount
|
|
573
|
+
* @type {number}
|
|
574
|
+
* @memberof AdjustInternalCertificateResponse
|
|
575
|
+
*/
|
|
576
|
+
adjustment_amount?: number;
|
|
577
|
+
/**
|
|
578
|
+
* The balance amount after the adjustment was made
|
|
579
|
+
* @type {number}
|
|
580
|
+
* @memberof AdjustInternalCertificateResponse
|
|
581
|
+
*/
|
|
582
|
+
balance_amount?: number;
|
|
583
|
+
/**
|
|
584
|
+
*
|
|
585
|
+
* @type {ModelError}
|
|
586
|
+
* @memberof AdjustInternalCertificateResponse
|
|
587
|
+
*/
|
|
588
|
+
error?: ModelError;
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @type {ResponseMetadata}
|
|
592
|
+
* @memberof AdjustInternalCertificateResponse
|
|
593
|
+
*/
|
|
594
|
+
metadata?: ResponseMetadata;
|
|
595
|
+
/**
|
|
596
|
+
* Indicates if API call was successful
|
|
597
|
+
* @type {boolean}
|
|
598
|
+
* @memberof AdjustInternalCertificateResponse
|
|
599
|
+
*/
|
|
600
|
+
success?: boolean;
|
|
601
|
+
/**
|
|
602
|
+
*
|
|
603
|
+
* @type {Warning}
|
|
604
|
+
* @memberof AdjustInternalCertificateResponse
|
|
605
|
+
*/
|
|
606
|
+
warning?: Warning;
|
|
607
|
+
}
|
|
522
608
|
/**
|
|
523
609
|
*
|
|
524
610
|
* @export
|
|
@@ -8126,11 +8212,17 @@ export interface CustomerEmailListChanges {
|
|
|
8126
8212
|
*/
|
|
8127
8213
|
export interface CustomerLoyalty {
|
|
8128
8214
|
/**
|
|
8129
|
-
* Current
|
|
8215
|
+
* Current points
|
|
8130
8216
|
* @type {number}
|
|
8131
8217
|
* @memberof CustomerLoyalty
|
|
8132
8218
|
*/
|
|
8133
8219
|
current_points?: number;
|
|
8220
|
+
/**
|
|
8221
|
+
*
|
|
8222
|
+
* @type {GiftCertificate}
|
|
8223
|
+
* @memberof CustomerLoyalty
|
|
8224
|
+
*/
|
|
8225
|
+
internal_gift_certificate?: GiftCertificate;
|
|
8134
8226
|
/**
|
|
8135
8227
|
* Loyalty Cashback / Store credit balance (internal gift certificate balance)
|
|
8136
8228
|
* @type {string}
|
|
@@ -37308,6 +37400,15 @@ export declare class CouponApi extends BaseAPI implements CouponApiInterface {
|
|
|
37308
37400
|
* @export
|
|
37309
37401
|
*/
|
|
37310
37402
|
export declare const CustomerApiFetchParamCreator: (configuration?: Configuration) => {
|
|
37403
|
+
/**
|
|
37404
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37405
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37406
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
37407
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
37408
|
+
* @param {*} [options] Override http request option.
|
|
37409
|
+
* @throws {RequiredError}
|
|
37410
|
+
*/
|
|
37411
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any): FetchArgs;
|
|
37311
37412
|
/**
|
|
37312
37413
|
* Delete a customer on the UltraCart account.
|
|
37313
37414
|
* @summary Delete a customer
|
|
@@ -37458,6 +37559,15 @@ export declare const CustomerApiFetchParamCreator: (configuration?: Configuratio
|
|
|
37458
37559
|
* @export
|
|
37459
37560
|
*/
|
|
37460
37561
|
export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
37562
|
+
/**
|
|
37563
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37564
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37565
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
37566
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
37567
|
+
* @param {*} [options] Override http request option.
|
|
37568
|
+
* @throws {RequiredError}
|
|
37569
|
+
*/
|
|
37570
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<AdjustInternalCertificateResponse>;
|
|
37461
37571
|
/**
|
|
37462
37572
|
* Delete a customer on the UltraCart account.
|
|
37463
37573
|
* @summary Delete a customer
|
|
@@ -37608,6 +37718,15 @@ export declare const CustomerApiFp: (configuration?: Configuration) => {
|
|
|
37608
37718
|
* @export
|
|
37609
37719
|
*/
|
|
37610
37720
|
export declare const CustomerApiFactory: (configuration?: Configuration, fetch?: FetchAPI, basePath?: string) => {
|
|
37721
|
+
/**
|
|
37722
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37723
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37724
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
37725
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
37726
|
+
* @param {*} [options] Override http request option.
|
|
37727
|
+
* @throws {RequiredError}
|
|
37728
|
+
*/
|
|
37729
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any): Promise<AdjustInternalCertificateResponse>;
|
|
37611
37730
|
/**
|
|
37612
37731
|
* Delete a customer on the UltraCart account.
|
|
37613
37732
|
* @summary Delete a customer
|
|
@@ -37759,6 +37878,16 @@ export declare const CustomerApiFactory: (configuration?: Configuration, fetch?:
|
|
|
37759
37878
|
* @interface CustomerApi
|
|
37760
37879
|
*/
|
|
37761
37880
|
export interface CustomerApiInterface {
|
|
37881
|
+
/**
|
|
37882
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37883
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
37884
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
37885
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
37886
|
+
* @param {*} [options] Override http request option.
|
|
37887
|
+
* @throws {RequiredError}
|
|
37888
|
+
* @memberof CustomerApiInterface
|
|
37889
|
+
*/
|
|
37890
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any): Promise<AdjustInternalCertificateResponse>;
|
|
37762
37891
|
/**
|
|
37763
37892
|
* Delete a customer on the UltraCart account.
|
|
37764
37893
|
* @summary Delete a customer
|
|
@@ -37924,6 +38053,16 @@ export interface CustomerApiInterface {
|
|
|
37924
38053
|
* @extends {BaseAPI}
|
|
37925
38054
|
*/
|
|
37926
38055
|
export declare class CustomerApi extends BaseAPI implements CustomerApiInterface {
|
|
38056
|
+
/**
|
|
38057
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
38058
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
38059
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
38060
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
38061
|
+
* @param {*} [options] Override http request option.
|
|
38062
|
+
* @throws {RequiredError}
|
|
38063
|
+
* @memberof CustomerApi
|
|
38064
|
+
*/
|
|
38065
|
+
adjustInternalCertificate(customer_profile_oid: number, adjust_internal_certificate_request: AdjustInternalCertificateRequest, options?: any): Promise<AdjustInternalCertificateResponse>;
|
|
37927
38066
|
/**
|
|
37928
38067
|
* Delete a customer on the UltraCart account.
|
|
37929
38068
|
* @summary Delete a customer
|
|
@@ -38810,6 +38949,16 @@ export declare const IntegrationLogApiFetchParamCreator: (configuration?: Config
|
|
|
38810
38949
|
* @throws {RequiredError}
|
|
38811
38950
|
*/
|
|
38812
38951
|
getIntegrationLogFile(pk: string, sk: string, uuid: string, options?: any): FetchArgs;
|
|
38952
|
+
/**
|
|
38953
|
+
* Retrieve an integration log file from the account based identifiers
|
|
38954
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
38955
|
+
* @param {string} pk
|
|
38956
|
+
* @param {string} sk
|
|
38957
|
+
* @param {string} uuid
|
|
38958
|
+
* @param {*} [options] Override http request option.
|
|
38959
|
+
* @throws {RequiredError}
|
|
38960
|
+
*/
|
|
38961
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any): FetchArgs;
|
|
38813
38962
|
/**
|
|
38814
38963
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
38815
38964
|
* @summary Retrieve integration log summaries
|
|
@@ -38854,6 +39003,16 @@ export declare const IntegrationLogApiFp: (configuration?: Configuration) => {
|
|
|
38854
39003
|
* @throws {RequiredError}
|
|
38855
39004
|
*/
|
|
38856
39005
|
getIntegrationLogFile(pk: string, sk: string, uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Blob>;
|
|
39006
|
+
/**
|
|
39007
|
+
* Retrieve an integration log file from the account based identifiers
|
|
39008
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
39009
|
+
* @param {string} pk
|
|
39010
|
+
* @param {string} sk
|
|
39011
|
+
* @param {string} uuid
|
|
39012
|
+
* @param {*} [options] Override http request option.
|
|
39013
|
+
* @throws {RequiredError}
|
|
39014
|
+
*/
|
|
39015
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any): (fetch?: FetchAPI, basePath?: string) => Promise<Blob>;
|
|
38857
39016
|
/**
|
|
38858
39017
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
38859
39018
|
* @summary Retrieve integration log summaries
|
|
@@ -38898,6 +39057,16 @@ export declare const IntegrationLogApiFactory: (configuration?: Configuration, f
|
|
|
38898
39057
|
* @throws {RequiredError}
|
|
38899
39058
|
*/
|
|
38900
39059
|
getIntegrationLogFile(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
39060
|
+
/**
|
|
39061
|
+
* Retrieve an integration log file from the account based identifiers
|
|
39062
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
39063
|
+
* @param {string} pk
|
|
39064
|
+
* @param {string} sk
|
|
39065
|
+
* @param {string} uuid
|
|
39066
|
+
* @param {*} [options] Override http request option.
|
|
39067
|
+
* @throws {RequiredError}
|
|
39068
|
+
*/
|
|
39069
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
38901
39070
|
/**
|
|
38902
39071
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
38903
39072
|
* @summary Retrieve integration log summaries
|
|
@@ -38945,6 +39114,17 @@ export interface IntegrationLogApiInterface {
|
|
|
38945
39114
|
* @memberof IntegrationLogApiInterface
|
|
38946
39115
|
*/
|
|
38947
39116
|
getIntegrationLogFile(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
39117
|
+
/**
|
|
39118
|
+
* Retrieve an integration log file from the account based identifiers
|
|
39119
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
39120
|
+
* @param {string} pk
|
|
39121
|
+
* @param {string} sk
|
|
39122
|
+
* @param {string} uuid
|
|
39123
|
+
* @param {*} [options] Override http request option.
|
|
39124
|
+
* @throws {RequiredError}
|
|
39125
|
+
* @memberof IntegrationLogApiInterface
|
|
39126
|
+
*/
|
|
39127
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
38948
39128
|
/**
|
|
38949
39129
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
38950
39130
|
* @summary Retrieve integration log summaries
|
|
@@ -38995,6 +39175,17 @@ export declare class IntegrationLogApi extends BaseAPI implements IntegrationLog
|
|
|
38995
39175
|
* @memberof IntegrationLogApi
|
|
38996
39176
|
*/
|
|
38997
39177
|
getIntegrationLogFile(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
39178
|
+
/**
|
|
39179
|
+
* Retrieve an integration log file from the account based identifiers
|
|
39180
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
39181
|
+
* @param {string} pk
|
|
39182
|
+
* @param {string} sk
|
|
39183
|
+
* @param {string} uuid
|
|
39184
|
+
* @param {*} [options] Override http request option.
|
|
39185
|
+
* @throws {RequiredError}
|
|
39186
|
+
* @memberof IntegrationLogApi
|
|
39187
|
+
*/
|
|
39188
|
+
getIntegrationLogFilePdf(pk: string, sk: string, uuid: string, options?: any): Promise<Blob>;
|
|
38998
39189
|
/**
|
|
38999
39190
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
39000
39191
|
* @summary Retrieve integration log summaries
|
package/dist/api.js
CHANGED
|
@@ -8368,6 +8368,60 @@ exports.CouponApi = CouponApi;
|
|
|
8368
8368
|
*/
|
|
8369
8369
|
var CustomerApiFetchParamCreator = function (configuration) {
|
|
8370
8370
|
return {
|
|
8371
|
+
/**
|
|
8372
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
8373
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
8374
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
8375
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
8376
|
+
* @param {*} [options] Override http request option.
|
|
8377
|
+
* @throws {RequiredError}
|
|
8378
|
+
*/
|
|
8379
|
+
adjustInternalCertificate: function (customer_profile_oid, adjust_internal_certificate_request, options) {
|
|
8380
|
+
if (options === void 0) { options = {}; }
|
|
8381
|
+
// verify required parameter 'customer_profile_oid' is not null or undefined
|
|
8382
|
+
if (customer_profile_oid === null || customer_profile_oid === undefined) {
|
|
8383
|
+
throw new RequiredError('customer_profile_oid', 'Required parameter customer_profile_oid was null or undefined when calling adjustInternalCertificate.');
|
|
8384
|
+
}
|
|
8385
|
+
// verify required parameter 'adjust_internal_certificate_request' is not null or undefined
|
|
8386
|
+
if (adjust_internal_certificate_request === null || adjust_internal_certificate_request === undefined) {
|
|
8387
|
+
throw new RequiredError('adjust_internal_certificate_request', 'Required parameter adjust_internal_certificate_request was null or undefined when calling adjustInternalCertificate.');
|
|
8388
|
+
}
|
|
8389
|
+
var localVarPath = "/customer/customers/{customer_profile_oid}/adjust_cashback_balance"
|
|
8390
|
+
.replace("{".concat("customer_profile_oid", "}"), encodeURIComponent(String(customer_profile_oid)));
|
|
8391
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
8392
|
+
var localVarRequestOptions = Object.assign({ method: 'POST' }, options);
|
|
8393
|
+
var localVarHeaderParameter = {};
|
|
8394
|
+
var localVarQueryParameter = {};
|
|
8395
|
+
if (configuration && configuration.apiVersion) {
|
|
8396
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
8397
|
+
}
|
|
8398
|
+
// authentication ultraCartOauth required
|
|
8399
|
+
// oauth required
|
|
8400
|
+
if (configuration && configuration.accessToken) {
|
|
8401
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
8402
|
+
? configuration.accessToken("ultraCartOauth", ["customer_write"])
|
|
8403
|
+
: configuration.accessToken;
|
|
8404
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
8405
|
+
}
|
|
8406
|
+
// authentication ultraCartSimpleApiKey required
|
|
8407
|
+
if (configuration && configuration.apiKey) {
|
|
8408
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
8409
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
8410
|
+
: configuration.apiKey;
|
|
8411
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
8412
|
+
}
|
|
8413
|
+
localVarHeaderParameter['Content-Type'] = 'application/json; charset=UTF-8';
|
|
8414
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
8415
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
8416
|
+
delete localVarUrlObj.search;
|
|
8417
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
8418
|
+
var needsSerialization = ("AdjustInternalCertificateRequest" !== "string") || localVarRequestOptions.headers['Content-Type'] === 'application/json';
|
|
8419
|
+
localVarRequestOptions.body = needsSerialization ? JSON.stringify(adjust_internal_certificate_request || {}) : (adjust_internal_certificate_request || "");
|
|
8420
|
+
return {
|
|
8421
|
+
url: url.format(localVarUrlObj),
|
|
8422
|
+
options: localVarRequestOptions,
|
|
8423
|
+
};
|
|
8424
|
+
},
|
|
8371
8425
|
/**
|
|
8372
8426
|
* Delete a customer on the UltraCart account.
|
|
8373
8427
|
* @summary Delete a customer
|
|
@@ -9143,6 +9197,29 @@ exports.CustomerApiFetchParamCreator = CustomerApiFetchParamCreator;
|
|
|
9143
9197
|
*/
|
|
9144
9198
|
var CustomerApiFp = function (configuration) {
|
|
9145
9199
|
return {
|
|
9200
|
+
/**
|
|
9201
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
9202
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
9203
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
9204
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
9205
|
+
* @param {*} [options] Override http request option.
|
|
9206
|
+
* @throws {RequiredError}
|
|
9207
|
+
*/
|
|
9208
|
+
adjustInternalCertificate: function (customer_profile_oid, adjust_internal_certificate_request, options) {
|
|
9209
|
+
var localVarFetchArgs = (0, exports.CustomerApiFetchParamCreator)(configuration).adjustInternalCertificate(customer_profile_oid, adjust_internal_certificate_request, options);
|
|
9210
|
+
return function (fetch, basePath) {
|
|
9211
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
9212
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
9213
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
9214
|
+
if (response.status >= 200 && response.status < 300) {
|
|
9215
|
+
return response.json();
|
|
9216
|
+
}
|
|
9217
|
+
else {
|
|
9218
|
+
throw response;
|
|
9219
|
+
}
|
|
9220
|
+
});
|
|
9221
|
+
};
|
|
9222
|
+
},
|
|
9146
9223
|
/**
|
|
9147
9224
|
* Delete a customer on the UltraCart account.
|
|
9148
9225
|
* @summary Delete a customer
|
|
@@ -9478,6 +9555,17 @@ exports.CustomerApiFp = CustomerApiFp;
|
|
|
9478
9555
|
*/
|
|
9479
9556
|
var CustomerApiFactory = function (configuration, fetch, basePath) {
|
|
9480
9557
|
return {
|
|
9558
|
+
/**
|
|
9559
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
9560
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
9561
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
9562
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
9563
|
+
* @param {*} [options] Override http request option.
|
|
9564
|
+
* @throws {RequiredError}
|
|
9565
|
+
*/
|
|
9566
|
+
adjustInternalCertificate: function (customer_profile_oid, adjust_internal_certificate_request, options) {
|
|
9567
|
+
return (0, exports.CustomerApiFp)(configuration).adjustInternalCertificate(customer_profile_oid, adjust_internal_certificate_request, options)(fetch, basePath);
|
|
9568
|
+
},
|
|
9481
9569
|
/**
|
|
9482
9570
|
* Delete a customer on the UltraCart account.
|
|
9483
9571
|
* @summary Delete a customer
|
|
@@ -9662,6 +9750,18 @@ var CustomerApi = /** @class */ (function (_super) {
|
|
|
9662
9750
|
function CustomerApi() {
|
|
9663
9751
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
9664
9752
|
}
|
|
9753
|
+
/**
|
|
9754
|
+
* Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
9755
|
+
* @summary Updates the cashback balance for a customer by updating the internal gift certificate used, creating the gift certificate if needed.
|
|
9756
|
+
* @param {number} customer_profile_oid The customer profile oid
|
|
9757
|
+
* @param {AdjustInternalCertificateRequest} adjust_internal_certificate_request adjustInternalCertificateRequest
|
|
9758
|
+
* @param {*} [options] Override http request option.
|
|
9759
|
+
* @throws {RequiredError}
|
|
9760
|
+
* @memberof CustomerApi
|
|
9761
|
+
*/
|
|
9762
|
+
CustomerApi.prototype.adjustInternalCertificate = function (customer_profile_oid, adjust_internal_certificate_request, options) {
|
|
9763
|
+
return (0, exports.CustomerApiFp)(this.configuration).adjustInternalCertificate(customer_profile_oid, adjust_internal_certificate_request, options)(this.fetch, this.basePath);
|
|
9764
|
+
};
|
|
9665
9765
|
/**
|
|
9666
9766
|
* Delete a customer on the UltraCart account.
|
|
9667
9767
|
* @summary Delete a customer
|
|
@@ -11386,6 +11486,64 @@ var IntegrationLogApiFetchParamCreator = function (configuration) {
|
|
|
11386
11486
|
options: localVarRequestOptions,
|
|
11387
11487
|
};
|
|
11388
11488
|
},
|
|
11489
|
+
/**
|
|
11490
|
+
* Retrieve an integration log file from the account based identifiers
|
|
11491
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
11492
|
+
* @param {string} pk
|
|
11493
|
+
* @param {string} sk
|
|
11494
|
+
* @param {string} uuid
|
|
11495
|
+
* @param {*} [options] Override http request option.
|
|
11496
|
+
* @throws {RequiredError}
|
|
11497
|
+
*/
|
|
11498
|
+
getIntegrationLogFilePdf: function (pk, sk, uuid, options) {
|
|
11499
|
+
if (options === void 0) { options = {}; }
|
|
11500
|
+
// verify required parameter 'pk' is not null or undefined
|
|
11501
|
+
if (pk === null || pk === undefined) {
|
|
11502
|
+
throw new RequiredError('pk', 'Required parameter pk was null or undefined when calling getIntegrationLogFilePdf.');
|
|
11503
|
+
}
|
|
11504
|
+
// verify required parameter 'sk' is not null or undefined
|
|
11505
|
+
if (sk === null || sk === undefined) {
|
|
11506
|
+
throw new RequiredError('sk', 'Required parameter sk was null or undefined when calling getIntegrationLogFilePdf.');
|
|
11507
|
+
}
|
|
11508
|
+
// verify required parameter 'uuid' is not null or undefined
|
|
11509
|
+
if (uuid === null || uuid === undefined) {
|
|
11510
|
+
throw new RequiredError('uuid', 'Required parameter uuid was null or undefined when calling getIntegrationLogFilePdf.');
|
|
11511
|
+
}
|
|
11512
|
+
var localVarPath = "/integration_log/query/{pk}/{sk}/{uuid}/pdf"
|
|
11513
|
+
.replace("{".concat("pk", "}"), encodeURIComponent(String(pk)))
|
|
11514
|
+
.replace("{".concat("sk", "}"), encodeURIComponent(String(sk)))
|
|
11515
|
+
.replace("{".concat("uuid", "}"), encodeURIComponent(String(uuid)));
|
|
11516
|
+
var localVarUrlObj = url.parse(localVarPath, true);
|
|
11517
|
+
var localVarRequestOptions = Object.assign({ method: 'GET' }, options);
|
|
11518
|
+
var localVarHeaderParameter = {};
|
|
11519
|
+
var localVarQueryParameter = {};
|
|
11520
|
+
if (configuration && configuration.apiVersion) {
|
|
11521
|
+
localVarHeaderParameter["X-UltraCart-Api-Version"] = configuration.apiVersion;
|
|
11522
|
+
}
|
|
11523
|
+
// authentication ultraCartOauth required
|
|
11524
|
+
// oauth required
|
|
11525
|
+
if (configuration && configuration.accessToken) {
|
|
11526
|
+
var localVarAccessTokenValue = typeof configuration.accessToken === 'function'
|
|
11527
|
+
? configuration.accessToken("ultraCartOauth", ["integration_log_read"])
|
|
11528
|
+
: configuration.accessToken;
|
|
11529
|
+
localVarHeaderParameter["Authorization"] = "Bearer " + localVarAccessTokenValue;
|
|
11530
|
+
}
|
|
11531
|
+
// authentication ultraCartSimpleApiKey required
|
|
11532
|
+
if (configuration && configuration.apiKey) {
|
|
11533
|
+
var localVarApiKeyValue = typeof configuration.apiKey === 'function'
|
|
11534
|
+
? configuration.apiKey("x-ultracart-simple-key")
|
|
11535
|
+
: configuration.apiKey;
|
|
11536
|
+
localVarHeaderParameter["x-ultracart-simple-key"] = localVarApiKeyValue;
|
|
11537
|
+
}
|
|
11538
|
+
localVarUrlObj.query = Object.assign({}, localVarUrlObj.query, localVarQueryParameter, options.query);
|
|
11539
|
+
// fix override query string Detail: https://stackoverflow.com/a/7517673/1077943
|
|
11540
|
+
delete localVarUrlObj.search;
|
|
11541
|
+
localVarRequestOptions.headers = Object.assign({}, localVarHeaderParameter, options.headers);
|
|
11542
|
+
return {
|
|
11543
|
+
url: url.format(localVarUrlObj),
|
|
11544
|
+
options: localVarRequestOptions,
|
|
11545
|
+
};
|
|
11546
|
+
},
|
|
11389
11547
|
/**
|
|
11390
11548
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
11391
11549
|
* @summary Retrieve integration log summaries
|
|
@@ -11550,6 +11708,30 @@ var IntegrationLogApiFp = function (configuration) {
|
|
|
11550
11708
|
});
|
|
11551
11709
|
};
|
|
11552
11710
|
},
|
|
11711
|
+
/**
|
|
11712
|
+
* Retrieve an integration log file from the account based identifiers
|
|
11713
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
11714
|
+
* @param {string} pk
|
|
11715
|
+
* @param {string} sk
|
|
11716
|
+
* @param {string} uuid
|
|
11717
|
+
* @param {*} [options] Override http request option.
|
|
11718
|
+
* @throws {RequiredError}
|
|
11719
|
+
*/
|
|
11720
|
+
getIntegrationLogFilePdf: function (pk, sk, uuid, options) {
|
|
11721
|
+
var localVarFetchArgs = (0, exports.IntegrationLogApiFetchParamCreator)(configuration).getIntegrationLogFilePdf(pk, sk, uuid, options);
|
|
11722
|
+
return function (fetch, basePath) {
|
|
11723
|
+
if (fetch === void 0) { fetch = portableFetch; }
|
|
11724
|
+
if (basePath === void 0) { basePath = BASE_PATH; }
|
|
11725
|
+
return fetch(basePath + localVarFetchArgs.url, localVarFetchArgs.options).then(function (response) {
|
|
11726
|
+
if (response.status >= 200 && response.status < 300) {
|
|
11727
|
+
return response.blob();
|
|
11728
|
+
}
|
|
11729
|
+
else {
|
|
11730
|
+
throw response;
|
|
11731
|
+
}
|
|
11732
|
+
});
|
|
11733
|
+
};
|
|
11734
|
+
},
|
|
11553
11735
|
/**
|
|
11554
11736
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
11555
11737
|
* @summary Retrieve integration log summaries
|
|
@@ -11629,6 +11811,18 @@ var IntegrationLogApiFactory = function (configuration, fetch, basePath) {
|
|
|
11629
11811
|
getIntegrationLogFile: function (pk, sk, uuid, options) {
|
|
11630
11812
|
return (0, exports.IntegrationLogApiFp)(configuration).getIntegrationLogFile(pk, sk, uuid, options)(fetch, basePath);
|
|
11631
11813
|
},
|
|
11814
|
+
/**
|
|
11815
|
+
* Retrieve an integration log file from the account based identifiers
|
|
11816
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
11817
|
+
* @param {string} pk
|
|
11818
|
+
* @param {string} sk
|
|
11819
|
+
* @param {string} uuid
|
|
11820
|
+
* @param {*} [options] Override http request option.
|
|
11821
|
+
* @throws {RequiredError}
|
|
11822
|
+
*/
|
|
11823
|
+
getIntegrationLogFilePdf: function (pk, sk, uuid, options) {
|
|
11824
|
+
return (0, exports.IntegrationLogApiFp)(configuration).getIntegrationLogFilePdf(pk, sk, uuid, options)(fetch, basePath);
|
|
11825
|
+
},
|
|
11632
11826
|
/**
|
|
11633
11827
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
11634
11828
|
* @summary Retrieve integration log summaries
|
|
@@ -11691,6 +11885,19 @@ var IntegrationLogApi = /** @class */ (function (_super) {
|
|
|
11691
11885
|
IntegrationLogApi.prototype.getIntegrationLogFile = function (pk, sk, uuid, options) {
|
|
11692
11886
|
return (0, exports.IntegrationLogApiFp)(this.configuration).getIntegrationLogFile(pk, sk, uuid, options)(this.fetch, this.basePath);
|
|
11693
11887
|
};
|
|
11888
|
+
/**
|
|
11889
|
+
* Retrieve an integration log file from the account based identifiers
|
|
11890
|
+
* @summary Retrieve an integration log file converted to PDF
|
|
11891
|
+
* @param {string} pk
|
|
11892
|
+
* @param {string} sk
|
|
11893
|
+
* @param {string} uuid
|
|
11894
|
+
* @param {*} [options] Override http request option.
|
|
11895
|
+
* @throws {RequiredError}
|
|
11896
|
+
* @memberof IntegrationLogApi
|
|
11897
|
+
*/
|
|
11898
|
+
IntegrationLogApi.prototype.getIntegrationLogFilePdf = function (pk, sk, uuid, options) {
|
|
11899
|
+
return (0, exports.IntegrationLogApiFp)(this.configuration).getIntegrationLogFilePdf(pk, sk, uuid, options)(this.fetch, this.basePath);
|
|
11900
|
+
};
|
|
11694
11901
|
/**
|
|
11695
11902
|
* Retrieves a set of integration log summaries from the account based on a query object.
|
|
11696
11903
|
* @summary Retrieve integration log summaries
|