modern-treasury 2.7.2 → 2.9.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 +57 -0
- package/README.md +5 -8
- package/_shims/auto/types.d.ts +3 -1
- package/_shims/index.d.ts +2 -0
- package/_shims/node-runtime.d.ts.map +1 -1
- package/_shims/node-runtime.js +3 -0
- package/_shims/node-runtime.js.map +1 -1
- package/_shims/node-runtime.mjs +2 -0
- package/_shims/node-runtime.mjs.map +1 -1
- package/_shims/node-types.d.ts +1 -1
- package/_shims/registry.d.ts +2 -0
- package/_shims/registry.d.ts.map +1 -1
- package/_shims/registry.js +3 -1
- package/_shims/registry.js.map +1 -1
- package/_shims/registry.mjs +2 -0
- package/_shims/registry.mjs.map +1 -1
- package/_shims/web-runtime.d.ts.map +1 -1
- package/_shims/web-runtime.js +8 -0
- package/_shims/web-runtime.js.map +1 -1
- package/_shims/web-runtime.mjs +8 -0
- package/_shims/web-runtime.mjs.map +1 -1
- package/_shims/web-types.d.ts +2 -1
- package/core.d.ts +1 -1
- package/core.d.ts.map +1 -1
- package/core.js +38 -23
- package/core.js.map +1 -1
- package/core.mjs +36 -21
- package/core.mjs.map +1 -1
- package/error.d.ts.map +1 -1
- package/error.js +14 -4
- package/error.js.map +1 -1
- package/error.mjs +14 -4
- package/error.mjs.map +1 -1
- package/index.d.mts +20 -14
- package/index.d.ts +20 -14
- package/index.d.ts.map +1 -1
- package/index.js +6 -6
- package/index.js.map +1 -1
- package/index.mjs +6 -6
- package/index.mjs.map +1 -1
- package/package.json +3 -2
- package/resources/account-collection-flows.d.ts +9 -11
- package/resources/account-collection-flows.d.ts.map +1 -1
- package/resources/account-collection-flows.js +25 -0
- package/resources/account-collection-flows.js.map +1 -1
- package/resources/account-collection-flows.mjs +2 -0
- package/resources/account-collection-flows.mjs.map +1 -1
- package/resources/account-details.d.ts +6 -8
- package/resources/account-details.d.ts.map +1 -1
- package/resources/account-details.js +25 -0
- package/resources/account-details.js.map +1 -1
- package/resources/account-details.mjs +2 -0
- package/resources/account-details.mjs.map +1 -1
- package/resources/connections.d.ts +5 -7
- package/resources/connections.d.ts.map +1 -1
- package/resources/connections.js +25 -0
- package/resources/connections.js.map +1 -1
- package/resources/connections.mjs +2 -0
- package/resources/connections.mjs.map +1 -1
- package/resources/counterparties.d.ts +22 -23
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/counterparties.js +25 -0
- package/resources/counterparties.js.map +1 -1
- package/resources/counterparties.mjs +2 -0
- package/resources/counterparties.mjs.map +1 -1
- package/resources/documents.d.ts +9 -11
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +25 -0
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +2 -0
- package/resources/documents.mjs.map +1 -1
- package/resources/events.d.ts +5 -7
- package/resources/events.d.ts.map +1 -1
- package/resources/events.js +25 -0
- package/resources/events.js.map +1 -1
- package/resources/events.mjs +2 -0
- package/resources/events.mjs.map +1 -1
- package/resources/expected-payments.d.ts +26 -16
- package/resources/expected-payments.d.ts.map +1 -1
- package/resources/expected-payments.js +25 -0
- package/resources/expected-payments.js.map +1 -1
- package/resources/expected-payments.mjs +2 -0
- package/resources/expected-payments.mjs.map +1 -1
- package/resources/external-accounts.d.ts +18 -20
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/external-accounts.js +25 -0
- package/resources/external-accounts.js.map +1 -1
- package/resources/external-accounts.mjs +2 -0
- package/resources/external-accounts.mjs.map +1 -1
- package/resources/incoming-payment-details.d.ts +12 -14
- package/resources/incoming-payment-details.d.ts.map +1 -1
- package/resources/incoming-payment-details.js +25 -0
- package/resources/incoming-payment-details.js.map +1 -1
- package/resources/incoming-payment-details.mjs +2 -0
- package/resources/incoming-payment-details.mjs.map +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +2 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/internal-accounts/balance-reports.d.ts +5 -7
- package/resources/internal-accounts/balance-reports.d.ts.map +1 -1
- package/resources/internal-accounts/balance-reports.js +25 -0
- package/resources/internal-accounts/balance-reports.js.map +1 -1
- package/resources/internal-accounts/balance-reports.mjs +2 -0
- package/resources/internal-accounts/balance-reports.mjs.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.ts +25 -23
- package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
- package/resources/internal-accounts/internal-accounts.js +6 -5
- package/resources/internal-accounts/internal-accounts.js.map +1 -1
- package/resources/internal-accounts/internal-accounts.mjs +6 -5
- package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
- package/resources/invoices/invoices.d.ts +39 -26
- package/resources/invoices/invoices.d.ts.map +1 -1
- package/resources/invoices/invoices.js +6 -5
- package/resources/invoices/invoices.js.map +1 -1
- package/resources/invoices/invoices.mjs +6 -5
- package/resources/invoices/invoices.mjs.map +1 -1
- package/resources/invoices/line-items.d.ts +7 -9
- package/resources/invoices/line-items.d.ts.map +1 -1
- package/resources/invoices/line-items.js +25 -0
- package/resources/invoices/line-items.js.map +1 -1
- package/resources/invoices/line-items.mjs +2 -0
- package/resources/invoices/line-items.mjs.map +1 -1
- package/resources/ledger-account-balance-monitors.d.ts +7 -9
- package/resources/ledger-account-balance-monitors.d.ts.map +1 -1
- package/resources/ledger-account-balance-monitors.js +25 -0
- package/resources/ledger-account-balance-monitors.js.map +1 -1
- package/resources/ledger-account-balance-monitors.mjs +2 -0
- package/resources/ledger-account-balance-monitors.mjs.map +1 -1
- package/resources/ledger-account-categories.d.ts +11 -12
- package/resources/ledger-account-categories.d.ts.map +1 -1
- package/resources/ledger-account-categories.js +25 -0
- package/resources/ledger-account-categories.js.map +1 -1
- package/resources/ledger-account-categories.mjs +2 -0
- package/resources/ledger-account-categories.mjs.map +1 -1
- package/resources/ledger-account-payouts.d.ts +17 -9
- package/resources/ledger-account-payouts.d.ts.map +1 -1
- package/resources/ledger-account-payouts.js +25 -0
- package/resources/ledger-account-payouts.js.map +1 -1
- package/resources/ledger-account-payouts.mjs +2 -0
- package/resources/ledger-account-payouts.mjs.map +1 -1
- package/resources/ledger-account-statements.d.ts +7 -6
- package/resources/ledger-account-statements.d.ts.map +1 -1
- package/resources/ledger-account-statements.js.map +1 -1
- package/resources/ledger-account-statements.mjs.map +1 -1
- package/resources/ledger-accounts.d.ts +11 -12
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-accounts.js +25 -0
- package/resources/ledger-accounts.js.map +1 -1
- package/resources/ledger-accounts.mjs +2 -0
- package/resources/ledger-accounts.mjs.map +1 -1
- package/resources/ledger-entries.d.ts +9 -10
- package/resources/ledger-entries.d.ts.map +1 -1
- package/resources/ledger-entries.js +25 -0
- package/resources/ledger-entries.js.map +1 -1
- package/resources/ledger-entries.mjs +2 -0
- package/resources/ledger-entries.mjs.map +1 -1
- package/resources/ledger-event-handlers.d.ts +47 -270
- package/resources/ledger-event-handlers.d.ts.map +1 -1
- package/resources/ledger-event-handlers.js +29 -7
- package/resources/ledger-event-handlers.js.map +1 -1
- package/resources/ledger-event-handlers.mjs +4 -5
- package/resources/ledger-event-handlers.mjs.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.ts +19 -20
- package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.js +6 -5
- package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.mjs +6 -5
- package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
- package/resources/ledger-transactions/versions.d.ts +7 -8
- package/resources/ledger-transactions/versions.d.ts.map +1 -1
- package/resources/ledger-transactions/versions.js +25 -0
- package/resources/ledger-transactions/versions.js.map +1 -1
- package/resources/ledger-transactions/versions.mjs +2 -0
- package/resources/ledger-transactions/versions.mjs.map +1 -1
- package/resources/ledgerable-events.d.ts +4 -41
- package/resources/ledgerable-events.d.ts.map +1 -1
- package/resources/ledgerable-events.js +1 -2
- package/resources/ledgerable-events.js.map +1 -1
- package/resources/ledgerable-events.mjs +1 -2
- package/resources/ledgerable-events.mjs.map +1 -1
- package/resources/ledgers.d.ts +7 -9
- package/resources/ledgers.d.ts.map +1 -1
- package/resources/ledgers.js +25 -0
- package/resources/ledgers.js.map +1 -1
- package/resources/ledgers.mjs +2 -0
- package/resources/ledgers.mjs.map +1 -1
- package/resources/line-items.d.ts +6 -8
- package/resources/line-items.d.ts.map +1 -1
- package/resources/line-items.js +25 -0
- package/resources/line-items.js.map +1 -1
- package/resources/line-items.mjs +2 -0
- package/resources/line-items.mjs.map +1 -1
- package/resources/paper-items.d.ts +5 -7
- package/resources/paper-items.d.ts.map +1 -1
- package/resources/paper-items.js +25 -0
- package/resources/paper-items.js.map +1 -1
- package/resources/paper-items.mjs +2 -0
- package/resources/paper-items.mjs.map +1 -1
- package/resources/payment-flows.d.ts +7 -9
- package/resources/payment-flows.d.ts.map +1 -1
- package/resources/payment-flows.js +25 -0
- package/resources/payment-flows.js.map +1 -1
- package/resources/payment-flows.mjs +2 -0
- package/resources/payment-flows.mjs.map +1 -1
- package/resources/payment-orders/payment-orders.d.ts +75 -50
- package/resources/payment-orders/payment-orders.d.ts.map +1 -1
- package/resources/payment-orders/payment-orders.js +6 -5
- package/resources/payment-orders/payment-orders.js.map +1 -1
- package/resources/payment-orders/payment-orders.mjs +6 -5
- package/resources/payment-orders/payment-orders.mjs.map +1 -1
- package/resources/payment-orders/reversals.d.ts +8 -9
- package/resources/payment-orders/reversals.d.ts.map +1 -1
- package/resources/payment-orders/reversals.js +25 -0
- package/resources/payment-orders/reversals.js.map +1 -1
- package/resources/payment-orders/reversals.mjs +2 -0
- package/resources/payment-orders/reversals.mjs.map +1 -1
- package/resources/payment-references.d.ts +5 -7
- package/resources/payment-references.d.ts.map +1 -1
- package/resources/payment-references.js +25 -0
- package/resources/payment-references.js.map +1 -1
- package/resources/payment-references.mjs +2 -0
- package/resources/payment-references.mjs.map +1 -1
- package/resources/returns.d.ts +11 -13
- package/resources/returns.d.ts.map +1 -1
- package/resources/returns.js +25 -0
- package/resources/returns.js.map +1 -1
- package/resources/returns.mjs +2 -0
- package/resources/returns.mjs.map +1 -1
- package/resources/routing-details.d.ts +16 -14
- package/resources/routing-details.d.ts.map +1 -1
- package/resources/routing-details.js +25 -0
- package/resources/routing-details.js.map +1 -1
- package/resources/routing-details.mjs +2 -0
- package/resources/routing-details.mjs.map +1 -1
- package/resources/shared.d.ts +1 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/top-level.d.ts +2 -2
- package/resources/top-level.d.ts.map +1 -1
- package/resources/transactions/line-items.d.ts +10 -7
- package/resources/transactions/line-items.d.ts.map +1 -1
- package/resources/transactions/line-items.js +25 -0
- package/resources/transactions/line-items.js.map +1 -1
- package/resources/transactions/line-items.mjs +2 -0
- package/resources/transactions/line-items.mjs.map +1 -1
- package/resources/transactions/transactions.d.ts +28 -30
- package/resources/transactions/transactions.d.ts.map +1 -1
- package/resources/transactions/transactions.js +6 -5
- package/resources/transactions/transactions.js.map +1 -1
- package/resources/transactions/transactions.mjs +6 -5
- package/resources/transactions/transactions.mjs.map +1 -1
- package/resources/validations.d.ts +14 -14
- package/resources/validations.d.ts.map +1 -1
- package/resources/validations.js.map +1 -1
- package/resources/validations.mjs.map +1 -1
- package/resources/virtual-accounts.d.ts +16 -16
- package/resources/virtual-accounts.d.ts.map +1 -1
- package/resources/virtual-accounts.js +25 -0
- package/resources/virtual-accounts.js.map +1 -1
- package/resources/virtual-accounts.mjs +2 -0
- package/resources/virtual-accounts.mjs.map +1 -1
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js +2 -2
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs +3 -3
- package/resources/webhooks.mjs.map +1 -1
- package/shims/node.d.ts +1 -1
- package/shims/node.d.ts.map +1 -1
- package/shims/web.d.ts +1 -1
- package/shims/web.d.ts.map +1 -1
- package/src/_shims/auto/types.d.ts +3 -1
- package/src/_shims/index.d.ts +3 -1
- package/src/_shims/index.mjs +1 -1
- package/src/_shims/node-runtime.ts +4 -0
- package/src/_shims/node-types.d.ts +1 -1
- package/src/_shims/registry.ts +3 -0
- package/src/_shims/web-runtime.ts +12 -0
- package/src/_shims/web-types.d.ts +2 -1
- package/src/core.ts +39 -21
- package/src/error.ts +15 -5
- package/src/index.ts +23 -17
- package/src/resources/account-collection-flows.ts +12 -12
- package/src/resources/account-details.ts +10 -12
- package/src/resources/connections.ts +8 -10
- package/src/resources/counterparties.ts +32 -26
- package/src/resources/documents.ts +13 -12
- package/src/resources/events.ts +8 -10
- package/src/resources/expected-payments.ts +37 -18
- package/src/resources/external-accounts.ts +30 -24
- package/src/resources/incoming-payment-details.ts +17 -17
- package/src/resources/index.ts +3 -5
- package/src/resources/internal-accounts/balance-reports.ts +9 -11
- package/src/resources/internal-accounts/internal-accounts.ts +32 -27
- package/src/resources/invoices/invoices.ts +56 -35
- package/src/resources/invoices/line-items.ts +10 -12
- package/src/resources/ledger-account-balance-monitors.ts +10 -12
- package/src/resources/ledger-account-categories.ts +14 -15
- package/src/resources/ledger-account-payouts.ts +23 -12
- package/src/resources/ledger-account-statements.ts +9 -8
- package/src/resources/ledger-accounts.ts +14 -15
- package/src/resources/ledger-entries.ts +12 -13
- package/src/resources/ledger-event-handlers.ts +53 -336
- package/src/resources/ledger-transactions/ledger-transactions.ts +22 -24
- package/src/resources/ledger-transactions/versions.ts +10 -11
- package/src/resources/ledgerable-events.ts +6 -51
- package/src/resources/ledgers.ts +10 -12
- package/src/resources/line-items.ts +9 -11
- package/src/resources/paper-items.ts +9 -11
- package/src/resources/payment-flows.ts +10 -12
- package/src/resources/payment-orders/payment-orders.ts +110 -56
- package/src/resources/payment-orders/reversals.ts +11 -12
- package/src/resources/payment-references.ts +8 -10
- package/src/resources/returns.ts +16 -18
- package/src/resources/routing-details.ts +26 -14
- package/src/resources/shared.ts +2 -0
- package/src/resources/top-level.ts +2 -2
- package/src/resources/transactions/line-items.ts +14 -10
- package/src/resources/transactions/transactions.ts +35 -35
- package/src/resources/validations.ts +19 -13
- package/src/resources/virtual-accounts.ts +22 -17
- package/src/resources/webhooks.ts +6 -5
- package/src/shims/node.ts +1 -1
- package/src/shims/web.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIResource } from "../
|
|
5
|
-
import { isRequestOptions } from "../
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as LedgerAccountCategoriesAPI from "./ledger-account-categories";
|
|
7
|
+
import * as Shared from "./shared";
|
|
8
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
9
|
|
|
9
10
|
export class LedgerAccountCategories extends APIResource {
|
|
10
11
|
/**
|
|
@@ -150,8 +151,6 @@ export class LedgerAccountCategories extends APIResource {
|
|
|
150
151
|
}
|
|
151
152
|
|
|
152
153
|
export class LedgerAccountCategoriesPage extends Page<LedgerAccountCategory> {}
|
|
153
|
-
// alias so we can export it in the namespace
|
|
154
|
-
type _LedgerAccountCategoriesPage = LedgerAccountCategoriesPage;
|
|
155
154
|
|
|
156
155
|
export interface LedgerAccountCategory {
|
|
157
156
|
id: string;
|
|
@@ -199,7 +198,7 @@ export interface LedgerAccountCategory {
|
|
|
199
198
|
/**
|
|
200
199
|
* The normal balance of the ledger account category.
|
|
201
200
|
*/
|
|
202
|
-
normal_balance:
|
|
201
|
+
normal_balance: Shared.TransactionDirection;
|
|
203
202
|
|
|
204
203
|
object: string;
|
|
205
204
|
|
|
@@ -322,7 +321,7 @@ export interface LedgerAccountCategoryCreateParams {
|
|
|
322
321
|
/**
|
|
323
322
|
* The normal balance of the ledger account category.
|
|
324
323
|
*/
|
|
325
|
-
normal_balance:
|
|
324
|
+
normal_balance: Shared.TransactionDirection;
|
|
326
325
|
|
|
327
326
|
/**
|
|
328
327
|
* The currency exponent of the ledger account category.
|
|
@@ -430,10 +429,10 @@ export namespace LedgerAccountCategoryListParams {
|
|
|
430
429
|
}
|
|
431
430
|
|
|
432
431
|
export namespace LedgerAccountCategories {
|
|
433
|
-
export import LedgerAccountCategory =
|
|
434
|
-
export
|
|
435
|
-
export import LedgerAccountCategoryCreateParams =
|
|
436
|
-
export import LedgerAccountCategoryRetrieveParams =
|
|
437
|
-
export import LedgerAccountCategoryUpdateParams =
|
|
438
|
-
export import LedgerAccountCategoryListParams =
|
|
432
|
+
export import LedgerAccountCategory = LedgerAccountCategoriesAPI.LedgerAccountCategory;
|
|
433
|
+
export import LedgerAccountCategoriesPage = LedgerAccountCategoriesAPI.LedgerAccountCategoriesPage;
|
|
434
|
+
export import LedgerAccountCategoryCreateParams = LedgerAccountCategoriesAPI.LedgerAccountCategoryCreateParams;
|
|
435
|
+
export import LedgerAccountCategoryRetrieveParams = LedgerAccountCategoriesAPI.LedgerAccountCategoryRetrieveParams;
|
|
436
|
+
export import LedgerAccountCategoryUpdateParams = LedgerAccountCategoriesAPI.LedgerAccountCategoryUpdateParams;
|
|
437
|
+
export import LedgerAccountCategoryListParams = LedgerAccountCategoriesAPI.LedgerAccountCategoryListParams;
|
|
439
438
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIResource } from "../
|
|
5
|
-
import { isRequestOptions } from "../
|
|
6
|
-
import * as
|
|
7
|
-
import { Page, PageParams } from "../
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as LedgerAccountPayoutsAPI from "./ledger-account-payouts";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
9
|
export class LedgerAccountPayouts extends APIResource {
|
|
10
10
|
/**
|
|
@@ -80,8 +80,6 @@ export class LedgerAccountPayouts extends APIResource {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export class LedgerAccountPayoutsPage extends Page<LedgerAccountPayout> {}
|
|
83
|
-
// alias so we can export it in the namespace
|
|
84
|
-
type _LedgerAccountPayoutsPage = LedgerAccountPayoutsPage;
|
|
85
83
|
|
|
86
84
|
export interface LedgerAccountPayout {
|
|
87
85
|
id: string;
|
|
@@ -145,6 +143,11 @@ export interface LedgerAccountPayout {
|
|
|
145
143
|
|
|
146
144
|
object: string;
|
|
147
145
|
|
|
146
|
+
/**
|
|
147
|
+
* The direction of the ledger entry with the payout_ledger_account.
|
|
148
|
+
*/
|
|
149
|
+
payout_entry_direction: string | null;
|
|
150
|
+
|
|
148
151
|
/**
|
|
149
152
|
* The id of the payout ledger account whose ledger entries are queried against,
|
|
150
153
|
* and its balance is reduced as a result.
|
|
@@ -173,6 +176,12 @@ export interface LedgerAccountPayoutCreateParams {
|
|
|
173
176
|
*/
|
|
174
177
|
payout_ledger_account_id: string;
|
|
175
178
|
|
|
179
|
+
/**
|
|
180
|
+
* If true, the payout amount and payout_entry_direction will bring the payout
|
|
181
|
+
* ledger account's balance closer to zero, even if the balance is negative.
|
|
182
|
+
*/
|
|
183
|
+
allow_either_direction?: boolean | null;
|
|
184
|
+
|
|
176
185
|
/**
|
|
177
186
|
* The description of the ledger account payout.
|
|
178
187
|
*/
|
|
@@ -237,13 +246,15 @@ export interface LedgerAccountPayoutListParams extends PageParams {
|
|
|
237
246
|
*/
|
|
238
247
|
metadata?: Record<string, string>;
|
|
239
248
|
|
|
249
|
+
payout_entry_direction?: string;
|
|
250
|
+
|
|
240
251
|
payout_ledger_account_id?: string;
|
|
241
252
|
}
|
|
242
253
|
|
|
243
254
|
export namespace LedgerAccountPayouts {
|
|
244
|
-
export import LedgerAccountPayout =
|
|
245
|
-
export
|
|
246
|
-
export import LedgerAccountPayoutCreateParams =
|
|
247
|
-
export import LedgerAccountPayoutUpdateParams =
|
|
248
|
-
export import LedgerAccountPayoutListParams =
|
|
255
|
+
export import LedgerAccountPayout = LedgerAccountPayoutsAPI.LedgerAccountPayout;
|
|
256
|
+
export import LedgerAccountPayoutsPage = LedgerAccountPayoutsAPI.LedgerAccountPayoutsPage;
|
|
257
|
+
export import LedgerAccountPayoutCreateParams = LedgerAccountPayoutsAPI.LedgerAccountPayoutCreateParams;
|
|
258
|
+
export import LedgerAccountPayoutUpdateParams = LedgerAccountPayoutsAPI.LedgerAccountPayoutUpdateParams;
|
|
259
|
+
export import LedgerAccountPayoutListParams = LedgerAccountPayoutsAPI.LedgerAccountPayoutListParams;
|
|
249
260
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIResource } from "../
|
|
5
|
-
import * as
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import * as LedgerAccountStatementsAPI from "./ledger-account-statements";
|
|
6
|
+
import * as Shared from "./shared";
|
|
6
7
|
|
|
7
8
|
export class LedgerAccountStatements extends APIResource {
|
|
8
9
|
/**
|
|
@@ -82,7 +83,7 @@ export interface LedgerAccountStatementCreateResponse {
|
|
|
82
83
|
/**
|
|
83
84
|
* The normal balance of the ledger account.
|
|
84
85
|
*/
|
|
85
|
-
ledger_account_normal_balance:
|
|
86
|
+
ledger_account_normal_balance: Shared.TransactionDirection;
|
|
86
87
|
|
|
87
88
|
/**
|
|
88
89
|
* The id of the ledger that this ledger account statement belongs to.
|
|
@@ -352,7 +353,7 @@ export interface LedgerAccountStatementRetrieveResponse {
|
|
|
352
353
|
/**
|
|
353
354
|
* The normal balance of the ledger account.
|
|
354
355
|
*/
|
|
355
|
-
ledger_account_normal_balance:
|
|
356
|
+
ledger_account_normal_balance: Shared.TransactionDirection;
|
|
356
357
|
|
|
357
358
|
/**
|
|
358
359
|
* The id of the ledger that this ledger account statement belongs to.
|
|
@@ -609,7 +610,7 @@ export interface LedgerAccountStatementCreateParams {
|
|
|
609
610
|
}
|
|
610
611
|
|
|
611
612
|
export namespace LedgerAccountStatements {
|
|
612
|
-
export import LedgerAccountStatementCreateResponse =
|
|
613
|
-
export import LedgerAccountStatementRetrieveResponse =
|
|
614
|
-
export import LedgerAccountStatementCreateParams =
|
|
613
|
+
export import LedgerAccountStatementCreateResponse = LedgerAccountStatementsAPI.LedgerAccountStatementCreateResponse;
|
|
614
|
+
export import LedgerAccountStatementRetrieveResponse = LedgerAccountStatementsAPI.LedgerAccountStatementRetrieveResponse;
|
|
615
|
+
export import LedgerAccountStatementCreateParams = LedgerAccountStatementsAPI.LedgerAccountStatementCreateParams;
|
|
615
616
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIResource } from "../
|
|
5
|
-
import { isRequestOptions } from "../
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as LedgerAccountsAPI from "./ledger-accounts";
|
|
7
|
+
import * as Shared from "./shared";
|
|
8
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
9
|
|
|
9
10
|
export class LedgerAccounts extends APIResource {
|
|
10
11
|
/**
|
|
@@ -92,8 +93,6 @@ export class LedgerAccounts extends APIResource {
|
|
|
92
93
|
}
|
|
93
94
|
|
|
94
95
|
export class LedgerAccountsPage extends Page<LedgerAccount> {}
|
|
95
|
-
// alias so we can export it in the namespace
|
|
96
|
-
type _LedgerAccountsPage = LedgerAccountsPage;
|
|
97
96
|
|
|
98
97
|
export interface LedgerAccount {
|
|
99
98
|
id: string;
|
|
@@ -159,7 +158,7 @@ export interface LedgerAccount {
|
|
|
159
158
|
/**
|
|
160
159
|
* The normal balance of the ledger account.
|
|
161
160
|
*/
|
|
162
|
-
normal_balance:
|
|
161
|
+
normal_balance: Shared.TransactionDirection;
|
|
163
162
|
|
|
164
163
|
object: string;
|
|
165
164
|
|
|
@@ -294,7 +293,7 @@ export interface LedgerAccountCreateParams {
|
|
|
294
293
|
/**
|
|
295
294
|
* The normal balance of the ledger account.
|
|
296
295
|
*/
|
|
297
|
-
normal_balance:
|
|
296
|
+
normal_balance: Shared.TransactionDirection;
|
|
298
297
|
|
|
299
298
|
/**
|
|
300
299
|
* The currency exponent of the ledger account.
|
|
@@ -516,10 +515,10 @@ export namespace LedgerAccountListParams {
|
|
|
516
515
|
}
|
|
517
516
|
|
|
518
517
|
export namespace LedgerAccounts {
|
|
519
|
-
export import LedgerAccount =
|
|
520
|
-
export
|
|
521
|
-
export import LedgerAccountCreateParams =
|
|
522
|
-
export import LedgerAccountRetrieveParams =
|
|
523
|
-
export import LedgerAccountUpdateParams =
|
|
524
|
-
export import LedgerAccountListParams =
|
|
518
|
+
export import LedgerAccount = LedgerAccountsAPI.LedgerAccount;
|
|
519
|
+
export import LedgerAccountsPage = LedgerAccountsAPI.LedgerAccountsPage;
|
|
520
|
+
export import LedgerAccountCreateParams = LedgerAccountsAPI.LedgerAccountCreateParams;
|
|
521
|
+
export import LedgerAccountRetrieveParams = LedgerAccountsAPI.LedgerAccountRetrieveParams;
|
|
522
|
+
export import LedgerAccountUpdateParams = LedgerAccountsAPI.LedgerAccountUpdateParams;
|
|
523
|
+
export import LedgerAccountListParams = LedgerAccountsAPI.LedgerAccountListParams;
|
|
525
524
|
}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless.
|
|
2
2
|
|
|
3
|
-
import * as Core from "../
|
|
4
|
-
import { APIResource } from "../
|
|
5
|
-
import { isRequestOptions } from "../
|
|
6
|
-
import * as
|
|
7
|
-
import
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as LedgerEntriesAPI from "./ledger-entries";
|
|
7
|
+
import * as Shared from "./shared";
|
|
8
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
9
|
|
|
9
10
|
export class LedgerEntries extends APIResource {
|
|
10
11
|
/**
|
|
@@ -47,8 +48,6 @@ export class LedgerEntries extends APIResource {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
export class LedgerEntriesPage extends Page<LedgerEntry> {}
|
|
50
|
-
// alias so we can export it in the namespace
|
|
51
|
-
type _LedgerEntriesPage = LedgerEntriesPage;
|
|
52
51
|
|
|
53
52
|
export interface LedgerEntry {
|
|
54
53
|
id: string;
|
|
@@ -67,7 +66,7 @@ export interface LedgerEntry {
|
|
|
67
66
|
* `debit` pulls money from someone else's account to your own. Note that wire,
|
|
68
67
|
* rtp, and check payments will always be `credit`.
|
|
69
68
|
*/
|
|
70
|
-
direction:
|
|
69
|
+
direction: Shared.TransactionDirection;
|
|
71
70
|
|
|
72
71
|
discarded_at: string | null;
|
|
73
72
|
|
|
@@ -258,7 +257,7 @@ export interface LedgerEntryListParams extends PageParams {
|
|
|
258
257
|
* a ledger transaction to specify a new set of entries, the previous entries are
|
|
259
258
|
* deleted.
|
|
260
259
|
*/
|
|
261
|
-
direction?:
|
|
260
|
+
direction?: Shared.TransactionDirection;
|
|
262
261
|
|
|
263
262
|
/**
|
|
264
263
|
* Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to filter by the
|
|
@@ -352,8 +351,8 @@ export namespace LedgerEntryListParams {
|
|
|
352
351
|
}
|
|
353
352
|
|
|
354
353
|
export namespace LedgerEntries {
|
|
355
|
-
export import LedgerEntry =
|
|
356
|
-
export
|
|
357
|
-
export import LedgerEntryRetrieveParams =
|
|
358
|
-
export import LedgerEntryListParams =
|
|
354
|
+
export import LedgerEntry = LedgerEntriesAPI.LedgerEntry;
|
|
355
|
+
export import LedgerEntriesPage = LedgerEntriesAPI.LedgerEntriesPage;
|
|
356
|
+
export import LedgerEntryRetrieveParams = LedgerEntriesAPI.LedgerEntryRetrieveParams;
|
|
357
|
+
export import LedgerEntryListParams = LedgerEntriesAPI.LedgerEntryListParams;
|
|
359
358
|
}
|