modern-treasury 2.2.0 → 2.4.0
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/CHANGELOG.md +75 -0
- package/README.md +43 -15
- package/_shims/ReadableStream-node.d.ts +6 -0
- package/_shims/ReadableStream-node.d.ts.map +1 -0
- package/_shims/ReadableStream-node.js +14 -0
- package/_shims/ReadableStream-node.js.map +1 -0
- package/_shims/ReadableStream-node.mjs +3 -0
- package/_shims/ReadableStream-node.mjs.map +1 -0
- package/_shims/ReadableStream.d.ts +38 -0
- package/_shims/ReadableStream.js +5 -0
- package/_shims/ReadableStream.mjs +7 -0
- package/_shims/{agent.node.d.ts → agent-node.d.ts} +1 -1
- package/_shims/agent-node.d.ts.map +1 -0
- package/_shims/{agent.node.js → agent-node.js} +1 -1
- package/_shims/{agent.node.js.map → agent-node.js.map} +1 -1
- package/_shims/{agent.node.mjs → agent-node.mjs} +1 -1
- package/_shims/{agent.node.mjs.map → agent-node.mjs.map} +1 -1
- package/_shims/agent.d.ts +1 -1
- package/_shims/agent.js +1 -1
- package/_shims/agent.mjs +1 -1
- package/_shims/{fetch.node.d.ts → fetch-node.d.ts} +12 -1
- package/_shims/fetch.d.ts +9 -1
- package/_shims/{fileFromPath.node.d.ts → fileFromPath-node.d.ts} +2 -2
- package/_shims/{fileFromPath.node.d.ts.map → fileFromPath-node.d.ts.map} +1 -1
- package/_shims/{fileFromPath.node.js → fileFromPath-node.js} +1 -1
- package/_shims/{fileFromPath.node.js.map → fileFromPath-node.js.map} +1 -1
- package/_shims/{fileFromPath.node.mjs → fileFromPath-node.mjs} +1 -1
- package/_shims/{fileFromPath.node.mjs.map → fileFromPath-node.mjs.map} +1 -1
- package/_shims/fileFromPath.d.ts +2 -2
- package/_shims/fileFromPath.d.ts.map +1 -1
- package/_shims/fileFromPath.js +1 -1
- package/_shims/fileFromPath.mjs +1 -1
- package/_shims/form-data.js +17 -0
- package/_shims/form-data.mjs +20 -0
- package/_shims/{getMultipartRequestOptions.node.d.ts → getMultipartRequestOptions-node.d.ts} +2 -2
- package/_shims/getMultipartRequestOptions-node.d.ts.map +1 -0
- package/_shims/{getMultipartRequestOptions.node.js → getMultipartRequestOptions-node.js} +1 -1
- package/_shims/{getMultipartRequestOptions.node.js.map → getMultipartRequestOptions-node.js.map} +1 -1
- package/_shims/{getMultipartRequestOptions.node.mjs → getMultipartRequestOptions-node.mjs} +1 -1
- package/_shims/{getMultipartRequestOptions.node.mjs.map → getMultipartRequestOptions-node.mjs.map} +1 -1
- package/_shims/getMultipartRequestOptions.d.ts +1 -1
- package/_shims/getMultipartRequestOptions.d.ts.map +1 -1
- package/_shims/{node-readable.node.d.ts → node-readable-node.d.ts} +1 -1
- package/_shims/{node-readable.node.d.ts.map → node-readable-node.d.ts.map} +1 -1
- package/_shims/{node-readable.node.js → node-readable-node.js} +1 -1
- package/_shims/node-readable-node.js.map +1 -0
- package/_shims/{node-readable.node.mjs → node-readable-node.mjs} +1 -1
- package/_shims/node-readable-node.mjs.map +1 -0
- package/core.d.ts +91 -34
- package/core.d.ts.map +1 -1
- package/core.js +201 -70
- package/core.js.map +1 -1
- package/core.mjs +195 -70
- package/core.mjs.map +1 -1
- package/index.d.mts +19 -7
- package/index.d.ts +19 -7
- package/index.d.ts.map +1 -1
- package/index.js +23 -9
- package/index.js.map +1 -1
- package/index.mjs +23 -9
- package/index.mjs.map +1 -1
- package/package.json +32 -9
- package/pagination.d.ts +2 -2
- package/pagination.d.ts.map +1 -1
- package/pagination.js +5 -5
- package/pagination.js.map +1 -1
- package/pagination.mjs +5 -5
- package/pagination.mjs.map +1 -1
- package/resources/account-collection-flows.d.ts +8 -33
- package/resources/account-collection-flows.d.ts.map +1 -1
- package/resources/account-collection-flows.js +22 -17
- package/resources/account-collection-flows.js.map +1 -1
- package/resources/account-collection-flows.mjs +22 -17
- package/resources/account-collection-flows.mjs.map +1 -1
- package/resources/account-details.d.ts +8 -13
- package/resources/account-details.d.ts.map +1 -1
- package/resources/account-details.js +10 -4
- package/resources/account-details.js.map +1 -1
- package/resources/account-details.mjs +10 -4
- package/resources/account-details.mjs.map +1 -1
- package/resources/connections.d.ts +5 -2
- package/resources/connections.d.ts.map +1 -1
- package/resources/connections.js +3 -3
- package/resources/connections.js.map +1 -1
- package/resources/connections.mjs +3 -3
- package/resources/connections.mjs.map +1 -1
- package/resources/counterparties.d.ts +37 -51
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +17 -5
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +17 -5
- package/resources/counterparties.mjs.map +1 -1
- package/resources/documents.d.ts +6 -17
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +13 -7
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +13 -7
- package/resources/documents.mjs.map +1 -1
- package/resources/events.d.ts +3 -3
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +3 -3
- package/resources/events.mjs +3 -3
- package/resources/expected-payments.d.ts +30 -39
- package/resources/expected-payments.d.ts.map +1 -1
- package/resources/expected-payments.js +10 -4
- package/resources/expected-payments.js.map +1 -1
- package/resources/expected-payments.mjs +10 -4
- package/resources/expected-payments.mjs.map +1 -1
- package/resources/external-accounts.d.ts +27 -61
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js +24 -6
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs +24 -6
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/incoming-payment-details.d.ts +20 -21
- package/resources/incoming-payment-details.d.ts.map +1 -1
- package/resources/incoming-payment-details.js +10 -4
- package/resources/incoming-payment-details.js.map +1 -1
- package/resources/incoming-payment-details.mjs +10 -4
- package/resources/incoming-payment-details.mjs.map +1 -1
- package/resources/index.d.ts +0 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/internal-accounts/balance-reports.d.ts +6 -3
- package/resources/internal-accounts/balance-reports.d.ts.map +1 -1
- package/resources/internal-accounts/balance-reports.js +3 -3
- package/resources/internal-accounts/balance-reports.js.map +1 -1
- package/resources/internal-accounts/balance-reports.mjs +3 -3
- package/resources/internal-accounts/balance-reports.mjs.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.ts +16 -21
- package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
- package/resources/internal-accounts/internal-accounts.js +10 -4
- package/resources/internal-accounts/internal-accounts.js.map +1 -1
- package/resources/internal-accounts/internal-accounts.mjs +10 -4
- package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
- package/resources/invoices/invoices.d.ts +67 -42
- package/resources/invoices/invoices.d.ts.map +1 -1
- package/resources/invoices/invoices.js +10 -4
- package/resources/invoices/invoices.js.map +1 -1
- package/resources/invoices/invoices.mjs +10 -4
- package/resources/invoices/invoices.mjs.map +1 -1
- package/resources/invoices/line-items.d.ts +32 -185
- package/resources/invoices/line-items.d.ts.map +1 -1
- package/resources/invoices/line-items.js +10 -4
- package/resources/invoices/line-items.js.map +1 -1
- package/resources/invoices/line-items.mjs +10 -4
- package/resources/invoices/line-items.mjs.map +1 -1
- package/resources/ledger-account-categories.d.ts +47 -87
- package/resources/ledger-account-categories.d.ts.map +1 -1
- package/resources/ledger-account-categories.js +21 -17
- package/resources/ledger-account-categories.js.map +1 -1
- package/resources/ledger-account-categories.mjs +21 -17
- package/resources/ledger-account-categories.mjs.map +1 -1
- package/resources/ledger-account-payouts.d.ts +33 -22
- package/resources/ledger-account-payouts.d.ts.map +1 -1
- package/resources/ledger-account-payouts.js +10 -4
- package/resources/ledger-account-payouts.js.map +1 -1
- package/resources/ledger-account-payouts.mjs +10 -4
- package/resources/ledger-account-payouts.mjs.map +1 -1
- package/resources/ledger-account-statements.d.ts +11 -16
- package/resources/ledger-account-statements.d.ts.map +1 -1
- package/resources/ledger-account-statements.js +8 -2
- package/resources/ledger-account-statements.js.map +1 -1
- package/resources/ledger-account-statements.mjs +8 -2
- package/resources/ledger-account-statements.mjs.map +1 -1
- package/resources/ledger-accounts.d.ts +30 -30
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +10 -4
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs +10 -4
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/ledger-entries.d.ts +20 -6
- package/resources/ledger-entries.d.ts.map +1 -1
- package/resources/ledger-entries.js +3 -3
- package/resources/ledger-entries.js.map +1 -1
- package/resources/ledger-entries.mjs +3 -3
- package/resources/ledger-entries.mjs.map +1 -1
- package/resources/ledger-event-handlers.d.ts +12 -24
- package/resources/ledger-event-handlers.d.ts.map +1 -1
- package/resources/ledger-event-handlers.js +10 -4
- package/resources/ledger-event-handlers.js.map +1 -1
- package/resources/ledger-event-handlers.mjs +10 -4
- package/resources/ledger-event-handlers.mjs.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.ts +48 -37
- package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.js +13 -7
- package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.mjs +13 -7
- package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
- package/resources/ledger-transactions/versions.d.ts +4 -2
- package/resources/ledger-transactions/versions.d.ts.map +1 -1
- package/resources/ledger-transactions/versions.js +3 -3
- package/resources/ledger-transactions/versions.js.map +1 -1
- package/resources/ledger-transactions/versions.mjs +3 -3
- package/resources/ledger-transactions/versions.mjs.map +1 -1
- package/resources/ledgerable-events.d.ts +13 -18
- package/resources/ledgerable-events.d.ts.map +1 -1
- package/resources/ledgerable-events.js +8 -2
- package/resources/ledgerable-events.js.map +1 -1
- package/resources/ledgerable-events.mjs +8 -2
- package/resources/ledgerable-events.mjs.map +1 -1
- package/resources/ledgers.d.ts +16 -20
- package/resources/ledgers.d.ts.map +1 -1
- package/resources/ledgers.js +10 -4
- package/resources/ledgers.js.map +1 -1
- package/resources/ledgers.mjs +10 -4
- package/resources/ledgers.mjs.map +1 -1
- package/resources/line-items.d.ts +5 -5
- package/resources/line-items.d.ts.map +1 -1
- package/resources/line-items.js +3 -3
- package/resources/line-items.mjs +3 -3
- package/resources/paper-items.d.ts +6 -3
- package/resources/paper-items.d.ts.map +1 -1
- package/resources/paper-items.js +3 -3
- package/resources/paper-items.js.map +1 -1
- package/resources/paper-items.mjs +3 -3
- package/resources/paper-items.mjs.map +1 -1
- package/resources/payment-flows.d.ts +18 -42
- package/resources/payment-flows.d.ts.map +1 -1
- package/resources/payment-flows.js +22 -17
- package/resources/payment-flows.js.map +1 -1
- package/resources/payment-flows.mjs +22 -17
- package/resources/payment-flows.mjs.map +1 -1
- package/resources/payment-orders/payment-orders.d.ts +172 -191
- package/resources/payment-orders/payment-orders.d.ts.map +1 -1
- package/resources/payment-orders/payment-orders.js +21 -11
- package/resources/payment-orders/payment-orders.js.map +1 -1
- package/resources/payment-orders/payment-orders.mjs +21 -11
- package/resources/payment-orders/payment-orders.mjs.map +1 -1
- package/resources/payment-orders/reversals.d.ts +21 -22
- package/resources/payment-orders/reversals.d.ts.map +1 -1
- package/resources/payment-orders/reversals.js +10 -4
- package/resources/payment-orders/reversals.js.map +1 -1
- package/resources/payment-orders/reversals.mjs +10 -4
- package/resources/payment-orders/reversals.mjs.map +1 -1
- package/resources/payment-references.d.ts +3 -3
- package/resources/payment-references.d.ts.map +1 -1
- package/resources/payment-references.js +3 -3
- package/resources/payment-references.mjs +3 -3
- package/resources/returns.d.ts +16 -19
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +10 -4
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +10 -4
- package/resources/returns.mjs.map +1 -1
- package/resources/routing-details.d.ts +9 -15
- package/resources/routing-details.d.ts.map +1 -1
- package/resources/routing-details.js +10 -4
- package/resources/routing-details.js.map +1 -1
- package/resources/routing-details.mjs +10 -4
- package/resources/routing-details.mjs.map +1 -1
- package/resources/transactions/line-items.d.ts +5 -2
- package/resources/transactions/line-items.d.ts.map +1 -1
- package/resources/transactions/line-items.js +3 -3
- package/resources/transactions/line-items.js.map +1 -1
- package/resources/transactions/line-items.mjs +3 -3
- package/resources/transactions/line-items.mjs.map +1 -1
- package/resources/transactions/transactions.d.ts +8 -5
- package/resources/transactions/transactions.d.ts.map +1 -1
- package/resources/transactions/transactions.js +3 -3
- package/resources/transactions/transactions.js.map +1 -1
- package/resources/transactions/transactions.mjs +3 -3
- package/resources/transactions/transactions.mjs.map +1 -1
- package/resources/validations.d.ts +1 -1
- package/resources/validations.d.ts.map +1 -1
- package/resources/validations.js +1 -1
- package/resources/validations.mjs +1 -1
- package/resources/virtual-accounts.d.ts +19 -28
- package/resources/virtual-accounts.d.ts.map +1 -1
- package/resources/virtual-accounts.js +10 -4
- package/resources/virtual-accounts.js.map +1 -1
- package/resources/virtual-accounts.mjs +10 -4
- package/resources/virtual-accounts.mjs.map +1 -1
- package/resources/webhooks.js +2 -2
- package/resources/webhooks.mjs +2 -2
- package/src/_shims/ReadableStream-node.ts +6 -0
- package/src/_shims/ReadableStream.d.ts +38 -0
- package/src/_shims/ReadableStream.js +5 -0
- package/src/_shims/ReadableStream.mjs +7 -0
- package/src/_shims/agent.ts +1 -1
- package/src/_shims/{fetch.node.d.ts → fetch-node.d.ts} +20 -9
- package/src/_shims/fetch.d.ts +18 -10
- package/src/_shims/{fileFromPath.node.ts → fileFromPath-node.ts} +1 -1
- package/src/_shims/fileFromPath.ts +2 -2
- package/src/_shims/{formdata.node.d.ts → form-data-node.d.ts} +4 -4
- package/src/_shims/{formdata.d.ts → form-data.d.ts} +4 -4
- package/src/_shims/form-data.js +17 -0
- package/src/_shims/form-data.mjs +20 -0
- package/src/_shims/{getMultipartRequestOptions.node.ts → getMultipartRequestOptions-node.ts} +3 -3
- package/src/_shims/getMultipartRequestOptions.ts +3 -3
- package/src/core.ts +275 -97
- package/src/error.ts +1 -1
- package/src/index.ts +31 -18
- package/src/pagination.ts +6 -6
- package/src/resource.ts +1 -1
- package/src/resources/account-collection-flows.ts +29 -57
- package/src/resources/account-details.ts +22 -22
- package/src/resources/connections.ts +11 -8
- package/src/resources/counterparties.ts +61 -65
- package/src/resources/documents.ts +21 -30
- package/src/resources/events.ts +9 -9
- package/src/resources/expected-payments.ts +45 -49
- package/src/resources/external-accounts.ts +59 -78
- package/src/resources/incoming-payment-details.ts +38 -33
- package/src/resources/index.ts +39 -36
- package/src/resources/internal-accounts/balance-reports.ts +13 -10
- package/src/resources/internal-accounts/index.ts +2 -2
- package/src/resources/internal-accounts/internal-accounts.ts +35 -35
- package/src/resources/invoices/index.ts +2 -2
- package/src/resources/invoices/invoices.ts +91 -54
- package/src/resources/invoices/line-items.ts +46 -228
- package/src/resources/ledger-account-categories.ts +67 -111
- package/src/resources/ledger-account-payouts.ts +49 -30
- package/src/resources/ledger-account-statements.ts +21 -21
- package/src/resources/ledger-accounts.ts +46 -40
- package/src/resources/ledger-entries.ts +29 -13
- package/src/resources/ledger-event-handlers.ts +25 -35
- package/src/resources/ledger-transactions/index.ts +2 -2
- package/src/resources/ledger-transactions/ledger-transactions.ts +73 -53
- package/src/resources/ledger-transactions/versions.ts +10 -8
- package/src/resources/ledgerable-events.ts +23 -23
- package/src/resources/ledgers.ts +31 -29
- package/src/resources/line-items.ts +12 -12
- package/src/resources/paper-items.ts +13 -10
- package/src/resources/payment-flows.ts +39 -66
- package/src/resources/payment-orders/index.ts +2 -2
- package/src/resources/payment-orders/payment-orders.ts +204 -216
- package/src/resources/payment-orders/reversals.ts +36 -31
- package/src/resources/payment-references.ts +9 -9
- package/src/resources/returns.ts +30 -28
- package/src/resources/routing-details.ts +23 -24
- package/src/resources/top-level.ts +1 -1
- package/src/resources/transactions/index.ts +7 -2
- package/src/resources/transactions/line-items.ts +11 -8
- package/src/resources/transactions/transactions.ts +17 -14
- package/src/resources/validations.ts +4 -4
- package/src/resources/virtual-accounts.ts +35 -39
- package/src/resources/webhooks.ts +3 -3
- package/src/tsconfig.json +11 -0
- package/src/uploads.ts +6 -6
- package/src/version.ts +1 -1
- package/uploads.d.ts +1 -1
- package/uploads.d.ts.map +1 -1
- package/uploads.js +7 -7
- package/uploads.js.map +1 -1
- package/uploads.mjs +4 -4
- package/uploads.mjs.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
- package/_shims/agent.node.d.ts.map +0 -1
- package/_shims/formdata.js +0 -9
- package/_shims/formdata.mjs +0 -11
- package/_shims/getMultipartRequestOptions.node.d.ts.map +0 -1
- package/_shims/node-readable.node.js.map +0 -1
- package/_shims/node-readable.node.mjs.map +0 -1
- package/src/_shims/fetch.deno.ts +0 -23
- package/src/_shims/formdata.deno.ts +0 -16
- package/src/_shims/formdata.js +0 -9
- package/src/_shims/formdata.mjs +0 -11
- /package/_shims/{fetch.node.js → fetch-node.js} +0 -0
- /package/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
- /package/_shims/{formdata.node.d.ts → form-data-node.d.ts} +0 -0
- /package/_shims/{formdata.node.js → form-data-node.js} +0 -0
- /package/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
- /package/_shims/{formdata.d.ts → form-data.d.ts} +0 -0
- /package/src/_shims/{agent.node.ts → agent-node.ts} +0 -0
- /package/src/_shims/{fetch.node.js → fetch-node.js} +0 -0
- /package/src/_shims/{fetch.node.mjs → fetch-node.mjs} +0 -0
- /package/src/_shims/{formdata.node.js → form-data-node.js} +0 -0
- /package/src/_shims/{formdata.node.mjs → form-data-node.mjs} +0 -0
- /package/src/_shims/{node-readable.node.ts → node-readable-node.ts} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../core';
|
|
4
|
-
import { APIResource } from '../resource';
|
|
5
|
-
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as AccountDetails from './account-details';
|
|
7
|
-
import * as RoutingDetails from './routing-details';
|
|
8
|
-
import * as Shared from './shared';
|
|
9
|
-
import * as API from './index';
|
|
10
|
-
import { Page, PageParams } from '../pagination';
|
|
3
|
+
import * as Core from '../core.js';
|
|
4
|
+
import { APIResource } from '../resource.js';
|
|
5
|
+
import { isRequestOptions } from '../core.js';
|
|
6
|
+
import * as AccountDetails from './account-details.js';
|
|
7
|
+
import * as RoutingDetails from './routing-details.js';
|
|
8
|
+
import * as Shared from './shared.js';
|
|
9
|
+
import * as API from './index.js';
|
|
10
|
+
import { Page, PageParams } from '../pagination.js';
|
|
11
11
|
|
|
12
12
|
export class ExternalAccounts extends APIResource {
|
|
13
13
|
/**
|
|
@@ -16,19 +16,25 @@ export class ExternalAccounts extends APIResource {
|
|
|
16
16
|
create(
|
|
17
17
|
params: ExternalAccountCreateParams,
|
|
18
18
|
options?: Core.RequestOptions,
|
|
19
|
-
):
|
|
19
|
+
): Core.APIPromise<ExternalAccount> {
|
|
20
|
+
// @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
|
|
20
21
|
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
22
|
+
if (idempotencyKey) {
|
|
23
|
+
console.warn(
|
|
24
|
+
"The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
|
|
25
|
+
);
|
|
26
|
+
}
|
|
21
27
|
return this.post('/api/external_accounts', {
|
|
22
28
|
body,
|
|
23
29
|
...options,
|
|
24
|
-
headers: { 'Idempotency-Key': idempotencyKey
|
|
30
|
+
headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
|
|
25
31
|
});
|
|
26
32
|
}
|
|
27
33
|
|
|
28
34
|
/**
|
|
29
35
|
* show external account
|
|
30
36
|
*/
|
|
31
|
-
retrieve(id: string, options?: Core.RequestOptions):
|
|
37
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount> {
|
|
32
38
|
return this.get(`/api/external_accounts/${id}`, options);
|
|
33
39
|
}
|
|
34
40
|
|
|
@@ -39,13 +45,13 @@ export class ExternalAccounts extends APIResource {
|
|
|
39
45
|
id: string,
|
|
40
46
|
body?: ExternalAccountUpdateParams,
|
|
41
47
|
options?: Core.RequestOptions,
|
|
42
|
-
):
|
|
43
|
-
update(id: string, options?: Core.RequestOptions):
|
|
48
|
+
): Core.APIPromise<ExternalAccount>;
|
|
49
|
+
update(id: string, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount>;
|
|
44
50
|
update(
|
|
45
51
|
id: string,
|
|
46
52
|
body: ExternalAccountUpdateParams | Core.RequestOptions = {},
|
|
47
53
|
options?: Core.RequestOptions,
|
|
48
|
-
):
|
|
54
|
+
): Core.APIPromise<ExternalAccount> {
|
|
49
55
|
if (isRequestOptions(body)) {
|
|
50
56
|
return this.update(id, {}, body);
|
|
51
57
|
}
|
|
@@ -58,12 +64,12 @@ export class ExternalAccounts extends APIResource {
|
|
|
58
64
|
list(
|
|
59
65
|
query?: ExternalAccountListParams,
|
|
60
66
|
options?: Core.RequestOptions,
|
|
61
|
-
): Core.PagePromise<ExternalAccountsPage>;
|
|
62
|
-
list(options?: Core.RequestOptions): Core.PagePromise<ExternalAccountsPage>;
|
|
67
|
+
): Core.PagePromise<ExternalAccountsPage, ExternalAccount>;
|
|
68
|
+
list(options?: Core.RequestOptions): Core.PagePromise<ExternalAccountsPage, ExternalAccount>;
|
|
63
69
|
list(
|
|
64
70
|
query: ExternalAccountListParams | Core.RequestOptions = {},
|
|
65
71
|
options?: Core.RequestOptions,
|
|
66
|
-
): Core.PagePromise<ExternalAccountsPage> {
|
|
72
|
+
): Core.PagePromise<ExternalAccountsPage, ExternalAccount> {
|
|
67
73
|
if (isRequestOptions(query)) {
|
|
68
74
|
return this.list({}, query);
|
|
69
75
|
}
|
|
@@ -73,7 +79,7 @@ export class ExternalAccounts extends APIResource {
|
|
|
73
79
|
/**
|
|
74
80
|
* delete external account
|
|
75
81
|
*/
|
|
76
|
-
del(id: string, options?: Core.RequestOptions):
|
|
82
|
+
del(id: string, options?: Core.RequestOptions): Core.APIPromise<void> {
|
|
77
83
|
return this.delete(`/api/external_accounts/${id}`, {
|
|
78
84
|
...options,
|
|
79
85
|
headers: { Accept: '', ...options?.headers },
|
|
@@ -87,21 +93,27 @@ export class ExternalAccounts extends APIResource {
|
|
|
87
93
|
id: string,
|
|
88
94
|
params?: ExternalAccountCompleteVerificationParams,
|
|
89
95
|
options?: Core.RequestOptions,
|
|
90
|
-
):
|
|
91
|
-
completeVerification(id: string, options?: Core.RequestOptions):
|
|
96
|
+
): Core.APIPromise<ExternalAccount>;
|
|
97
|
+
completeVerification(id: string, options?: Core.RequestOptions): Core.APIPromise<ExternalAccount>;
|
|
92
98
|
completeVerification(
|
|
93
99
|
id: string,
|
|
94
100
|
params: ExternalAccountCompleteVerificationParams | Core.RequestOptions = {},
|
|
95
101
|
options?: Core.RequestOptions,
|
|
96
|
-
):
|
|
102
|
+
): Core.APIPromise<ExternalAccount> {
|
|
97
103
|
if (isRequestOptions(params)) {
|
|
98
104
|
return this.completeVerification(id, {}, params);
|
|
99
105
|
}
|
|
106
|
+
// @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
|
|
100
107
|
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
108
|
+
if (idempotencyKey) {
|
|
109
|
+
console.warn(
|
|
110
|
+
"The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
|
|
111
|
+
);
|
|
112
|
+
}
|
|
101
113
|
return this.post(`/api/external_accounts/${id}/complete_verification`, {
|
|
102
114
|
body,
|
|
103
115
|
...options,
|
|
104
|
-
headers: { 'Idempotency-Key': idempotencyKey
|
|
116
|
+
headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
|
|
105
117
|
});
|
|
106
118
|
}
|
|
107
119
|
|
|
@@ -112,12 +124,18 @@ export class ExternalAccounts extends APIResource {
|
|
|
112
124
|
id: string,
|
|
113
125
|
params: ExternalAccountVerifyParams,
|
|
114
126
|
options?: Core.RequestOptions,
|
|
115
|
-
):
|
|
127
|
+
): Core.APIPromise<ExternalAccount> {
|
|
128
|
+
// @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
|
|
116
129
|
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
130
|
+
if (idempotencyKey) {
|
|
131
|
+
console.warn(
|
|
132
|
+
"The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
|
|
133
|
+
);
|
|
134
|
+
}
|
|
117
135
|
return this.post(`/api/external_accounts/${id}/verify`, {
|
|
118
136
|
body,
|
|
119
137
|
...options,
|
|
120
|
-
headers: { 'Idempotency-Key': idempotencyKey
|
|
138
|
+
headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
|
|
121
139
|
});
|
|
122
140
|
}
|
|
123
141
|
}
|
|
@@ -272,84 +290,62 @@ export type ExternalAccountType =
|
|
|
272
290
|
| 'savings';
|
|
273
291
|
|
|
274
292
|
export interface ExternalAccountCreateParams {
|
|
275
|
-
/**
|
|
276
|
-
* Body param:
|
|
277
|
-
*/
|
|
278
293
|
counterparty_id: string | null;
|
|
279
294
|
|
|
280
|
-
/**
|
|
281
|
-
* Body param:
|
|
282
|
-
*/
|
|
283
295
|
account_details?: Array<ExternalAccountCreateParams.AccountDetail>;
|
|
284
296
|
|
|
285
297
|
/**
|
|
286
|
-
*
|
|
298
|
+
* Can be `checking`, `savings` or `other`.
|
|
287
299
|
*/
|
|
288
300
|
account_type?: ExternalAccountType;
|
|
289
301
|
|
|
290
|
-
/**
|
|
291
|
-
* Body param:
|
|
292
|
-
*/
|
|
293
302
|
contact_details?: Array<ExternalAccountCreateParams.ContactDetail>;
|
|
294
303
|
|
|
295
304
|
/**
|
|
296
|
-
*
|
|
297
|
-
*
|
|
298
|
-
*
|
|
305
|
+
* Specifies a ledger account object that will be created with the external
|
|
306
|
+
* account. The resulting ledger account is linked to the external account for
|
|
307
|
+
* auto-ledgering Payment objects. See
|
|
299
308
|
* https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
|
300
309
|
* for more details.
|
|
301
310
|
*/
|
|
302
311
|
ledger_account?: ExternalAccountCreateParams.LedgerAccount;
|
|
303
312
|
|
|
304
313
|
/**
|
|
305
|
-
*
|
|
306
|
-
*
|
|
314
|
+
* Additional data represented as key-value pairs. Both the key and value must be
|
|
315
|
+
* strings.
|
|
307
316
|
*/
|
|
308
317
|
metadata?: Record<string, string>;
|
|
309
318
|
|
|
310
319
|
/**
|
|
311
|
-
*
|
|
312
|
-
*
|
|
320
|
+
* A nickname for the external account. This is only for internal usage and won't
|
|
321
|
+
* affect any payments
|
|
313
322
|
*/
|
|
314
323
|
name?: string | null;
|
|
315
324
|
|
|
316
325
|
/**
|
|
317
|
-
*
|
|
326
|
+
* Required if receiving wire payments.
|
|
318
327
|
*/
|
|
319
328
|
party_address?: ExternalAccountCreateParams.PartyAddress;
|
|
320
329
|
|
|
321
|
-
/**
|
|
322
|
-
* Body param:
|
|
323
|
-
*/
|
|
324
330
|
party_identifier?: string;
|
|
325
331
|
|
|
326
332
|
/**
|
|
327
|
-
*
|
|
328
|
-
* counterparty's name.
|
|
333
|
+
* If this value isn't provided, it will be inherited from the counterparty's name.
|
|
329
334
|
*/
|
|
330
335
|
party_name?: string;
|
|
331
336
|
|
|
332
337
|
/**
|
|
333
|
-
*
|
|
338
|
+
* Either `individual` or `business`.
|
|
334
339
|
*/
|
|
335
340
|
party_type?: 'business' | 'individual' | null;
|
|
336
341
|
|
|
337
342
|
/**
|
|
338
|
-
*
|
|
339
|
-
*
|
|
343
|
+
* If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
|
344
|
+
* you can pass the processor token in this field.
|
|
340
345
|
*/
|
|
341
346
|
plaid_processor_token?: string;
|
|
342
347
|
|
|
343
|
-
/**
|
|
344
|
-
* Body param:
|
|
345
|
-
*/
|
|
346
348
|
routing_details?: Array<ExternalAccountCreateParams.RoutingDetail>;
|
|
347
|
-
|
|
348
|
-
/**
|
|
349
|
-
* Header param: This key should be something unique, preferably something like an
|
|
350
|
-
* UUID.
|
|
351
|
-
*/
|
|
352
|
-
'Idempotency-Key'?: string;
|
|
353
349
|
}
|
|
354
350
|
|
|
355
351
|
export namespace ExternalAccountCreateParams {
|
|
@@ -566,27 +562,18 @@ export interface ExternalAccountListParams extends PageParams {
|
|
|
566
562
|
}
|
|
567
563
|
|
|
568
564
|
export interface ExternalAccountCompleteVerificationParams {
|
|
569
|
-
/**
|
|
570
|
-
* Body param:
|
|
571
|
-
*/
|
|
572
565
|
amounts?: Array<number>;
|
|
573
|
-
|
|
574
|
-
/**
|
|
575
|
-
* Header param: This key should be something unique, preferably something like an
|
|
576
|
-
* UUID.
|
|
577
|
-
*/
|
|
578
|
-
'Idempotency-Key'?: string;
|
|
579
566
|
}
|
|
580
567
|
|
|
581
568
|
export interface ExternalAccountVerifyParams {
|
|
582
569
|
/**
|
|
583
|
-
*
|
|
584
|
-
*
|
|
570
|
+
* The ID of the internal account where the micro-deposits originate from. Both
|
|
571
|
+
* credit and debit capabilities must be enabled.
|
|
585
572
|
*/
|
|
586
573
|
originating_account_id: string;
|
|
587
574
|
|
|
588
575
|
/**
|
|
589
|
-
*
|
|
576
|
+
* Both ach and eft are supported payment types.
|
|
590
577
|
*/
|
|
591
578
|
payment_type:
|
|
592
579
|
| 'ach'
|
|
@@ -608,15 +595,9 @@ export interface ExternalAccountVerifyParams {
|
|
|
608
595
|
| 'wire';
|
|
609
596
|
|
|
610
597
|
/**
|
|
611
|
-
*
|
|
598
|
+
* Defaults to the currency of the originating account.
|
|
612
599
|
*/
|
|
613
600
|
currency?: Shared.Currency | null;
|
|
614
|
-
|
|
615
|
-
/**
|
|
616
|
-
* Header param: This key should be something unique, preferably something like an
|
|
617
|
-
* UUID.
|
|
618
|
-
*/
|
|
619
|
-
'Idempotency-Key'?: string;
|
|
620
601
|
}
|
|
621
602
|
|
|
622
603
|
export namespace ExternalAccounts {
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from '../core';
|
|
4
|
-
import { APIResource } from '../resource';
|
|
5
|
-
import { isRequestOptions } from '../core';
|
|
6
|
-
import * as VirtualAccounts from './virtual-accounts';
|
|
7
|
-
import * as Shared from './shared';
|
|
8
|
-
import * as API from './index';
|
|
9
|
-
import { Page, PageParams } from '../pagination';
|
|
3
|
+
import * as Core from '../core.js';
|
|
4
|
+
import { APIResource } from '../resource.js';
|
|
5
|
+
import { isRequestOptions } from '../core.js';
|
|
6
|
+
import * as VirtualAccounts from './virtual-accounts.js';
|
|
7
|
+
import * as Shared from './shared.js';
|
|
8
|
+
import * as API from './index.js';
|
|
9
|
+
import { Page, PageParams } from '../pagination.js';
|
|
10
10
|
|
|
11
11
|
export class IncomingPaymentDetails extends APIResource {
|
|
12
12
|
/**
|
|
13
13
|
* Get an existing Incoming Payment Detail.
|
|
14
14
|
*/
|
|
15
|
-
retrieve(id: string, options?: Core.RequestOptions):
|
|
15
|
+
retrieve(id: string, options?: Core.RequestOptions): Core.APIPromise<IncomingPaymentDetail> {
|
|
16
16
|
return this.get(`/api/incoming_payment_details/${id}`, options);
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -23,13 +23,13 @@ export class IncomingPaymentDetails extends APIResource {
|
|
|
23
23
|
id: string,
|
|
24
24
|
body?: IncomingPaymentDetailUpdateParams,
|
|
25
25
|
options?: Core.RequestOptions,
|
|
26
|
-
):
|
|
27
|
-
update(id: string, options?: Core.RequestOptions):
|
|
26
|
+
): Core.APIPromise<IncomingPaymentDetail>;
|
|
27
|
+
update(id: string, options?: Core.RequestOptions): Core.APIPromise<IncomingPaymentDetail>;
|
|
28
28
|
update(
|
|
29
29
|
id: string,
|
|
30
30
|
body: IncomingPaymentDetailUpdateParams | Core.RequestOptions = {},
|
|
31
31
|
options?: Core.RequestOptions,
|
|
32
|
-
):
|
|
32
|
+
): Core.APIPromise<IncomingPaymentDetail> {
|
|
33
33
|
if (isRequestOptions(body)) {
|
|
34
34
|
return this.update(id, {}, body);
|
|
35
35
|
}
|
|
@@ -42,12 +42,12 @@ export class IncomingPaymentDetails extends APIResource {
|
|
|
42
42
|
list(
|
|
43
43
|
query?: IncomingPaymentDetailListParams,
|
|
44
44
|
options?: Core.RequestOptions,
|
|
45
|
-
): Core.PagePromise<IncomingPaymentDetailsPage>;
|
|
46
|
-
list(options?: Core.RequestOptions): Core.PagePromise<IncomingPaymentDetailsPage>;
|
|
45
|
+
): Core.PagePromise<IncomingPaymentDetailsPage, IncomingPaymentDetail>;
|
|
46
|
+
list(options?: Core.RequestOptions): Core.PagePromise<IncomingPaymentDetailsPage, IncomingPaymentDetail>;
|
|
47
47
|
list(
|
|
48
48
|
query: IncomingPaymentDetailListParams | Core.RequestOptions = {},
|
|
49
49
|
options?: Core.RequestOptions,
|
|
50
|
-
): Core.PagePromise<IncomingPaymentDetailsPage> {
|
|
50
|
+
): Core.PagePromise<IncomingPaymentDetailsPage, IncomingPaymentDetail> {
|
|
51
51
|
if (isRequestOptions(query)) {
|
|
52
52
|
return this.list({}, query);
|
|
53
53
|
}
|
|
@@ -63,20 +63,26 @@ export class IncomingPaymentDetails extends APIResource {
|
|
|
63
63
|
createAsync(
|
|
64
64
|
params?: IncomingPaymentDetailCreateAsyncParams,
|
|
65
65
|
options?: Core.RequestOptions,
|
|
66
|
-
):
|
|
67
|
-
createAsync(options?: Core.RequestOptions):
|
|
66
|
+
): Core.APIPromise<Shared.AsyncResponse>;
|
|
67
|
+
createAsync(options?: Core.RequestOptions): Core.APIPromise<Shared.AsyncResponse>;
|
|
68
68
|
createAsync(
|
|
69
69
|
params: IncomingPaymentDetailCreateAsyncParams | Core.RequestOptions = {},
|
|
70
70
|
options?: Core.RequestOptions,
|
|
71
|
-
):
|
|
71
|
+
): Core.APIPromise<Shared.AsyncResponse> {
|
|
72
72
|
if (isRequestOptions(params)) {
|
|
73
73
|
return this.createAsync({}, params);
|
|
74
74
|
}
|
|
75
|
+
// @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
|
|
75
76
|
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
77
|
+
if (idempotencyKey) {
|
|
78
|
+
console.warn(
|
|
79
|
+
"The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
|
|
80
|
+
);
|
|
81
|
+
}
|
|
76
82
|
return this.post('/api/simulations/incoming_payment_details/create_async', {
|
|
77
83
|
body,
|
|
78
84
|
...options,
|
|
79
|
-
headers: { 'Idempotency-Key': idempotencyKey
|
|
85
|
+
headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
|
|
80
86
|
});
|
|
81
87
|
}
|
|
82
88
|
}
|
|
@@ -275,47 +281,46 @@ export interface IncomingPaymentDetailListParams extends PageParams {
|
|
|
275
281
|
|
|
276
282
|
export interface IncomingPaymentDetailCreateAsyncParams {
|
|
277
283
|
/**
|
|
278
|
-
*
|
|
279
|
-
*
|
|
284
|
+
* Value in specified currency's smallest unit. e.g. $10 would be represented
|
|
285
|
+
* as 1000.
|
|
280
286
|
*/
|
|
281
287
|
amount?: number;
|
|
282
288
|
|
|
283
289
|
/**
|
|
284
|
-
*
|
|
290
|
+
* Defaults to today.
|
|
285
291
|
*/
|
|
286
292
|
as_of_date?: string | null;
|
|
287
293
|
|
|
288
294
|
/**
|
|
289
|
-
*
|
|
295
|
+
* Defaults to the currency of the originating account.
|
|
290
296
|
*/
|
|
291
297
|
currency?: Shared.Currency | null;
|
|
292
298
|
|
|
293
299
|
/**
|
|
294
|
-
*
|
|
300
|
+
* Defaults to a random description.
|
|
301
|
+
*/
|
|
302
|
+
description?: string | null;
|
|
303
|
+
|
|
304
|
+
/**
|
|
305
|
+
* One of `credit`, `debit`.
|
|
295
306
|
*/
|
|
296
307
|
direction?: 'credit' | 'debit';
|
|
297
308
|
|
|
298
309
|
/**
|
|
299
|
-
*
|
|
310
|
+
* The ID of one of your internal accounts.
|
|
300
311
|
*/
|
|
301
312
|
internal_account_id?: string;
|
|
302
313
|
|
|
303
314
|
/**
|
|
304
|
-
*
|
|
315
|
+
* One of `ach`, `wire`, `check`.
|
|
305
316
|
*/
|
|
306
317
|
type?: 'ach' | 'book' | 'check' | 'eft' | 'interac' | 'rtp' | 'sepa' | 'signet' | 'wire';
|
|
307
318
|
|
|
308
319
|
/**
|
|
309
|
-
*
|
|
310
|
-
*
|
|
320
|
+
* An optional parameter to associate the incoming payment detail to a virtual
|
|
321
|
+
* account.
|
|
311
322
|
*/
|
|
312
323
|
virtual_account_id?: string | null;
|
|
313
|
-
|
|
314
|
-
/**
|
|
315
|
-
* Header param: This key should be something unique, preferably something like an
|
|
316
|
-
* UUID.
|
|
317
|
-
*/
|
|
318
|
-
'Idempotency-Key'?: string;
|
|
319
324
|
}
|
|
320
325
|
|
|
321
326
|
export namespace IncomingPaymentDetails {
|
package/src/resources/index.ts
CHANGED
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
export * from './shared';
|
|
3
|
+
export * from './shared.js';
|
|
4
4
|
export {
|
|
5
5
|
AccountCollectionFlow,
|
|
6
6
|
AccountCollectionFlowCreateParams,
|
|
7
|
-
AccountCollectionFlowRetrieveParams,
|
|
8
7
|
AccountCollectionFlowUpdateParams,
|
|
9
8
|
AccountCollectionFlowListParams,
|
|
10
9
|
AccountCollectionFlowsPage,
|
|
11
10
|
AccountCollectionFlows,
|
|
12
|
-
} from './account-collection-flows';
|
|
11
|
+
} from './account-collection-flows.js';
|
|
13
12
|
export {
|
|
14
13
|
AccountDetail,
|
|
15
14
|
AccountDetailCreateParams,
|
|
16
15
|
AccountDetailListParams,
|
|
17
16
|
AccountDetailsPage,
|
|
18
17
|
AccountDetails,
|
|
19
|
-
} from './account-details';
|
|
20
|
-
export { Connection, ConnectionListParams, ConnectionsPage, Connections } from './connections';
|
|
18
|
+
} from './account-details.js';
|
|
19
|
+
export { Connection, ConnectionListParams, ConnectionsPage, Connections } from './connections.js';
|
|
21
20
|
export {
|
|
22
21
|
Counterparty,
|
|
23
22
|
CounterpartyCollectAccountResponse,
|
|
@@ -27,9 +26,9 @@ export {
|
|
|
27
26
|
CounterpartyCollectAccountParams,
|
|
28
27
|
CounterpartiesPage,
|
|
29
28
|
Counterparties,
|
|
30
|
-
} from './counterparties';
|
|
31
|
-
export { Document, DocumentCreateParams, DocumentListParams, DocumentsPage, Documents } from './documents';
|
|
32
|
-
export { Event, EventListParams, EventsPage, Events } from './events';
|
|
29
|
+
} from './counterparties.js';
|
|
30
|
+
export { Document, DocumentCreateParams, DocumentListParams, DocumentsPage, Documents } from './documents.js';
|
|
31
|
+
export { Event, EventListParams, EventsPage, Events } from './events.js';
|
|
33
32
|
export {
|
|
34
33
|
ExpectedPayment,
|
|
35
34
|
ExpectedPaymentType,
|
|
@@ -38,7 +37,7 @@ export {
|
|
|
38
37
|
ExpectedPaymentListParams,
|
|
39
38
|
ExpectedPaymentsPage,
|
|
40
39
|
ExpectedPayments,
|
|
41
|
-
} from './expected-payments';
|
|
40
|
+
} from './expected-payments.js';
|
|
42
41
|
export {
|
|
43
42
|
ExternalAccount,
|
|
44
43
|
ExternalAccountType,
|
|
@@ -49,7 +48,7 @@ export {
|
|
|
49
48
|
ExternalAccountVerifyParams,
|
|
50
49
|
ExternalAccountsPage,
|
|
51
50
|
ExternalAccounts,
|
|
52
|
-
} from './external-accounts';
|
|
51
|
+
} from './external-accounts.js';
|
|
53
52
|
export {
|
|
54
53
|
IncomingPaymentDetail,
|
|
55
54
|
IncomingPaymentDetailUpdateParams,
|
|
@@ -57,7 +56,7 @@ export {
|
|
|
57
56
|
IncomingPaymentDetailCreateAsyncParams,
|
|
58
57
|
IncomingPaymentDetailsPage,
|
|
59
58
|
IncomingPaymentDetails,
|
|
60
|
-
} from './incoming-payment-details';
|
|
59
|
+
} from './incoming-payment-details.js';
|
|
61
60
|
export {
|
|
62
61
|
InternalAccount,
|
|
63
62
|
InternalAccountCreateParams,
|
|
@@ -65,7 +64,7 @@ export {
|
|
|
65
64
|
InternalAccountListParams,
|
|
66
65
|
InternalAccountsPage,
|
|
67
66
|
InternalAccounts,
|
|
68
|
-
} from './internal-accounts/internal-accounts';
|
|
67
|
+
} from './internal-accounts/internal-accounts.js';
|
|
69
68
|
export {
|
|
70
69
|
Invoice,
|
|
71
70
|
InvoiceCreateParams,
|
|
@@ -73,7 +72,7 @@ export {
|
|
|
73
72
|
InvoiceListParams,
|
|
74
73
|
InvoicesPage,
|
|
75
74
|
Invoices,
|
|
76
|
-
} from './invoices/invoices';
|
|
75
|
+
} from './invoices/invoices.js';
|
|
77
76
|
export {
|
|
78
77
|
Ledger,
|
|
79
78
|
LedgerCreateParams,
|
|
@@ -81,7 +80,7 @@ export {
|
|
|
81
80
|
LedgerListParams,
|
|
82
81
|
LedgersPage,
|
|
83
82
|
Ledgers,
|
|
84
|
-
} from './ledgers';
|
|
83
|
+
} from './ledgers.js';
|
|
85
84
|
export {
|
|
86
85
|
LedgerAccount,
|
|
87
86
|
LedgerAccountCreateParams,
|
|
@@ -90,17 +89,16 @@ export {
|
|
|
90
89
|
LedgerAccountListParams,
|
|
91
90
|
LedgerAccountsPage,
|
|
92
91
|
LedgerAccounts,
|
|
93
|
-
} from './ledger-accounts';
|
|
92
|
+
} from './ledger-accounts.js';
|
|
94
93
|
export {
|
|
95
94
|
LedgerAccountCategory,
|
|
96
95
|
LedgerAccountCategoryCreateParams,
|
|
97
96
|
LedgerAccountCategoryRetrieveParams,
|
|
98
97
|
LedgerAccountCategoryUpdateParams,
|
|
99
98
|
LedgerAccountCategoryListParams,
|
|
100
|
-
LedgerAccountCategoryDeleteParams,
|
|
101
99
|
LedgerAccountCategoriesPage,
|
|
102
100
|
LedgerAccountCategories,
|
|
103
|
-
} from './ledger-account-categories';
|
|
101
|
+
} from './ledger-account-categories.js';
|
|
104
102
|
export {
|
|
105
103
|
LedgerAccountPayout,
|
|
106
104
|
LedgerAccountPayoutCreateParams,
|
|
@@ -108,20 +106,20 @@ export {
|
|
|
108
106
|
LedgerAccountPayoutListParams,
|
|
109
107
|
LedgerAccountPayoutsPage,
|
|
110
108
|
LedgerAccountPayouts,
|
|
111
|
-
} from './ledger-account-payouts';
|
|
109
|
+
} from './ledger-account-payouts.js';
|
|
112
110
|
export {
|
|
113
111
|
LedgerAccountStatementCreateResponse,
|
|
114
112
|
LedgerAccountStatementRetrieveResponse,
|
|
115
113
|
LedgerAccountStatementCreateParams,
|
|
116
114
|
LedgerAccountStatements,
|
|
117
|
-
} from './ledger-account-statements';
|
|
115
|
+
} from './ledger-account-statements.js';
|
|
118
116
|
export {
|
|
119
117
|
LedgerEntry,
|
|
120
118
|
LedgerEntryRetrieveParams,
|
|
121
119
|
LedgerEntryListParams,
|
|
122
120
|
LedgerEntriesPage,
|
|
123
121
|
LedgerEntries,
|
|
124
|
-
} from './ledger-entries';
|
|
122
|
+
} from './ledger-entries.js';
|
|
125
123
|
export {
|
|
126
124
|
LedgerEventHandlerCreateResponse,
|
|
127
125
|
LedgerEventHandlerRetrieveResponse,
|
|
@@ -131,7 +129,7 @@ export {
|
|
|
131
129
|
LedgerEventHandlerListParams,
|
|
132
130
|
LedgerEventHandlerListResponsesPage,
|
|
133
131
|
LedgerEventHandlers,
|
|
134
|
-
} from './ledger-event-handlers';
|
|
132
|
+
} from './ledger-event-handlers.js';
|
|
135
133
|
export {
|
|
136
134
|
LedgerTransaction,
|
|
137
135
|
LedgerTransactionCreateParams,
|
|
@@ -140,19 +138,24 @@ export {
|
|
|
140
138
|
LedgerTransactionCreateReversalParams,
|
|
141
139
|
LedgerTransactionsPage,
|
|
142
140
|
LedgerTransactions,
|
|
143
|
-
} from './ledger-transactions/ledger-transactions';
|
|
144
|
-
export { LedgerableEvent, LedgerableEventCreateParams, LedgerableEvents } from './ledgerable-events';
|
|
145
|
-
export {
|
|
146
|
-
|
|
141
|
+
} from './ledger-transactions/ledger-transactions.js';
|
|
142
|
+
export { LedgerableEvent, LedgerableEventCreateParams, LedgerableEvents } from './ledgerable-events.js';
|
|
143
|
+
export {
|
|
144
|
+
LineItem,
|
|
145
|
+
LineItemUpdateParams,
|
|
146
|
+
LineItemListParams,
|
|
147
|
+
LineItemsPage,
|
|
148
|
+
LineItems,
|
|
149
|
+
} from './line-items.js';
|
|
150
|
+
export { PaperItem, PaperItemListParams, PaperItemsPage, PaperItems } from './paper-items.js';
|
|
147
151
|
export {
|
|
148
152
|
PaymentFlow,
|
|
149
153
|
PaymentFlowCreateParams,
|
|
150
|
-
PaymentFlowRetrieveParams,
|
|
151
154
|
PaymentFlowUpdateParams,
|
|
152
155
|
PaymentFlowListParams,
|
|
153
156
|
PaymentFlowsPage,
|
|
154
157
|
PaymentFlows,
|
|
155
|
-
} from './payment-flows';
|
|
158
|
+
} from './payment-flows.js';
|
|
156
159
|
export {
|
|
157
160
|
PaymentOrder,
|
|
158
161
|
PaymentOrderSubtype,
|
|
@@ -163,34 +166,34 @@ export {
|
|
|
163
166
|
PaymentOrderCreateAsyncParams,
|
|
164
167
|
PaymentOrdersPage,
|
|
165
168
|
PaymentOrders,
|
|
166
|
-
} from './payment-orders/payment-orders';
|
|
169
|
+
} from './payment-orders/payment-orders.js';
|
|
167
170
|
export {
|
|
168
171
|
PaymentReference,
|
|
169
172
|
PaymentReferenceListParams,
|
|
170
173
|
PaymentReferencesPage,
|
|
171
174
|
PaymentReferences,
|
|
172
|
-
} from './payment-references';
|
|
173
|
-
export { PingResponse } from './top-level';
|
|
174
|
-
export { ReturnObject, ReturnCreateParams, ReturnListParams, ReturnObjectsPage, Returns } from './returns';
|
|
175
|
+
} from './payment-references.js';
|
|
176
|
+
export { PingResponse } from './top-level.js';
|
|
177
|
+
export { ReturnObject, ReturnCreateParams, ReturnListParams, ReturnObjectsPage, Returns } from './returns.js';
|
|
175
178
|
export {
|
|
176
179
|
RoutingDetail,
|
|
177
180
|
RoutingDetailCreateParams,
|
|
178
181
|
RoutingDetailListParams,
|
|
179
182
|
RoutingDetailsPage,
|
|
180
183
|
RoutingDetails,
|
|
181
|
-
} from './routing-details';
|
|
184
|
+
} from './routing-details.js';
|
|
182
185
|
export {
|
|
183
186
|
RoutingNumberLookupRequest,
|
|
184
187
|
ValidationValidateRoutingNumberParams,
|
|
185
188
|
Validations,
|
|
186
|
-
} from './validations';
|
|
189
|
+
} from './validations.js';
|
|
187
190
|
export {
|
|
188
191
|
Transaction,
|
|
189
192
|
TransactionUpdateParams,
|
|
190
193
|
TransactionListParams,
|
|
191
194
|
TransactionsPage,
|
|
192
195
|
Transactions,
|
|
193
|
-
} from './transactions/transactions';
|
|
196
|
+
} from './transactions/transactions.js';
|
|
194
197
|
export {
|
|
195
198
|
VirtualAccount,
|
|
196
199
|
VirtualAccountCreateParams,
|
|
@@ -198,5 +201,5 @@ export {
|
|
|
198
201
|
VirtualAccountListParams,
|
|
199
202
|
VirtualAccountsPage,
|
|
200
203
|
VirtualAccounts,
|
|
201
|
-
} from './virtual-accounts';
|
|
202
|
-
export { Webhooks } from './webhooks';
|
|
204
|
+
} from './virtual-accounts.js';
|
|
205
|
+
export { Webhooks } from './webhooks.js';
|