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
package/src/index.ts
CHANGED
|
@@ -2,18 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
import * as Core from './core';
|
|
4
4
|
import * as Pagination from './pagination';
|
|
5
|
-
import * as API from './resources/index';
|
|
6
5
|
import * as Errors from './error';
|
|
7
6
|
import { type Agent } from './_shims/index';
|
|
8
7
|
import * as Uploads from './uploads';
|
|
9
8
|
import * as qs from 'qs';
|
|
9
|
+
import * as API from "./resources/index";
|
|
10
|
+
import * as TopLevelAPI from "./resources/top-level";
|
|
10
11
|
|
|
11
12
|
export interface ClientOptions {
|
|
12
13
|
/**
|
|
13
|
-
* Defaults to process.env[
|
|
14
|
+
* Defaults to process.env['MODERN_TREASURY_API_KEY'].
|
|
14
15
|
*/
|
|
15
16
|
apiKey?: string;
|
|
16
17
|
|
|
18
|
+
/**
|
|
19
|
+
* Defaults to process.env['MODERN_TREASURY_ORGANIZATION_ID'].
|
|
20
|
+
*/
|
|
21
|
+
organizationId?: string;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Defaults to process.env['MODERN_TREASURY_WEBHOOK_KEY'].
|
|
25
|
+
*/
|
|
26
|
+
webhookKey?: string | null;
|
|
27
|
+
|
|
17
28
|
/**
|
|
18
29
|
* Override the default base URL for the API, e.g., "https://api.example.com/v2/"
|
|
19
30
|
*/
|
|
@@ -67,24 +78,22 @@ export interface ClientOptions {
|
|
|
67
78
|
* param to `undefined` in request options.
|
|
68
79
|
*/
|
|
69
80
|
defaultQuery?: Core.DefaultQuery;
|
|
70
|
-
|
|
71
|
-
organizationId?: string;
|
|
72
|
-
|
|
73
|
-
webhookKey?: string | null;
|
|
74
81
|
}
|
|
75
82
|
|
|
76
83
|
/** API Client for interfacing with the Modern Treasury API. */
|
|
77
84
|
export class ModernTreasury extends Core.APIClient {
|
|
78
85
|
apiKey: string;
|
|
79
86
|
organizationId: string;
|
|
80
|
-
webhookKey
|
|
87
|
+
webhookKey: string | null;
|
|
81
88
|
|
|
82
89
|
private _options: ClientOptions;
|
|
83
90
|
|
|
84
91
|
/**
|
|
85
92
|
* API Client for interfacing with the Modern Treasury API.
|
|
86
93
|
*
|
|
87
|
-
* @param {string} [opts.apiKey
|
|
94
|
+
* @param {string} [opts.apiKey==process.env['MODERN_TREASURY_API_KEY'] ?? undefined]
|
|
95
|
+
* @param {string} [opts.organizationId==process.env['MODERN_TREASURY_ORGANIZATION_ID'] ?? undefined]
|
|
96
|
+
* @param {string | null} [opts.webhookKey==process.env['MODERN_TREASURY_WEBHOOK_KEY'] ?? null]
|
|
88
97
|
* @param {string} [opts.baseURL] - Override the default base URL for the API.
|
|
89
98
|
* @param {number} [opts.timeout=1 minute] - The maximum amount of time (in milliseconds) the client will wait for a response before timing out.
|
|
90
99
|
* @param {number} [opts.httpAgent] - An HTTP agent used to manage HTTP(s) connections.
|
|
@@ -92,8 +101,6 @@ export class ModernTreasury extends Core.APIClient {
|
|
|
92
101
|
* @param {number} [opts.maxRetries=2] - The maximum number of times the client will retry a request.
|
|
93
102
|
* @param {Core.Headers} opts.defaultHeaders - Default headers to include with every request to the API.
|
|
94
103
|
* @param {Core.DefaultQuery} opts.defaultQuery - Default query parameters to include with every request to the API.
|
|
95
|
-
* @param {string} [opts.organizationId]
|
|
96
|
-
* @param {string | null} [opts.webhookKey]
|
|
97
104
|
*/
|
|
98
105
|
constructor({
|
|
99
106
|
apiKey = Core.readEnv('MODERN_TREASURY_API_KEY'),
|
|
@@ -103,7 +110,7 @@ export class ModernTreasury extends Core.APIClient {
|
|
|
103
110
|
}: ClientOptions = {}) {
|
|
104
111
|
if (apiKey === undefined) {
|
|
105
112
|
throw new Errors.ModernTreasuryError(
|
|
106
|
-
"The MODERN_TREASURY_API_KEY environment variable is missing or empty; either provide it, or instantiate the ModernTreasury client with an apiKey option, like new ModernTreasury({ apiKey: '
|
|
113
|
+
"The MODERN_TREASURY_API_KEY environment variable is missing or empty; either provide it, or instantiate the ModernTreasury client with an apiKey option, like new ModernTreasury({ apiKey: 'My API Key' }).",
|
|
107
114
|
);
|
|
108
115
|
}
|
|
109
116
|
if (organizationId === undefined) {
|
|
@@ -172,7 +179,7 @@ export class ModernTreasury extends Core.APIClient {
|
|
|
172
179
|
* A test endpoint often used to confirm credentials and headers are being passed
|
|
173
180
|
* in correctly.
|
|
174
181
|
*/
|
|
175
|
-
ping(options?: Core.RequestOptions): Core.APIPromise<
|
|
182
|
+
ping(options?: Core.RequestOptions): Core.APIPromise<TopLevelAPI.PingResponse> {
|
|
176
183
|
return this.get('/api/ping', options);
|
|
177
184
|
}
|
|
178
185
|
|
|
@@ -382,11 +389,9 @@ export namespace ModernTreasury {
|
|
|
382
389
|
export import LedgerEntryListParams = API.LedgerEntryListParams;
|
|
383
390
|
|
|
384
391
|
export import LedgerEventHandlers = API.LedgerEventHandlers;
|
|
385
|
-
export import
|
|
386
|
-
export import
|
|
387
|
-
export import
|
|
388
|
-
export import LedgerEventHandlerDeleteResponse = API.LedgerEventHandlerDeleteResponse;
|
|
389
|
-
export import LedgerEventHandlerListResponsesPage = API.LedgerEventHandlerListResponsesPage;
|
|
392
|
+
export import LedgerEventHandler = API.LedgerEventHandler;
|
|
393
|
+
export import LedgerEventHandlerVariable = API.LedgerEventHandlerVariable;
|
|
394
|
+
export import LedgerEventHandlersPage = API.LedgerEventHandlersPage;
|
|
390
395
|
export import LedgerEventHandlerCreateParams = API.LedgerEventHandlerCreateParams;
|
|
391
396
|
export import LedgerEventHandlerListParams = API.LedgerEventHandlerListParams;
|
|
392
397
|
|
|
@@ -459,6 +464,7 @@ export namespace ModernTreasury {
|
|
|
459
464
|
export import AccountsType = API.AccountsType;
|
|
460
465
|
export import AsyncResponse = API.AsyncResponse;
|
|
461
466
|
export import Currency = API.Currency;
|
|
467
|
+
export import TransactionDirection = API.TransactionDirection;
|
|
462
468
|
}
|
|
463
469
|
|
|
464
470
|
export default ModernTreasury;
|
|
@@ -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 AccountCollectionFlowsAPI from "./account-collection-flows";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
9
|
export class AccountCollectionFlows extends APIResource {
|
|
10
10
|
/**
|
|
@@ -80,8 +80,6 @@ export class AccountCollectionFlows extends APIResource {
|
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export class AccountCollectionFlowsPage extends Page<AccountCollectionFlow> {}
|
|
83
|
-
// alias so we can export it in the namespace
|
|
84
|
-
type _AccountCollectionFlowsPage = AccountCollectionFlowsPage;
|
|
85
83
|
|
|
86
84
|
export interface AccountCollectionFlow {
|
|
87
85
|
/**
|
|
@@ -133,6 +131,7 @@ export interface AccountCollectionFlow {
|
|
|
133
131
|
| 'NLD'
|
|
134
132
|
| 'PER'
|
|
135
133
|
| 'ESP'
|
|
134
|
+
| 'GBR'
|
|
136
135
|
>;
|
|
137
136
|
|
|
138
137
|
/**
|
|
@@ -170,6 +169,7 @@ export interface AccountCollectionFlowCreateParams {
|
|
|
170
169
|
| 'NLD'
|
|
171
170
|
| 'PER'
|
|
172
171
|
| 'ESP'
|
|
172
|
+
| 'GBR'
|
|
173
173
|
>;
|
|
174
174
|
}
|
|
175
175
|
|
|
@@ -192,9 +192,9 @@ export interface AccountCollectionFlowListParams extends PageParams {
|
|
|
192
192
|
}
|
|
193
193
|
|
|
194
194
|
export namespace AccountCollectionFlows {
|
|
195
|
-
export import AccountCollectionFlow =
|
|
196
|
-
export
|
|
197
|
-
export import AccountCollectionFlowCreateParams =
|
|
198
|
-
export import AccountCollectionFlowUpdateParams =
|
|
199
|
-
export import AccountCollectionFlowListParams =
|
|
195
|
+
export import AccountCollectionFlow = AccountCollectionFlowsAPI.AccountCollectionFlow;
|
|
196
|
+
export import AccountCollectionFlowsPage = AccountCollectionFlowsAPI.AccountCollectionFlowsPage;
|
|
197
|
+
export import AccountCollectionFlowCreateParams = AccountCollectionFlowsAPI.AccountCollectionFlowCreateParams;
|
|
198
|
+
export import AccountCollectionFlowUpdateParams = AccountCollectionFlowsAPI.AccountCollectionFlowUpdateParams;
|
|
199
|
+
export import AccountCollectionFlowListParams = AccountCollectionFlowsAPI.AccountCollectionFlowListParams;
|
|
200
200
|
}
|
|
@@ -1,11 +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 * as
|
|
8
|
-
import { Page, PageParams } from "../
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as AccountDetailsAPI from "./account-details";
|
|
7
|
+
import * as Shared from "./shared";
|
|
8
|
+
import { Page, type PageParams } from "../pagination";
|
|
9
9
|
|
|
10
10
|
export class AccountDetails extends APIResource {
|
|
11
11
|
/**
|
|
@@ -89,8 +89,6 @@ export class AccountDetails extends APIResource {
|
|
|
89
89
|
}
|
|
90
90
|
|
|
91
91
|
export class AccountDetailsPage extends Page<AccountDetail> {}
|
|
92
|
-
// alias so we can export it in the namespace
|
|
93
|
-
type _AccountDetailsPage = AccountDetailsPage;
|
|
94
92
|
|
|
95
93
|
export interface AccountDetail {
|
|
96
94
|
id: string;
|
|
@@ -142,8 +140,8 @@ export interface AccountDetailCreateParams {
|
|
|
142
140
|
export interface AccountDetailListParams extends PageParams {}
|
|
143
141
|
|
|
144
142
|
export namespace AccountDetails {
|
|
145
|
-
export import AccountDetail =
|
|
146
|
-
export
|
|
147
|
-
export import AccountDetailCreateParams =
|
|
148
|
-
export import AccountDetailListParams =
|
|
143
|
+
export import AccountDetail = AccountDetailsAPI.AccountDetail;
|
|
144
|
+
export import AccountDetailsPage = AccountDetailsAPI.AccountDetailsPage;
|
|
145
|
+
export import AccountDetailCreateParams = AccountDetailsAPI.AccountDetailCreateParams;
|
|
146
|
+
export import AccountDetailListParams = AccountDetailsAPI.AccountDetailListParams;
|
|
149
147
|
}
|
|
@@ -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 ConnectionsAPI from "./connections";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
9
|
export class Connections extends APIResource {
|
|
10
10
|
/**
|
|
@@ -27,8 +27,6 @@ export class Connections extends APIResource {
|
|
|
27
27
|
}
|
|
28
28
|
|
|
29
29
|
export class ConnectionsPage extends Page<Connection> {}
|
|
30
|
-
// alias so we can export it in the namespace
|
|
31
|
-
type _ConnectionsPage = ConnectionsPage;
|
|
32
30
|
|
|
33
31
|
export interface Connection {
|
|
34
32
|
id: string;
|
|
@@ -76,7 +74,7 @@ export interface ConnectionListParams extends PageParams {
|
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
export namespace Connections {
|
|
79
|
-
export import Connection =
|
|
80
|
-
export
|
|
81
|
-
export import ConnectionListParams =
|
|
77
|
+
export import Connection = ConnectionsAPI.Connection;
|
|
78
|
+
export import ConnectionsPage = ConnectionsAPI.ConnectionsPage;
|
|
79
|
+
export import ConnectionListParams = ConnectionsAPI.ConnectionListParams;
|
|
82
80
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
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 * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as CounterpartiesAPI from "./counterparties";
|
|
7
|
+
import * as AccountDetailsAPI from "./account-details";
|
|
8
|
+
import * as ExternalAccountsAPI from "./external-accounts";
|
|
9
|
+
import * as RoutingDetailsAPI from "./routing-details";
|
|
10
|
+
import * as Shared from "./shared";
|
|
11
|
+
import { Page, type PageParams } from "../pagination";
|
|
11
12
|
|
|
12
13
|
export class Counterparties extends APIResource {
|
|
13
14
|
/**
|
|
@@ -107,8 +108,6 @@ export class Counterparties extends APIResource {
|
|
|
107
108
|
}
|
|
108
109
|
|
|
109
110
|
export class CounterpartiesPage extends Page<Counterparty> {}
|
|
110
|
-
// alias so we can export it in the namespace
|
|
111
|
-
type _CounterpartiesPage = CounterpartiesPage;
|
|
112
111
|
|
|
113
112
|
export interface Counterparty {
|
|
114
113
|
id: string;
|
|
@@ -164,12 +163,12 @@ export namespace Counterparty {
|
|
|
164
163
|
export interface Account {
|
|
165
164
|
id?: string;
|
|
166
165
|
|
|
167
|
-
account_details?: Array<
|
|
166
|
+
account_details?: Array<AccountDetailsAPI.AccountDetail>;
|
|
168
167
|
|
|
169
168
|
/**
|
|
170
169
|
* Can be `checking`, `savings` or `other`.
|
|
171
170
|
*/
|
|
172
|
-
account_type?:
|
|
171
|
+
account_type?: ExternalAccountsAPI.ExternalAccountType;
|
|
173
172
|
|
|
174
173
|
contact_details?: Array<Account.ContactDetail>;
|
|
175
174
|
|
|
@@ -218,7 +217,7 @@ export namespace Counterparty {
|
|
|
218
217
|
*/
|
|
219
218
|
party_type?: 'business' | 'individual' | null;
|
|
220
219
|
|
|
221
|
-
routing_details?: Array<
|
|
220
|
+
routing_details?: Array<RoutingDetailsAPI.RoutingDetail>;
|
|
222
221
|
|
|
223
222
|
updated_at?: string;
|
|
224
223
|
|
|
@@ -376,7 +375,7 @@ export namespace CounterpartyCreateParams {
|
|
|
376
375
|
/**
|
|
377
376
|
* Can be `checking`, `savings` or `other`.
|
|
378
377
|
*/
|
|
379
|
-
account_type?:
|
|
378
|
+
account_type?: ExternalAccountsAPI.ExternalAccountType;
|
|
380
379
|
|
|
381
380
|
contact_details?: Array<Account.ContactDetail>;
|
|
382
381
|
|
|
@@ -466,7 +465,7 @@ export namespace CounterpartyCreateParams {
|
|
|
466
465
|
/**
|
|
467
466
|
* The normal balance of the ledger account.
|
|
468
467
|
*/
|
|
469
|
-
normal_balance:
|
|
468
|
+
normal_balance: Shared.TransactionDirection;
|
|
470
469
|
|
|
471
470
|
/**
|
|
472
471
|
* The currency exponent of the ledger account.
|
|
@@ -539,30 +538,35 @@ export namespace CounterpartyCreateParams {
|
|
|
539
538
|
| 'chips'
|
|
540
539
|
| 'cnaps'
|
|
541
540
|
| 'gb_sort_code'
|
|
541
|
+
| 'hk_interbank_clearing_code'
|
|
542
542
|
| 'in_ifsc'
|
|
543
543
|
| 'my_branch_code'
|
|
544
|
+
| 'nz_national_clearing_code'
|
|
544
545
|
| 'swift'
|
|
545
546
|
| 'jp_zengin_code';
|
|
546
547
|
|
|
547
548
|
payment_type?:
|
|
548
549
|
| 'ach'
|
|
549
550
|
| 'au_becs'
|
|
550
|
-
| 'se_bankgirot'
|
|
551
551
|
| 'bacs'
|
|
552
552
|
| 'book'
|
|
553
553
|
| 'card'
|
|
554
|
+
| 'chats'
|
|
554
555
|
| 'check'
|
|
555
|
-
| 'eft'
|
|
556
556
|
| 'cross_border'
|
|
557
|
+
| 'eft'
|
|
557
558
|
| 'interac'
|
|
558
559
|
| 'masav'
|
|
559
560
|
| 'neft'
|
|
560
561
|
| 'nics'
|
|
562
|
+
| 'nz_becs'
|
|
561
563
|
| 'provxchange'
|
|
562
564
|
| 'rtp'
|
|
565
|
+
| 'sg_giro'
|
|
566
|
+
| 'se_bankgirot'
|
|
563
567
|
| 'sen'
|
|
564
|
-
| 'sic'
|
|
565
568
|
| 'sepa'
|
|
569
|
+
| 'sic'
|
|
566
570
|
| 'signet'
|
|
567
571
|
| 'wire'
|
|
568
572
|
| 'zengin';
|
|
@@ -636,7 +640,7 @@ export interface CounterpartyCollectAccountParams {
|
|
|
636
640
|
* Use `debit` when you need to charge a counterparty. This field helps us send a
|
|
637
641
|
* more tailored email to your counterparties."
|
|
638
642
|
*/
|
|
639
|
-
direction:
|
|
643
|
+
direction: Shared.TransactionDirection;
|
|
640
644
|
|
|
641
645
|
/**
|
|
642
646
|
* The URL you want your customer to visit upon filling out the form. By default,
|
|
@@ -675,6 +679,8 @@ export interface CounterpartyCollectAccountParams {
|
|
|
675
679
|
| 'routingNumberType'
|
|
676
680
|
| 'address'
|
|
677
681
|
| 'jp_zengin_code'
|
|
682
|
+
| 'se_bankgiro_clearing_code'
|
|
683
|
+
| 'nz_national_clearing_code'
|
|
678
684
|
>;
|
|
679
685
|
|
|
680
686
|
/**
|
|
@@ -687,11 +693,11 @@ export interface CounterpartyCollectAccountParams {
|
|
|
687
693
|
}
|
|
688
694
|
|
|
689
695
|
export namespace Counterparties {
|
|
690
|
-
export import Counterparty =
|
|
691
|
-
export import CounterpartyCollectAccountResponse =
|
|
692
|
-
export
|
|
693
|
-
export import CounterpartyCreateParams =
|
|
694
|
-
export import CounterpartyUpdateParams =
|
|
695
|
-
export import CounterpartyListParams =
|
|
696
|
-
export import CounterpartyCollectAccountParams =
|
|
696
|
+
export import Counterparty = CounterpartiesAPI.Counterparty;
|
|
697
|
+
export import CounterpartyCollectAccountResponse = CounterpartiesAPI.CounterpartyCollectAccountResponse;
|
|
698
|
+
export import CounterpartiesPage = CounterpartiesAPI.CounterpartiesPage;
|
|
699
|
+
export import CounterpartyCreateParams = CounterpartiesAPI.CounterpartyCreateParams;
|
|
700
|
+
export import CounterpartyUpdateParams = CounterpartiesAPI.CounterpartyUpdateParams;
|
|
701
|
+
export import CounterpartyListParams = CounterpartiesAPI.CounterpartyListParams;
|
|
702
|
+
export import CounterpartyCollectAccountParams = CounterpartiesAPI.CounterpartyCollectAccountParams;
|
|
697
703
|
}
|
|
@@ -1,11 +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 { type Uploadable, multipartFormRequestOptions } from "../
|
|
8
|
-
import { Page, PageParams } from "../
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as DocumentsAPI from "./documents";
|
|
7
|
+
import { type Uploadable, multipartFormRequestOptions } from "../core";
|
|
8
|
+
import { Page, type PageParams } from "../pagination";
|
|
9
9
|
|
|
10
10
|
export class Documents extends APIResource {
|
|
11
11
|
/**
|
|
@@ -53,8 +53,6 @@ export class Documents extends APIResource {
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export class DocumentsPage extends Page<Document> {}
|
|
56
|
-
// alias so we can export it in the namespace
|
|
57
|
-
type _DocumentsPage = DocumentsPage;
|
|
58
56
|
|
|
59
57
|
export interface Document {
|
|
60
58
|
id: string;
|
|
@@ -85,6 +83,7 @@ export interface Document {
|
|
|
85
83
|
| 'counterparty'
|
|
86
84
|
| 'expected_payment'
|
|
87
85
|
| 'external_account'
|
|
86
|
+
| 'incoming_payment_detail'
|
|
88
87
|
| 'internal_account'
|
|
89
88
|
| 'organization'
|
|
90
89
|
| 'paper_item'
|
|
@@ -163,6 +162,7 @@ export interface DocumentCreateParams {
|
|
|
163
162
|
| 'counterparties'
|
|
164
163
|
| 'expected_payments'
|
|
165
164
|
| 'external_accounts'
|
|
165
|
+
| 'incoming_payment_details'
|
|
166
166
|
| 'internal_accounts'
|
|
167
167
|
| 'organizations'
|
|
168
168
|
| 'paper_items'
|
|
@@ -195,6 +195,7 @@ export interface DocumentListParams extends PageParams {
|
|
|
195
195
|
| 'counterparties'
|
|
196
196
|
| 'expected_payments'
|
|
197
197
|
| 'external_accounts'
|
|
198
|
+
| 'incoming_payment_details'
|
|
198
199
|
| 'internal_accounts'
|
|
199
200
|
| 'organizations'
|
|
200
201
|
| 'paper_items'
|
|
@@ -205,8 +206,8 @@ export interface DocumentListParams extends PageParams {
|
|
|
205
206
|
}
|
|
206
207
|
|
|
207
208
|
export namespace Documents {
|
|
208
|
-
export import Document =
|
|
209
|
-
export
|
|
210
|
-
export import DocumentCreateParams =
|
|
211
|
-
export import DocumentListParams =
|
|
209
|
+
export import Document = DocumentsAPI.Document;
|
|
210
|
+
export import DocumentsPage = DocumentsAPI.DocumentsPage;
|
|
211
|
+
export import DocumentCreateParams = DocumentsAPI.DocumentCreateParams;
|
|
212
|
+
export import DocumentListParams = DocumentsAPI.DocumentListParams;
|
|
212
213
|
}
|
package/src/resources/events.ts
CHANGED
|
@@ -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 EventsAPI from "./events";
|
|
7
|
+
import { Page, type PageParams } from "../pagination";
|
|
8
8
|
|
|
9
9
|
export class Events extends APIResource {
|
|
10
10
|
/**
|
|
@@ -31,8 +31,6 @@ export class Events extends APIResource {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export class EventsPage extends Page<Event> {}
|
|
34
|
-
// alias so we can export it in the namespace
|
|
35
|
-
type _EventsPage = EventsPage;
|
|
36
34
|
|
|
37
35
|
export interface Event {
|
|
38
36
|
id: string;
|
|
@@ -94,7 +92,7 @@ export interface EventListParams extends PageParams {
|
|
|
94
92
|
}
|
|
95
93
|
|
|
96
94
|
export namespace Events {
|
|
97
|
-
export import Event =
|
|
98
|
-
export
|
|
99
|
-
export import EventListParams =
|
|
95
|
+
export import Event = EventsAPI.Event;
|
|
96
|
+
export import EventsPage = EventsAPI.EventsPage;
|
|
97
|
+
export import EventListParams = EventsAPI.EventListParams;
|
|
100
98
|
}
|
|
@@ -1,11 +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 * as
|
|
8
|
-
import { Page, PageParams } from "../
|
|
3
|
+
import * as Core from "../core";
|
|
4
|
+
import { APIResource } from "../resource";
|
|
5
|
+
import { isRequestOptions } from "../core";
|
|
6
|
+
import * as ExpectedPaymentsAPI from "./expected-payments";
|
|
7
|
+
import * as Shared from "./shared";
|
|
8
|
+
import { Page, type PageParams } from "../pagination";
|
|
9
9
|
|
|
10
10
|
export class ExpectedPayments extends APIResource {
|
|
11
11
|
/**
|
|
@@ -83,8 +83,6 @@ export class ExpectedPayments extends APIResource {
|
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
export class ExpectedPaymentsPage extends Page<ExpectedPayment> {}
|
|
86
|
-
// alias so we can export it in the namespace
|
|
87
|
-
type _ExpectedPaymentsPage = ExpectedPaymentsPage;
|
|
88
86
|
|
|
89
87
|
export interface ExpectedPayment {
|
|
90
88
|
id: string;
|
|
@@ -132,7 +130,7 @@ export interface ExpectedPayment {
|
|
|
132
130
|
* One of credit or debit. When you are receiving money, use credit. When you are
|
|
133
131
|
* being charged, use debit.
|
|
134
132
|
*/
|
|
135
|
-
direction:
|
|
133
|
+
direction: Shared.TransactionDirection;
|
|
136
134
|
|
|
137
135
|
/**
|
|
138
136
|
* The ID of the Internal Account for the expected payment.
|
|
@@ -175,6 +173,11 @@ export interface ExpectedPayment {
|
|
|
175
173
|
*/
|
|
176
174
|
reconciliation_method: 'automatic' | 'manual' | null;
|
|
177
175
|
|
|
176
|
+
/**
|
|
177
|
+
* An array of reconciliation rule variables for this payment.
|
|
178
|
+
*/
|
|
179
|
+
reconciliation_rule_variables: Array<unknown> | null;
|
|
180
|
+
|
|
178
181
|
/**
|
|
179
182
|
* For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
180
183
|
* payments the field will be passed through as the "Originator to Beneficiary
|
|
@@ -224,6 +227,7 @@ export type ExpectedPaymentType =
|
|
|
224
227
|
| 'bacs'
|
|
225
228
|
| 'book'
|
|
226
229
|
| 'card'
|
|
230
|
+
| 'chats'
|
|
227
231
|
| 'check'
|
|
228
232
|
| 'cross_border'
|
|
229
233
|
| 'eft'
|
|
@@ -231,11 +235,13 @@ export type ExpectedPaymentType =
|
|
|
231
235
|
| 'masav'
|
|
232
236
|
| 'neft'
|
|
233
237
|
| 'nics'
|
|
238
|
+
| 'nz_becs'
|
|
234
239
|
| 'provxchange'
|
|
235
240
|
| 'rtp'
|
|
236
241
|
| 'se_bankgirot'
|
|
237
242
|
| 'sen'
|
|
238
243
|
| 'sepa'
|
|
244
|
+
| 'sg_giro'
|
|
239
245
|
| 'sic'
|
|
240
246
|
| 'signet'
|
|
241
247
|
| 'wire'
|
|
@@ -259,7 +265,7 @@ export interface ExpectedPaymentCreateParams {
|
|
|
259
265
|
* One of credit or debit. When you are receiving money, use credit. When you are
|
|
260
266
|
* being charged, use debit.
|
|
261
267
|
*/
|
|
262
|
-
direction:
|
|
268
|
+
direction: Shared.TransactionDirection;
|
|
263
269
|
|
|
264
270
|
/**
|
|
265
271
|
* The ID of the Internal Account for the expected payment.
|
|
@@ -309,6 +315,11 @@ export interface ExpectedPaymentCreateParams {
|
|
|
309
315
|
*/
|
|
310
316
|
reconciliation_groups?: unknown | null;
|
|
311
317
|
|
|
318
|
+
/**
|
|
319
|
+
* An array of reconciliation rule variables for this payment.
|
|
320
|
+
*/
|
|
321
|
+
reconciliation_rule_variables?: Array<unknown> | null;
|
|
322
|
+
|
|
312
323
|
/**
|
|
313
324
|
* For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
314
325
|
* payments the field will be passed through as the "Originator to Beneficiary
|
|
@@ -400,7 +411,7 @@ export interface ExpectedPaymentUpdateParams {
|
|
|
400
411
|
* One of credit or debit. When you are receiving money, use credit. When you are
|
|
401
412
|
* being charged, use debit.
|
|
402
413
|
*/
|
|
403
|
-
direction?:
|
|
414
|
+
direction?: Shared.TransactionDirection;
|
|
404
415
|
|
|
405
416
|
/**
|
|
406
417
|
* The ID of the Internal Account for the expected payment.
|
|
@@ -423,6 +434,11 @@ export interface ExpectedPaymentUpdateParams {
|
|
|
423
434
|
*/
|
|
424
435
|
reconciliation_groups?: unknown | null;
|
|
425
436
|
|
|
437
|
+
/**
|
|
438
|
+
* An array of reconciliation rule variables for this payment.
|
|
439
|
+
*/
|
|
440
|
+
reconciliation_rule_variables?: Array<unknown> | null;
|
|
441
|
+
|
|
426
442
|
/**
|
|
427
443
|
* For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
428
444
|
* payments the field will be passed through as the "Originator to Beneficiary
|
|
@@ -464,7 +480,7 @@ export interface ExpectedPaymentListParams extends PageParams {
|
|
|
464
480
|
/**
|
|
465
481
|
* One of credit, debit
|
|
466
482
|
*/
|
|
467
|
-
direction?:
|
|
483
|
+
direction?: Shared.TransactionDirection;
|
|
468
484
|
|
|
469
485
|
/**
|
|
470
486
|
* Specify internal_account_id to see expected_payments for a specific account.
|
|
@@ -493,6 +509,7 @@ export interface ExpectedPaymentListParams extends PageParams {
|
|
|
493
509
|
| 'bacs'
|
|
494
510
|
| 'book'
|
|
495
511
|
| 'card'
|
|
512
|
+
| 'chats'
|
|
496
513
|
| 'check'
|
|
497
514
|
| 'cross_border'
|
|
498
515
|
| 'eft'
|
|
@@ -500,11 +517,13 @@ export interface ExpectedPaymentListParams extends PageParams {
|
|
|
500
517
|
| 'masav'
|
|
501
518
|
| 'neft'
|
|
502
519
|
| 'nics'
|
|
520
|
+
| 'nz_becs'
|
|
503
521
|
| 'provxchange'
|
|
504
522
|
| 'rtp'
|
|
505
523
|
| 'se_bankgirot'
|
|
506
524
|
| 'sen'
|
|
507
525
|
| 'sepa'
|
|
526
|
+
| 'sg_giro'
|
|
508
527
|
| 'sic'
|
|
509
528
|
| 'signet'
|
|
510
529
|
| 'wire'
|
|
@@ -512,10 +531,10 @@ export interface ExpectedPaymentListParams extends PageParams {
|
|
|
512
531
|
}
|
|
513
532
|
|
|
514
533
|
export namespace ExpectedPayments {
|
|
515
|
-
export import ExpectedPayment =
|
|
516
|
-
export import ExpectedPaymentType =
|
|
517
|
-
export
|
|
518
|
-
export import ExpectedPaymentCreateParams =
|
|
519
|
-
export import ExpectedPaymentUpdateParams =
|
|
520
|
-
export import ExpectedPaymentListParams =
|
|
534
|
+
export import ExpectedPayment = ExpectedPaymentsAPI.ExpectedPayment;
|
|
535
|
+
export import ExpectedPaymentType = ExpectedPaymentsAPI.ExpectedPaymentType;
|
|
536
|
+
export import ExpectedPaymentsPage = ExpectedPaymentsAPI.ExpectedPaymentsPage;
|
|
537
|
+
export import ExpectedPaymentCreateParams = ExpectedPaymentsAPI.ExpectedPaymentCreateParams;
|
|
538
|
+
export import ExpectedPaymentUpdateParams = ExpectedPaymentsAPI.ExpectedPaymentUpdateParams;
|
|
539
|
+
export import ExpectedPaymentListParams = ExpectedPaymentsAPI.ExpectedPaymentListParams;
|
|
521
540
|
}
|