modern-treasury 3.3.0 → 4.4.2
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 +193 -0
- package/LICENSE +1 -1
- package/README.md +14 -5
- package/client.d.mts +16 -6
- package/client.d.mts.map +1 -1
- package/client.d.ts +16 -6
- package/client.d.ts.map +1 -1
- package/client.js +27 -3
- package/client.js.map +1 -1
- package/client.mjs +27 -3
- package/client.mjs.map +1 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +5 -0
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs +5 -0
- package/internal/parse.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/account-details.d.mts +4 -4
- package/resources/account-details.d.mts.map +1 -1
- package/resources/account-details.d.ts +4 -4
- package/resources/account-details.d.ts.map +1 -1
- package/resources/bulk-requests.d.mts +57 -4
- package/resources/bulk-requests.d.mts.map +1 -1
- package/resources/bulk-requests.d.ts +57 -4
- package/resources/bulk-requests.d.ts.map +1 -1
- package/resources/connection-legal-entities.d.mts +88 -21
- package/resources/connection-legal-entities.d.mts.map +1 -1
- package/resources/connection-legal-entities.d.ts +88 -21
- package/resources/connection-legal-entities.d.ts.map +1 -1
- package/resources/counterparties.d.mts +91 -20
- package/resources/counterparties.d.mts.map +1 -1
- package/resources/counterparties.d.ts +91 -20
- package/resources/counterparties.d.ts.map +1 -1
- package/resources/documents.d.mts +8 -8
- package/resources/documents.d.mts.map +1 -1
- package/resources/documents.d.ts +8 -8
- package/resources/documents.d.ts.map +1 -1
- package/resources/expected-payments.d.mts +60 -0
- package/resources/expected-payments.d.mts.map +1 -1
- package/resources/expected-payments.d.ts +60 -0
- package/resources/expected-payments.d.ts.map +1 -1
- package/resources/external-accounts.d.mts +1 -1
- package/resources/external-accounts.d.mts.map +1 -1
- package/resources/external-accounts.d.ts +1 -1
- package/resources/external-accounts.d.ts.map +1 -1
- package/resources/holds.d.mts +261 -0
- package/resources/holds.d.mts.map +1 -0
- package/resources/holds.d.ts +261 -0
- package/resources/holds.d.ts.map +1 -0
- package/resources/holds.js +35 -0
- package/resources/holds.js.map +1 -0
- package/resources/holds.mjs +31 -0
- package/resources/holds.mjs.map +1 -0
- package/resources/incoming-payment-details.d.mts +17 -4
- package/resources/incoming-payment-details.d.mts.map +1 -1
- package/resources/incoming-payment-details.d.ts +17 -4
- package/resources/incoming-payment-details.d.ts.map +1 -1
- package/resources/index.d.mts +4 -1
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.mts +35 -0
- package/resources/internal-accounts/internal-accounts.d.mts.map +1 -1
- package/resources/internal-accounts/internal-accounts.d.ts +35 -0
- package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
- package/resources/internal-accounts/internal-accounts.js +12 -0
- package/resources/internal-accounts/internal-accounts.js.map +1 -1
- package/resources/internal-accounts/internal-accounts.mjs +12 -0
- package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
- package/resources/invoices/invoices.d.mts +1 -21
- package/resources/invoices/invoices.d.mts.map +1 -1
- package/resources/invoices/invoices.d.ts +1 -21
- package/resources/invoices/invoices.d.ts.map +1 -1
- package/resources/invoices/invoices.js.map +1 -1
- package/resources/invoices/invoices.mjs.map +1 -1
- package/resources/journal-entries.d.mts +31 -0
- package/resources/journal-entries.d.mts.map +1 -0
- package/resources/journal-entries.d.ts +31 -0
- package/resources/journal-entries.d.ts.map +1 -0
- package/resources/journal-entries.js +30 -0
- package/resources/journal-entries.js.map +1 -0
- package/resources/journal-entries.mjs +26 -0
- package/resources/journal-entries.mjs.map +1 -0
- package/resources/journal-reports.d.mts +25 -0
- package/resources/journal-reports.d.mts.map +1 -0
- package/resources/journal-reports.d.ts +25 -0
- package/resources/journal-reports.d.ts.map +1 -0
- package/resources/journal-reports.js +39 -0
- package/resources/journal-reports.js.map +1 -0
- package/resources/journal-reports.mjs +35 -0
- package/resources/journal-reports.mjs.map +1 -0
- package/resources/ledger-account-categories.d.mts +9 -5
- package/resources/ledger-account-categories.d.mts.map +1 -1
- package/resources/ledger-account-categories.d.ts +9 -5
- package/resources/ledger-account-categories.d.ts.map +1 -1
- package/resources/ledger-accounts.d.mts +8 -0
- package/resources/ledger-accounts.d.mts.map +1 -1
- package/resources/ledger-accounts.d.ts +8 -0
- package/resources/ledger-accounts.d.ts.map +1 -1
- package/resources/ledger-entries.d.mts +6 -1
- package/resources/ledger-entries.d.mts.map +1 -1
- package/resources/ledger-entries.d.ts +6 -1
- package/resources/ledger-entries.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.mts +5 -0
- package/resources/ledger-transactions/ledger-transactions.d.mts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.d.ts +5 -0
- package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
- package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
- package/resources/ledger-transactions/versions.d.mts +5 -0
- package/resources/ledger-transactions/versions.d.mts.map +1 -1
- package/resources/ledger-transactions/versions.d.ts +5 -0
- package/resources/ledger-transactions/versions.d.ts.map +1 -1
- package/resources/legal-entities.d.mts +264 -29
- package/resources/legal-entities.d.mts.map +1 -1
- package/resources/legal-entities.d.ts +264 -29
- package/resources/legal-entities.d.ts.map +1 -1
- package/resources/legal-entities.js.map +1 -1
- package/resources/legal-entities.mjs.map +1 -1
- package/resources/legal-entity-associations.d.mts +314 -230
- package/resources/legal-entity-associations.d.mts.map +1 -1
- package/resources/legal-entity-associations.d.ts +314 -230
- package/resources/legal-entity-associations.d.ts.map +1 -1
- package/resources/legal-entity-associations.js.map +1 -1
- package/resources/legal-entity-associations.mjs.map +1 -1
- package/resources/payment-orders/payment-orders.d.mts +31 -14
- package/resources/payment-orders/payment-orders.d.mts.map +1 -1
- package/resources/payment-orders/payment-orders.d.ts +31 -14
- package/resources/payment-orders/payment-orders.d.ts.map +1 -1
- package/resources/payment-orders/payment-orders.js.map +1 -1
- package/resources/payment-orders/payment-orders.mjs.map +1 -1
- package/resources/payment-orders/reversals.d.mts +4 -0
- package/resources/payment-orders/reversals.d.mts.map +1 -1
- package/resources/payment-orders/reversals.d.ts +4 -0
- package/resources/payment-orders/reversals.d.ts.map +1 -1
- package/resources/payment-references.d.mts +1 -1
- package/resources/payment-references.d.mts.map +1 -1
- package/resources/payment-references.d.ts +1 -1
- package/resources/payment-references.d.ts.map +1 -1
- package/resources/returns.d.mts +3 -3
- package/resources/returns.d.mts.map +1 -1
- package/resources/returns.d.ts +3 -3
- package/resources/returns.d.ts.map +1 -1
- package/resources/routing-details.d.mts +2 -2
- package/resources/routing-details.d.ts +2 -2
- package/resources/shared.d.mts +112 -30
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +112 -30
- package/resources/shared.d.ts.map +1 -1
- package/resources/transactions/transactions.d.mts +1 -1
- package/resources/transactions/transactions.d.mts.map +1 -1
- package/resources/transactions/transactions.d.ts +1 -1
- package/resources/transactions/transactions.d.ts.map +1 -1
- package/resources/transactions/transactions.js.map +1 -1
- package/resources/transactions/transactions.mjs.map +1 -1
- package/resources/virtual-accounts.d.mts +1 -1
- package/resources/virtual-accounts.d.mts.map +1 -1
- package/resources/virtual-accounts.d.ts +1 -1
- package/resources/virtual-accounts.d.ts.map +1 -1
- package/src/client.ts +65 -8
- package/src/internal/parse.ts +6 -0
- package/src/resources/account-details.ts +4 -2
- package/src/resources/bulk-requests.ts +68 -2
- package/src/resources/connection-legal-entities.ts +107 -21
- package/src/resources/counterparties.ts +111 -19
- package/src/resources/documents.ts +19 -15
- package/src/resources/expected-payments.ts +72 -0
- package/src/resources/external-accounts.ts +1 -0
- package/src/resources/holds.ts +336 -0
- package/src/resources/incoming-payment-details.ts +35 -3
- package/src/resources/index.ts +14 -0
- package/src/resources/internal-accounts/internal-accounts.ts +44 -0
- package/src/resources/invoices/invoices.ts +1 -25
- package/src/resources/journal-entries.ts +51 -0
- package/src/resources/journal-reports.ts +54 -0
- package/src/resources/ledger-account-categories.ts +11 -5
- package/src/resources/ledger-accounts.ts +10 -0
- package/src/resources/ledger-entries.ts +7 -1
- package/src/resources/ledger-transactions/ledger-transactions.ts +6 -0
- package/src/resources/ledger-transactions/versions.ts +6 -0
- package/src/resources/legal-entities.ts +332 -27
- package/src/resources/legal-entity-associations.ts +502 -390
- package/src/resources/payment-orders/payment-orders.ts +48 -19
- package/src/resources/payment-orders/reversals.ts +5 -0
- package/src/resources/payment-references.ts +8 -3
- package/src/resources/returns.ts +11 -5
- package/src/resources/routing-details.ts +2 -2
- package/src/resources/shared.ts +138 -36
- package/src/resources/transactions/transactions.ts +2 -1
- package/src/resources/virtual-accounts.ts +1 -0
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -56,7 +56,7 @@ export interface Document {
|
|
|
56
56
|
/**
|
|
57
57
|
* The unique identifier for the associated object.
|
|
58
58
|
*/
|
|
59
|
-
documentable_id: string;
|
|
59
|
+
documentable_id: string | null;
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* The type of the associated object. Currently can be one of `payment_order`,
|
|
@@ -64,16 +64,18 @@ export interface Document {
|
|
|
64
64
|
* `internal_account`, `decision`, or `external_account`.
|
|
65
65
|
*/
|
|
66
66
|
documentable_type:
|
|
67
|
+
| 'connection'
|
|
67
68
|
| 'counterparty'
|
|
68
69
|
| 'expected_payment'
|
|
69
70
|
| 'external_account'
|
|
70
71
|
| 'identification'
|
|
71
72
|
| 'incoming_payment_detail'
|
|
72
73
|
| 'internal_account'
|
|
74
|
+
| 'legal_entity'
|
|
73
75
|
| 'organization'
|
|
74
76
|
| 'payment_order'
|
|
75
77
|
| 'transaction'
|
|
76
|
-
|
|
|
78
|
+
| null;
|
|
77
79
|
|
|
78
80
|
file: Document.File;
|
|
79
81
|
|
|
@@ -135,29 +137,30 @@ export namespace Document {
|
|
|
135
137
|
}
|
|
136
138
|
|
|
137
139
|
export interface DocumentCreateParams {
|
|
140
|
+
file: Uploadable;
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* A category given to the document, can be `null`.
|
|
144
|
+
*/
|
|
145
|
+
document_type?: string;
|
|
146
|
+
|
|
138
147
|
/**
|
|
139
148
|
* The unique identifier for the associated object.
|
|
140
149
|
*/
|
|
141
|
-
documentable_id
|
|
150
|
+
documentable_id?: string;
|
|
142
151
|
|
|
143
|
-
documentable_type
|
|
152
|
+
documentable_type?:
|
|
153
|
+
| 'connections'
|
|
144
154
|
| 'counterparties'
|
|
145
155
|
| 'expected_payments'
|
|
146
156
|
| 'external_accounts'
|
|
147
157
|
| 'identifications'
|
|
148
158
|
| 'incoming_payment_details'
|
|
149
159
|
| 'internal_accounts'
|
|
160
|
+
| 'legal_entities'
|
|
150
161
|
| 'organizations'
|
|
151
162
|
| 'payment_orders'
|
|
152
|
-
| 'transactions'
|
|
153
|
-
| 'connections';
|
|
154
|
-
|
|
155
|
-
file: Uploadable;
|
|
156
|
-
|
|
157
|
-
/**
|
|
158
|
-
* A category given to the document, can be `null`.
|
|
159
|
-
*/
|
|
160
|
-
document_type?: string;
|
|
163
|
+
| 'transactions';
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
export interface DocumentListParams extends PageParams {
|
|
@@ -172,16 +175,17 @@ export interface DocumentListParams extends PageParams {
|
|
|
172
175
|
* `internal_account`, `decision`, or `external_account`.
|
|
173
176
|
*/
|
|
174
177
|
documentable_type?:
|
|
178
|
+
| 'connections'
|
|
175
179
|
| 'counterparties'
|
|
176
180
|
| 'expected_payments'
|
|
177
181
|
| 'external_accounts'
|
|
178
182
|
| 'identifications'
|
|
179
183
|
| 'incoming_payment_details'
|
|
180
184
|
| 'internal_accounts'
|
|
185
|
+
| 'legal_entities'
|
|
181
186
|
| 'organizations'
|
|
182
187
|
| 'payment_orders'
|
|
183
|
-
| 'transactions'
|
|
184
|
-
| 'connections';
|
|
188
|
+
| 'transactions';
|
|
185
189
|
}
|
|
186
190
|
|
|
187
191
|
export declare namespace Documents {
|
|
@@ -97,6 +97,30 @@ export interface ExpectedPayment {
|
|
|
97
97
|
*/
|
|
98
98
|
amount_lower_bound: number | null;
|
|
99
99
|
|
|
100
|
+
/**
|
|
101
|
+
* The amount reconciled for this expected payment. Value in specified currency's
|
|
102
|
+
* smallest unit. e.g. $10 would be represented as 1000.
|
|
103
|
+
*/
|
|
104
|
+
amount_reconciled: number | null;
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
108
|
+
* amount.
|
|
109
|
+
*/
|
|
110
|
+
amount_reconciled_direction: 'credit' | 'debit' | null;
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* The amount that remains unreconciled for this expected payment. Value in
|
|
114
|
+
* specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
115
|
+
*/
|
|
116
|
+
amount_unreconciled: number | null;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
120
|
+
* debit amount.
|
|
121
|
+
*/
|
|
122
|
+
amount_unreconciled_direction: 'credit' | 'debit' | null;
|
|
123
|
+
|
|
100
124
|
/**
|
|
101
125
|
* The highest amount this expected payment may be equal to. Value in specified
|
|
102
126
|
* currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
@@ -367,6 +391,30 @@ export interface ExpectedPaymentCreateParams {
|
|
|
367
391
|
*/
|
|
368
392
|
amount_lower_bound?: number | null;
|
|
369
393
|
|
|
394
|
+
/**
|
|
395
|
+
* The amount reconciled for this expected payment. Value in specified currency's
|
|
396
|
+
* smallest unit. e.g. $10 would be represented as 1000.
|
|
397
|
+
*/
|
|
398
|
+
amount_reconciled?: number | null;
|
|
399
|
+
|
|
400
|
+
/**
|
|
401
|
+
* One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
402
|
+
* amount.
|
|
403
|
+
*/
|
|
404
|
+
amount_reconciled_direction?: 'credit' | 'debit' | null;
|
|
405
|
+
|
|
406
|
+
/**
|
|
407
|
+
* The amount that remains unreconciled for this expected payment. Value in
|
|
408
|
+
* specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
409
|
+
*/
|
|
410
|
+
amount_unreconciled?: number | null;
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
414
|
+
* debit amount.
|
|
415
|
+
*/
|
|
416
|
+
amount_unreconciled_direction?: 'credit' | 'debit' | null;
|
|
417
|
+
|
|
370
418
|
/**
|
|
371
419
|
* The highest amount this expected payment may be equal to. Value in specified
|
|
372
420
|
* currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
@@ -509,6 +557,30 @@ export interface ExpectedPaymentUpdateParams {
|
|
|
509
557
|
*/
|
|
510
558
|
amount_lower_bound?: number | null;
|
|
511
559
|
|
|
560
|
+
/**
|
|
561
|
+
* The amount reconciled for this expected payment. Value in specified currency's
|
|
562
|
+
* smallest unit. e.g. $10 would be represented as 1000.
|
|
563
|
+
*/
|
|
564
|
+
amount_reconciled?: number | null;
|
|
565
|
+
|
|
566
|
+
/**
|
|
567
|
+
* One of credit or debit. Indicates whether amount_reconciled is a credit or debit
|
|
568
|
+
* amount.
|
|
569
|
+
*/
|
|
570
|
+
amount_reconciled_direction?: 'credit' | 'debit' | null;
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* The amount that remains unreconciled for this expected payment. Value in
|
|
574
|
+
* specified currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
575
|
+
*/
|
|
576
|
+
amount_unreconciled?: number | null;
|
|
577
|
+
|
|
578
|
+
/**
|
|
579
|
+
* One of credit or debit. Indicates whether amount_unreconciled is a credit or
|
|
580
|
+
* debit amount.
|
|
581
|
+
*/
|
|
582
|
+
amount_unreconciled_direction?: 'credit' | 'debit' | null;
|
|
583
|
+
|
|
512
584
|
/**
|
|
513
585
|
* The highest amount this expected payment may be equal to. Value in specified
|
|
514
586
|
* currency's smallest unit. e.g. $10 would be represented as 1000.
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Page, type PageParams, PagePromise } from '../core/pagination';
|
|
6
|
+
import { RequestOptions } from '../internal/request-options';
|
|
7
|
+
import { path } from '../internal/utils/path';
|
|
8
|
+
|
|
9
|
+
export class Holds extends APIResource {
|
|
10
|
+
/**
|
|
11
|
+
* Create a new hold
|
|
12
|
+
*/
|
|
13
|
+
create(body: HoldCreateParams, options?: RequestOptions): APIPromise<HoldCreateResponse> {
|
|
14
|
+
return this._client.post('/api/holds', { body, ...options });
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Get a specific hold
|
|
19
|
+
*/
|
|
20
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<HoldRetrieveResponse> {
|
|
21
|
+
return this._client.get(path`/api/holds/${id}`, options);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
/**
|
|
25
|
+
* Update a hold
|
|
26
|
+
*/
|
|
27
|
+
update(id: string, body: HoldUpdateParams, options?: RequestOptions): APIPromise<HoldUpdateResponse> {
|
|
28
|
+
return this._client.patch(path`/api/holds/${id}`, { body, ...options });
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* Get a list of holds.
|
|
33
|
+
*/
|
|
34
|
+
list(
|
|
35
|
+
query: HoldListParams | null | undefined = {},
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): PagePromise<HoldListResponsesPage, HoldListResponse> {
|
|
38
|
+
return this._client.getAPIList('/api/holds', Page<HoldListResponse>, { query, ...options });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type HoldListResponsesPage = Page<HoldListResponse>;
|
|
43
|
+
|
|
44
|
+
export interface HoldCreateResponse {
|
|
45
|
+
id: string;
|
|
46
|
+
|
|
47
|
+
created_at: string;
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* The type of object
|
|
51
|
+
*/
|
|
52
|
+
object: 'hold';
|
|
53
|
+
|
|
54
|
+
/**
|
|
55
|
+
* The status of the hold
|
|
56
|
+
*/
|
|
57
|
+
status: 'active' | 'resolved';
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* The ID of the target being held
|
|
61
|
+
*/
|
|
62
|
+
target_id: string;
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* The type of target being held
|
|
66
|
+
*/
|
|
67
|
+
target_type: 'payment_order';
|
|
68
|
+
|
|
69
|
+
updated_at: string;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* This field will be true if this object exists in the live environment or false
|
|
73
|
+
* if it exists in the test environment.
|
|
74
|
+
*/
|
|
75
|
+
live_mode?: boolean;
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Additional metadata for the hold
|
|
79
|
+
*/
|
|
80
|
+
metadata?: { [key: string]: string } | null;
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* The reason for the hold
|
|
84
|
+
*/
|
|
85
|
+
reason?: string | null;
|
|
86
|
+
|
|
87
|
+
/**
|
|
88
|
+
* The resolution of the hold
|
|
89
|
+
*/
|
|
90
|
+
resolution?: string | null;
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* When the hold was resolved
|
|
94
|
+
*/
|
|
95
|
+
resolved_at?: string | null;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export interface HoldRetrieveResponse {
|
|
99
|
+
id: string;
|
|
100
|
+
|
|
101
|
+
created_at: string;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* The type of object
|
|
105
|
+
*/
|
|
106
|
+
object: 'hold';
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* The status of the hold
|
|
110
|
+
*/
|
|
111
|
+
status: 'active' | 'resolved';
|
|
112
|
+
|
|
113
|
+
/**
|
|
114
|
+
* The ID of the target being held
|
|
115
|
+
*/
|
|
116
|
+
target_id: string;
|
|
117
|
+
|
|
118
|
+
/**
|
|
119
|
+
* The type of target being held
|
|
120
|
+
*/
|
|
121
|
+
target_type: 'payment_order';
|
|
122
|
+
|
|
123
|
+
updated_at: string;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* This field will be true if this object exists in the live environment or false
|
|
127
|
+
* if it exists in the test environment.
|
|
128
|
+
*/
|
|
129
|
+
live_mode?: boolean;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Additional metadata for the hold
|
|
133
|
+
*/
|
|
134
|
+
metadata?: { [key: string]: string } | null;
|
|
135
|
+
|
|
136
|
+
/**
|
|
137
|
+
* The reason for the hold
|
|
138
|
+
*/
|
|
139
|
+
reason?: string | null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The resolution of the hold
|
|
143
|
+
*/
|
|
144
|
+
resolution?: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* When the hold was resolved
|
|
148
|
+
*/
|
|
149
|
+
resolved_at?: string | null;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface HoldUpdateResponse {
|
|
153
|
+
id: string;
|
|
154
|
+
|
|
155
|
+
created_at: string;
|
|
156
|
+
|
|
157
|
+
/**
|
|
158
|
+
* The type of object
|
|
159
|
+
*/
|
|
160
|
+
object: 'hold';
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The status of the hold
|
|
164
|
+
*/
|
|
165
|
+
status: 'active' | 'resolved';
|
|
166
|
+
|
|
167
|
+
/**
|
|
168
|
+
* The ID of the target being held
|
|
169
|
+
*/
|
|
170
|
+
target_id: string;
|
|
171
|
+
|
|
172
|
+
/**
|
|
173
|
+
* The type of target being held
|
|
174
|
+
*/
|
|
175
|
+
target_type: 'payment_order';
|
|
176
|
+
|
|
177
|
+
updated_at: string;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* This field will be true if this object exists in the live environment or false
|
|
181
|
+
* if it exists in the test environment.
|
|
182
|
+
*/
|
|
183
|
+
live_mode?: boolean;
|
|
184
|
+
|
|
185
|
+
/**
|
|
186
|
+
* Additional metadata for the hold
|
|
187
|
+
*/
|
|
188
|
+
metadata?: { [key: string]: string } | null;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* The reason for the hold
|
|
192
|
+
*/
|
|
193
|
+
reason?: string | null;
|
|
194
|
+
|
|
195
|
+
/**
|
|
196
|
+
* The resolution of the hold
|
|
197
|
+
*/
|
|
198
|
+
resolution?: string | null;
|
|
199
|
+
|
|
200
|
+
/**
|
|
201
|
+
* When the hold was resolved
|
|
202
|
+
*/
|
|
203
|
+
resolved_at?: string | null;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
export interface HoldListResponse {
|
|
207
|
+
id: string;
|
|
208
|
+
|
|
209
|
+
created_at: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The type of object
|
|
213
|
+
*/
|
|
214
|
+
object: 'hold';
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The status of the hold
|
|
218
|
+
*/
|
|
219
|
+
status: 'active' | 'resolved';
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The ID of the target being held
|
|
223
|
+
*/
|
|
224
|
+
target_id: string;
|
|
225
|
+
|
|
226
|
+
/**
|
|
227
|
+
* The type of target being held
|
|
228
|
+
*/
|
|
229
|
+
target_type: 'payment_order';
|
|
230
|
+
|
|
231
|
+
updated_at: string;
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* This field will be true if this object exists in the live environment or false
|
|
235
|
+
* if it exists in the test environment.
|
|
236
|
+
*/
|
|
237
|
+
live_mode?: boolean;
|
|
238
|
+
|
|
239
|
+
/**
|
|
240
|
+
* Additional metadata for the hold
|
|
241
|
+
*/
|
|
242
|
+
metadata?: { [key: string]: string } | null;
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* The reason for the hold
|
|
246
|
+
*/
|
|
247
|
+
reason?: string | null;
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* The resolution of the hold
|
|
251
|
+
*/
|
|
252
|
+
resolution?: string | null;
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* When the hold was resolved
|
|
256
|
+
*/
|
|
257
|
+
resolved_at?: string | null;
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
export interface HoldCreateParams {
|
|
261
|
+
/**
|
|
262
|
+
* The status of the hold
|
|
263
|
+
*/
|
|
264
|
+
status: 'active';
|
|
265
|
+
|
|
266
|
+
/**
|
|
267
|
+
* The ID of the target to hold
|
|
268
|
+
*/
|
|
269
|
+
target_id: string;
|
|
270
|
+
|
|
271
|
+
/**
|
|
272
|
+
* The type of target to hold
|
|
273
|
+
*/
|
|
274
|
+
target_type: 'payment_order';
|
|
275
|
+
|
|
276
|
+
/**
|
|
277
|
+
* Additional metadata for the hold
|
|
278
|
+
*/
|
|
279
|
+
metadata?: { [key: string]: string } | null;
|
|
280
|
+
|
|
281
|
+
/**
|
|
282
|
+
* The reason for the hold
|
|
283
|
+
*/
|
|
284
|
+
reason?: string | null;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
export interface HoldUpdateParams {
|
|
288
|
+
/**
|
|
289
|
+
* The new status of the hold
|
|
290
|
+
*/
|
|
291
|
+
status: 'resolved';
|
|
292
|
+
|
|
293
|
+
/**
|
|
294
|
+
* The resolution of the hold
|
|
295
|
+
*/
|
|
296
|
+
resolution?: string | null;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
export interface HoldListParams extends PageParams {
|
|
300
|
+
/**
|
|
301
|
+
* For example, if you want to query for records with metadata key `Type` and value
|
|
302
|
+
* `Loan`, the query would be `metadata%5BType%5D=Loan`. This encodes the query
|
|
303
|
+
* parameters.
|
|
304
|
+
*/
|
|
305
|
+
metadata?: { [key: string]: string };
|
|
306
|
+
|
|
307
|
+
/**
|
|
308
|
+
* Translation missing: en.openapi.descriptions.payment_order.query_params.status
|
|
309
|
+
*/
|
|
310
|
+
status?: 'active' | 'resolved' | null;
|
|
311
|
+
|
|
312
|
+
/**
|
|
313
|
+
* Translation missing:
|
|
314
|
+
* en.openapi.descriptions.payment_order.query_params.target_id
|
|
315
|
+
*/
|
|
316
|
+
target_id?: string | null;
|
|
317
|
+
|
|
318
|
+
/**
|
|
319
|
+
* Translation missing:
|
|
320
|
+
* en.openapi.descriptions.payment_order.query_params.target_type
|
|
321
|
+
*/
|
|
322
|
+
target_type?: 'payment_order' | null;
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
export declare namespace Holds {
|
|
326
|
+
export {
|
|
327
|
+
type HoldCreateResponse as HoldCreateResponse,
|
|
328
|
+
type HoldRetrieveResponse as HoldRetrieveResponse,
|
|
329
|
+
type HoldUpdateResponse as HoldUpdateResponse,
|
|
330
|
+
type HoldListResponse as HoldListResponse,
|
|
331
|
+
type HoldListResponsesPage as HoldListResponsesPage,
|
|
332
|
+
type HoldCreateParams as HoldCreateParams,
|
|
333
|
+
type HoldUpdateParams as HoldUpdateParams,
|
|
334
|
+
type HoldListParams as HoldListParams,
|
|
335
|
+
};
|
|
336
|
+
}
|
|
@@ -122,6 +122,7 @@ export interface IncomingPaymentDetail {
|
|
|
122
122
|
originating_account_number_type:
|
|
123
123
|
| 'au_number'
|
|
124
124
|
| 'base_address'
|
|
125
|
+
| 'card_token'
|
|
125
126
|
| 'clabe'
|
|
126
127
|
| 'ethereum_address'
|
|
127
128
|
| 'hk_number'
|
|
@@ -198,16 +199,21 @@ export interface IncomingPaymentDetail {
|
|
|
198
199
|
| 'ach'
|
|
199
200
|
| 'au_becs'
|
|
200
201
|
| 'bacs'
|
|
202
|
+
| 'base'
|
|
201
203
|
| 'book'
|
|
202
204
|
| 'check'
|
|
203
205
|
| 'eft'
|
|
206
|
+
| 'ethereum'
|
|
204
207
|
| 'interac'
|
|
205
208
|
| 'neft'
|
|
206
209
|
| 'nz_becs'
|
|
210
|
+
| 'polygon'
|
|
207
211
|
| 'rtp'
|
|
208
212
|
| 'sepa'
|
|
209
213
|
| 'signet'
|
|
210
|
-
| '
|
|
214
|
+
| 'solana'
|
|
215
|
+
| 'wire'
|
|
216
|
+
| 'zengin';
|
|
211
217
|
|
|
212
218
|
updated_at: string;
|
|
213
219
|
|
|
@@ -232,6 +238,22 @@ export interface IncomingPaymentDetail {
|
|
|
232
238
|
* The account number of the originating account for the incoming payment detail.
|
|
233
239
|
*/
|
|
234
240
|
originating_account_number?: string | null;
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* The address of the originating party for the incoming payment detail, or `null`.
|
|
244
|
+
*/
|
|
245
|
+
originating_party_address?: Shared.Address | null;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* The name of the originating party for the incoming payment detail.
|
|
249
|
+
*/
|
|
250
|
+
originating_party_name?: string | null;
|
|
251
|
+
|
|
252
|
+
/**
|
|
253
|
+
* The vendor-assigned identifier for the originating party of the incoming payment
|
|
254
|
+
* detail, or `null`.
|
|
255
|
+
*/
|
|
256
|
+
originating_party_vendor_identifier?: string | null;
|
|
235
257
|
}
|
|
236
258
|
|
|
237
259
|
export interface IncomingPaymentDetailUpdateParams {
|
|
@@ -281,16 +303,21 @@ export interface IncomingPaymentDetailListParams extends PageParams {
|
|
|
281
303
|
| 'ach'
|
|
282
304
|
| 'au_becs'
|
|
283
305
|
| 'bacs'
|
|
306
|
+
| 'base'
|
|
284
307
|
| 'book'
|
|
285
308
|
| 'check'
|
|
286
309
|
| 'eft'
|
|
310
|
+
| 'ethereum'
|
|
287
311
|
| 'interac'
|
|
288
312
|
| 'neft'
|
|
289
313
|
| 'nz_becs'
|
|
314
|
+
| 'polygon'
|
|
290
315
|
| 'rtp'
|
|
291
316
|
| 'sepa'
|
|
292
317
|
| 'signet'
|
|
293
|
-
| '
|
|
318
|
+
| 'solana'
|
|
319
|
+
| 'wire'
|
|
320
|
+
| 'zengin';
|
|
294
321
|
|
|
295
322
|
/**
|
|
296
323
|
* If the incoming payment detail is in a virtual account, the ID of the Virtual
|
|
@@ -344,16 +371,21 @@ export interface IncomingPaymentDetailCreateAsyncParams {
|
|
|
344
371
|
| 'ach'
|
|
345
372
|
| 'au_becs'
|
|
346
373
|
| 'bacs'
|
|
374
|
+
| 'base'
|
|
347
375
|
| 'book'
|
|
348
376
|
| 'check'
|
|
349
377
|
| 'eft'
|
|
378
|
+
| 'ethereum'
|
|
350
379
|
| 'interac'
|
|
351
380
|
| 'neft'
|
|
352
381
|
| 'nz_becs'
|
|
382
|
+
| 'polygon'
|
|
353
383
|
| 'rtp'
|
|
354
384
|
| 'sepa'
|
|
355
385
|
| 'signet'
|
|
356
|
-
| '
|
|
386
|
+
| 'solana'
|
|
387
|
+
| 'wire'
|
|
388
|
+
| 'zengin';
|
|
357
389
|
|
|
358
390
|
/**
|
|
359
391
|
* An optional parameter to associate the incoming payment detail to a virtual
|
package/src/resources/index.ts
CHANGED
|
@@ -87,6 +87,17 @@ export {
|
|
|
87
87
|
type ForeignExchangeQuoteListParams,
|
|
88
88
|
type ForeignExchangeQuotesPage,
|
|
89
89
|
} from './foreign-exchange-quotes';
|
|
90
|
+
export {
|
|
91
|
+
Holds,
|
|
92
|
+
type HoldCreateResponse,
|
|
93
|
+
type HoldRetrieveResponse,
|
|
94
|
+
type HoldUpdateResponse,
|
|
95
|
+
type HoldListResponse,
|
|
96
|
+
type HoldCreateParams,
|
|
97
|
+
type HoldUpdateParams,
|
|
98
|
+
type HoldListParams,
|
|
99
|
+
type HoldListResponsesPage,
|
|
100
|
+
} from './holds';
|
|
90
101
|
export {
|
|
91
102
|
IncomingPaymentDetails,
|
|
92
103
|
type IncomingPaymentDetail,
|
|
@@ -114,6 +125,8 @@ export {
|
|
|
114
125
|
type InvoiceAddPaymentOrderParams,
|
|
115
126
|
type InvoicesPage,
|
|
116
127
|
} from './invoices/invoices';
|
|
128
|
+
export { JournalEntries, type JournalEntryListParams } from './journal-entries';
|
|
129
|
+
export { JournalReports, type JournalReportUpdateParams } from './journal-reports';
|
|
117
130
|
export {
|
|
118
131
|
LedgerAccountBalanceMonitors,
|
|
119
132
|
type LedgerAccountBalanceMonitor,
|
|
@@ -194,6 +207,7 @@ export {
|
|
|
194
207
|
} from './legal-entities';
|
|
195
208
|
export {
|
|
196
209
|
LegalEntityAssociations,
|
|
210
|
+
type ChildLegalEntity,
|
|
197
211
|
type LegalEntityAssociation,
|
|
198
212
|
type LegalEntityAssociationCreateParams,
|
|
199
213
|
} from './legal-entity-associations';
|