ultracart_rest_api_v2_typescript 4.1.122 → 4.1.124
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/.openapi-generator/FILES +4 -0
- package/README.md +4 -2
- package/dist/apis/CustomerApi.d.ts +30 -1
- package/dist/apis/CustomerApi.js +64 -0
- package/dist/models/CustomerEmailSuppressionRequest.d.ts +67 -0
- package/dist/models/CustomerEmailSuppressionRequest.js +69 -0
- package/dist/models/CustomerEmailSuppressionResponse.d.ts +59 -0
- package/dist/models/CustomerEmailSuppressionResponse.js +62 -0
- package/dist/models/CustomerEmailSuppressionResult.d.ts +98 -0
- package/dist/models/CustomerEmailSuppressionResult.js +73 -0
- package/dist/models/EmailSuppressionSurfaces.d.ts +43 -0
- package/dist/models/EmailSuppressionSurfaces.js +54 -0
- package/dist/models/TaxCountry.d.ts +12 -0
- package/dist/models/TaxCountry.js +4 -0
- package/dist/models/TaxState.d.ts +12 -0
- package/dist/models/TaxState.js +4 -0
- package/dist/models/index.d.ts +4 -0
- package/dist/models/index.js +4 -0
- package/package.json +1 -1
- package/src/apis/CustomerApi.ts +76 -0
- package/src/models/CustomerEmailSuppressionRequest.ts +113 -0
- package/src/models/CustomerEmailSuppressionResponse.ts +124 -0
- package/src/models/CustomerEmailSuppressionResult.ts +162 -0
- package/src/models/EmailSuppressionSurfaces.ts +83 -0
- package/src/models/TaxCountry.ts +16 -0
- package/src/models/TaxState.ts +16 -0
- package/src/models/index.ts +4 -0
package/.openapi-generator/FILES
CHANGED
|
@@ -465,6 +465,9 @@ src/models/CustomerEDI.ts
|
|
|
465
465
|
src/models/CustomerEditorValues.ts
|
|
466
466
|
src/models/CustomerEmail.ts
|
|
467
467
|
src/models/CustomerEmailListChanges.ts
|
|
468
|
+
src/models/CustomerEmailSuppressionRequest.ts
|
|
469
|
+
src/models/CustomerEmailSuppressionResponse.ts
|
|
470
|
+
src/models/CustomerEmailSuppressionResult.ts
|
|
468
471
|
src/models/CustomerLoyalty.ts
|
|
469
472
|
src/models/CustomerLoyaltyLedger.ts
|
|
470
473
|
src/models/CustomerLoyaltyRedemption.ts
|
|
@@ -612,6 +615,7 @@ src/models/EmailStepStatRequest.ts
|
|
|
612
615
|
src/models/EmailStepStatResponse.ts
|
|
613
616
|
src/models/EmailStepWaitingRequest.ts
|
|
614
617
|
src/models/EmailStepWaitingResponse.ts
|
|
618
|
+
src/models/EmailSuppressionSurfaces.ts
|
|
615
619
|
src/models/EmailTemplate.ts
|
|
616
620
|
src/models/EmailTemplatesResponse.ts
|
|
617
621
|
src/models/EmailThirdPartyList.ts
|
package/README.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
# UltraCart Typescript SDK
|
|
2
|
-
## ultracart_rest_api_v2_typescript@4.1.
|
|
2
|
+
## ultracart_rest_api_v2_typescript@4.1.124
|
|
3
3
|
|
|
4
4
|
Every API method call has a sample for every language SDK. See https://github.com/UltraCart/sdk_samples
|
|
5
5
|
|
|
6
6
|
Installation
|
|
7
7
|
|
|
8
8
|
```
|
|
9
|
-
npm install ultracart_rest_api_v2_typescript@4.1.
|
|
9
|
+
npm install ultracart_rest_api_v2_typescript@4.1.124 --save
|
|
10
10
|
```
|
|
11
11
|
|
|
12
12
|
```typescript
|
|
@@ -85,6 +85,8 @@ Not every change is committed to every SDK.
|
|
|
85
85
|
|
|
86
86
|
| Version | Date | Comments |
|
|
87
87
|
| --: | :-: | --- |
|
|
88
|
+
| 4.1.124 | 08/04/2026 | customer - method to remove customer profile from email suppression |
|
|
89
|
+
| 4.1.123 | 08/04/2026 | customer - method to remove customer profile from email suppression |
|
|
88
90
|
| 4.1.122 | 07/29/2026 | auto order api - new methods for payment information and rebill |
|
|
89
91
|
| 4.1.121 | 07/15/2026 | storefront - parameter to include details on dispatch log methods |
|
|
90
92
|
| 4.1.120 | 07/15/2026 | storefront - parameter to include details on dispatch log methods |
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Do not edit the class manually.
|
|
11
11
|
*/
|
|
12
12
|
import * as runtime from '../runtime';
|
|
13
|
-
import { AdjustInternalCertificateRequest, AdjustInternalCertificateResponse, BaseResponse, Customer, CustomerEditorValues, CustomerEmailListChanges, CustomerMagicLinkResponse, CustomerMergeRequest, CustomerQuery, CustomerResponse, CustomerStoreCreditAddRequest, CustomerStoreCreditResponse, CustomerWishListItem, CustomerWishListItemResponse, CustomerWishListItemsResponse, CustomersResponse, DataTablesServerSideResponse, EmailListsResponse, EmailVerifyTokenRequest, EmailVerifyTokenResponse, EmailVerifyTokenValidateRequest, EmailVerifyTokenValidateResponse, LookupRequest, LookupResponse, QuickBooksOnlineCustomersResponse } from '../models';
|
|
13
|
+
import { AdjustInternalCertificateRequest, AdjustInternalCertificateResponse, BaseResponse, Customer, CustomerEditorValues, CustomerEmailListChanges, CustomerEmailSuppressionRequest, CustomerEmailSuppressionResponse, CustomerMagicLinkResponse, CustomerMergeRequest, CustomerQuery, CustomerResponse, CustomerStoreCreditAddRequest, CustomerStoreCreditResponse, CustomerWishListItem, CustomerWishListItemResponse, CustomerWishListItemsResponse, CustomersResponse, DataTablesServerSideResponse, EmailListsResponse, EmailVerifyTokenRequest, EmailVerifyTokenResponse, EmailVerifyTokenValidateRequest, EmailVerifyTokenValidateResponse, LookupRequest, LookupResponse, QuickBooksOnlineCustomersResponse } from '../models';
|
|
14
14
|
export interface AddCustomerStoreCreditRequest {
|
|
15
15
|
customerProfileOid: number;
|
|
16
16
|
storeCreditRequest: CustomerStoreCreditAddRequest;
|
|
@@ -134,6 +134,10 @@ export interface UpdateCustomerEmailListsRequest {
|
|
|
134
134
|
customerProfileOid: number;
|
|
135
135
|
listChanges: CustomerEmailListChanges;
|
|
136
136
|
}
|
|
137
|
+
export interface UpdateCustomerEmailSuppressionRequest {
|
|
138
|
+
customerProfileOid: number;
|
|
139
|
+
suppressionChanges: CustomerEmailSuppressionRequest;
|
|
140
|
+
}
|
|
137
141
|
export interface UpdateWishListItemRequest {
|
|
138
142
|
customerProfileOid: number;
|
|
139
143
|
customerWishlistItemOid: number;
|
|
@@ -539,6 +543,21 @@ export interface CustomerApiInterface {
|
|
|
539
543
|
* Update email list subscriptions for a customer
|
|
540
544
|
*/
|
|
541
545
|
updateCustomerEmailLists(requestParameters: UpdateCustomerEmailListsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerEmailListChanges>;
|
|
546
|
+
/**
|
|
547
|
+
* Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer\'s original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
548
|
+
* @summary Clear email suppression for a customer
|
|
549
|
+
* @param {number} customerProfileOid The customer profile oid
|
|
550
|
+
* @param {CustomerEmailSuppressionRequest} suppressionChanges Suppression changes
|
|
551
|
+
* @param {*} [options] Override http request option.
|
|
552
|
+
* @throws {RequiredError}
|
|
553
|
+
* @memberof CustomerApiInterface
|
|
554
|
+
*/
|
|
555
|
+
updateCustomerEmailSuppressionRaw(requestParameters: UpdateCustomerEmailSuppressionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerEmailSuppressionResponse>>;
|
|
556
|
+
/**
|
|
557
|
+
* Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer\'s original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
558
|
+
* Clear email suppression for a customer
|
|
559
|
+
*/
|
|
560
|
+
updateCustomerEmailSuppression(requestParameters: UpdateCustomerEmailSuppressionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerEmailSuppressionResponse>;
|
|
542
561
|
/**
|
|
543
562
|
* Update a customer wishlist item
|
|
544
563
|
* @summary Update a customer wishlist item
|
|
@@ -812,6 +831,16 @@ export declare class CustomerApi extends runtime.BaseAPI implements CustomerApiI
|
|
|
812
831
|
* Update email list subscriptions for a customer
|
|
813
832
|
*/
|
|
814
833
|
updateCustomerEmailLists(requestParameters: UpdateCustomerEmailListsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerEmailListChanges>;
|
|
834
|
+
/**
|
|
835
|
+
* Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer\'s original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
836
|
+
* Clear email suppression for a customer
|
|
837
|
+
*/
|
|
838
|
+
updateCustomerEmailSuppressionRaw(requestParameters: UpdateCustomerEmailSuppressionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CustomerEmailSuppressionResponse>>;
|
|
839
|
+
/**
|
|
840
|
+
* Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer\'s original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
841
|
+
* Clear email suppression for a customer
|
|
842
|
+
*/
|
|
843
|
+
updateCustomerEmailSuppression(requestParameters: UpdateCustomerEmailSuppressionRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CustomerEmailSuppressionResponse>;
|
|
815
844
|
/**
|
|
816
845
|
* Update a customer wishlist item
|
|
817
846
|
* Update a customer wishlist item
|
package/dist/apis/CustomerApi.js
CHANGED
|
@@ -1675,6 +1675,70 @@ var CustomerApi = /** @class */ (function (_super) {
|
|
|
1675
1675
|
});
|
|
1676
1676
|
});
|
|
1677
1677
|
};
|
|
1678
|
+
/**
|
|
1679
|
+
* Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer\'s original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
1680
|
+
* Clear email suppression for a customer
|
|
1681
|
+
*/
|
|
1682
|
+
CustomerApi.prototype.updateCustomerEmailSuppressionRaw = function (requestParameters, initOverrides) {
|
|
1683
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1684
|
+
var queryParameters, headerParameters, _a, _b, response;
|
|
1685
|
+
return __generator(this, function (_c) {
|
|
1686
|
+
switch (_c.label) {
|
|
1687
|
+
case 0:
|
|
1688
|
+
if (requestParameters.customerProfileOid === null || requestParameters.customerProfileOid === undefined) {
|
|
1689
|
+
throw new runtime.RequiredError('customerProfileOid', 'Required parameter requestParameters.customerProfileOid was null or undefined when calling updateCustomerEmailSuppression.');
|
|
1690
|
+
}
|
|
1691
|
+
if (requestParameters.suppressionChanges === null || requestParameters.suppressionChanges === undefined) {
|
|
1692
|
+
throw new runtime.RequiredError('suppressionChanges', 'Required parameter requestParameters.suppressionChanges was null or undefined when calling updateCustomerEmailSuppression.');
|
|
1693
|
+
}
|
|
1694
|
+
queryParameters = {};
|
|
1695
|
+
headerParameters = {};
|
|
1696
|
+
headerParameters['Content-Type'] = 'application/json; charset=UTF-8';
|
|
1697
|
+
if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
|
|
1698
|
+
// oauth required
|
|
1699
|
+
_a = headerParameters;
|
|
1700
|
+
_b = "Authorization";
|
|
1701
|
+
return [4 /*yield*/, this.configuration.accessToken("ultraCartOauth", ["customer_write"])];
|
|
1702
|
+
case 1:
|
|
1703
|
+
// oauth required
|
|
1704
|
+
_a[_b] = _c.sent();
|
|
1705
|
+
_c.label = 2;
|
|
1706
|
+
case 2:
|
|
1707
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1708
|
+
headerParameters["x-ultracart-simple-key"] = this.configuration.apiKey("x-ultracart-simple-key"); // ultraCartSimpleApiKey authentication
|
|
1709
|
+
}
|
|
1710
|
+
return [4 /*yield*/, this.request({
|
|
1711
|
+
path: "/customer/customers/{customer_profile_oid}/email_suppression".replace("{".concat("customer_profile_oid", "}"), encodeURIComponent(String(requestParameters.customerProfileOid))),
|
|
1712
|
+
method: 'POST',
|
|
1713
|
+
headers: headerParameters,
|
|
1714
|
+
query: queryParameters,
|
|
1715
|
+
body: (0, models_1.CustomerEmailSuppressionRequestToJSON)(requestParameters.suppressionChanges),
|
|
1716
|
+
}, initOverrides)];
|
|
1717
|
+
case 3:
|
|
1718
|
+
response = _c.sent();
|
|
1719
|
+
return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, models_1.CustomerEmailSuppressionResponseFromJSON)(jsonValue); })];
|
|
1720
|
+
}
|
|
1721
|
+
});
|
|
1722
|
+
});
|
|
1723
|
+
};
|
|
1724
|
+
/**
|
|
1725
|
+
* Clears global unsubscribe, spam complaint and/or bounce suppression for a customer. This method is clear-only and cannot set a suppression flag. Clearing a suppression removes the send gate but does not subscribe the customer to any email list -- list membership survives a global unsubscribe untouched, so the customer\'s original lists become deliverable again with no further action. Returns 200 with a warning if the flags were cleared but an upstream ESP suppression removal failed; the profile was still modified in that case.
|
|
1726
|
+
* Clear email suppression for a customer
|
|
1727
|
+
*/
|
|
1728
|
+
CustomerApi.prototype.updateCustomerEmailSuppression = function (requestParameters, initOverrides) {
|
|
1729
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1730
|
+
var response;
|
|
1731
|
+
return __generator(this, function (_a) {
|
|
1732
|
+
switch (_a.label) {
|
|
1733
|
+
case 0: return [4 /*yield*/, this.updateCustomerEmailSuppressionRaw(requestParameters, initOverrides)];
|
|
1734
|
+
case 1:
|
|
1735
|
+
response = _a.sent();
|
|
1736
|
+
return [4 /*yield*/, response.value()];
|
|
1737
|
+
case 2: return [2 /*return*/, _a.sent()];
|
|
1738
|
+
}
|
|
1739
|
+
});
|
|
1740
|
+
});
|
|
1741
|
+
};
|
|
1678
1742
|
/**
|
|
1679
1743
|
* Update a customer wishlist item
|
|
1680
1744
|
* Update a customer wishlist item
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface CustomerEmailSuppressionRequest
|
|
16
|
+
*/
|
|
17
|
+
export interface CustomerEmailSuppressionRequest {
|
|
18
|
+
/**
|
|
19
|
+
* Clear bounce suppression for this address. Bounce has no per-customer flag; it exists only on the suppression tables.
|
|
20
|
+
* @type {boolean}
|
|
21
|
+
* @memberof CustomerEmailSuppressionRequest
|
|
22
|
+
*/
|
|
23
|
+
clear_bounce?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Clear the global unsubscribe flag. No-op if it is already clear.
|
|
26
|
+
* @type {boolean}
|
|
27
|
+
* @memberof CustomerEmailSuppressionRequest
|
|
28
|
+
*/
|
|
29
|
+
clear_global_unsubscribe?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Clear the spam complaint flag. Requires a reason. No-op if it is already clear.
|
|
32
|
+
* @type {boolean}
|
|
33
|
+
* @memberof CustomerEmailSuppressionRequest
|
|
34
|
+
*/
|
|
35
|
+
clear_spam_complaint?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* How the customer communicated consent.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof CustomerEmailSuppressionRequest
|
|
40
|
+
*/
|
|
41
|
+
consent_source?: CustomerEmailSuppressionRequestConsentSourceEnum;
|
|
42
|
+
/**
|
|
43
|
+
* Justification for the clear. Required when clearing a spam complaint. Retained on the audit record.
|
|
44
|
+
* @type {string}
|
|
45
|
+
* @memberof CustomerEmailSuppressionRequest
|
|
46
|
+
*/
|
|
47
|
+
reason?: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* @export
|
|
51
|
+
*/
|
|
52
|
+
export declare const CustomerEmailSuppressionRequestConsentSourceEnum: {
|
|
53
|
+
readonly Phone: "phone";
|
|
54
|
+
readonly Email: "email";
|
|
55
|
+
readonly Chat: "chat";
|
|
56
|
+
readonly InPerson: "in_person";
|
|
57
|
+
readonly Written: "written";
|
|
58
|
+
readonly Other: "other";
|
|
59
|
+
};
|
|
60
|
+
export type CustomerEmailSuppressionRequestConsentSourceEnum = typeof CustomerEmailSuppressionRequestConsentSourceEnum[keyof typeof CustomerEmailSuppressionRequestConsentSourceEnum];
|
|
61
|
+
/**
|
|
62
|
+
* Check if a given object implements the CustomerEmailSuppressionRequest interface.
|
|
63
|
+
*/
|
|
64
|
+
export declare function instanceOfCustomerEmailSuppressionRequest(value: object): boolean;
|
|
65
|
+
export declare function CustomerEmailSuppressionRequestFromJSON(json: any): CustomerEmailSuppressionRequest;
|
|
66
|
+
export declare function CustomerEmailSuppressionRequestFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerEmailSuppressionRequest;
|
|
67
|
+
export declare function CustomerEmailSuppressionRequestToJSON(value?: CustomerEmailSuppressionRequest | null): any;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomerEmailSuppressionRequestToJSON = exports.CustomerEmailSuppressionRequestFromJSONTyped = exports.CustomerEmailSuppressionRequestFromJSON = exports.instanceOfCustomerEmailSuppressionRequest = exports.CustomerEmailSuppressionRequestConsentSourceEnum = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
/**
|
|
19
|
+
* @export
|
|
20
|
+
*/
|
|
21
|
+
exports.CustomerEmailSuppressionRequestConsentSourceEnum = {
|
|
22
|
+
Phone: 'phone',
|
|
23
|
+
Email: 'email',
|
|
24
|
+
Chat: 'chat',
|
|
25
|
+
InPerson: 'in_person',
|
|
26
|
+
Written: 'written',
|
|
27
|
+
Other: 'other'
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Check if a given object implements the CustomerEmailSuppressionRequest interface.
|
|
31
|
+
*/
|
|
32
|
+
function instanceOfCustomerEmailSuppressionRequest(value) {
|
|
33
|
+
var isInstance = true;
|
|
34
|
+
return isInstance;
|
|
35
|
+
}
|
|
36
|
+
exports.instanceOfCustomerEmailSuppressionRequest = instanceOfCustomerEmailSuppressionRequest;
|
|
37
|
+
function CustomerEmailSuppressionRequestFromJSON(json) {
|
|
38
|
+
return CustomerEmailSuppressionRequestFromJSONTyped(json, false);
|
|
39
|
+
}
|
|
40
|
+
exports.CustomerEmailSuppressionRequestFromJSON = CustomerEmailSuppressionRequestFromJSON;
|
|
41
|
+
function CustomerEmailSuppressionRequestFromJSONTyped(json, ignoreDiscriminator) {
|
|
42
|
+
if ((json === undefined) || (json === null)) {
|
|
43
|
+
return json;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
'clear_bounce': !(0, runtime_1.exists)(json, 'clear_bounce') ? undefined : json['clear_bounce'],
|
|
47
|
+
'clear_global_unsubscribe': !(0, runtime_1.exists)(json, 'clear_global_unsubscribe') ? undefined : json['clear_global_unsubscribe'],
|
|
48
|
+
'clear_spam_complaint': !(0, runtime_1.exists)(json, 'clear_spam_complaint') ? undefined : json['clear_spam_complaint'],
|
|
49
|
+
'consent_source': !(0, runtime_1.exists)(json, 'consent_source') ? undefined : json['consent_source'],
|
|
50
|
+
'reason': !(0, runtime_1.exists)(json, 'reason') ? undefined : json['reason'],
|
|
51
|
+
};
|
|
52
|
+
}
|
|
53
|
+
exports.CustomerEmailSuppressionRequestFromJSONTyped = CustomerEmailSuppressionRequestFromJSONTyped;
|
|
54
|
+
function CustomerEmailSuppressionRequestToJSON(value) {
|
|
55
|
+
if (value === undefined) {
|
|
56
|
+
return undefined;
|
|
57
|
+
}
|
|
58
|
+
if (value === null) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
61
|
+
return {
|
|
62
|
+
'clear_bounce': value.clear_bounce,
|
|
63
|
+
'clear_global_unsubscribe': value.clear_global_unsubscribe,
|
|
64
|
+
'clear_spam_complaint': value.clear_spam_complaint,
|
|
65
|
+
'consent_source': value.consent_source,
|
|
66
|
+
'reason': value.reason,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
exports.CustomerEmailSuppressionRequestToJSON = CustomerEmailSuppressionRequestToJSON;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { CustomerEmailSuppressionResult } from './CustomerEmailSuppressionResult';
|
|
13
|
+
import { ModelError } from './ModelError';
|
|
14
|
+
import { ResponseMetadata } from './ResponseMetadata';
|
|
15
|
+
import { Warning } from './Warning';
|
|
16
|
+
/**
|
|
17
|
+
*
|
|
18
|
+
* @export
|
|
19
|
+
* @interface CustomerEmailSuppressionResponse
|
|
20
|
+
*/
|
|
21
|
+
export interface CustomerEmailSuppressionResponse {
|
|
22
|
+
/**
|
|
23
|
+
*
|
|
24
|
+
* @type {CustomerEmailSuppressionResult}
|
|
25
|
+
* @memberof CustomerEmailSuppressionResponse
|
|
26
|
+
*/
|
|
27
|
+
email_suppression?: CustomerEmailSuppressionResult;
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
* @type {ModelError}
|
|
31
|
+
* @memberof CustomerEmailSuppressionResponse
|
|
32
|
+
*/
|
|
33
|
+
error?: ModelError;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {ResponseMetadata}
|
|
37
|
+
* @memberof CustomerEmailSuppressionResponse
|
|
38
|
+
*/
|
|
39
|
+
metadata?: ResponseMetadata;
|
|
40
|
+
/**
|
|
41
|
+
* Indicates if API call was successful
|
|
42
|
+
* @type {boolean}
|
|
43
|
+
* @memberof CustomerEmailSuppressionResponse
|
|
44
|
+
*/
|
|
45
|
+
success?: boolean;
|
|
46
|
+
/**
|
|
47
|
+
*
|
|
48
|
+
* @type {Warning}
|
|
49
|
+
* @memberof CustomerEmailSuppressionResponse
|
|
50
|
+
*/
|
|
51
|
+
warning?: Warning;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* Check if a given object implements the CustomerEmailSuppressionResponse interface.
|
|
55
|
+
*/
|
|
56
|
+
export declare function instanceOfCustomerEmailSuppressionResponse(value: object): boolean;
|
|
57
|
+
export declare function CustomerEmailSuppressionResponseFromJSON(json: any): CustomerEmailSuppressionResponse;
|
|
58
|
+
export declare function CustomerEmailSuppressionResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerEmailSuppressionResponse;
|
|
59
|
+
export declare function CustomerEmailSuppressionResponseToJSON(value?: CustomerEmailSuppressionResponse | null): any;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomerEmailSuppressionResponseToJSON = exports.CustomerEmailSuppressionResponseFromJSONTyped = exports.CustomerEmailSuppressionResponseFromJSON = exports.instanceOfCustomerEmailSuppressionResponse = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var CustomerEmailSuppressionResult_1 = require("./CustomerEmailSuppressionResult");
|
|
19
|
+
var ModelError_1 = require("./ModelError");
|
|
20
|
+
var ResponseMetadata_1 = require("./ResponseMetadata");
|
|
21
|
+
var Warning_1 = require("./Warning");
|
|
22
|
+
/**
|
|
23
|
+
* Check if a given object implements the CustomerEmailSuppressionResponse interface.
|
|
24
|
+
*/
|
|
25
|
+
function instanceOfCustomerEmailSuppressionResponse(value) {
|
|
26
|
+
var isInstance = true;
|
|
27
|
+
return isInstance;
|
|
28
|
+
}
|
|
29
|
+
exports.instanceOfCustomerEmailSuppressionResponse = instanceOfCustomerEmailSuppressionResponse;
|
|
30
|
+
function CustomerEmailSuppressionResponseFromJSON(json) {
|
|
31
|
+
return CustomerEmailSuppressionResponseFromJSONTyped(json, false);
|
|
32
|
+
}
|
|
33
|
+
exports.CustomerEmailSuppressionResponseFromJSON = CustomerEmailSuppressionResponseFromJSON;
|
|
34
|
+
function CustomerEmailSuppressionResponseFromJSONTyped(json, ignoreDiscriminator) {
|
|
35
|
+
if ((json === undefined) || (json === null)) {
|
|
36
|
+
return json;
|
|
37
|
+
}
|
|
38
|
+
return {
|
|
39
|
+
'email_suppression': !(0, runtime_1.exists)(json, 'email_suppression') ? undefined : (0, CustomerEmailSuppressionResult_1.CustomerEmailSuppressionResultFromJSON)(json['email_suppression']),
|
|
40
|
+
'error': !(0, runtime_1.exists)(json, 'error') ? undefined : (0, ModelError_1.ModelErrorFromJSON)(json['error']),
|
|
41
|
+
'metadata': !(0, runtime_1.exists)(json, 'metadata') ? undefined : (0, ResponseMetadata_1.ResponseMetadataFromJSON)(json['metadata']),
|
|
42
|
+
'success': !(0, runtime_1.exists)(json, 'success') ? undefined : json['success'],
|
|
43
|
+
'warning': !(0, runtime_1.exists)(json, 'warning') ? undefined : (0, Warning_1.WarningFromJSON)(json['warning']),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
exports.CustomerEmailSuppressionResponseFromJSONTyped = CustomerEmailSuppressionResponseFromJSONTyped;
|
|
47
|
+
function CustomerEmailSuppressionResponseToJSON(value) {
|
|
48
|
+
if (value === undefined) {
|
|
49
|
+
return undefined;
|
|
50
|
+
}
|
|
51
|
+
if (value === null) {
|
|
52
|
+
return null;
|
|
53
|
+
}
|
|
54
|
+
return {
|
|
55
|
+
'email_suppression': (0, CustomerEmailSuppressionResult_1.CustomerEmailSuppressionResultToJSON)(value.email_suppression),
|
|
56
|
+
'error': (0, ModelError_1.ModelErrorToJSON)(value.error),
|
|
57
|
+
'metadata': (0, ResponseMetadata_1.ResponseMetadataToJSON)(value.metadata),
|
|
58
|
+
'success': value.success,
|
|
59
|
+
'warning': (0, Warning_1.WarningToJSON)(value.warning),
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
exports.CustomerEmailSuppressionResponseToJSON = CustomerEmailSuppressionResponseToJSON;
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { EmailSuppressionSurfaces } from './EmailSuppressionSurfaces';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface CustomerEmailSuppressionResult
|
|
17
|
+
*/
|
|
18
|
+
export interface CustomerEmailSuppressionResult {
|
|
19
|
+
/**
|
|
20
|
+
* True only if this call actually removed bounce suppression. Bounce has no per-customer flag, so there is no corresponding state field.
|
|
21
|
+
* @type {boolean}
|
|
22
|
+
* @memberof CustomerEmailSuppressionResult
|
|
23
|
+
*/
|
|
24
|
+
bounce_cleared?: boolean;
|
|
25
|
+
/**
|
|
26
|
+
* The customer profile oid that was operated on
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof CustomerEmailSuppressionResult
|
|
29
|
+
*/
|
|
30
|
+
customer_profile_oid?: number;
|
|
31
|
+
/**
|
|
32
|
+
* The email address that was operated on
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof CustomerEmailSuppressionResult
|
|
35
|
+
*/
|
|
36
|
+
email?: string;
|
|
37
|
+
/**
|
|
38
|
+
* True only if every requested suppression surface was successfully cleared. When false, see esp_warning -- the profile was still modified.
|
|
39
|
+
* @type {boolean}
|
|
40
|
+
* @memberof CustomerEmailSuppressionResult
|
|
41
|
+
*/
|
|
42
|
+
esp_suppression_removed?: boolean;
|
|
43
|
+
/**
|
|
44
|
+
* Human readable explanation when esp_suppression_removed is false. Suitable for display to a support agent.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof CustomerEmailSuppressionResult
|
|
47
|
+
*/
|
|
48
|
+
esp_warning?: string;
|
|
49
|
+
/**
|
|
50
|
+
* True only if this call actually changed the global unsubscribe flag. False if it was already clear.
|
|
51
|
+
* @type {boolean}
|
|
52
|
+
* @memberof CustomerEmailSuppressionResult
|
|
53
|
+
*/
|
|
54
|
+
global_unsubscribe_cleared?: boolean;
|
|
55
|
+
/**
|
|
56
|
+
* Global unsubscribe state AFTER this call
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof CustomerEmailSuppressionResult
|
|
59
|
+
*/
|
|
60
|
+
global_unsubscribed?: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* Global unsubscribe timestamp after this call. Nulled when cleared; the prior value is retained on the audit record.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof CustomerEmailSuppressionResult
|
|
65
|
+
*/
|
|
66
|
+
global_unsubscribed_dts?: string;
|
|
67
|
+
/**
|
|
68
|
+
* Spam complaint state AFTER this call
|
|
69
|
+
* @type {boolean}
|
|
70
|
+
* @memberof CustomerEmailSuppressionResult
|
|
71
|
+
*/
|
|
72
|
+
spam_complaint?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* True only if this call actually changed the spam complaint flag. False if it was already clear.
|
|
75
|
+
* @type {boolean}
|
|
76
|
+
* @memberof CustomerEmailSuppressionResult
|
|
77
|
+
*/
|
|
78
|
+
spam_complaint_cleared?: boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Spam complaint timestamp after this call. Nulled when cleared; the prior value is retained on the audit record.
|
|
81
|
+
* @type {string}
|
|
82
|
+
* @memberof CustomerEmailSuppressionResult
|
|
83
|
+
*/
|
|
84
|
+
spam_complaint_dts?: string;
|
|
85
|
+
/**
|
|
86
|
+
*
|
|
87
|
+
* @type {EmailSuppressionSurfaces}
|
|
88
|
+
* @memberof CustomerEmailSuppressionResult
|
|
89
|
+
*/
|
|
90
|
+
suppression_surfaces?: EmailSuppressionSurfaces;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Check if a given object implements the CustomerEmailSuppressionResult interface.
|
|
94
|
+
*/
|
|
95
|
+
export declare function instanceOfCustomerEmailSuppressionResult(value: object): boolean;
|
|
96
|
+
export declare function CustomerEmailSuppressionResultFromJSON(json: any): CustomerEmailSuppressionResult;
|
|
97
|
+
export declare function CustomerEmailSuppressionResultFromJSONTyped(json: any, ignoreDiscriminator: boolean): CustomerEmailSuppressionResult;
|
|
98
|
+
export declare function CustomerEmailSuppressionResultToJSON(value?: CustomerEmailSuppressionResult | null): any;
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* UltraCart Rest API V2
|
|
6
|
+
* UltraCart REST API Version 2
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2.0.0
|
|
9
|
+
* Contact: support@ultracart.com
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
+
* https://openapi-generator.tech
|
|
13
|
+
* Do not edit the class manually.
|
|
14
|
+
*/
|
|
15
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
+
exports.CustomerEmailSuppressionResultToJSON = exports.CustomerEmailSuppressionResultFromJSONTyped = exports.CustomerEmailSuppressionResultFromJSON = exports.instanceOfCustomerEmailSuppressionResult = void 0;
|
|
17
|
+
var runtime_1 = require("../runtime");
|
|
18
|
+
var EmailSuppressionSurfaces_1 = require("./EmailSuppressionSurfaces");
|
|
19
|
+
/**
|
|
20
|
+
* Check if a given object implements the CustomerEmailSuppressionResult interface.
|
|
21
|
+
*/
|
|
22
|
+
function instanceOfCustomerEmailSuppressionResult(value) {
|
|
23
|
+
var isInstance = true;
|
|
24
|
+
return isInstance;
|
|
25
|
+
}
|
|
26
|
+
exports.instanceOfCustomerEmailSuppressionResult = instanceOfCustomerEmailSuppressionResult;
|
|
27
|
+
function CustomerEmailSuppressionResultFromJSON(json) {
|
|
28
|
+
return CustomerEmailSuppressionResultFromJSONTyped(json, false);
|
|
29
|
+
}
|
|
30
|
+
exports.CustomerEmailSuppressionResultFromJSON = CustomerEmailSuppressionResultFromJSON;
|
|
31
|
+
function CustomerEmailSuppressionResultFromJSONTyped(json, ignoreDiscriminator) {
|
|
32
|
+
if ((json === undefined) || (json === null)) {
|
|
33
|
+
return json;
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'bounce_cleared': !(0, runtime_1.exists)(json, 'bounce_cleared') ? undefined : json['bounce_cleared'],
|
|
37
|
+
'customer_profile_oid': !(0, runtime_1.exists)(json, 'customer_profile_oid') ? undefined : json['customer_profile_oid'],
|
|
38
|
+
'email': !(0, runtime_1.exists)(json, 'email') ? undefined : json['email'],
|
|
39
|
+
'esp_suppression_removed': !(0, runtime_1.exists)(json, 'esp_suppression_removed') ? undefined : json['esp_suppression_removed'],
|
|
40
|
+
'esp_warning': !(0, runtime_1.exists)(json, 'esp_warning') ? undefined : json['esp_warning'],
|
|
41
|
+
'global_unsubscribe_cleared': !(0, runtime_1.exists)(json, 'global_unsubscribe_cleared') ? undefined : json['global_unsubscribe_cleared'],
|
|
42
|
+
'global_unsubscribed': !(0, runtime_1.exists)(json, 'global_unsubscribed') ? undefined : json['global_unsubscribed'],
|
|
43
|
+
'global_unsubscribed_dts': !(0, runtime_1.exists)(json, 'global_unsubscribed_dts') ? undefined : json['global_unsubscribed_dts'],
|
|
44
|
+
'spam_complaint': !(0, runtime_1.exists)(json, 'spam_complaint') ? undefined : json['spam_complaint'],
|
|
45
|
+
'spam_complaint_cleared': !(0, runtime_1.exists)(json, 'spam_complaint_cleared') ? undefined : json['spam_complaint_cleared'],
|
|
46
|
+
'spam_complaint_dts': !(0, runtime_1.exists)(json, 'spam_complaint_dts') ? undefined : json['spam_complaint_dts'],
|
|
47
|
+
'suppression_surfaces': !(0, runtime_1.exists)(json, 'suppression_surfaces') ? undefined : (0, EmailSuppressionSurfaces_1.EmailSuppressionSurfacesFromJSON)(json['suppression_surfaces']),
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
exports.CustomerEmailSuppressionResultFromJSONTyped = CustomerEmailSuppressionResultFromJSONTyped;
|
|
51
|
+
function CustomerEmailSuppressionResultToJSON(value) {
|
|
52
|
+
if (value === undefined) {
|
|
53
|
+
return undefined;
|
|
54
|
+
}
|
|
55
|
+
if (value === null) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return {
|
|
59
|
+
'bounce_cleared': value.bounce_cleared,
|
|
60
|
+
'customer_profile_oid': value.customer_profile_oid,
|
|
61
|
+
'email': value.email,
|
|
62
|
+
'esp_suppression_removed': value.esp_suppression_removed,
|
|
63
|
+
'esp_warning': value.esp_warning,
|
|
64
|
+
'global_unsubscribe_cleared': value.global_unsubscribe_cleared,
|
|
65
|
+
'global_unsubscribed': value.global_unsubscribed,
|
|
66
|
+
'global_unsubscribed_dts': value.global_unsubscribed_dts,
|
|
67
|
+
'spam_complaint': value.spam_complaint,
|
|
68
|
+
'spam_complaint_cleared': value.spam_complaint_cleared,
|
|
69
|
+
'spam_complaint_dts': value.spam_complaint_dts,
|
|
70
|
+
'suppression_surfaces': (0, EmailSuppressionSurfaces_1.EmailSuppressionSurfacesToJSON)(value.suppression_surfaces),
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
exports.CustomerEmailSuppressionResultToJSON = CustomerEmailSuppressionResultToJSON;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* UltraCart Rest API V2
|
|
3
|
+
* UltraCart REST API Version 2
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2.0.0
|
|
6
|
+
* Contact: support@ultracart.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @interface EmailSuppressionSurfaces
|
|
16
|
+
*/
|
|
17
|
+
export interface EmailSuppressionSurfaces {
|
|
18
|
+
/**
|
|
19
|
+
* Outcome of removing the address from the central cross-account ses_suppression table
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof EmailSuppressionSurfaces
|
|
22
|
+
*/
|
|
23
|
+
central_ses_suppression?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Outcome of clearing the per-customer send gates on esp_customer
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof EmailSuppressionSurfaces
|
|
28
|
+
*/
|
|
29
|
+
esp_customer_flags?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Outcome of removing the address from the SES-native account-level suppression list
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof EmailSuppressionSurfaces
|
|
34
|
+
*/
|
|
35
|
+
ses_account_suppression?: string;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Check if a given object implements the EmailSuppressionSurfaces interface.
|
|
39
|
+
*/
|
|
40
|
+
export declare function instanceOfEmailSuppressionSurfaces(value: object): boolean;
|
|
41
|
+
export declare function EmailSuppressionSurfacesFromJSON(json: any): EmailSuppressionSurfaces;
|
|
42
|
+
export declare function EmailSuppressionSurfacesFromJSONTyped(json: any, ignoreDiscriminator: boolean): EmailSuppressionSurfaces;
|
|
43
|
+
export declare function EmailSuppressionSurfacesToJSON(value?: EmailSuppressionSurfaces | null): any;
|