@naturalpay/sdk 1.6.47 → 1.6.49
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/dist/cjs/BaseClient.js +2 -2
- package/dist/cjs/api/resources/cardSessions/client/Client.d.ts +1 -0
- package/dist/cjs/api/resources/cardSessions/client/Client.js +1 -0
- package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +3 -0
- package/dist/cjs/api/resources/customers/types/CustomerAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/customers/types/CustomerDetailAttrs.d.ts +2 -0
- package/dist/cjs/api/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.ts +2 -0
- package/dist/cjs/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/externalAccounts/client/Client.d.ts +28 -0
- package/dist/cjs/api/resources/externalAccounts/client/Client.js +102 -0
- package/dist/cjs/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.d.ts +12 -0
- package/dist/cjs/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/client/requests/index.d.ts +1 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.ts +5 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.ts +8 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.ts +13 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.ts +9 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.ts +10 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.js +13 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.ts +11 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.js +14 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.ts +5 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.ts +8 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.ts +9 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.ts +5 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js +8 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.ts +4 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.js +7 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.ts +4 -0
- package/dist/cjs/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.js +3 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.d.ts +12 -0
- package/dist/cjs/api/resources/externalAccounts/types/index.js +12 -0
- package/dist/cjs/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.ts +2 -0
- package/dist/cjs/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.ts +2 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +1 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/CustomerAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/CustomerAttrs.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/CustomerDetailAttrs.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/CustomerDetailAttrs.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.ts +12 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.js +44 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.ts +15 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.js +47 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.ts +16 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.js +48 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.ts +14 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js +46 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.ts +10 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.js +42 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.ts +10 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.js +42 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.ts +11 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js +43 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.ts +7 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.js +39 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.ts +9 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.js +41 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.d.ts +12 -0
- package/dist/cjs/serialization/resources/externalAccounts/types/index.js +12 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.js +1 -0
- package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.ts +1 -0
- package/dist/cjs/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.js +1 -0
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/BaseClient.mjs +2 -2
- package/dist/esm/api/resources/cardSessions/client/Client.d.mts +1 -0
- package/dist/esm/api/resources/cardSessions/client/Client.mjs +1 -0
- package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +3 -0
- package/dist/esm/api/resources/customers/types/CustomerAttrs.d.mts +2 -0
- package/dist/esm/api/resources/customers/types/CustomerDetailAttrs.d.mts +2 -0
- package/dist/esm/api/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.mts +2 -0
- package/dist/esm/api/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/externalAccounts/client/Client.d.mts +28 -0
- package/dist/esm/api/resources/externalAccounts/client/Client.mjs +102 -0
- package/dist/esm/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.d.mts +12 -0
- package/dist/esm/api/resources/externalAccounts/client/requests/RemoveCardExternalAccountsRequest.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/client/requests/index.d.mts +1 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.mts +5 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.mts +8 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.mts +13 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.mts +9 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.mts +10 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.mjs +10 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.mts +11 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.mjs +11 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.mts +5 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.mts +8 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.mts +9 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.mts +5 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs +5 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.mts +4 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.mjs +4 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.mts +4 -0
- package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.mjs +2 -0
- package/dist/esm/api/resources/externalAccounts/types/index.d.mts +12 -0
- package/dist/esm/api/resources/externalAccounts/types/index.mjs +12 -0
- package/dist/esm/api/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.mts +2 -0
- package/dist/esm/api/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.mts +2 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +1 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/CustomerAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/CustomerAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/CustomerDetailAttrs.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/CustomerDetailAttrs.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/ListInvitationsCustomersResponseDataItemAttributesParty.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/RemoveCustomersResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.d.mts +12 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponse.mjs +8 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.mts +15 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.mjs +11 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.d.mts +16 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributes.mjs +12 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.d.mts +14 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBillingAddress.mjs +10 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesBrand.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataAttributesStatus.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.d.mts +10 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationships.mjs +6 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.d.mts +10 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsParty.mjs +6 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.d.mts +11 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyData.mjs +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.d.mts +7 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseDataType.mjs +3 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.d.mts +9 -0
- package/dist/esm/serialization/resources/externalAccounts/types/RemoveCardExternalAccountsResponseMeta.mjs +5 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.d.mts +12 -0
- package/dist/esm/serialization/resources/externalAccounts/types/index.mjs +12 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/DisconnectCustomerSimulationsResponseDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseMetaDataAttributes.mjs +1 -0
- package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.d.mts +1 -0
- package/dist/esm/serialization/resources/simulations/types/RevokeAgentConnectionSimulationsResponseZeroDataAttributes.mjs +1 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +66 -0
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const RemoveCardExternalAccountsResponseDataType: core.serialization.Schema<serializers.RemoveCardExternalAccountsResponseDataType.Raw, Natural.RemoveCardExternalAccountsResponseDataType>;
|
|
5
|
+
export declare namespace RemoveCardExternalAccountsResponseDataType {
|
|
6
|
+
type Raw = "cardExternalAccount";
|
|
7
|
+
}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.RemoveCardExternalAccountsResponseDataType = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.RemoveCardExternalAccountsResponseDataType = core.serialization.enum_(["cardExternalAccount"]);
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as Natural from "../../../../api/index.js";
|
|
2
|
+
import * as core from "../../../../core/index.js";
|
|
3
|
+
import type * as serializers from "../../../index.js";
|
|
4
|
+
export declare const RemoveCardExternalAccountsResponseMeta: core.serialization.ObjectSchema<serializers.RemoveCardExternalAccountsResponseMeta.Raw, Natural.RemoveCardExternalAccountsResponseMeta>;
|
|
5
|
+
export declare namespace RemoveCardExternalAccountsResponseMeta {
|
|
6
|
+
interface Raw {
|
|
7
|
+
deleted: string;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
3
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
+
if (k2 === undefined) k2 = k;
|
|
5
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
+
}
|
|
9
|
+
Object.defineProperty(o, k2, desc);
|
|
10
|
+
}) : (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
o[k2] = m[k];
|
|
13
|
+
}));
|
|
14
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
+
}) : function(o, v) {
|
|
17
|
+
o["default"] = v;
|
|
18
|
+
});
|
|
19
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
20
|
+
var ownKeys = function(o) {
|
|
21
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
22
|
+
var ar = [];
|
|
23
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
24
|
+
return ar;
|
|
25
|
+
};
|
|
26
|
+
return ownKeys(o);
|
|
27
|
+
};
|
|
28
|
+
return function (mod) {
|
|
29
|
+
if (mod && mod.__esModule) return mod;
|
|
30
|
+
var result = {};
|
|
31
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
32
|
+
__setModuleDefault(result, mod);
|
|
33
|
+
return result;
|
|
34
|
+
};
|
|
35
|
+
})();
|
|
36
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
|
+
exports.RemoveCardExternalAccountsResponseMeta = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.RemoveCardExternalAccountsResponseMeta = core.serialization.object({
|
|
40
|
+
deleted: core.serialization.string(),
|
|
41
|
+
});
|
|
@@ -63,6 +63,18 @@ export * from "./ListExternalAccountsResponseDataItem.js";
|
|
|
63
63
|
export * from "./ListExternalAccountsResponseDataItemAttributesAccountType.js";
|
|
64
64
|
export * from "./ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js";
|
|
65
65
|
export * from "./ListExternalAccountsResponseDataItemAttributesConnectionStatus.js";
|
|
66
|
+
export * from "./RemoveCardExternalAccountsResponse.js";
|
|
67
|
+
export * from "./RemoveCardExternalAccountsResponseData.js";
|
|
68
|
+
export * from "./RemoveCardExternalAccountsResponseDataAttributes.js";
|
|
69
|
+
export * from "./RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js";
|
|
70
|
+
export * from "./RemoveCardExternalAccountsResponseDataAttributesBrand.js";
|
|
71
|
+
export * from "./RemoveCardExternalAccountsResponseDataAttributesStatus.js";
|
|
72
|
+
export * from "./RemoveCardExternalAccountsResponseDataRelationships.js";
|
|
73
|
+
export * from "./RemoveCardExternalAccountsResponseDataRelationshipsParty.js";
|
|
74
|
+
export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js";
|
|
75
|
+
export * from "./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js";
|
|
76
|
+
export * from "./RemoveCardExternalAccountsResponseDataType.js";
|
|
77
|
+
export * from "./RemoveCardExternalAccountsResponseMeta.js";
|
|
66
78
|
export * from "./RemoveExternalAccountsResponseDataAttributesAccountType.js";
|
|
67
79
|
export * from "./RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js";
|
|
68
80
|
export * from "./RemoveExternalAccountsResponseDataAttributesConnectionStatus.js";
|
|
@@ -79,6 +79,18 @@ __exportStar(require("./ListExternalAccountsResponseDataItem.js"), exports);
|
|
|
79
79
|
__exportStar(require("./ListExternalAccountsResponseDataItemAttributesAccountType.js"), exports);
|
|
80
80
|
__exportStar(require("./ListExternalAccountsResponseDataItemAttributesAvailableMethodsItem.js"), exports);
|
|
81
81
|
__exportStar(require("./ListExternalAccountsResponseDataItemAttributesConnectionStatus.js"), exports);
|
|
82
|
+
__exportStar(require("./RemoveCardExternalAccountsResponse.js"), exports);
|
|
83
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseData.js"), exports);
|
|
84
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataAttributes.js"), exports);
|
|
85
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataAttributesBillingAddress.js"), exports);
|
|
86
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataAttributesBrand.js"), exports);
|
|
87
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataAttributesStatus.js"), exports);
|
|
88
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataRelationships.js"), exports);
|
|
89
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataRelationshipsParty.js"), exports);
|
|
90
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataRelationshipsPartyData.js"), exports);
|
|
91
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType.js"), exports);
|
|
92
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseDataType.js"), exports);
|
|
93
|
+
__exportStar(require("./RemoveCardExternalAccountsResponseMeta.js"), exports);
|
|
82
94
|
__exportStar(require("./RemoveExternalAccountsResponseDataAttributesAccountType.js"), exports);
|
|
83
95
|
__exportStar(require("./RemoveExternalAccountsResponseDataAttributesAvailableMethodsItem.js"), exports);
|
|
84
96
|
__exportStar(require("./RemoveExternalAccountsResponseDataAttributesConnectionStatus.js"), exports);
|
|
@@ -8,6 +8,7 @@ export declare namespace DisconnectCustomerSimulationsResponseDataAttributes {
|
|
|
8
8
|
interface Raw {
|
|
9
9
|
name: string;
|
|
10
10
|
email?: string | null;
|
|
11
|
+
phone?: string | null;
|
|
11
12
|
avatarUrl?: string | null;
|
|
12
13
|
createdAt?: string | null;
|
|
13
14
|
delegation: DisconnectCustomerSimulationsResponseDataAttributesDelegation.Raw;
|
|
@@ -41,6 +41,7 @@ const DisconnectCustomerSimulationsResponseDataAttributesDelegation_js_1 = requi
|
|
|
41
41
|
exports.DisconnectCustomerSimulationsResponseDataAttributes = core.serialization.object({
|
|
42
42
|
name: core.serialization.string(),
|
|
43
43
|
email: core.serialization.string().nullable(),
|
|
44
|
+
phone: core.serialization.string().nullable(),
|
|
44
45
|
avatarUrl: core.serialization.string().nullable(),
|
|
45
46
|
createdAt: core.serialization.date().nullable(),
|
|
46
47
|
delegation: DisconnectCustomerSimulationsResponseDataAttributesDelegation_js_1.DisconnectCustomerSimulationsResponseDataAttributesDelegation,
|
|
@@ -8,6 +8,7 @@ export declare namespace RevokeAgentConnectionSimulationsResponseMetaDataAttribu
|
|
|
8
8
|
interface Raw {
|
|
9
9
|
name: string;
|
|
10
10
|
email?: string | null;
|
|
11
|
+
phone?: string | null;
|
|
11
12
|
avatarUrl?: string | null;
|
|
12
13
|
createdAt?: string | null;
|
|
13
14
|
delegation: RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation.Raw;
|
|
@@ -41,6 +41,7 @@ const RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation_js_1
|
|
|
41
41
|
exports.RevokeAgentConnectionSimulationsResponseMetaDataAttributes = core.serialization.object({
|
|
42
42
|
name: core.serialization.string(),
|
|
43
43
|
email: core.serialization.string().nullable(),
|
|
44
|
+
phone: core.serialization.string().nullable(),
|
|
44
45
|
avatarUrl: core.serialization.string().nullable(),
|
|
45
46
|
createdAt: core.serialization.date().nullable(),
|
|
46
47
|
delegation: RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation_js_1.RevokeAgentConnectionSimulationsResponseMetaDataAttributesDelegation,
|
|
@@ -8,6 +8,7 @@ export declare namespace RevokeAgentConnectionSimulationsResponseZeroDataAttribu
|
|
|
8
8
|
interface Raw {
|
|
9
9
|
name: string;
|
|
10
10
|
email?: string | null;
|
|
11
|
+
phone?: string | null;
|
|
11
12
|
avatarUrl?: string | null;
|
|
12
13
|
createdAt?: string | null;
|
|
13
14
|
delegation: RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation.Raw;
|
|
@@ -41,6 +41,7 @@ const RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation_js_1
|
|
|
41
41
|
exports.RevokeAgentConnectionSimulationsResponseZeroDataAttributes = core.serialization.object({
|
|
42
42
|
name: core.serialization.string(),
|
|
43
43
|
email: core.serialization.string().nullable(),
|
|
44
|
+
phone: core.serialization.string().nullable(),
|
|
44
45
|
avatarUrl: core.serialization.string().nullable(),
|
|
45
46
|
createdAt: core.serialization.date().nullable(),
|
|
46
47
|
delegation: RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation_js_1.RevokeAgentConnectionSimulationsResponseZeroDataAttributesDelegation,
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.49";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/BaseClient.mjs
CHANGED
|
@@ -6,8 +6,8 @@ export function normalizeClientOptions(options) {
|
|
|
6
6
|
const headers = mergeHeaders({
|
|
7
7
|
"X-Fern-Language": "JavaScript",
|
|
8
8
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
9
|
-
"X-Fern-SDK-Version": "1.6.
|
|
10
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
9
|
+
"X-Fern-SDK-Version": "1.6.49",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.49",
|
|
11
11
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
12
12
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
13
13
|
"X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
|
|
@@ -11,6 +11,7 @@ import type * as Natural from "../../../../index.mjs";
|
|
|
11
11
|
* currency: "USD"
|
|
12
12
|
* },
|
|
13
13
|
* reference: "checkout_7f3a",
|
|
14
|
+
* returnUrl: "sms:+15551234567",
|
|
14
15
|
* requestAgentToken: true
|
|
15
16
|
* }
|
|
16
17
|
*/
|
|
@@ -28,6 +29,8 @@ export interface CreateCardSessionsRequest {
|
|
|
28
29
|
purchase?: Natural.CreateCardSessionsRequestPurchase;
|
|
29
30
|
/** Your own reference for the session, such as your checkout or task ID. Not unique: filter GET /card-sessions by it to find the session again. */
|
|
30
31
|
reference?: string;
|
|
32
|
+
/** Where to send the user once they approve or decline: an https page in your product, or sms:+15551234567 to reopen your Messages thread. It's added to approvalUrl as returnTo. The approval page opens https pages on its own after the user answers, and offers a button for sms: links. */
|
|
33
|
+
returnUrl?: string;
|
|
31
34
|
/** Cards the user added only, for a USD purchase of at most $999,999.99. A backup for checkouts that don't send the raw card number in the HTTP request, for example ones that encrypt it in the browser, so the proxy can't swap it in. Paying through the proxy stays the default. On approval, Natural also tries to set up agent payments on the card. Most cards don't support them yet, so agentToken.mandateId is often null: then claim this session and try the proxy. Defaults to false. */
|
|
32
35
|
requestAgentToken?: boolean;
|
|
33
36
|
}
|
|
@@ -4,6 +4,8 @@ export interface CustomerAttrs {
|
|
|
4
4
|
name: string;
|
|
5
5
|
/** Email address. */
|
|
6
6
|
email: string | null;
|
|
7
|
+
/** Primary phone number in E.164 format, or null when none is on file. */
|
|
8
|
+
phone: string | null;
|
|
7
9
|
/** Public avatar URL, or null when none is set. */
|
|
8
10
|
avatarUrl: string | null;
|
|
9
11
|
/** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
|
|
@@ -4,6 +4,8 @@ export interface CustomerDetailAttrs {
|
|
|
4
4
|
name: string;
|
|
5
5
|
/** Email address. */
|
|
6
6
|
email: string | null;
|
|
7
|
+
/** Primary phone number in E.164 format, or null when none is on file. */
|
|
8
|
+
phone: string | null;
|
|
7
9
|
/** Public avatar URL, or null when none is set. */
|
|
8
10
|
avatarUrl: string | null;
|
|
9
11
|
/** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
|
|
@@ -5,6 +5,8 @@ export interface ListInvitationsCustomersResponseDataItemAttributesParty {
|
|
|
5
5
|
name: string;
|
|
6
6
|
/** Email address. */
|
|
7
7
|
email: string | null;
|
|
8
|
+
/** Primary phone number in E.164 format, or null when none is on file. */
|
|
9
|
+
phone: string | null;
|
|
8
10
|
/** Public avatar URL, or null when none is set. */
|
|
9
11
|
avatarUrl: string | null;
|
|
10
12
|
/** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
|
|
@@ -4,6 +4,8 @@ export interface RemoveCustomersResponseDataAttributes {
|
|
|
4
4
|
name: string;
|
|
5
5
|
/** Email address. */
|
|
6
6
|
email: string | null;
|
|
7
|
+
/** Primary phone number in E.164 format, or null when none is on file. */
|
|
8
|
+
phone: string | null;
|
|
7
9
|
/** Public avatar URL, or null when none is set. */
|
|
8
10
|
avatarUrl: string | null;
|
|
9
11
|
/** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
|
package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseMetaDataAttributes.d.mts
CHANGED
|
@@ -4,6 +4,8 @@ export interface RevokeAgentCustomersResponseMetaDataAttributes {
|
|
|
4
4
|
name: string;
|
|
5
5
|
/** Email address. */
|
|
6
6
|
email: string | null;
|
|
7
|
+
/** Primary phone number in E.164 format, or null when none is on file. */
|
|
8
|
+
phone: string | null;
|
|
7
9
|
/** Public avatar URL, or null when none is set. */
|
|
8
10
|
avatarUrl: string | null;
|
|
9
11
|
/** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
|
package/dist/esm/api/resources/customers/types/RevokeAgentCustomersResponseZeroDataAttributes.d.mts
CHANGED
|
@@ -4,6 +4,8 @@ export interface RevokeAgentCustomersResponseZeroDataAttributes {
|
|
|
4
4
|
name: string;
|
|
5
5
|
/** Email address. */
|
|
6
6
|
email: string | null;
|
|
7
|
+
/** Primary phone number in E.164 format, or null when none is on file. */
|
|
8
|
+
phone: string | null;
|
|
7
9
|
/** Public avatar URL, or null when none is set. */
|
|
8
10
|
avatarUrl: string | null;
|
|
9
11
|
/** RFC 3339 timestamp when the customer's party was created, or null when unknown. */
|
|
@@ -155,4 +155,32 @@ export declare class ExternalAccountsClient {
|
|
|
155
155
|
* await client.externalAccounts.listCards()
|
|
156
156
|
*/
|
|
157
157
|
listCards(request?: Natural.ListCardsExternalAccountsRequest, requestOptions?: ExternalAccountsClient.RequestOptions): Promise<core.Page<Natural.ListCardsExternalAccountsResponseDataItem, Natural.ListCardsExternalAccountsResponse>>;
|
|
158
|
+
/**
|
|
159
|
+
* Remove a saved card
|
|
160
|
+
*
|
|
161
|
+
* @param {Natural.RemoveCardExternalAccountsRequest} request
|
|
162
|
+
* @param {ExternalAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
163
|
+
*
|
|
164
|
+
* @throws {@link Natural.BadRequestError}
|
|
165
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
166
|
+
* @throws {@link Natural.ForbiddenError}
|
|
167
|
+
* @throws {@link Natural.NotFoundError}
|
|
168
|
+
* @throws {@link Natural.ConflictError}
|
|
169
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
170
|
+
* @throws {@link Natural.PreconditionError}
|
|
171
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
172
|
+
* @throws {@link Natural.InternalServerError}
|
|
173
|
+
* @throws {@link Natural.NotImplementedError}
|
|
174
|
+
* @throws {@link Natural.BadGatewayError}
|
|
175
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
176
|
+
* @throws {@link errors.NaturalError}
|
|
177
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
178
|
+
*
|
|
179
|
+
* @example
|
|
180
|
+
* await client.externalAccounts.removeCard({
|
|
181
|
+
* externalAccountId: "externalAccountId"
|
|
182
|
+
* })
|
|
183
|
+
*/
|
|
184
|
+
removeCard(request: Natural.RemoveCardExternalAccountsRequest, requestOptions?: ExternalAccountsClient.RequestOptions): core.HttpResponsePromise<Natural.RemoveCardExternalAccountsResponse>;
|
|
185
|
+
private __removeCard;
|
|
158
186
|
}
|
|
@@ -574,4 +574,106 @@ export class ExternalAccountsClient {
|
|
|
574
574
|
});
|
|
575
575
|
});
|
|
576
576
|
}
|
|
577
|
+
/**
|
|
578
|
+
* Remove a saved card
|
|
579
|
+
*
|
|
580
|
+
* @param {Natural.RemoveCardExternalAccountsRequest} request
|
|
581
|
+
* @param {ExternalAccountsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
582
|
+
*
|
|
583
|
+
* @throws {@link Natural.BadRequestError}
|
|
584
|
+
* @throws {@link Natural.UnauthorizedError}
|
|
585
|
+
* @throws {@link Natural.ForbiddenError}
|
|
586
|
+
* @throws {@link Natural.NotFoundError}
|
|
587
|
+
* @throws {@link Natural.ConflictError}
|
|
588
|
+
* @throws {@link Natural.UnprocessableEntityError}
|
|
589
|
+
* @throws {@link Natural.PreconditionError}
|
|
590
|
+
* @throws {@link Natural.TooManyRequestsError}
|
|
591
|
+
* @throws {@link Natural.InternalServerError}
|
|
592
|
+
* @throws {@link Natural.NotImplementedError}
|
|
593
|
+
* @throws {@link Natural.BadGatewayError}
|
|
594
|
+
* @throws {@link Natural.ServiceUnavailableError}
|
|
595
|
+
* @throws {@link errors.NaturalError}
|
|
596
|
+
* @throws {@link errors.NaturalTimeoutError}
|
|
597
|
+
*
|
|
598
|
+
* @example
|
|
599
|
+
* await client.externalAccounts.removeCard({
|
|
600
|
+
* externalAccountId: "externalAccountId"
|
|
601
|
+
* })
|
|
602
|
+
*/
|
|
603
|
+
removeCard(request, requestOptions) {
|
|
604
|
+
return core.HttpResponsePromise.fromPromise(this.__removeCard(request, requestOptions));
|
|
605
|
+
}
|
|
606
|
+
__removeCard(request, requestOptions) {
|
|
607
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
608
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
609
|
+
const { externalAccountId, customerPartyId } = request;
|
|
610
|
+
const _queryParams = {
|
|
611
|
+
customerPartyId,
|
|
612
|
+
};
|
|
613
|
+
const _authRequest = yield this._options.authProvider.getAuthRequest();
|
|
614
|
+
const _headers = mergeHeaders(_authRequest.headers, (_a = this._options) === null || _a === void 0 ? void 0 : _a.headers, mergeOnlyDefinedHeaders({ "X-Instance-ID": (_b = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.instanceId) !== null && _b !== void 0 ? _b : (_c = this._options) === null || _c === void 0 ? void 0 : _c.instanceId }), requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.headers);
|
|
615
|
+
const _response = yield ((_d = this._options.fetcher) !== null && _d !== void 0 ? _d : core.fetcher)({
|
|
616
|
+
url: core.url.join((_f = (_e = (yield core.Supplier.get(this._options.baseUrl))) !== null && _e !== void 0 ? _e : (yield core.Supplier.get(this._options.environment))) !== null && _f !== void 0 ? _f : environments.NaturalEnvironment.Production, `card-external-accounts/${core.url.encodePathParam(externalAccountId)}`),
|
|
617
|
+
method: "DELETE",
|
|
618
|
+
headers: _headers,
|
|
619
|
+
queryString: core.url
|
|
620
|
+
.queryBuilder()
|
|
621
|
+
.addMany(_queryParams)
|
|
622
|
+
.mergeAdditional(requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.queryParams)
|
|
623
|
+
.build(),
|
|
624
|
+
timeoutMs: ((_j = (_g = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.timeoutInSeconds) !== null && _g !== void 0 ? _g : (_h = this._options) === null || _h === void 0 ? void 0 : _h.timeoutInSeconds) !== null && _j !== void 0 ? _j : 60) * 1000,
|
|
625
|
+
maxRetries: (_k = requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.maxRetries) !== null && _k !== void 0 ? _k : (_l = this._options) === null || _l === void 0 ? void 0 : _l.maxRetries,
|
|
626
|
+
abortSignal: requestOptions === null || requestOptions === void 0 ? void 0 : requestOptions.abortSignal,
|
|
627
|
+
fetchFn: (_m = this._options) === null || _m === void 0 ? void 0 : _m.fetch,
|
|
628
|
+
logging: this._options.logging,
|
|
629
|
+
});
|
|
630
|
+
if (_response.ok) {
|
|
631
|
+
return {
|
|
632
|
+
data: serializers.RemoveCardExternalAccountsResponse.parseOrThrow(_response.body, {
|
|
633
|
+
unrecognizedObjectKeys: "passthrough",
|
|
634
|
+
allowUnrecognizedUnionMembers: true,
|
|
635
|
+
allowUnrecognizedEnumValues: true,
|
|
636
|
+
skipValidation: true,
|
|
637
|
+
breadcrumbsPrefix: ["response"],
|
|
638
|
+
}),
|
|
639
|
+
rawResponse: _response.rawResponse,
|
|
640
|
+
};
|
|
641
|
+
}
|
|
642
|
+
if (_response.error.reason === "status-code") {
|
|
643
|
+
switch (_response.error.statusCode) {
|
|
644
|
+
case 400:
|
|
645
|
+
throw new Natural.BadRequestError(_response.error.body, _response.rawResponse);
|
|
646
|
+
case 401:
|
|
647
|
+
throw new Natural.UnauthorizedError(_response.error.body, _response.rawResponse);
|
|
648
|
+
case 403:
|
|
649
|
+
throw new Natural.ForbiddenError(_response.error.body, _response.rawResponse);
|
|
650
|
+
case 404:
|
|
651
|
+
throw new Natural.NotFoundError(_response.error.body, _response.rawResponse);
|
|
652
|
+
case 409:
|
|
653
|
+
throw new Natural.ConflictError(_response.error.body, _response.rawResponse);
|
|
654
|
+
case 422:
|
|
655
|
+
throw new Natural.UnprocessableEntityError(_response.error.body, _response.rawResponse);
|
|
656
|
+
case 428:
|
|
657
|
+
throw new Natural.PreconditionError(_response.error.body, _response.rawResponse);
|
|
658
|
+
case 429:
|
|
659
|
+
throw new Natural.TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
660
|
+
case 500:
|
|
661
|
+
throw new Natural.InternalServerError(_response.error.body, _response.rawResponse);
|
|
662
|
+
case 501:
|
|
663
|
+
throw new Natural.NotImplementedError(_response.error.body, _response.rawResponse);
|
|
664
|
+
case 502:
|
|
665
|
+
throw new Natural.BadGatewayError(_response.error.body, _response.rawResponse);
|
|
666
|
+
case 503:
|
|
667
|
+
throw new Natural.ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
668
|
+
default:
|
|
669
|
+
throw new errors.NaturalError({
|
|
670
|
+
statusCode: _response.error.statusCode,
|
|
671
|
+
body: _response.error.body,
|
|
672
|
+
rawResponse: _response.rawResponse,
|
|
673
|
+
});
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/card-external-accounts/{externalAccountId}");
|
|
677
|
+
});
|
|
678
|
+
}
|
|
577
679
|
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @example
|
|
3
|
+
* {
|
|
4
|
+
* externalAccountId: "externalAccountId"
|
|
5
|
+
* }
|
|
6
|
+
*/
|
|
7
|
+
export interface RemoveCardExternalAccountsRequest {
|
|
8
|
+
/** Card external account ID (eac_*). */
|
|
9
|
+
externalAccountId: string;
|
|
10
|
+
/** Customer party whose saved card to remove (pty_*). Requires a connected agent with saved_cards.use permission. Omit to remove your own party's card. */
|
|
11
|
+
customerPartyId?: string;
|
|
12
|
+
}
|
|
@@ -2,4 +2,5 @@ export type { CreateFromProcessorTokenExternalAccountsRequest } from "./CreateFr
|
|
|
2
2
|
export type { GetExternalAccountsRequest } from "./GetExternalAccountsRequest.mjs";
|
|
3
3
|
export type { ListCardsExternalAccountsRequest } from "./ListCardsExternalAccountsRequest.mjs";
|
|
4
4
|
export type { ListExternalAccountsRequest } from "./ListExternalAccountsRequest.mjs";
|
|
5
|
+
export type { RemoveCardExternalAccountsRequest } from "./RemoveCardExternalAccountsRequest.mjs";
|
|
5
6
|
export type { RemoveExternalAccountsRequest } from "./RemoveExternalAccountsRequest.mjs";
|
package/dist/esm/api/resources/externalAccounts/types/RemoveCardExternalAccountsResponseData.d.mts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
export interface RemoveCardExternalAccountsResponseData {
|
|
3
|
+
type: Natural.RemoveCardExternalAccountsResponseDataType;
|
|
4
|
+
/** External account ID (eac_*). */
|
|
5
|
+
id: string;
|
|
6
|
+
attributes: Natural.RemoveCardExternalAccountsResponseDataAttributes;
|
|
7
|
+
relationships: Natural.RemoveCardExternalAccountsResponseDataRelationships;
|
|
8
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
export interface RemoveCardExternalAccountsResponseDataAttributes {
|
|
3
|
+
/** Card network brand. */
|
|
4
|
+
brand: Natural.RemoveCardExternalAccountsResponseDataAttributesBrand;
|
|
5
|
+
/** Last four digits of the card number. */
|
|
6
|
+
lastFour: string;
|
|
7
|
+
/** The card's billing address on file, for filling a merchant's checkout (the ZIP drives the bank's AVS check). */
|
|
8
|
+
billingAddress: Natural.RemoveCardExternalAccountsResponseDataAttributesBillingAddress | null;
|
|
9
|
+
/** Lifecycle status of the external account. */
|
|
10
|
+
status: Natural.RemoveCardExternalAccountsResponseDataAttributesStatus;
|
|
11
|
+
/** Time when the card was linked. */
|
|
12
|
+
createdAt: Date;
|
|
13
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export interface RemoveCardExternalAccountsResponseDataAttributesBillingAddress {
|
|
2
|
+
line1: string | null;
|
|
3
|
+
line2: string | null;
|
|
4
|
+
city: string | null;
|
|
5
|
+
state: string | null;
|
|
6
|
+
/** ZIP/postal code the bank's AVS check validates at checkout. */
|
|
7
|
+
postalCode: string | null;
|
|
8
|
+
country: string | null;
|
|
9
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Card network brand. */
|
|
2
|
+
export declare const RemoveCardExternalAccountsResponseDataAttributesBrand: {
|
|
3
|
+
readonly Visa: "visa";
|
|
4
|
+
readonly Mastercard: "mastercard";
|
|
5
|
+
readonly Amex: "amex";
|
|
6
|
+
readonly Discover: "discover";
|
|
7
|
+
readonly Other: "other";
|
|
8
|
+
readonly Unknown: "unknown";
|
|
9
|
+
};
|
|
10
|
+
export type RemoveCardExternalAccountsResponseDataAttributesBrand = (typeof RemoveCardExternalAccountsResponseDataAttributesBrand)[keyof typeof RemoveCardExternalAccountsResponseDataAttributesBrand];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Card network brand. */
|
|
3
|
+
export const RemoveCardExternalAccountsResponseDataAttributesBrand = {
|
|
4
|
+
Visa: "visa",
|
|
5
|
+
Mastercard: "mastercard",
|
|
6
|
+
Amex: "amex",
|
|
7
|
+
Discover: "discover",
|
|
8
|
+
Other: "other",
|
|
9
|
+
Unknown: "unknown",
|
|
10
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Lifecycle status of the external account. */
|
|
2
|
+
export declare const RemoveCardExternalAccountsResponseDataAttributesStatus: {
|
|
3
|
+
readonly Pending: "pending";
|
|
4
|
+
readonly New: "new";
|
|
5
|
+
readonly Active: "active";
|
|
6
|
+
readonly Disabled: "disabled";
|
|
7
|
+
readonly Deleted: "deleted";
|
|
8
|
+
readonly Unknown: "unknown";
|
|
9
|
+
readonly VerificationFailed: "verification_failed";
|
|
10
|
+
};
|
|
11
|
+
export type RemoveCardExternalAccountsResponseDataAttributesStatus = (typeof RemoveCardExternalAccountsResponseDataAttributesStatus)[keyof typeof RemoveCardExternalAccountsResponseDataAttributesStatus];
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file was auto-generated by Fern from our API Definition.
|
|
2
|
+
/** Lifecycle status of the external account. */
|
|
3
|
+
export const RemoveCardExternalAccountsResponseDataAttributesStatus = {
|
|
4
|
+
Pending: "pending",
|
|
5
|
+
New: "new",
|
|
6
|
+
Active: "active",
|
|
7
|
+
Disabled: "disabled",
|
|
8
|
+
Deleted: "deleted",
|
|
9
|
+
Unknown: "unknown",
|
|
10
|
+
VerificationFailed: "verification_failed",
|
|
11
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type * as Natural from "../../../index.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Party that owns the external account.
|
|
4
|
+
*/
|
|
5
|
+
export interface RemoveCardExternalAccountsResponseDataRelationshipsParty {
|
|
6
|
+
/** Related resource identifier. */
|
|
7
|
+
data: Natural.RemoveCardExternalAccountsResponseDataRelationshipsPartyData;
|
|
8
|
+
}
|