@naturalpay/sdk 1.6.10 → 1.6.11
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/Client.d.ts +8 -8
- package/dist/cjs/Client.js +16 -16
- package/dist/cjs/api/resources/externalParties/client/requests/NewExtPartyParams.d.ts +1 -1
- package/dist/cjs/api/resources/externalParties/types/NewExtPartyParamsAddress.d.ts +7 -4
- package/dist/cjs/api/resources/transactions/types/ListTransactionsRequestType.d.ts +1 -0
- package/dist/cjs/api/resources/transactions/types/ListTransactionsRequestType.js +1 -0
- package/dist/cjs/api/resources/transactions/types/TxnDetailTransactionType.d.ts +1 -0
- package/dist/cjs/api/resources/transactions/types/TxnDetailTransactionType.js +1 -0
- package/dist/cjs/api/resources/transactions/types/TxnTransactionType.d.ts +1 -0
- package/dist/cjs/api/resources/transactions/types/TxnTransactionType.js +1 -0
- package/dist/cjs/serialization/resources/externalParties/types/NewExtPartyParamsAddress.d.ts +3 -3
- package/dist/cjs/serialization/resources/externalParties/types/NewExtPartyParamsAddress.js +3 -3
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsRequestType.d.ts +1 -1
- package/dist/cjs/serialization/resources/transactions/types/ListTransactionsRequestType.js +1 -1
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailTransactionType.d.ts +1 -1
- package/dist/cjs/serialization/resources/transactions/types/TxnDetailTransactionType.js +1 -1
- package/dist/cjs/serialization/resources/transactions/types/TxnTransactionType.d.ts +1 -1
- package/dist/cjs/serialization/resources/transactions/types/TxnTransactionType.js +1 -1
- 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/Client.d.mts +8 -8
- package/dist/esm/Client.mjs +16 -16
- package/dist/esm/api/resources/externalParties/client/requests/NewExtPartyParams.d.mts +1 -1
- package/dist/esm/api/resources/externalParties/types/NewExtPartyParamsAddress.d.mts +7 -4
- package/dist/esm/api/resources/transactions/types/ListTransactionsRequestType.d.mts +1 -0
- package/dist/esm/api/resources/transactions/types/ListTransactionsRequestType.mjs +1 -0
- package/dist/esm/api/resources/transactions/types/TxnDetailTransactionType.d.mts +1 -0
- package/dist/esm/api/resources/transactions/types/TxnDetailTransactionType.mjs +1 -0
- package/dist/esm/api/resources/transactions/types/TxnTransactionType.d.mts +1 -0
- package/dist/esm/api/resources/transactions/types/TxnTransactionType.mjs +1 -0
- package/dist/esm/serialization/resources/externalParties/types/NewExtPartyParamsAddress.d.mts +3 -3
- package/dist/esm/serialization/resources/externalParties/types/NewExtPartyParamsAddress.mjs +3 -3
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsRequestType.d.mts +1 -1
- package/dist/esm/serialization/resources/transactions/types/ListTransactionsRequestType.mjs +1 -1
- package/dist/esm/serialization/resources/transactions/types/TxnDetailTransactionType.d.mts +1 -1
- package/dist/esm/serialization/resources/transactions/types/TxnDetailTransactionType.mjs +1 -1
- package/dist/esm/serialization/resources/transactions/types/TxnTransactionType.d.mts +1 -1
- package/dist/esm/serialization/resources/transactions/types/TxnTransactionType.mjs +1 -1
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +45 -45
- package/reference.md +573 -573
package/dist/cjs/BaseClient.js
CHANGED
|
@@ -43,8 +43,8 @@ function normalizeClientOptions(options) {
|
|
|
43
43
|
const headers = (0, headers_js_1.mergeHeaders)({
|
|
44
44
|
"X-Fern-Language": "JavaScript",
|
|
45
45
|
"X-Fern-SDK-Name": "@naturalpay/sdk",
|
|
46
|
-
"X-Fern-SDK-Version": "1.6.
|
|
47
|
-
"User-Agent": "@naturalpay/sdk/1.6.
|
|
46
|
+
"X-Fern-SDK-Version": "1.6.11",
|
|
47
|
+
"User-Agent": "@naturalpay/sdk/1.6.11",
|
|
48
48
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
49
49
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
50
50
|
"X-Instance-ID": options === null || options === void 0 ? void 0 : options.instanceId,
|
package/dist/cjs/Client.d.ts
CHANGED
|
@@ -33,6 +33,10 @@ export declare class NaturalClient {
|
|
|
33
33
|
protected _customers: CustomersClient | undefined;
|
|
34
34
|
protected _invitationLinks: InvitationLinksClient | undefined;
|
|
35
35
|
protected _payments: PaymentsClient | undefined;
|
|
36
|
+
protected _externalParties: ExternalPartiesClient | undefined;
|
|
37
|
+
protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
|
|
38
|
+
protected _ach: AchClient | undefined;
|
|
39
|
+
protected _realtime: RealtimeClient | undefined;
|
|
36
40
|
protected _transactions: TransactionsClient | undefined;
|
|
37
41
|
protected _transfers: TransfersClient | undefined;
|
|
38
42
|
protected _paymentRequests: PaymentRequestsClient | undefined;
|
|
@@ -41,10 +45,6 @@ export declare class NaturalClient {
|
|
|
41
45
|
protected _parties: PartiesClient | undefined;
|
|
42
46
|
protected _wallets: WalletsClient | undefined;
|
|
43
47
|
protected _externalAccounts: ExternalAccountsClient | undefined;
|
|
44
|
-
protected _externalParties: ExternalPartiesClient | undefined;
|
|
45
|
-
protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
|
|
46
|
-
protected _ach: AchClient | undefined;
|
|
47
|
-
protected _realtime: RealtimeClient | undefined;
|
|
48
48
|
protected _apiKeys: ApiKeysClient | undefined;
|
|
49
49
|
protected _agentKeys: AgentKeysClient | undefined;
|
|
50
50
|
protected _webhooks: WebhooksClient | undefined;
|
|
@@ -55,6 +55,10 @@ export declare class NaturalClient {
|
|
|
55
55
|
get customers(): CustomersClient;
|
|
56
56
|
get invitationLinks(): InvitationLinksClient;
|
|
57
57
|
get payments(): PaymentsClient;
|
|
58
|
+
get externalParties(): ExternalPartiesClient;
|
|
59
|
+
get externalPartyAccounts(): ExternalPartyAccountsClient;
|
|
60
|
+
get ach(): AchClient;
|
|
61
|
+
get realtime(): RealtimeClient;
|
|
58
62
|
get transactions(): TransactionsClient;
|
|
59
63
|
get transfers(): TransfersClient;
|
|
60
64
|
get paymentRequests(): PaymentRequestsClient;
|
|
@@ -63,10 +67,6 @@ export declare class NaturalClient {
|
|
|
63
67
|
get parties(): PartiesClient;
|
|
64
68
|
get wallets(): WalletsClient;
|
|
65
69
|
get externalAccounts(): ExternalAccountsClient;
|
|
66
|
-
get externalParties(): ExternalPartiesClient;
|
|
67
|
-
get externalPartyAccounts(): ExternalPartyAccountsClient;
|
|
68
|
-
get ach(): AchClient;
|
|
69
|
-
get realtime(): RealtimeClient;
|
|
70
70
|
get apiKeys(): ApiKeysClient;
|
|
71
71
|
get agentKeys(): AgentKeysClient;
|
|
72
72
|
get webhooks(): WebhooksClient;
|
package/dist/cjs/Client.js
CHANGED
|
@@ -87,6 +87,22 @@ class NaturalClient {
|
|
|
87
87
|
var _a;
|
|
88
88
|
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new Client_js_15.PaymentsClient(this._options)));
|
|
89
89
|
}
|
|
90
|
+
get externalParties() {
|
|
91
|
+
var _a;
|
|
92
|
+
return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new Client_js_9.ExternalPartiesClient(this._options)));
|
|
93
|
+
}
|
|
94
|
+
get externalPartyAccounts() {
|
|
95
|
+
var _a;
|
|
96
|
+
return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new Client_js_10.ExternalPartyAccountsClient(this._options)));
|
|
97
|
+
}
|
|
98
|
+
get ach() {
|
|
99
|
+
var _a;
|
|
100
|
+
return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new Client_js_1.AchClient(this._options)));
|
|
101
|
+
}
|
|
102
|
+
get realtime() {
|
|
103
|
+
var _a;
|
|
104
|
+
return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new Client_js_16.RealtimeClient(this._options)));
|
|
105
|
+
}
|
|
90
106
|
get transactions() {
|
|
91
107
|
var _a;
|
|
92
108
|
return ((_a = this._transactions) !== null && _a !== void 0 ? _a : (this._transactions = new Client_js_18.TransactionsClient(this._options)));
|
|
@@ -119,22 +135,6 @@ class NaturalClient {
|
|
|
119
135
|
var _a;
|
|
120
136
|
return ((_a = this._externalAccounts) !== null && _a !== void 0 ? _a : (this._externalAccounts = new Client_js_8.ExternalAccountsClient(this._options)));
|
|
121
137
|
}
|
|
122
|
-
get externalParties() {
|
|
123
|
-
var _a;
|
|
124
|
-
return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new Client_js_9.ExternalPartiesClient(this._options)));
|
|
125
|
-
}
|
|
126
|
-
get externalPartyAccounts() {
|
|
127
|
-
var _a;
|
|
128
|
-
return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new Client_js_10.ExternalPartyAccountsClient(this._options)));
|
|
129
|
-
}
|
|
130
|
-
get ach() {
|
|
131
|
-
var _a;
|
|
132
|
-
return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new Client_js_1.AchClient(this._options)));
|
|
133
|
-
}
|
|
134
|
-
get realtime() {
|
|
135
|
-
var _a;
|
|
136
|
-
return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new Client_js_16.RealtimeClient(this._options)));
|
|
137
|
-
}
|
|
138
138
|
get apiKeys() {
|
|
139
139
|
var _a;
|
|
140
140
|
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new Client_js_4.ApiKeysClient(this._options)));
|
|
@@ -29,6 +29,6 @@ export interface NewExtPartyParams {
|
|
|
29
29
|
email?: string;
|
|
30
30
|
/** External party phone number. It is normalized to E.164. */
|
|
31
31
|
phone?: string;
|
|
32
|
-
/**
|
|
32
|
+
/** Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode. */
|
|
33
33
|
address?: Natural.NewExtPartyParamsAddress;
|
|
34
34
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode.
|
|
3
3
|
*/
|
|
4
4
|
export interface NewExtPartyParamsAddress {
|
|
5
|
-
line1
|
|
5
|
+
line1: string;
|
|
6
6
|
line2?: string;
|
|
7
|
-
city
|
|
7
|
+
city: string;
|
|
8
|
+
/** State or province. Required for US addresses. */
|
|
8
9
|
state?: string;
|
|
10
|
+
/** Postal or ZIP code. Required for US addresses. */
|
|
9
11
|
postalCode?: string;
|
|
10
|
-
|
|
12
|
+
/** ISO 3166-1 alpha-2 country code. */
|
|
13
|
+
countryCode: string;
|
|
11
14
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const ListTransactionsRequestType: {
|
|
3
3
|
readonly Payment: "payment";
|
|
4
4
|
readonly Transfer: "transfer";
|
|
5
|
+
readonly Refund: "refund";
|
|
5
6
|
readonly All: "all";
|
|
6
7
|
};
|
|
7
8
|
export type ListTransactionsRequestType = (typeof ListTransactionsRequestType)[keyof typeof ListTransactionsRequestType];
|
package/dist/cjs/serialization/resources/externalParties/types/NewExtPartyParamsAddress.d.ts
CHANGED
|
@@ -4,11 +4,11 @@ import type * as serializers from "../../../index.js";
|
|
|
4
4
|
export declare const NewExtPartyParamsAddress: core.serialization.ObjectSchema<serializers.NewExtPartyParamsAddress.Raw, Natural.NewExtPartyParamsAddress>;
|
|
5
5
|
export declare namespace NewExtPartyParamsAddress {
|
|
6
6
|
interface Raw {
|
|
7
|
-
line1
|
|
7
|
+
line1: string;
|
|
8
8
|
line2?: string | null;
|
|
9
|
-
city
|
|
9
|
+
city: string;
|
|
10
10
|
state?: string | null;
|
|
11
11
|
postalCode?: string | null;
|
|
12
|
-
countryCode
|
|
12
|
+
countryCode: string;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -37,10 +37,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
37
37
|
exports.NewExtPartyParamsAddress = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
39
|
exports.NewExtPartyParamsAddress = core.serialization.object({
|
|
40
|
-
line1: core.serialization.string()
|
|
40
|
+
line1: core.serialization.string(),
|
|
41
41
|
line2: core.serialization.string().optional(),
|
|
42
|
-
city: core.serialization.string()
|
|
42
|
+
city: core.serialization.string(),
|
|
43
43
|
state: core.serialization.string().optional(),
|
|
44
44
|
postalCode: core.serialization.string().optional(),
|
|
45
|
-
countryCode: core.serialization.string()
|
|
45
|
+
countryCode: core.serialization.string(),
|
|
46
46
|
});
|
package/dist/cjs/serialization/resources/transactions/types/ListTransactionsRequestType.d.ts
CHANGED
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
export declare const ListTransactionsRequestType: core.serialization.Schema<serializers.ListTransactionsRequestType.Raw, Natural.ListTransactionsRequestType>;
|
|
5
5
|
export declare namespace ListTransactionsRequestType {
|
|
6
|
-
type Raw = "payment" | "transfer" | "all";
|
|
6
|
+
type Raw = "payment" | "transfer" | "refund" | "all";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.ListTransactionsRequestType = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
-
exports.ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "all"]);
|
|
39
|
+
exports.ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "refund", "all"]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
export declare const TxnDetailTransactionType: core.serialization.Schema<serializers.TxnDetailTransactionType.Raw, Natural.TxnDetailTransactionType>;
|
|
5
5
|
export declare namespace TxnDetailTransactionType {
|
|
6
|
-
type Raw = "payment" | "transfer";
|
|
6
|
+
type Raw = "payment" | "transfer" | "refund";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.TxnDetailTransactionType = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
-
exports.TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer"]);
|
|
39
|
+
exports.TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.js";
|
|
|
3
3
|
import type * as serializers from "../../../index.js";
|
|
4
4
|
export declare const TxnTransactionType: core.serialization.Schema<serializers.TxnTransactionType.Raw, Natural.TxnTransactionType>;
|
|
5
5
|
export declare namespace TxnTransactionType {
|
|
6
|
-
type Raw = "payment" | "transfer";
|
|
6
|
+
type Raw = "payment" | "transfer" | "refund";
|
|
7
7
|
}
|
|
@@ -36,4 +36,4 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37
37
|
exports.TxnTransactionType = void 0;
|
|
38
38
|
const core = __importStar(require("../../../../core/index.js"));
|
|
39
|
-
exports.TxnTransactionType = core.serialization.enum_(["payment", "transfer"]);
|
|
39
|
+
exports.TxnTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
|
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.11";
|
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.11",
|
|
10
|
+
"User-Agent": "@naturalpay/sdk/1.6.11",
|
|
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,
|
package/dist/esm/Client.d.mts
CHANGED
|
@@ -33,6 +33,10 @@ export declare class NaturalClient {
|
|
|
33
33
|
protected _customers: CustomersClient | undefined;
|
|
34
34
|
protected _invitationLinks: InvitationLinksClient | undefined;
|
|
35
35
|
protected _payments: PaymentsClient | undefined;
|
|
36
|
+
protected _externalParties: ExternalPartiesClient | undefined;
|
|
37
|
+
protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
|
|
38
|
+
protected _ach: AchClient | undefined;
|
|
39
|
+
protected _realtime: RealtimeClient | undefined;
|
|
36
40
|
protected _transactions: TransactionsClient | undefined;
|
|
37
41
|
protected _transfers: TransfersClient | undefined;
|
|
38
42
|
protected _paymentRequests: PaymentRequestsClient | undefined;
|
|
@@ -41,10 +45,6 @@ export declare class NaturalClient {
|
|
|
41
45
|
protected _parties: PartiesClient | undefined;
|
|
42
46
|
protected _wallets: WalletsClient | undefined;
|
|
43
47
|
protected _externalAccounts: ExternalAccountsClient | undefined;
|
|
44
|
-
protected _externalParties: ExternalPartiesClient | undefined;
|
|
45
|
-
protected _externalPartyAccounts: ExternalPartyAccountsClient | undefined;
|
|
46
|
-
protected _ach: AchClient | undefined;
|
|
47
|
-
protected _realtime: RealtimeClient | undefined;
|
|
48
48
|
protected _apiKeys: ApiKeysClient | undefined;
|
|
49
49
|
protected _agentKeys: AgentKeysClient | undefined;
|
|
50
50
|
protected _webhooks: WebhooksClient | undefined;
|
|
@@ -55,6 +55,10 @@ export declare class NaturalClient {
|
|
|
55
55
|
get customers(): CustomersClient;
|
|
56
56
|
get invitationLinks(): InvitationLinksClient;
|
|
57
57
|
get payments(): PaymentsClient;
|
|
58
|
+
get externalParties(): ExternalPartiesClient;
|
|
59
|
+
get externalPartyAccounts(): ExternalPartyAccountsClient;
|
|
60
|
+
get ach(): AchClient;
|
|
61
|
+
get realtime(): RealtimeClient;
|
|
58
62
|
get transactions(): TransactionsClient;
|
|
59
63
|
get transfers(): TransfersClient;
|
|
60
64
|
get paymentRequests(): PaymentRequestsClient;
|
|
@@ -63,10 +67,6 @@ export declare class NaturalClient {
|
|
|
63
67
|
get parties(): PartiesClient;
|
|
64
68
|
get wallets(): WalletsClient;
|
|
65
69
|
get externalAccounts(): ExternalAccountsClient;
|
|
66
|
-
get externalParties(): ExternalPartiesClient;
|
|
67
|
-
get externalPartyAccounts(): ExternalPartyAccountsClient;
|
|
68
|
-
get ach(): AchClient;
|
|
69
|
-
get realtime(): RealtimeClient;
|
|
70
70
|
get apiKeys(): ApiKeysClient;
|
|
71
71
|
get agentKeys(): AgentKeysClient;
|
|
72
72
|
get webhooks(): WebhooksClient;
|
package/dist/esm/Client.mjs
CHANGED
|
@@ -51,6 +51,22 @@ export class NaturalClient {
|
|
|
51
51
|
var _a;
|
|
52
52
|
return ((_a = this._payments) !== null && _a !== void 0 ? _a : (this._payments = new PaymentsClient(this._options)));
|
|
53
53
|
}
|
|
54
|
+
get externalParties() {
|
|
55
|
+
var _a;
|
|
56
|
+
return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new ExternalPartiesClient(this._options)));
|
|
57
|
+
}
|
|
58
|
+
get externalPartyAccounts() {
|
|
59
|
+
var _a;
|
|
60
|
+
return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new ExternalPartyAccountsClient(this._options)));
|
|
61
|
+
}
|
|
62
|
+
get ach() {
|
|
63
|
+
var _a;
|
|
64
|
+
return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new AchClient(this._options)));
|
|
65
|
+
}
|
|
66
|
+
get realtime() {
|
|
67
|
+
var _a;
|
|
68
|
+
return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new RealtimeClient(this._options)));
|
|
69
|
+
}
|
|
54
70
|
get transactions() {
|
|
55
71
|
var _a;
|
|
56
72
|
return ((_a = this._transactions) !== null && _a !== void 0 ? _a : (this._transactions = new TransactionsClient(this._options)));
|
|
@@ -83,22 +99,6 @@ export class NaturalClient {
|
|
|
83
99
|
var _a;
|
|
84
100
|
return ((_a = this._externalAccounts) !== null && _a !== void 0 ? _a : (this._externalAccounts = new ExternalAccountsClient(this._options)));
|
|
85
101
|
}
|
|
86
|
-
get externalParties() {
|
|
87
|
-
var _a;
|
|
88
|
-
return ((_a = this._externalParties) !== null && _a !== void 0 ? _a : (this._externalParties = new ExternalPartiesClient(this._options)));
|
|
89
|
-
}
|
|
90
|
-
get externalPartyAccounts() {
|
|
91
|
-
var _a;
|
|
92
|
-
return ((_a = this._externalPartyAccounts) !== null && _a !== void 0 ? _a : (this._externalPartyAccounts = new ExternalPartyAccountsClient(this._options)));
|
|
93
|
-
}
|
|
94
|
-
get ach() {
|
|
95
|
-
var _a;
|
|
96
|
-
return ((_a = this._ach) !== null && _a !== void 0 ? _a : (this._ach = new AchClient(this._options)));
|
|
97
|
-
}
|
|
98
|
-
get realtime() {
|
|
99
|
-
var _a;
|
|
100
|
-
return ((_a = this._realtime) !== null && _a !== void 0 ? _a : (this._realtime = new RealtimeClient(this._options)));
|
|
101
|
-
}
|
|
102
102
|
get apiKeys() {
|
|
103
103
|
var _a;
|
|
104
104
|
return ((_a = this._apiKeys) !== null && _a !== void 0 ? _a : (this._apiKeys = new ApiKeysClient(this._options)));
|
|
@@ -29,6 +29,6 @@ export interface NewExtPartyParams {
|
|
|
29
29
|
email?: string;
|
|
30
30
|
/** External party phone number. It is normalized to E.164. */
|
|
31
31
|
phone?: string;
|
|
32
|
-
/**
|
|
32
|
+
/** Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode. */
|
|
33
33
|
address?: Natural.NewExtPartyParamsAddress;
|
|
34
34
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* Optional external party address. When supplied, it must be complete and valid. US addresses require state and postalCode.
|
|
3
3
|
*/
|
|
4
4
|
export interface NewExtPartyParamsAddress {
|
|
5
|
-
line1
|
|
5
|
+
line1: string;
|
|
6
6
|
line2?: string;
|
|
7
|
-
city
|
|
7
|
+
city: string;
|
|
8
|
+
/** State or province. Required for US addresses. */
|
|
8
9
|
state?: string;
|
|
10
|
+
/** Postal or ZIP code. Required for US addresses. */
|
|
9
11
|
postalCode?: string;
|
|
10
|
-
|
|
12
|
+
/** ISO 3166-1 alpha-2 country code. */
|
|
13
|
+
countryCode: string;
|
|
11
14
|
}
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
export declare const ListTransactionsRequestType: {
|
|
3
3
|
readonly Payment: "payment";
|
|
4
4
|
readonly Transfer: "transfer";
|
|
5
|
+
readonly Refund: "refund";
|
|
5
6
|
readonly All: "all";
|
|
6
7
|
};
|
|
7
8
|
export type ListTransactionsRequestType = (typeof ListTransactionsRequestType)[keyof typeof ListTransactionsRequestType];
|
package/dist/esm/serialization/resources/externalParties/types/NewExtPartyParamsAddress.d.mts
CHANGED
|
@@ -4,11 +4,11 @@ import type * as serializers from "../../../index.mjs";
|
|
|
4
4
|
export declare const NewExtPartyParamsAddress: core.serialization.ObjectSchema<serializers.NewExtPartyParamsAddress.Raw, Natural.NewExtPartyParamsAddress>;
|
|
5
5
|
export declare namespace NewExtPartyParamsAddress {
|
|
6
6
|
interface Raw {
|
|
7
|
-
line1
|
|
7
|
+
line1: string;
|
|
8
8
|
line2?: string | null;
|
|
9
|
-
city
|
|
9
|
+
city: string;
|
|
10
10
|
state?: string | null;
|
|
11
11
|
postalCode?: string | null;
|
|
12
|
-
countryCode
|
|
12
|
+
countryCode: string;
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
3
|
export const NewExtPartyParamsAddress = core.serialization.object({
|
|
4
|
-
line1: core.serialization.string()
|
|
4
|
+
line1: core.serialization.string(),
|
|
5
5
|
line2: core.serialization.string().optional(),
|
|
6
|
-
city: core.serialization.string()
|
|
6
|
+
city: core.serialization.string(),
|
|
7
7
|
state: core.serialization.string().optional(),
|
|
8
8
|
postalCode: core.serialization.string().optional(),
|
|
9
|
-
countryCode: core.serialization.string()
|
|
9
|
+
countryCode: core.serialization.string(),
|
|
10
10
|
});
|
package/dist/esm/serialization/resources/transactions/types/ListTransactionsRequestType.d.mts
CHANGED
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
export declare const ListTransactionsRequestType: core.serialization.Schema<serializers.ListTransactionsRequestType.Raw, Natural.ListTransactionsRequestType>;
|
|
5
5
|
export declare namespace ListTransactionsRequestType {
|
|
6
|
-
type Raw = "payment" | "transfer" | "all";
|
|
6
|
+
type Raw = "payment" | "transfer" | "refund" | "all";
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
-
export const ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "all"]);
|
|
3
|
+
export const ListTransactionsRequestType = core.serialization.enum_(["payment", "transfer", "refund", "all"]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
export declare const TxnDetailTransactionType: core.serialization.Schema<serializers.TxnDetailTransactionType.Raw, Natural.TxnDetailTransactionType>;
|
|
5
5
|
export declare namespace TxnDetailTransactionType {
|
|
6
|
-
type Raw = "payment" | "transfer";
|
|
6
|
+
type Raw = "payment" | "transfer" | "refund";
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
-
export const TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer"]);
|
|
3
|
+
export const TxnDetailTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
|
|
@@ -3,5 +3,5 @@ import * as core from "../../../../core/index.mjs";
|
|
|
3
3
|
import type * as serializers from "../../../index.mjs";
|
|
4
4
|
export declare const TxnTransactionType: core.serialization.Schema<serializers.TxnTransactionType.Raw, Natural.TxnTransactionType>;
|
|
5
5
|
export declare namespace TxnTransactionType {
|
|
6
|
-
type Raw = "payment" | "transfer";
|
|
6
|
+
type Raw = "payment" | "transfer" | "refund";
|
|
7
7
|
}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// This file was auto-generated by Fern from our API Definition.
|
|
2
2
|
import * as core from "../../../../core/index.mjs";
|
|
3
|
-
export const TxnTransactionType = core.serialization.enum_(["payment", "transfer"]);
|
|
3
|
+
export const TxnTransactionType = core.serialization.enum_(["payment", "transfer", "refund"]);
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.6.
|
|
1
|
+
export declare const SDK_VERSION = "1.6.11";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.6.
|
|
1
|
+
export const SDK_VERSION = "1.6.11";
|