modern-treasury 2.3.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 +31 -0
- package/README.md +2 -0
- package/_shims/{ReadableStream.node.d.ts → ReadableStream-node.d.ts} +1 -1
- package/_shims/ReadableStream-node.d.ts.map +1 -0
- package/_shims/{ReadableStream.node.js → ReadableStream-node.js} +1 -1
- package/_shims/ReadableStream-node.js.map +1 -0
- package/_shims/{ReadableStream.node.mjs → ReadableStream-node.mjs} +1 -1
- package/_shims/ReadableStream-node.mjs.map +1 -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/{src/_shims/fetch.node.d.ts → _shims/fetch-node.d.ts} +1 -0
- package/_shims/fetch.d.ts +1 -0
- 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 +13 -5
- package/core.d.ts.map +1 -1
- package/core.js +17 -10
- package/core.js.map +1 -1
- package/core.mjs +17 -10
- package/core.mjs.map +1 -1
- package/index.d.mts +18 -5
- package/index.d.ts +18 -5
- package/index.d.ts.map +1 -1
- package/index.js +21 -7
- package/index.js.map +1 -1
- package/index.mjs +21 -7
- package/index.mjs.map +1 -1
- package/package.json +32 -9
- package/resources/account-collection-flows.d.ts +3 -28
- 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 +3 -8
- 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.js +3 -3
- package/resources/connections.mjs +3 -3
- package/resources/counterparties.d.ts +26 -40
- 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 +2 -13
- package/resources/documents.d.ts.map +1 -1
- package/resources/documents.js +11 -5
- package/resources/documents.js.map +1 -1
- package/resources/documents.mjs +11 -5
- package/resources/documents.mjs.map +1 -1
- package/resources/events.js +3 -3
- package/resources/events.mjs +3 -3
- package/resources/expected-payments.d.ts +23 -32
- 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 +17 -51
- 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 +10 -15
- 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 -2
- 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.js +3 -3
- package/resources/internal-accounts/balance-reports.mjs +3 -3
- package/resources/internal-accounts/internal-accounts.d.ts +10 -15
- 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 +24 -32
- 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 +9 -14
- 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 +8 -13
- package/resources/ledger-account-categories.d.ts.map +1 -1
- package/resources/ledger-account-categories.js +10 -4
- package/resources/ledger-account-categories.js.map +1 -1
- package/resources/ledger-account-categories.mjs +10 -4
- package/resources/ledger-account-categories.mjs.map +1 -1
- package/resources/ledger-account-payouts.d.ts +14 -19
- 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 +9 -14
- 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 +13 -18
- 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.js +3 -3
- package/resources/ledger-entries.mjs +3 -3
- package/resources/ledger-event-handlers.d.ts +5 -16
- 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 +16 -22
- package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.js +10 -4
- package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.mjs +10 -4
- package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
- package/resources/ledger-transactions/versions.js +3 -3
- package/resources/ledger-transactions/versions.mjs +3 -3
- package/resources/ledgerable-events.d.ts +11 -16
- 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 +4 -9
- 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.js +3 -3
- package/resources/line-items.mjs +3 -3
- package/resources/paper-items.js +3 -3
- package/resources/paper-items.mjs +3 -3
- package/resources/payment-flows.d.ts +10 -34
- 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 +142 -167
- package/resources/payment-orders/payment-orders.d.ts.map +1 -1
- package/resources/payment-orders/payment-orders.js +18 -6
- package/resources/payment-orders/payment-orders.js.map +1 -1
- package/resources/payment-orders/payment-orders.mjs +18 -6
- package/resources/payment-orders/payment-orders.mjs.map +1 -1
- package/resources/payment-orders/reversals.d.ts +7 -13
- 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.js +3 -3
- package/resources/payment-references.mjs +3 -3
- package/resources/returns.d.ts +9 -15
- 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 +4 -10
- 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.js +3 -3
- package/resources/transactions/line-items.mjs +3 -3
- package/resources/transactions/transactions.js +3 -3
- package/resources/transactions/transactions.mjs +3 -3
- package/resources/validations.js +1 -1
- package/resources/validations.mjs +1 -1
- package/resources/virtual-accounts.d.ts +12 -18
- 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.d.ts +5 -5
- package/src/_shims/agent.ts +1 -1
- package/{_shims/fetch.node.d.ts → src/_shims/fetch-node.d.ts} +9 -8
- package/src/_shims/fetch.d.ts +11 -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 +35 -22
- package/src/error.ts +1 -1
- package/src/index.ts +27 -13
- package/src/pagination.ts +1 -1
- package/src/resource.ts +1 -1
- package/src/resources/account-collection-flows.ts +24 -52
- package/src/resources/account-details.ts +16 -16
- package/src/resources/connections.ts +5 -5
- package/src/resources/counterparties.ts +48 -52
- package/src/resources/documents.ts +15 -21
- package/src/resources/events.ts +5 -5
- package/src/resources/expected-payments.ts +36 -40
- package/src/resources/external-accounts.ts +46 -65
- package/src/resources/incoming-payment-details.ts +24 -24
- package/src/resources/index.ts +39 -35
- package/src/resources/internal-accounts/balance-reports.ts +6 -6
- package/src/resources/internal-accounts/index.ts +2 -2
- package/src/resources/internal-accounts/internal-accounts.ts +27 -27
- package/src/resources/invoices/index.ts +2 -2
- package/src/resources/invoices/invoices.ts +39 -42
- package/src/resources/invoices/line-items.ts +21 -21
- package/src/resources/ledger-account-categories.ts +20 -20
- package/src/resources/ledger-account-payouts.ts +26 -26
- package/src/resources/ledger-account-statements.ts +19 -19
- package/src/resources/ledger-accounts.ts +25 -25
- package/src/resources/ledger-entries.ts +5 -5
- package/src/resources/ledger-event-handlers.ts +17 -23
- package/src/resources/ledger-transactions/index.ts +2 -2
- package/src/resources/ledger-transactions/ledger-transactions.ts +30 -31
- package/src/resources/ledger-transactions/versions.ts +5 -5
- package/src/resources/ledgerable-events.ts +21 -21
- package/src/resources/ledgers.ts +16 -16
- package/src/resources/line-items.ts +5 -5
- package/src/resources/paper-items.ts +6 -6
- package/src/resources/payment-flows.ts +31 -58
- package/src/resources/payment-orders/index.ts +2 -2
- package/src/resources/payment-orders/payment-orders.ts +166 -181
- package/src/resources/payment-orders/reversals.ts +19 -20
- package/src/resources/payment-references.ts +5 -5
- package/src/resources/returns.ts +22 -23
- package/src/resources/routing-details.ts +17 -18
- package/src/resources/top-level.ts +1 -1
- package/src/resources/transactions/index.ts +7 -2
- package/src/resources/transactions/line-items.ts +5 -5
- package/src/resources/transactions/transactions.ts +7 -7
- package/src/resources/validations.ts +3 -3
- package/src/resources/virtual-accounts.ts +26 -27
- 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/ReadableStream.node.d.ts.map +0 -1
- package/_shims/ReadableStream.node.js.map +0 -1
- package/_shims/ReadableStream.node.mjs.map +0 -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/{ReadableStream.node.ts → ReadableStream-node.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,15 +1,15 @@
|
|
|
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 Returns from '../returns';
|
|
7
|
-
import * as ExternalAccounts from '../external-accounts';
|
|
8
|
-
import * as Shared from '../shared';
|
|
9
|
-
import { Reversals } from './reversals';
|
|
10
|
-
import * as API from './index';
|
|
11
|
-
import { type Uploadable, maybeMultipartFormRequestOptions } from '../../core';
|
|
12
|
-
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 Returns from '../returns.js';
|
|
7
|
+
import * as ExternalAccounts from '../external-accounts.js';
|
|
8
|
+
import * as Shared from '../shared.js';
|
|
9
|
+
import { Reversals } from './reversals.js';
|
|
10
|
+
import * as API from './index.js';
|
|
11
|
+
import { type Uploadable, maybeMultipartFormRequestOptions } from '../../core.js';
|
|
12
|
+
import { Page, PageParams } from '../../pagination.js';
|
|
13
13
|
|
|
14
14
|
export class PaymentOrders extends APIResource {
|
|
15
15
|
reversals: Reversals = new Reversals(this.client);
|
|
@@ -18,13 +18,19 @@ export class PaymentOrders extends APIResource {
|
|
|
18
18
|
* Create a new Payment Order
|
|
19
19
|
*/
|
|
20
20
|
create(params: PaymentOrderCreateParams, options?: Core.RequestOptions): Core.APIPromise<PaymentOrder> {
|
|
21
|
+
// @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
|
|
21
22
|
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
23
|
+
if (idempotencyKey) {
|
|
24
|
+
console.warn(
|
|
25
|
+
"The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
|
|
26
|
+
);
|
|
27
|
+
}
|
|
22
28
|
return this.post(
|
|
23
29
|
'/api/payment_orders',
|
|
24
30
|
maybeMultipartFormRequestOptions({
|
|
25
31
|
body,
|
|
26
32
|
...options,
|
|
27
|
-
headers: { 'Idempotency-Key': idempotencyKey
|
|
33
|
+
headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
|
|
28
34
|
}),
|
|
29
35
|
);
|
|
30
36
|
}
|
|
@@ -81,11 +87,17 @@ export class PaymentOrders extends APIResource {
|
|
|
81
87
|
params: PaymentOrderCreateAsyncParams,
|
|
82
88
|
options?: Core.RequestOptions,
|
|
83
89
|
): Core.APIPromise<Shared.AsyncResponse> {
|
|
90
|
+
// @ts-expect-error idempotency key header isn't defined anymore but is included here for back-compat
|
|
84
91
|
const { 'Idempotency-Key': idempotencyKey, ...body } = params;
|
|
92
|
+
if (idempotencyKey) {
|
|
93
|
+
console.warn(
|
|
94
|
+
"The Idempotency-Key request param is deprecated, the 'idempotencyToken' option should be set instead",
|
|
95
|
+
);
|
|
96
|
+
}
|
|
85
97
|
return this.post('/api/payment_orders/create_async', {
|
|
86
98
|
body,
|
|
87
99
|
...options,
|
|
88
|
-
headers: { 'Idempotency-Key': idempotencyKey
|
|
100
|
+
headers: { 'Idempotency-Key': idempotencyKey, ...options?.headers },
|
|
89
101
|
});
|
|
90
102
|
}
|
|
91
103
|
}
|
|
@@ -487,149 +499,141 @@ export type PaymentOrderType =
|
|
|
487
499
|
|
|
488
500
|
export interface PaymentOrderCreateParams {
|
|
489
501
|
/**
|
|
490
|
-
*
|
|
491
|
-
*
|
|
492
|
-
* is $100,000.
|
|
502
|
+
* Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
503
|
+
* 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
493
504
|
*/
|
|
494
505
|
amount: number;
|
|
495
506
|
|
|
496
507
|
/**
|
|
497
|
-
*
|
|
498
|
-
*
|
|
499
|
-
*
|
|
508
|
+
* One of `credit`, `debit`. Describes the direction money is flowing in the
|
|
509
|
+
* transaction. A `credit` moves money from your account to someone else's. A
|
|
510
|
+
* `debit` pulls money from someone else's account to your own. Note that wire,
|
|
500
511
|
* rtp, and check payments will always be `credit`.
|
|
501
512
|
*/
|
|
502
513
|
direction: 'credit' | 'debit';
|
|
503
514
|
|
|
504
515
|
/**
|
|
505
|
-
*
|
|
516
|
+
* The ID of one of your organization's internal accounts.
|
|
506
517
|
*/
|
|
507
518
|
originating_account_id: string;
|
|
508
519
|
|
|
509
520
|
/**
|
|
510
|
-
*
|
|
511
|
-
* `
|
|
521
|
+
* One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`, `bacs`,
|
|
522
|
+
* `au_becs`, `interac`, `signet`, `provexchange`.
|
|
512
523
|
*/
|
|
513
524
|
type: PaymentOrderType;
|
|
514
525
|
|
|
515
|
-
/**
|
|
516
|
-
* Body param:
|
|
517
|
-
*/
|
|
518
526
|
accounting?: PaymentOrderCreateParams.Accounting;
|
|
519
527
|
|
|
520
528
|
/**
|
|
521
|
-
*
|
|
522
|
-
*
|
|
529
|
+
* The ID of one of your accounting categories. Note that these will only be
|
|
530
|
+
* accessible if your accounting system has been connected.
|
|
523
531
|
*/
|
|
524
532
|
accounting_category_id?: string | null;
|
|
525
533
|
|
|
526
534
|
/**
|
|
527
|
-
*
|
|
528
|
-
*
|
|
535
|
+
* The ID of one of your accounting ledger classes. Note that these will only be
|
|
536
|
+
* accessible if your accounting system has been connected.
|
|
529
537
|
*/
|
|
530
538
|
accounting_ledger_class_id?: string | null;
|
|
531
539
|
|
|
532
540
|
/**
|
|
533
|
-
*
|
|
534
|
-
*
|
|
535
|
-
*
|
|
541
|
+
* The party that will pay the fees for the payment order. Only applies to wire
|
|
542
|
+
* payment orders. Can be one of shared, sender, or receiver, which correspond
|
|
543
|
+
* respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
|
536
544
|
*/
|
|
537
545
|
charge_bearer?: 'shared' | 'sender' | 'receiver' | null;
|
|
538
546
|
|
|
539
547
|
/**
|
|
540
|
-
*
|
|
548
|
+
* Defaults to the currency of the originating account.
|
|
541
549
|
*/
|
|
542
550
|
currency?: Shared.Currency | null;
|
|
543
551
|
|
|
544
552
|
/**
|
|
545
|
-
*
|
|
553
|
+
* An optional description for internal use.
|
|
546
554
|
*/
|
|
547
555
|
description?: string | null;
|
|
548
556
|
|
|
549
557
|
/**
|
|
550
|
-
*
|
|
551
|
-
*
|
|
552
|
-
* `multipart/form-data`.
|
|
558
|
+
* An array of documents to be attached to the payment order. Note that if you
|
|
559
|
+
* attach documents, the request's content type must be `multipart/form-data`.
|
|
553
560
|
*/
|
|
554
561
|
documents?: Array<PaymentOrderCreateParams.Document>;
|
|
555
562
|
|
|
556
563
|
/**
|
|
557
|
-
*
|
|
558
|
-
*
|
|
559
|
-
*
|
|
564
|
+
* Date transactions are to be posted to the participants' account. Defaults to the
|
|
565
|
+
* current business day or the next business day if the current day is a bank
|
|
566
|
+
* holiday or weekend. Format: yyyy-mm-dd.
|
|
560
567
|
*/
|
|
561
568
|
effective_date?: string;
|
|
562
569
|
|
|
563
570
|
/**
|
|
564
|
-
*
|
|
565
|
-
* effective_date.
|
|
571
|
+
* RFP payments require an expires_at. This value must be past the effective_date.
|
|
566
572
|
*/
|
|
567
573
|
expires_at?: string | null;
|
|
568
574
|
|
|
569
575
|
/**
|
|
570
|
-
*
|
|
571
|
-
*
|
|
572
|
-
*
|
|
576
|
+
* A payment type to fallback to if the original type is not valid for the
|
|
577
|
+
* receiving account. Currently, this only supports falling back from RTP to ACH
|
|
578
|
+
* (type=rtp and fallback_type=ach)
|
|
573
579
|
*/
|
|
574
580
|
fallback_type?: 'ach';
|
|
575
581
|
|
|
576
582
|
/**
|
|
577
|
-
*
|
|
578
|
-
*
|
|
583
|
+
* If present, indicates a specific foreign exchange contract number that has been
|
|
584
|
+
* generated by your financial institution.
|
|
579
585
|
*/
|
|
580
586
|
foreign_exchange_contract?: string | null;
|
|
581
587
|
|
|
582
588
|
/**
|
|
583
|
-
*
|
|
589
|
+
* Indicates the type of FX transfer to initiate, can be either
|
|
584
590
|
* `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
|
585
591
|
* currency matches the originating account currency.
|
|
586
592
|
*/
|
|
587
593
|
foreign_exchange_indicator?: 'fixed_to_variable' | 'variable_to_fixed' | null;
|
|
588
594
|
|
|
589
595
|
/**
|
|
590
|
-
*
|
|
591
|
-
*
|
|
592
|
-
*
|
|
593
|
-
*
|
|
596
|
+
* Specifies a ledger transaction object that will be created with the payment
|
|
597
|
+
* order. If the ledger transaction cannot be created, then the payment order
|
|
598
|
+
* creation will fail. The resulting ledger transaction will mirror the status of
|
|
599
|
+
* the payment order.
|
|
594
600
|
*/
|
|
595
601
|
ledger_transaction?: PaymentOrderCreateParams.LedgerTransaction;
|
|
596
602
|
|
|
597
603
|
/**
|
|
598
|
-
*
|
|
599
|
-
* order.
|
|
604
|
+
* An array of line items that must sum up to the amount of the payment order.
|
|
600
605
|
*/
|
|
601
606
|
line_items?: Array<PaymentOrderCreateParams.LineItem>;
|
|
602
607
|
|
|
603
608
|
/**
|
|
604
|
-
*
|
|
605
|
-
*
|
|
609
|
+
* Additional data represented as key-value pairs. Both the key and value must be
|
|
610
|
+
* strings.
|
|
606
611
|
*/
|
|
607
612
|
metadata?: Record<string, string>;
|
|
608
613
|
|
|
609
614
|
/**
|
|
610
|
-
*
|
|
611
|
-
*
|
|
612
|
-
* settings page.
|
|
615
|
+
* A boolean to determine if NSF Protection is enabled for this payment order. Note
|
|
616
|
+
* that this setting must also be turned on in your organization settings page.
|
|
613
617
|
*/
|
|
614
618
|
nsf_protected?: boolean;
|
|
615
619
|
|
|
616
620
|
/**
|
|
617
|
-
*
|
|
618
|
-
*
|
|
619
|
-
*
|
|
620
|
-
*
|
|
621
|
+
* If present, this will replace your default company name on receiver's bank
|
|
622
|
+
* statement. This field can only be used for ACH payments currently. For ACH, only
|
|
623
|
+
* the first 16 characters of this string will be used. Any additional characters
|
|
624
|
+
* will be truncated.
|
|
621
625
|
*/
|
|
622
626
|
originating_party_name?: string | null;
|
|
623
627
|
|
|
624
628
|
/**
|
|
625
|
-
*
|
|
626
|
-
*
|
|
627
|
-
*
|
|
629
|
+
* Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
630
|
+
* same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
631
|
+
* an overnight check rather than standard mail.
|
|
628
632
|
*/
|
|
629
633
|
priority?: 'high' | 'normal';
|
|
630
634
|
|
|
631
635
|
/**
|
|
632
|
-
*
|
|
636
|
+
* For `wire`, this is usually the purpose which is transmitted via the
|
|
633
637
|
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
|
|
634
638
|
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
|
|
635
639
|
* CPA Code that will be attached to the payment.
|
|
@@ -637,81 +641,75 @@ export interface PaymentOrderCreateParams {
|
|
|
637
641
|
purpose?: string | null;
|
|
638
642
|
|
|
639
643
|
/**
|
|
640
|
-
*
|
|
641
|
-
*
|
|
642
|
-
*
|
|
644
|
+
* Either `receiving_account` or `receiving_account_id` must be present. When using
|
|
645
|
+
* `receiving_account_id`, you may pass the id of an external account or an
|
|
646
|
+
* internal account.
|
|
643
647
|
*/
|
|
644
648
|
receiving_account?: PaymentOrderCreateParams.ReceivingAccount;
|
|
645
649
|
|
|
646
650
|
/**
|
|
647
|
-
*
|
|
648
|
-
*
|
|
649
|
-
*
|
|
651
|
+
* Either `receiving_account` or `receiving_account_id` must be present. When using
|
|
652
|
+
* `receiving_account_id`, you may pass the id of an external account or an
|
|
653
|
+
* internal account.
|
|
650
654
|
*/
|
|
651
655
|
receiving_account_id?: string;
|
|
652
656
|
|
|
653
657
|
/**
|
|
654
|
-
*
|
|
655
|
-
*
|
|
656
|
-
*
|
|
658
|
+
* For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
659
|
+
* payments the field will be passed through as the "Originator to Beneficiary
|
|
660
|
+
* Information", also known as OBI or Fedwire tag 6000.
|
|
657
661
|
*/
|
|
658
662
|
remittance_information?: string | null;
|
|
659
663
|
|
|
660
664
|
/**
|
|
661
|
-
*
|
|
662
|
-
*
|
|
665
|
+
* Send an email to the counterparty when the payment order is sent to the bank. If
|
|
666
|
+
* `null`, `send_remittance_advice` on the Counterparty is used.
|
|
663
667
|
*/
|
|
664
668
|
send_remittance_advice?: boolean | null;
|
|
665
669
|
|
|
666
670
|
/**
|
|
667
|
-
*
|
|
668
|
-
*
|
|
669
|
-
*
|
|
670
|
-
*
|
|
671
|
-
*
|
|
671
|
+
* An optional descriptor which will appear in the receiver's statement. For
|
|
672
|
+
* `check` payments this field will be used as the memo line. For `ach` the maximum
|
|
673
|
+
* length is 10 characters. Note that for ACH payments, the name on your bank
|
|
674
|
+
* account will be included automatically by the bank, so you can use the
|
|
675
|
+
* characters for other useful information. For `eft` the maximum length is 15
|
|
672
676
|
* characters.
|
|
673
677
|
*/
|
|
674
678
|
statement_descriptor?: string | null;
|
|
675
679
|
|
|
676
680
|
/**
|
|
677
|
-
*
|
|
678
|
-
*
|
|
679
|
-
*
|
|
680
|
-
*
|
|
681
|
+
* An additional layer of classification for the type of payment order you are
|
|
682
|
+
* doing. This field is only used for `ach` payment orders currently. For `ach`
|
|
683
|
+
* payment orders, the `subtype` represents the SEC code. We currently support
|
|
684
|
+
* `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
|
681
685
|
*/
|
|
682
686
|
subtype?: PaymentOrderSubtype | null;
|
|
683
687
|
|
|
684
688
|
/**
|
|
685
|
-
*
|
|
686
|
-
*
|
|
689
|
+
* A flag that determines whether a payment order should go through transaction
|
|
690
|
+
* monitoring.
|
|
687
691
|
*/
|
|
688
692
|
transaction_monitoring_enabled?: boolean;
|
|
689
693
|
|
|
690
694
|
/**
|
|
691
|
-
*
|
|
695
|
+
* Identifier of the ultimate originator of the payment order.
|
|
692
696
|
*/
|
|
693
697
|
ultimate_originating_party_identifier?: string | null;
|
|
694
698
|
|
|
695
699
|
/**
|
|
696
|
-
*
|
|
700
|
+
* Name of the ultimate originator of the payment order.
|
|
697
701
|
*/
|
|
698
702
|
ultimate_originating_party_name?: string | null;
|
|
699
703
|
|
|
700
704
|
/**
|
|
701
|
-
*
|
|
705
|
+
* Identifier of the ultimate funds recipient.
|
|
702
706
|
*/
|
|
703
707
|
ultimate_receiving_party_identifier?: string | null;
|
|
704
708
|
|
|
705
709
|
/**
|
|
706
|
-
*
|
|
710
|
+
* Name of the ultimate funds recipient.
|
|
707
711
|
*/
|
|
708
712
|
ultimate_receiving_party_name?: string | null;
|
|
709
|
-
|
|
710
|
-
/**
|
|
711
|
-
* Header param: This key should be something unique, preferably something like an
|
|
712
|
-
* UUID.
|
|
713
|
-
*/
|
|
714
|
-
'Idempotency-Key'?: string;
|
|
715
713
|
}
|
|
716
714
|
|
|
717
715
|
export namespace PaymentOrderCreateParams {
|
|
@@ -1657,142 +1655,135 @@ export interface PaymentOrderListParams extends PageParams {
|
|
|
1657
1655
|
|
|
1658
1656
|
export interface PaymentOrderCreateAsyncParams {
|
|
1659
1657
|
/**
|
|
1660
|
-
*
|
|
1661
|
-
*
|
|
1662
|
-
* is $100,000.
|
|
1658
|
+
* Value in specified currency's smallest unit. e.g. $10 would be represented as
|
|
1659
|
+
* 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
|
|
1663
1660
|
*/
|
|
1664
1661
|
amount: number;
|
|
1665
1662
|
|
|
1666
1663
|
/**
|
|
1667
|
-
*
|
|
1668
|
-
*
|
|
1669
|
-
*
|
|
1664
|
+
* One of `credit`, `debit`. Describes the direction money is flowing in the
|
|
1665
|
+
* transaction. A `credit` moves money from your account to someone else's. A
|
|
1666
|
+
* `debit` pulls money from someone else's account to your own. Note that wire,
|
|
1670
1667
|
* rtp, and check payments will always be `credit`.
|
|
1671
1668
|
*/
|
|
1672
1669
|
direction: 'credit' | 'debit';
|
|
1673
1670
|
|
|
1674
1671
|
/**
|
|
1675
|
-
*
|
|
1672
|
+
* The ID of one of your organization's internal accounts.
|
|
1676
1673
|
*/
|
|
1677
1674
|
originating_account_id: string;
|
|
1678
1675
|
|
|
1679
1676
|
/**
|
|
1680
|
-
*
|
|
1681
|
-
* `
|
|
1677
|
+
* One of `ach`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sepa`, `bacs`,
|
|
1678
|
+
* `au_becs`, `interac`, `signet`, `provexchange`.
|
|
1682
1679
|
*/
|
|
1683
1680
|
type: PaymentOrderType;
|
|
1684
1681
|
|
|
1685
|
-
/**
|
|
1686
|
-
* Body param:
|
|
1687
|
-
*/
|
|
1688
1682
|
accounting?: PaymentOrderCreateAsyncParams.Accounting;
|
|
1689
1683
|
|
|
1690
1684
|
/**
|
|
1691
|
-
*
|
|
1692
|
-
*
|
|
1685
|
+
* The ID of one of your accounting categories. Note that these will only be
|
|
1686
|
+
* accessible if your accounting system has been connected.
|
|
1693
1687
|
*/
|
|
1694
1688
|
accounting_category_id?: string | null;
|
|
1695
1689
|
|
|
1696
1690
|
/**
|
|
1697
|
-
*
|
|
1698
|
-
*
|
|
1691
|
+
* The ID of one of your accounting ledger classes. Note that these will only be
|
|
1692
|
+
* accessible if your accounting system has been connected.
|
|
1699
1693
|
*/
|
|
1700
1694
|
accounting_ledger_class_id?: string | null;
|
|
1701
1695
|
|
|
1702
1696
|
/**
|
|
1703
|
-
*
|
|
1704
|
-
*
|
|
1705
|
-
*
|
|
1697
|
+
* The party that will pay the fees for the payment order. Only applies to wire
|
|
1698
|
+
* payment orders. Can be one of shared, sender, or receiver, which correspond
|
|
1699
|
+
* respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
|
|
1706
1700
|
*/
|
|
1707
1701
|
charge_bearer?: 'shared' | 'sender' | 'receiver' | null;
|
|
1708
1702
|
|
|
1709
1703
|
/**
|
|
1710
|
-
*
|
|
1704
|
+
* Defaults to the currency of the originating account.
|
|
1711
1705
|
*/
|
|
1712
1706
|
currency?: Shared.Currency | null;
|
|
1713
1707
|
|
|
1714
1708
|
/**
|
|
1715
|
-
*
|
|
1709
|
+
* An optional description for internal use.
|
|
1716
1710
|
*/
|
|
1717
1711
|
description?: string | null;
|
|
1718
1712
|
|
|
1719
1713
|
/**
|
|
1720
|
-
*
|
|
1721
|
-
*
|
|
1722
|
-
*
|
|
1714
|
+
* Date transactions are to be posted to the participants' account. Defaults to the
|
|
1715
|
+
* current business day or the next business day if the current day is a bank
|
|
1716
|
+
* holiday or weekend. Format: yyyy-mm-dd.
|
|
1723
1717
|
*/
|
|
1724
1718
|
effective_date?: string;
|
|
1725
1719
|
|
|
1726
1720
|
/**
|
|
1727
|
-
*
|
|
1728
|
-
* effective_date.
|
|
1721
|
+
* RFP payments require an expires_at. This value must be past the effective_date.
|
|
1729
1722
|
*/
|
|
1730
1723
|
expires_at?: string | null;
|
|
1731
1724
|
|
|
1732
1725
|
/**
|
|
1733
|
-
*
|
|
1734
|
-
*
|
|
1735
|
-
*
|
|
1726
|
+
* A payment type to fallback to if the original type is not valid for the
|
|
1727
|
+
* receiving account. Currently, this only supports falling back from RTP to ACH
|
|
1728
|
+
* (type=rtp and fallback_type=ach)
|
|
1736
1729
|
*/
|
|
1737
1730
|
fallback_type?: 'ach';
|
|
1738
1731
|
|
|
1739
1732
|
/**
|
|
1740
|
-
*
|
|
1741
|
-
*
|
|
1733
|
+
* If present, indicates a specific foreign exchange contract number that has been
|
|
1734
|
+
* generated by your financial institution.
|
|
1742
1735
|
*/
|
|
1743
1736
|
foreign_exchange_contract?: string | null;
|
|
1744
1737
|
|
|
1745
1738
|
/**
|
|
1746
|
-
*
|
|
1739
|
+
* Indicates the type of FX transfer to initiate, can be either
|
|
1747
1740
|
* `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
|
|
1748
1741
|
* currency matches the originating account currency.
|
|
1749
1742
|
*/
|
|
1750
1743
|
foreign_exchange_indicator?: 'fixed_to_variable' | 'variable_to_fixed' | null;
|
|
1751
1744
|
|
|
1752
1745
|
/**
|
|
1753
|
-
*
|
|
1754
|
-
*
|
|
1755
|
-
*
|
|
1756
|
-
*
|
|
1746
|
+
* Specifies a ledger transaction object that will be created with the payment
|
|
1747
|
+
* order. If the ledger transaction cannot be created, then the payment order
|
|
1748
|
+
* creation will fail. The resulting ledger transaction will mirror the status of
|
|
1749
|
+
* the payment order.
|
|
1757
1750
|
*/
|
|
1758
1751
|
ledger_transaction?: PaymentOrderCreateAsyncParams.LedgerTransaction;
|
|
1759
1752
|
|
|
1760
1753
|
/**
|
|
1761
|
-
*
|
|
1762
|
-
* order.
|
|
1754
|
+
* An array of line items that must sum up to the amount of the payment order.
|
|
1763
1755
|
*/
|
|
1764
1756
|
line_items?: Array<PaymentOrderCreateAsyncParams.LineItem>;
|
|
1765
1757
|
|
|
1766
1758
|
/**
|
|
1767
|
-
*
|
|
1768
|
-
*
|
|
1759
|
+
* Additional data represented as key-value pairs. Both the key and value must be
|
|
1760
|
+
* strings.
|
|
1769
1761
|
*/
|
|
1770
1762
|
metadata?: Record<string, string>;
|
|
1771
1763
|
|
|
1772
1764
|
/**
|
|
1773
|
-
*
|
|
1774
|
-
*
|
|
1775
|
-
* settings page.
|
|
1765
|
+
* A boolean to determine if NSF Protection is enabled for this payment order. Note
|
|
1766
|
+
* that this setting must also be turned on in your organization settings page.
|
|
1776
1767
|
*/
|
|
1777
1768
|
nsf_protected?: boolean;
|
|
1778
1769
|
|
|
1779
1770
|
/**
|
|
1780
|
-
*
|
|
1781
|
-
*
|
|
1782
|
-
*
|
|
1783
|
-
*
|
|
1771
|
+
* If present, this will replace your default company name on receiver's bank
|
|
1772
|
+
* statement. This field can only be used for ACH payments currently. For ACH, only
|
|
1773
|
+
* the first 16 characters of this string will be used. Any additional characters
|
|
1774
|
+
* will be truncated.
|
|
1784
1775
|
*/
|
|
1785
1776
|
originating_party_name?: string | null;
|
|
1786
1777
|
|
|
1787
1778
|
/**
|
|
1788
|
-
*
|
|
1789
|
-
*
|
|
1790
|
-
*
|
|
1779
|
+
* Either `normal` or `high`. For ACH and EFT payments, `high` represents a
|
|
1780
|
+
* same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
|
|
1781
|
+
* an overnight check rather than standard mail.
|
|
1791
1782
|
*/
|
|
1792
1783
|
priority?: 'high' | 'normal';
|
|
1793
1784
|
|
|
1794
1785
|
/**
|
|
1795
|
-
*
|
|
1786
|
+
* For `wire`, this is usually the purpose which is transmitted via the
|
|
1796
1787
|
* "InstrForDbtrAgt" field in the ISO20022 file. If you are using Currencycloud,
|
|
1797
1788
|
* this is the `payment.purpose_code` field. For `eft`, this field is the 3 digit
|
|
1798
1789
|
* CPA Code that will be attached to the payment.
|
|
@@ -1800,81 +1791,75 @@ export interface PaymentOrderCreateAsyncParams {
|
|
|
1800
1791
|
purpose?: string | null;
|
|
1801
1792
|
|
|
1802
1793
|
/**
|
|
1803
|
-
*
|
|
1804
|
-
*
|
|
1805
|
-
*
|
|
1794
|
+
* Either `receiving_account` or `receiving_account_id` must be present. When using
|
|
1795
|
+
* `receiving_account_id`, you may pass the id of an external account or an
|
|
1796
|
+
* internal account.
|
|
1806
1797
|
*/
|
|
1807
1798
|
receiving_account?: PaymentOrderCreateAsyncParams.ReceivingAccount;
|
|
1808
1799
|
|
|
1809
1800
|
/**
|
|
1810
|
-
*
|
|
1811
|
-
*
|
|
1812
|
-
*
|
|
1801
|
+
* Either `receiving_account` or `receiving_account_id` must be present. When using
|
|
1802
|
+
* `receiving_account_id`, you may pass the id of an external account or an
|
|
1803
|
+
* internal account.
|
|
1813
1804
|
*/
|
|
1814
1805
|
receiving_account_id?: string;
|
|
1815
1806
|
|
|
1816
1807
|
/**
|
|
1817
|
-
*
|
|
1818
|
-
*
|
|
1819
|
-
*
|
|
1808
|
+
* For `ach`, this field will be passed through on an addenda record. For `wire`
|
|
1809
|
+
* payments the field will be passed through as the "Originator to Beneficiary
|
|
1810
|
+
* Information", also known as OBI or Fedwire tag 6000.
|
|
1820
1811
|
*/
|
|
1821
1812
|
remittance_information?: string | null;
|
|
1822
1813
|
|
|
1823
1814
|
/**
|
|
1824
|
-
*
|
|
1825
|
-
*
|
|
1815
|
+
* Send an email to the counterparty when the payment order is sent to the bank. If
|
|
1816
|
+
* `null`, `send_remittance_advice` on the Counterparty is used.
|
|
1826
1817
|
*/
|
|
1827
1818
|
send_remittance_advice?: boolean | null;
|
|
1828
1819
|
|
|
1829
1820
|
/**
|
|
1830
|
-
*
|
|
1831
|
-
*
|
|
1832
|
-
*
|
|
1833
|
-
*
|
|
1834
|
-
*
|
|
1821
|
+
* An optional descriptor which will appear in the receiver's statement. For
|
|
1822
|
+
* `check` payments this field will be used as the memo line. For `ach` the maximum
|
|
1823
|
+
* length is 10 characters. Note that for ACH payments, the name on your bank
|
|
1824
|
+
* account will be included automatically by the bank, so you can use the
|
|
1825
|
+
* characters for other useful information. For `eft` the maximum length is 15
|
|
1835
1826
|
* characters.
|
|
1836
1827
|
*/
|
|
1837
1828
|
statement_descriptor?: string | null;
|
|
1838
1829
|
|
|
1839
1830
|
/**
|
|
1840
|
-
*
|
|
1841
|
-
*
|
|
1842
|
-
*
|
|
1843
|
-
*
|
|
1831
|
+
* An additional layer of classification for the type of payment order you are
|
|
1832
|
+
* doing. This field is only used for `ach` payment orders currently. For `ach`
|
|
1833
|
+
* payment orders, the `subtype` represents the SEC code. We currently support
|
|
1834
|
+
* `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
|
|
1844
1835
|
*/
|
|
1845
1836
|
subtype?: PaymentOrderSubtype | null;
|
|
1846
1837
|
|
|
1847
1838
|
/**
|
|
1848
|
-
*
|
|
1849
|
-
*
|
|
1839
|
+
* A flag that determines whether a payment order should go through transaction
|
|
1840
|
+
* monitoring.
|
|
1850
1841
|
*/
|
|
1851
1842
|
transaction_monitoring_enabled?: boolean;
|
|
1852
1843
|
|
|
1853
1844
|
/**
|
|
1854
|
-
*
|
|
1845
|
+
* Identifier of the ultimate originator of the payment order.
|
|
1855
1846
|
*/
|
|
1856
1847
|
ultimate_originating_party_identifier?: string | null;
|
|
1857
1848
|
|
|
1858
1849
|
/**
|
|
1859
|
-
*
|
|
1850
|
+
* Name of the ultimate originator of the payment order.
|
|
1860
1851
|
*/
|
|
1861
1852
|
ultimate_originating_party_name?: string | null;
|
|
1862
1853
|
|
|
1863
1854
|
/**
|
|
1864
|
-
*
|
|
1855
|
+
* Identifier of the ultimate funds recipient.
|
|
1865
1856
|
*/
|
|
1866
1857
|
ultimate_receiving_party_identifier?: string | null;
|
|
1867
1858
|
|
|
1868
1859
|
/**
|
|
1869
|
-
*
|
|
1860
|
+
* Name of the ultimate funds recipient.
|
|
1870
1861
|
*/
|
|
1871
1862
|
ultimate_receiving_party_name?: string | null;
|
|
1872
|
-
|
|
1873
|
-
/**
|
|
1874
|
-
* Header param: This key should be something unique, preferably something like an
|
|
1875
|
-
* UUID.
|
|
1876
|
-
*/
|
|
1877
|
-
'Idempotency-Key'?: string;
|
|
1878
1863
|
}
|
|
1879
1864
|
|
|
1880
1865
|
export namespace PaymentOrderCreateAsyncParams {
|