@naturalpay/sdk 1.6.48 → 1.6.50
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 +2 -0
- package/dist/cjs/api/resources/cardSessions/client/Client.js +2 -0
- package/dist/cjs/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +7 -1
- package/dist/cjs/api/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +3 -1
- package/dist/cjs/api/resources/cardSessions/types/GetCardSessionsResponse.d.ts +3 -1
- package/dist/cjs/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +3 -1
- 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/types/CardPaymentRelationships.d.ts +2 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.d.ts +8 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransaction.js +3 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.d.ts +10 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionData.js +3 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.d.ts +5 -0
- package/dist/cjs/api/types/CardPaymentRelationshipsTransactionDataType.js +8 -0
- package/dist/cjs/api/types/index.d.ts +3 -0
- package/dist/cjs/api/types/index.js +3 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.ts +2 -0
- package/dist/cjs/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.js +2 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.ts +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/CreateCardSessionsResponse.js +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.ts +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/GetCardSessionsResponse.js +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.ts +1 -0
- package/dist/cjs/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.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/types/CardPaymentRelationships.d.ts +2 -0
- package/dist/cjs/serialization/types/CardPaymentRelationships.js +2 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.d.ts +10 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransaction.js +42 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.d.ts +11 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionData.js +43 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.d.ts +7 -0
- package/dist/cjs/serialization/types/CardPaymentRelationshipsTransactionDataType.js +39 -0
- package/dist/cjs/serialization/types/index.d.ts +3 -0
- package/dist/cjs/serialization/types/index.js +3 -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 +2 -0
- package/dist/esm/api/resources/cardSessions/client/Client.mjs +2 -0
- package/dist/esm/api/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +7 -1
- package/dist/esm/api/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +3 -1
- package/dist/esm/api/resources/cardSessions/types/GetCardSessionsResponse.d.mts +3 -1
- package/dist/esm/api/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +3 -1
- 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/types/CardPaymentRelationships.d.mts +2 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransaction.d.mts +8 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransaction.mjs +2 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.d.mts +10 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionData.mjs +2 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.d.mts +5 -0
- package/dist/esm/api/types/CardPaymentRelationshipsTransactionDataType.mjs +5 -0
- package/dist/esm/api/types/index.d.mts +3 -0
- package/dist/esm/api/types/index.mjs +3 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.d.mts +2 -0
- package/dist/esm/serialization/resources/cardSessions/client/requests/CreateCardSessionsRequest.mjs +2 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.d.mts +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/CreateCardSessionsResponse.mjs +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.d.mts +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/GetCardSessionsResponse.mjs +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.d.mts +1 -0
- package/dist/esm/serialization/resources/cardSessions/types/ListCardSessionsResponseDataItem.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/types/CardPaymentRelationships.d.mts +2 -0
- package/dist/esm/serialization/types/CardPaymentRelationships.mjs +2 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.d.mts +10 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransaction.mjs +6 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.d.mts +11 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionData.mjs +7 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.d.mts +7 -0
- package/dist/esm/serialization/types/CardPaymentRelationshipsTransactionDataType.mjs +3 -0
- package/dist/esm/serialization/types/index.d.mts +3 -0
- package/dist/esm/serialization/types/index.mjs +3 -0
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
- package/reference.md +67 -0
|
@@ -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.RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType = void 0;
|
|
38
|
+
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
+
exports.RemoveCardExternalAccountsResponseDataRelationshipsPartyDataType = core.serialization.enum_(["party"]);
|
|
@@ -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);
|
|
@@ -3,10 +3,12 @@ import * as core from "../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../index.js";
|
|
4
4
|
import { CardPaymentRelationshipsPaymentIntent } from "./CardPaymentRelationshipsPaymentIntent.js";
|
|
5
5
|
import { CardPaymentRelationshipsRefunds } from "./CardPaymentRelationshipsRefunds.js";
|
|
6
|
+
import { CardPaymentRelationshipsTransaction } from "./CardPaymentRelationshipsTransaction.js";
|
|
6
7
|
export declare const CardPaymentRelationships: core.serialization.ObjectSchema<serializers.CardPaymentRelationships.Raw, Natural.CardPaymentRelationships>;
|
|
7
8
|
export declare namespace CardPaymentRelationships {
|
|
8
9
|
interface Raw {
|
|
9
10
|
paymentIntent: CardPaymentRelationshipsPaymentIntent.Raw;
|
|
10
11
|
refunds: CardPaymentRelationshipsRefunds.Raw;
|
|
12
|
+
transaction: CardPaymentRelationshipsTransaction.Raw;
|
|
11
13
|
}
|
|
12
14
|
}
|
|
@@ -38,7 +38,9 @@ exports.CardPaymentRelationships = void 0;
|
|
|
38
38
|
const core = __importStar(require("../../core/index.js"));
|
|
39
39
|
const CardPaymentRelationshipsPaymentIntent_js_1 = require("./CardPaymentRelationshipsPaymentIntent.js");
|
|
40
40
|
const CardPaymentRelationshipsRefunds_js_1 = require("./CardPaymentRelationshipsRefunds.js");
|
|
41
|
+
const CardPaymentRelationshipsTransaction_js_1 = require("./CardPaymentRelationshipsTransaction.js");
|
|
41
42
|
exports.CardPaymentRelationships = core.serialization.object({
|
|
42
43
|
paymentIntent: CardPaymentRelationshipsPaymentIntent_js_1.CardPaymentRelationshipsPaymentIntent,
|
|
43
44
|
refunds: CardPaymentRelationshipsRefunds_js_1.CardPaymentRelationshipsRefunds,
|
|
45
|
+
transaction: CardPaymentRelationshipsTransaction_js_1.CardPaymentRelationshipsTransaction,
|
|
44
46
|
});
|
|
@@ -0,0 +1,10 @@
|
|
|
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
|
+
import { CardPaymentRelationshipsTransactionData } from "./CardPaymentRelationshipsTransactionData.js";
|
|
5
|
+
export declare const CardPaymentRelationshipsTransaction: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransaction.Raw, Natural.CardPaymentRelationshipsTransaction>;
|
|
6
|
+
export declare namespace CardPaymentRelationshipsTransaction {
|
|
7
|
+
interface Raw {
|
|
8
|
+
data?: CardPaymentRelationshipsTransactionData.Raw | null;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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.CardPaymentRelationshipsTransaction = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const CardPaymentRelationshipsTransactionData_js_1 = require("./CardPaymentRelationshipsTransactionData.js");
|
|
40
|
+
exports.CardPaymentRelationshipsTransaction = core.serialization.object({
|
|
41
|
+
data: CardPaymentRelationshipsTransactionData_js_1.CardPaymentRelationshipsTransactionData.nullable(),
|
|
42
|
+
});
|
|
@@ -0,0 +1,11 @@
|
|
|
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
|
+
import { CardPaymentRelationshipsTransactionDataType } from "./CardPaymentRelationshipsTransactionDataType.js";
|
|
5
|
+
export declare const CardPaymentRelationshipsTransactionData: core.serialization.ObjectSchema<serializers.CardPaymentRelationshipsTransactionData.Raw, Natural.CardPaymentRelationshipsTransactionData>;
|
|
6
|
+
export declare namespace CardPaymentRelationshipsTransactionData {
|
|
7
|
+
interface Raw {
|
|
8
|
+
type: CardPaymentRelationshipsTransactionDataType.Raw;
|
|
9
|
+
id: string;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.CardPaymentRelationshipsTransactionData = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
const CardPaymentRelationshipsTransactionDataType_js_1 = require("./CardPaymentRelationshipsTransactionDataType.js");
|
|
40
|
+
exports.CardPaymentRelationshipsTransactionData = core.serialization.object({
|
|
41
|
+
type: CardPaymentRelationshipsTransactionDataType_js_1.CardPaymentRelationshipsTransactionDataType,
|
|
42
|
+
id: core.serialization.string(),
|
|
43
|
+
});
|
|
@@ -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 CardPaymentRelationshipsTransactionDataType: core.serialization.Schema<serializers.CardPaymentRelationshipsTransactionDataType.Raw, Natural.CardPaymentRelationshipsTransactionDataType>;
|
|
5
|
+
export declare namespace CardPaymentRelationshipsTransactionDataType {
|
|
6
|
+
type Raw = "transaction";
|
|
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.CardPaymentRelationshipsTransactionDataType = void 0;
|
|
38
|
+
const core = __importStar(require("../../core/index.js"));
|
|
39
|
+
exports.CardPaymentRelationshipsTransactionDataType = core.serialization.enum_(["transaction"]);
|
|
@@ -32,6 +32,9 @@ export * from "./CardPaymentRelationshipsPaymentIntentDataType.js";
|
|
|
32
32
|
export * from "./CardPaymentRelationshipsRefunds.js";
|
|
33
33
|
export * from "./CardPaymentRelationshipsRefundsDataItem.js";
|
|
34
34
|
export * from "./CardPaymentRelationshipsRefundsDataItemType.js";
|
|
35
|
+
export * from "./CardPaymentRelationshipsTransaction.js";
|
|
36
|
+
export * from "./CardPaymentRelationshipsTransactionData.js";
|
|
37
|
+
export * from "./CardPaymentRelationshipsTransactionDataType.js";
|
|
35
38
|
export * from "./CardPaymentType.js";
|
|
36
39
|
export * from "./ComplianceSessionStatusResponse.js";
|
|
37
40
|
export * from "./ComplianceSessionStatusResponseData.js";
|
|
@@ -48,6 +48,9 @@ __exportStar(require("./CardPaymentRelationshipsPaymentIntentDataType.js"), expo
|
|
|
48
48
|
__exportStar(require("./CardPaymentRelationshipsRefunds.js"), exports);
|
|
49
49
|
__exportStar(require("./CardPaymentRelationshipsRefundsDataItem.js"), exports);
|
|
50
50
|
__exportStar(require("./CardPaymentRelationshipsRefundsDataItemType.js"), exports);
|
|
51
|
+
__exportStar(require("./CardPaymentRelationshipsTransaction.js"), exports);
|
|
52
|
+
__exportStar(require("./CardPaymentRelationshipsTransactionData.js"), exports);
|
|
53
|
+
__exportStar(require("./CardPaymentRelationshipsTransactionDataType.js"), exports);
|
|
51
54
|
__exportStar(require("./CardPaymentType.js"), exports);
|
|
52
55
|
__exportStar(require("./ComplianceSessionStatusResponse.js"), exports);
|
|
53
56
|
__exportStar(require("./ComplianceSessionStatusResponseData.js"), exports);
|
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.50";
|
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.50",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.50",
|
|
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,
|
|
@@ -65,12 +65,14 @@ export declare class CardSessionsClient {
|
|
|
65
65
|
* cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
|
|
66
66
|
* allowedHosts: ["api.stripe.com"],
|
|
67
67
|
* ttlSeconds: 600,
|
|
68
|
+
* claimWindowSeconds: 3600,
|
|
68
69
|
* purchase: {
|
|
69
70
|
* merchantName: "Blue Bottle Coffee",
|
|
70
71
|
* amount: 2450,
|
|
71
72
|
* currency: "USD"
|
|
72
73
|
* },
|
|
73
74
|
* reference: "checkout_7f3a",
|
|
75
|
+
* returnUrl: "sms:+15551234567",
|
|
74
76
|
* requestAgentToken: true
|
|
75
77
|
* })
|
|
76
78
|
*/
|
|
@@ -170,12 +170,14 @@ export class CardSessionsClient {
|
|
|
170
170
|
* cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
|
|
171
171
|
* allowedHosts: ["api.stripe.com"],
|
|
172
172
|
* ttlSeconds: 600,
|
|
173
|
+
* claimWindowSeconds: 3600,
|
|
173
174
|
* purchase: {
|
|
174
175
|
* merchantName: "Blue Bottle Coffee",
|
|
175
176
|
* amount: 2450,
|
|
176
177
|
* currency: "USD"
|
|
177
178
|
* },
|
|
178
179
|
* reference: "checkout_7f3a",
|
|
180
|
+
* returnUrl: "sms:+15551234567",
|
|
179
181
|
* requestAgentToken: true
|
|
180
182
|
* })
|
|
181
183
|
*/
|
|
@@ -5,12 +5,14 @@ import type * as Natural from "../../../../index.mjs";
|
|
|
5
5
|
* cardId: "eac_01a0e642ed4873d685273ce0e7d1ccab",
|
|
6
6
|
* allowedHosts: ["api.stripe.com"],
|
|
7
7
|
* ttlSeconds: 600,
|
|
8
|
+
* claimWindowSeconds: 3600,
|
|
8
9
|
* purchase: {
|
|
9
10
|
* merchantName: "Blue Bottle Coffee",
|
|
10
11
|
* amount: 2450,
|
|
11
12
|
* currency: "USD"
|
|
12
13
|
* },
|
|
13
14
|
* reference: "checkout_7f3a",
|
|
15
|
+
* returnUrl: "sms:+15551234567",
|
|
14
16
|
* requestAgentToken: true
|
|
15
17
|
* }
|
|
16
18
|
*/
|
|
@@ -20,14 +22,18 @@ export interface CreateCardSessionsRequest {
|
|
|
20
22
|
cardId: string;
|
|
21
23
|
/** Customer party to act for (pty_*). Omit to act as your own party. To act for another party, pass the ID of a party that has authorized you to act on its behalf. */
|
|
22
24
|
customerPartyId?: string;
|
|
23
|
-
/** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. */
|
|
25
|
+
/** Exact hostnames allowed to receive the real card, such as the payment processor's API host the merchant's checkout sends the card to. Required: there is no default. When the card fields are an iframe from checkoutshopper-live.adyen.com or flex.cybersource.com, list that host, and for CyberSource also the merchant host that serves the payment page. */
|
|
24
26
|
allowedHosts: string[];
|
|
25
27
|
/** How long the stand-in card and proxy login stay valid once claimed. Defaults to 600. */
|
|
26
28
|
ttlSeconds?: number;
|
|
29
|
+
/** How long after creation you can claim the session, from 600 (10 minutes) to 86400 (24 hours). Defaults to 600. The user still has to approve within 10 minutes; a longer window only gives you more time to claim and pay after they do. Sets claimExpiresAt. */
|
|
30
|
+
claimWindowSeconds?: number;
|
|
27
31
|
/** What the agent is buying. Required for a card the user added (eac_): the user approves this exact purchase. */
|
|
28
32
|
purchase?: Natural.CreateCardSessionsRequestPurchase;
|
|
29
33
|
/** 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
34
|
reference?: string;
|
|
35
|
+
/** 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. */
|
|
36
|
+
returnUrl?: string;
|
|
31
37
|
/** 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
38
|
requestAgentToken?: boolean;
|
|
33
39
|
}
|
|
@@ -9,7 +9,9 @@ export interface CreateCardSessionsResponse {
|
|
|
9
9
|
allowedHosts: string[];
|
|
10
10
|
/** The reference you created the session with. Null when you didn't set one. */
|
|
11
11
|
reference: string | null;
|
|
12
|
-
/** A pending session must be approved,
|
|
12
|
+
/** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
|
|
13
|
+
approvalExpiresAt: string;
|
|
14
|
+
/** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
|
|
13
15
|
claimExpiresAt: string;
|
|
14
16
|
claimedAt: string | null;
|
|
15
17
|
/** When the claimed proxy login stops working. */
|
|
@@ -9,7 +9,9 @@ export interface GetCardSessionsResponse {
|
|
|
9
9
|
allowedHosts: string[];
|
|
10
10
|
/** The reference you created the session with. Null when you didn't set one. */
|
|
11
11
|
reference: string | null;
|
|
12
|
-
/** A pending session must be approved,
|
|
12
|
+
/** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
|
|
13
|
+
approvalExpiresAt: string;
|
|
14
|
+
/** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
|
|
13
15
|
claimExpiresAt: string;
|
|
14
16
|
claimedAt: string | null;
|
|
15
17
|
/** When the claimed proxy login stops working. */
|
|
@@ -9,7 +9,9 @@ export interface ListCardSessionsResponseDataItem {
|
|
|
9
9
|
allowedHosts: string[];
|
|
10
10
|
/** The reference you created the session with. Null when you didn't set one. */
|
|
11
11
|
reference: string | null;
|
|
12
|
-
/** A pending session must be approved,
|
|
12
|
+
/** A pending session must be approved before this, 10 minutes after creation. After it, an unapproved session is expired. */
|
|
13
|
+
approvalExpiresAt: string;
|
|
14
|
+
/** An approved session must be claimed before this: creation plus claimWindowSeconds. After it, an unclaimed session is expired. */
|
|
13
15
|
claimExpiresAt: string;
|
|
14
16
|
claimedAt: string | null;
|
|
15
17
|
/** When the claimed proxy login stops working. */
|
|
@@ -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
|
}
|