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.
Files changed (200) hide show
  1. package/CHANGELOG.md +193 -0
  2. package/LICENSE +1 -1
  3. package/README.md +14 -5
  4. package/client.d.mts +16 -6
  5. package/client.d.mts.map +1 -1
  6. package/client.d.ts +16 -6
  7. package/client.d.ts.map +1 -1
  8. package/client.js +27 -3
  9. package/client.js.map +1 -1
  10. package/client.mjs +27 -3
  11. package/client.mjs.map +1 -1
  12. package/internal/parse.d.mts.map +1 -1
  13. package/internal/parse.d.ts.map +1 -1
  14. package/internal/parse.js +5 -0
  15. package/internal/parse.js.map +1 -1
  16. package/internal/parse.mjs +5 -0
  17. package/internal/parse.mjs.map +1 -1
  18. package/package.json +1 -1
  19. package/resources/account-details.d.mts +4 -4
  20. package/resources/account-details.d.mts.map +1 -1
  21. package/resources/account-details.d.ts +4 -4
  22. package/resources/account-details.d.ts.map +1 -1
  23. package/resources/bulk-requests.d.mts +57 -4
  24. package/resources/bulk-requests.d.mts.map +1 -1
  25. package/resources/bulk-requests.d.ts +57 -4
  26. package/resources/bulk-requests.d.ts.map +1 -1
  27. package/resources/connection-legal-entities.d.mts +88 -21
  28. package/resources/connection-legal-entities.d.mts.map +1 -1
  29. package/resources/connection-legal-entities.d.ts +88 -21
  30. package/resources/connection-legal-entities.d.ts.map +1 -1
  31. package/resources/counterparties.d.mts +91 -20
  32. package/resources/counterparties.d.mts.map +1 -1
  33. package/resources/counterparties.d.ts +91 -20
  34. package/resources/counterparties.d.ts.map +1 -1
  35. package/resources/documents.d.mts +8 -8
  36. package/resources/documents.d.mts.map +1 -1
  37. package/resources/documents.d.ts +8 -8
  38. package/resources/documents.d.ts.map +1 -1
  39. package/resources/expected-payments.d.mts +60 -0
  40. package/resources/expected-payments.d.mts.map +1 -1
  41. package/resources/expected-payments.d.ts +60 -0
  42. package/resources/expected-payments.d.ts.map +1 -1
  43. package/resources/external-accounts.d.mts +1 -1
  44. package/resources/external-accounts.d.mts.map +1 -1
  45. package/resources/external-accounts.d.ts +1 -1
  46. package/resources/external-accounts.d.ts.map +1 -1
  47. package/resources/holds.d.mts +261 -0
  48. package/resources/holds.d.mts.map +1 -0
  49. package/resources/holds.d.ts +261 -0
  50. package/resources/holds.d.ts.map +1 -0
  51. package/resources/holds.js +35 -0
  52. package/resources/holds.js.map +1 -0
  53. package/resources/holds.mjs +31 -0
  54. package/resources/holds.mjs.map +1 -0
  55. package/resources/incoming-payment-details.d.mts +17 -4
  56. package/resources/incoming-payment-details.d.mts.map +1 -1
  57. package/resources/incoming-payment-details.d.ts +17 -4
  58. package/resources/incoming-payment-details.d.ts.map +1 -1
  59. package/resources/index.d.mts +4 -1
  60. package/resources/index.d.mts.map +1 -1
  61. package/resources/index.d.ts +4 -1
  62. package/resources/index.d.ts.map +1 -1
  63. package/resources/index.js +7 -1
  64. package/resources/index.js.map +1 -1
  65. package/resources/index.mjs +3 -0
  66. package/resources/index.mjs.map +1 -1
  67. package/resources/internal-accounts/internal-accounts.d.mts +35 -0
  68. package/resources/internal-accounts/internal-accounts.d.mts.map +1 -1
  69. package/resources/internal-accounts/internal-accounts.d.ts +35 -0
  70. package/resources/internal-accounts/internal-accounts.d.ts.map +1 -1
  71. package/resources/internal-accounts/internal-accounts.js +12 -0
  72. package/resources/internal-accounts/internal-accounts.js.map +1 -1
  73. package/resources/internal-accounts/internal-accounts.mjs +12 -0
  74. package/resources/internal-accounts/internal-accounts.mjs.map +1 -1
  75. package/resources/invoices/invoices.d.mts +1 -21
  76. package/resources/invoices/invoices.d.mts.map +1 -1
  77. package/resources/invoices/invoices.d.ts +1 -21
  78. package/resources/invoices/invoices.d.ts.map +1 -1
  79. package/resources/invoices/invoices.js.map +1 -1
  80. package/resources/invoices/invoices.mjs.map +1 -1
  81. package/resources/journal-entries.d.mts +31 -0
  82. package/resources/journal-entries.d.mts.map +1 -0
  83. package/resources/journal-entries.d.ts +31 -0
  84. package/resources/journal-entries.d.ts.map +1 -0
  85. package/resources/journal-entries.js +30 -0
  86. package/resources/journal-entries.js.map +1 -0
  87. package/resources/journal-entries.mjs +26 -0
  88. package/resources/journal-entries.mjs.map +1 -0
  89. package/resources/journal-reports.d.mts +25 -0
  90. package/resources/journal-reports.d.mts.map +1 -0
  91. package/resources/journal-reports.d.ts +25 -0
  92. package/resources/journal-reports.d.ts.map +1 -0
  93. package/resources/journal-reports.js +39 -0
  94. package/resources/journal-reports.js.map +1 -0
  95. package/resources/journal-reports.mjs +35 -0
  96. package/resources/journal-reports.mjs.map +1 -0
  97. package/resources/ledger-account-categories.d.mts +9 -5
  98. package/resources/ledger-account-categories.d.mts.map +1 -1
  99. package/resources/ledger-account-categories.d.ts +9 -5
  100. package/resources/ledger-account-categories.d.ts.map +1 -1
  101. package/resources/ledger-accounts.d.mts +8 -0
  102. package/resources/ledger-accounts.d.mts.map +1 -1
  103. package/resources/ledger-accounts.d.ts +8 -0
  104. package/resources/ledger-accounts.d.ts.map +1 -1
  105. package/resources/ledger-entries.d.mts +6 -1
  106. package/resources/ledger-entries.d.mts.map +1 -1
  107. package/resources/ledger-entries.d.ts +6 -1
  108. package/resources/ledger-entries.d.ts.map +1 -1
  109. package/resources/ledger-transactions/ledger-transactions.d.mts +5 -0
  110. package/resources/ledger-transactions/ledger-transactions.d.mts.map +1 -1
  111. package/resources/ledger-transactions/ledger-transactions.d.ts +5 -0
  112. package/resources/ledger-transactions/ledger-transactions.d.ts.map +1 -1
  113. package/resources/ledger-transactions/ledger-transactions.js.map +1 -1
  114. package/resources/ledger-transactions/ledger-transactions.mjs.map +1 -1
  115. package/resources/ledger-transactions/versions.d.mts +5 -0
  116. package/resources/ledger-transactions/versions.d.mts.map +1 -1
  117. package/resources/ledger-transactions/versions.d.ts +5 -0
  118. package/resources/ledger-transactions/versions.d.ts.map +1 -1
  119. package/resources/legal-entities.d.mts +264 -29
  120. package/resources/legal-entities.d.mts.map +1 -1
  121. package/resources/legal-entities.d.ts +264 -29
  122. package/resources/legal-entities.d.ts.map +1 -1
  123. package/resources/legal-entities.js.map +1 -1
  124. package/resources/legal-entities.mjs.map +1 -1
  125. package/resources/legal-entity-associations.d.mts +314 -230
  126. package/resources/legal-entity-associations.d.mts.map +1 -1
  127. package/resources/legal-entity-associations.d.ts +314 -230
  128. package/resources/legal-entity-associations.d.ts.map +1 -1
  129. package/resources/legal-entity-associations.js.map +1 -1
  130. package/resources/legal-entity-associations.mjs.map +1 -1
  131. package/resources/payment-orders/payment-orders.d.mts +31 -14
  132. package/resources/payment-orders/payment-orders.d.mts.map +1 -1
  133. package/resources/payment-orders/payment-orders.d.ts +31 -14
  134. package/resources/payment-orders/payment-orders.d.ts.map +1 -1
  135. package/resources/payment-orders/payment-orders.js.map +1 -1
  136. package/resources/payment-orders/payment-orders.mjs.map +1 -1
  137. package/resources/payment-orders/reversals.d.mts +4 -0
  138. package/resources/payment-orders/reversals.d.mts.map +1 -1
  139. package/resources/payment-orders/reversals.d.ts +4 -0
  140. package/resources/payment-orders/reversals.d.ts.map +1 -1
  141. package/resources/payment-references.d.mts +1 -1
  142. package/resources/payment-references.d.mts.map +1 -1
  143. package/resources/payment-references.d.ts +1 -1
  144. package/resources/payment-references.d.ts.map +1 -1
  145. package/resources/returns.d.mts +3 -3
  146. package/resources/returns.d.mts.map +1 -1
  147. package/resources/returns.d.ts +3 -3
  148. package/resources/returns.d.ts.map +1 -1
  149. package/resources/routing-details.d.mts +2 -2
  150. package/resources/routing-details.d.ts +2 -2
  151. package/resources/shared.d.mts +112 -30
  152. package/resources/shared.d.mts.map +1 -1
  153. package/resources/shared.d.ts +112 -30
  154. package/resources/shared.d.ts.map +1 -1
  155. package/resources/transactions/transactions.d.mts +1 -1
  156. package/resources/transactions/transactions.d.mts.map +1 -1
  157. package/resources/transactions/transactions.d.ts +1 -1
  158. package/resources/transactions/transactions.d.ts.map +1 -1
  159. package/resources/transactions/transactions.js.map +1 -1
  160. package/resources/transactions/transactions.mjs.map +1 -1
  161. package/resources/virtual-accounts.d.mts +1 -1
  162. package/resources/virtual-accounts.d.mts.map +1 -1
  163. package/resources/virtual-accounts.d.ts +1 -1
  164. package/resources/virtual-accounts.d.ts.map +1 -1
  165. package/src/client.ts +65 -8
  166. package/src/internal/parse.ts +6 -0
  167. package/src/resources/account-details.ts +4 -2
  168. package/src/resources/bulk-requests.ts +68 -2
  169. package/src/resources/connection-legal-entities.ts +107 -21
  170. package/src/resources/counterparties.ts +111 -19
  171. package/src/resources/documents.ts +19 -15
  172. package/src/resources/expected-payments.ts +72 -0
  173. package/src/resources/external-accounts.ts +1 -0
  174. package/src/resources/holds.ts +336 -0
  175. package/src/resources/incoming-payment-details.ts +35 -3
  176. package/src/resources/index.ts +14 -0
  177. package/src/resources/internal-accounts/internal-accounts.ts +44 -0
  178. package/src/resources/invoices/invoices.ts +1 -25
  179. package/src/resources/journal-entries.ts +51 -0
  180. package/src/resources/journal-reports.ts +54 -0
  181. package/src/resources/ledger-account-categories.ts +11 -5
  182. package/src/resources/ledger-accounts.ts +10 -0
  183. package/src/resources/ledger-entries.ts +7 -1
  184. package/src/resources/ledger-transactions/ledger-transactions.ts +6 -0
  185. package/src/resources/ledger-transactions/versions.ts +6 -0
  186. package/src/resources/legal-entities.ts +332 -27
  187. package/src/resources/legal-entity-associations.ts +502 -390
  188. package/src/resources/payment-orders/payment-orders.ts +48 -19
  189. package/src/resources/payment-orders/reversals.ts +5 -0
  190. package/src/resources/payment-references.ts +8 -3
  191. package/src/resources/returns.ts +11 -5
  192. package/src/resources/routing-details.ts +2 -2
  193. package/src/resources/shared.ts +138 -36
  194. package/src/resources/transactions/transactions.ts +2 -1
  195. package/src/resources/virtual-accounts.ts +1 -0
  196. package/src/version.ts +1 -1
  197. package/version.d.mts +1 -1
  198. package/version.d.ts +1 -1
  199. package/version.js +1 -1
  200. 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
- | 'connection';
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: string;
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.
@@ -379,6 +379,7 @@ export namespace ExternalAccountCreateParams {
379
379
  account_number_type?:
380
380
  | 'au_number'
381
381
  | 'base_address'
382
+ | 'card_token'
382
383
  | 'clabe'
383
384
  | 'ethereum_address'
384
385
  | 'hk_number'
@@ -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
- | 'wire';
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
- | 'wire';
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
- | 'wire';
386
+ | 'solana'
387
+ | 'wire'
388
+ | 'zengin';
357
389
 
358
390
  /**
359
391
  * An optional parameter to associate the incoming payment detail to a virtual
@@ -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';