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
@@ -154,6 +154,12 @@ export interface PaymentOrder {
154
154
  */
155
155
  amount: number;
156
156
 
157
+ /**
158
+ * The ID of the batch in which the payment order is included. Only populated after
159
+ * the payment order begins processing.
160
+ */
161
+ batch_id: string | null;
162
+
157
163
  /**
158
164
  * The party that will pay the fees for the payment order. See
159
165
  * https://docs.moderntreasury.com/payments/docs/charge-bearer to understand the
@@ -522,6 +528,7 @@ export namespace PaymentOrder {
522
528
  | 'ach_trace_number'
523
529
  | 'bankprov_payment_activity_date'
524
530
  | 'bankprov_payment_id'
531
+ | 'blockchain_transaction_hash'
525
532
  | 'bnk_dev_prenotification_id'
526
533
  | 'bnk_dev_transfer_id'
527
534
  | 'bny_mellon_transaction_reference_number'
@@ -534,9 +541,11 @@ export namespace PaymentOrder {
534
541
  | 'column_fx_quote_id'
535
542
  | 'column_reversal_pair_transfer_id'
536
543
  | 'column_transfer_id'
544
+ | 'cross_river_card_trace_number'
537
545
  | 'cross_river_core_transaction_id'
538
546
  | 'cross_river_fed_batch_id'
539
547
  | 'cross_river_payment_id'
548
+ | 'cross_river_retrieval_reference_id'
540
549
  | 'cross_river_service_message'
541
550
  | 'cross_river_transaction_id'
542
551
  | 'currencycloud_conversion_id'
@@ -571,9 +580,13 @@ export namespace PaymentOrder {
571
580
  | 'jpmc_payment_returned_datetime'
572
581
  | 'jpmc_transaction_reference_number'
573
582
  | 'lob_check_id'
574
- | 'mt_fof_transfer_id'
583
+ | 'mt_flow_ach_noc_id'
584
+ | 'mt_flow_transfer_id'
575
585
  | 'other'
576
586
  | 'partial_swift_mir'
587
+ | 'paxos_group_id'
588
+ | 'paxos_orchestration_id'
589
+ | 'paxos_transfer_id'
577
590
  | 'pnc_clearing_reference'
578
591
  | 'pnc_instruction_id'
579
592
  | 'pnc_multipayment_id'
@@ -588,8 +601,6 @@ export namespace PaymentOrder {
588
601
  | 'silvergate_payment_id'
589
602
  | 'svb_end_to_end_id'
590
603
  | 'svb_payment_id'
591
- | 'svb_transaction_cleared_for_sanctions_review'
592
- | 'svb_transaction_held_for_sanctions_review'
593
604
  | 'swift_mir'
594
605
  | 'swift_uetr'
595
606
  | 'umb_product_partner_account_number'
@@ -623,7 +634,6 @@ export type PaymentOrderSubtype =
623
634
  | 'CIE'
624
635
  | 'CTX'
625
636
  | 'IAT'
626
- | 'POS'
627
637
  | 'PPD'
628
638
  | 'TEL'
629
639
  | 'WEB'
@@ -769,6 +779,11 @@ export interface PaymentOrderCreateParams {
769
779
  */
770
780
  expires_at?: string | null;
771
781
 
782
+ /**
783
+ * An optional user-defined 180 character unique identifier.
784
+ */
785
+ external_id?: string | null;
786
+
772
787
  /**
773
788
  * A payment type to fallback to if the original type is not valid for the
774
789
  * receiving account. Currently, this only supports falling back from RTP to ACH
@@ -904,8 +919,8 @@ export interface PaymentOrderCreateParams {
904
919
  subtype?: PaymentOrderSubtype | null;
905
920
 
906
921
  /**
907
- * A flag that determines whether a payment order should go through transaction
908
- * monitoring.
922
+ * @deprecated A flag that determines whether a payment order should go through
923
+ * transaction monitoring.
909
924
  */
910
925
  transaction_monitoring_enabled?: boolean;
911
926
 
@@ -950,29 +965,30 @@ export namespace PaymentOrderCreateParams {
950
965
  }
951
966
 
952
967
  export interface Document {
968
+ file: Uploadable;
969
+
970
+ /**
971
+ * A category given to the document, can be `null`.
972
+ */
973
+ document_type?: string;
974
+
953
975
  /**
954
976
  * The unique identifier for the associated object.
955
977
  */
956
- documentable_id: string;
978
+ documentable_id?: string;
957
979
 
958
- documentable_type:
980
+ documentable_type?:
981
+ | 'connections'
959
982
  | 'counterparties'
960
983
  | 'expected_payments'
961
984
  | 'external_accounts'
962
985
  | 'identifications'
963
986
  | 'incoming_payment_details'
964
987
  | 'internal_accounts'
988
+ | 'legal_entities'
965
989
  | 'organizations'
966
990
  | 'payment_orders'
967
- | 'transactions'
968
- | 'connections';
969
-
970
- file: Uploadable;
971
-
972
- /**
973
- * A category given to the document, can be `null`.
974
- */
975
- document_type?: string;
991
+ | 'transactions';
976
992
  }
977
993
 
978
994
  export interface LineItem {
@@ -1074,6 +1090,7 @@ export namespace PaymentOrderCreateParams {
1074
1090
  account_number_type?:
1075
1091
  | 'au_number'
1076
1092
  | 'base_address'
1093
+ | 'card_token'
1077
1094
  | 'clabe'
1078
1095
  | 'ethereum_address'
1079
1096
  | 'hk_number'
@@ -1221,6 +1238,11 @@ export interface PaymentOrderUpdateParams {
1221
1238
  */
1222
1239
  expires_at?: string | null;
1223
1240
 
1241
+ /**
1242
+ * An optional user-defined 180 character unique identifier.
1243
+ */
1244
+ external_id?: string | null;
1245
+
1224
1246
  /**
1225
1247
  * A payment type to fallback to if the original type is not valid for the
1226
1248
  * receiving account. Currently, this only supports falling back from RTP to ACH
@@ -1518,6 +1540,7 @@ export namespace PaymentOrderUpdateParams {
1518
1540
  account_number_type?:
1519
1541
  | 'au_number'
1520
1542
  | 'base_address'
1543
+ | 'card_token'
1521
1544
  | 'clabe'
1522
1545
  | 'ethereum_address'
1523
1546
  | 'hk_number'
@@ -1788,6 +1811,11 @@ export interface PaymentOrderCreateAsyncParams {
1788
1811
  */
1789
1812
  expires_at?: string | null;
1790
1813
 
1814
+ /**
1815
+ * An optional user-defined 180 character unique identifier.
1816
+ */
1817
+ external_id?: string | null;
1818
+
1791
1819
  /**
1792
1820
  * A payment type to fallback to if the original type is not valid for the
1793
1821
  * receiving account. Currently, this only supports falling back from RTP to ACH
@@ -1923,8 +1951,8 @@ export interface PaymentOrderCreateAsyncParams {
1923
1951
  subtype?: PaymentOrderSubtype | null;
1924
1952
 
1925
1953
  /**
1926
- * A flag that determines whether a payment order should go through transaction
1927
- * monitoring.
1954
+ * @deprecated A flag that determines whether a payment order should go through
1955
+ * transaction monitoring.
1928
1956
  */
1929
1957
  transaction_monitoring_enabled?: boolean;
1930
1958
 
@@ -2067,6 +2095,7 @@ export namespace PaymentOrderCreateAsyncParams {
2067
2095
  account_number_type?:
2068
2096
  | 'au_number'
2069
2097
  | 'base_address'
2098
+ | 'card_token'
2070
2099
  | 'clabe'
2071
2100
  | 'ethereum_address'
2072
2101
  | 'hk_number'
@@ -77,6 +77,11 @@ export interface Reversal {
77
77
 
78
78
  created_at: string;
79
79
 
80
+ /**
81
+ * The ID of the relevant Internal Account.
82
+ */
83
+ internal_account_id: string | null;
84
+
80
85
  /**
81
86
  * The ID of the ledger transaction linked to the reversal.
82
87
  */
@@ -58,6 +58,7 @@ export interface PaymentReference {
58
58
  | 'ach_trace_number'
59
59
  | 'bankprov_payment_activity_date'
60
60
  | 'bankprov_payment_id'
61
+ | 'blockchain_transaction_hash'
61
62
  | 'bnk_dev_prenotification_id'
62
63
  | 'bnk_dev_transfer_id'
63
64
  | 'bny_mellon_transaction_reference_number'
@@ -70,9 +71,11 @@ export interface PaymentReference {
70
71
  | 'column_fx_quote_id'
71
72
  | 'column_reversal_pair_transfer_id'
72
73
  | 'column_transfer_id'
74
+ | 'cross_river_card_trace_number'
73
75
  | 'cross_river_core_transaction_id'
74
76
  | 'cross_river_fed_batch_id'
75
77
  | 'cross_river_payment_id'
78
+ | 'cross_river_retrieval_reference_id'
76
79
  | 'cross_river_service_message'
77
80
  | 'cross_river_transaction_id'
78
81
  | 'currencycloud_conversion_id'
@@ -107,9 +110,13 @@ export interface PaymentReference {
107
110
  | 'jpmc_payment_returned_datetime'
108
111
  | 'jpmc_transaction_reference_number'
109
112
  | 'lob_check_id'
110
- | 'mt_fof_transfer_id'
113
+ | 'mt_flow_ach_noc_id'
114
+ | 'mt_flow_transfer_id'
111
115
  | 'other'
112
116
  | 'partial_swift_mir'
117
+ | 'paxos_group_id'
118
+ | 'paxos_orchestration_id'
119
+ | 'paxos_transfer_id'
113
120
  | 'pnc_clearing_reference'
114
121
  | 'pnc_instruction_id'
115
122
  | 'pnc_multipayment_id'
@@ -124,8 +131,6 @@ export interface PaymentReference {
124
131
  | 'silvergate_payment_id'
125
132
  | 'svb_end_to_end_id'
126
133
  | 'svb_payment_id'
127
- | 'svb_transaction_cleared_for_sanctions_review'
128
- | 'svb_transaction_held_for_sanctions_review'
129
134
  | 'swift_mir'
130
135
  | 'swift_uetr'
131
136
  | 'umb_product_partner_account_number'
@@ -229,7 +229,7 @@ export interface ReturnObject {
229
229
  /**
230
230
  * The current status of the return.
231
231
  */
232
- status: 'completed' | 'failed' | 'pending' | 'processing' | 'returned' | 'sent';
232
+ status: 'cancelled' | 'completed' | 'failed' | 'pending' | 'processing' | 'returned' | 'sent';
233
233
 
234
234
  /**
235
235
  * The ID of the relevant Transaction or `null`.
@@ -258,7 +258,8 @@ export interface ReturnObject {
258
258
  | 'interac'
259
259
  | 'manual'
260
260
  | 'sepa'
261
- | 'wire';
261
+ | 'wire'
262
+ | 'zengin';
262
263
 
263
264
  updated_at: string;
264
265
 
@@ -344,6 +345,7 @@ export namespace ReturnObject {
344
345
  | 'ach_trace_number'
345
346
  | 'bankprov_payment_activity_date'
346
347
  | 'bankprov_payment_id'
348
+ | 'blockchain_transaction_hash'
347
349
  | 'bnk_dev_prenotification_id'
348
350
  | 'bnk_dev_transfer_id'
349
351
  | 'bny_mellon_transaction_reference_number'
@@ -356,9 +358,11 @@ export namespace ReturnObject {
356
358
  | 'column_fx_quote_id'
357
359
  | 'column_reversal_pair_transfer_id'
358
360
  | 'column_transfer_id'
361
+ | 'cross_river_card_trace_number'
359
362
  | 'cross_river_core_transaction_id'
360
363
  | 'cross_river_fed_batch_id'
361
364
  | 'cross_river_payment_id'
365
+ | 'cross_river_retrieval_reference_id'
362
366
  | 'cross_river_service_message'
363
367
  | 'cross_river_transaction_id'
364
368
  | 'currencycloud_conversion_id'
@@ -393,9 +397,13 @@ export namespace ReturnObject {
393
397
  | 'jpmc_payment_returned_datetime'
394
398
  | 'jpmc_transaction_reference_number'
395
399
  | 'lob_check_id'
396
- | 'mt_fof_transfer_id'
400
+ | 'mt_flow_ach_noc_id'
401
+ | 'mt_flow_transfer_id'
397
402
  | 'other'
398
403
  | 'partial_swift_mir'
404
+ | 'paxos_group_id'
405
+ | 'paxos_orchestration_id'
406
+ | 'paxos_transfer_id'
399
407
  | 'pnc_clearing_reference'
400
408
  | 'pnc_instruction_id'
401
409
  | 'pnc_multipayment_id'
@@ -410,8 +418,6 @@ export namespace ReturnObject {
410
418
  | 'silvergate_payment_id'
411
419
  | 'svb_end_to_end_id'
412
420
  | 'svb_payment_id'
413
- | 'svb_transaction_cleared_for_sanctions_review'
414
- | 'svb_transaction_held_for_sanctions_review'
415
421
  | 'swift_mir'
416
422
  | 'swift_uetr'
417
423
  | 'umb_product_partner_account_number'
@@ -166,7 +166,7 @@ export interface RoutingDetail {
166
166
 
167
167
  export interface RoutingDetailCreateParams {
168
168
  /**
169
- * Path param:
169
+ * Path param
170
170
  */
171
171
  accounts_type: 'external_accounts';
172
172
 
@@ -258,7 +258,7 @@ export interface RoutingDetailRetrieveParams {
258
258
 
259
259
  export interface RoutingDetailListParams extends PageParams {
260
260
  /**
261
- * Path param:
261
+ * Path param
262
262
  */
263
263
  accounts_type: Shared.AccountsType;
264
264
  }
@@ -82,6 +82,11 @@ export interface ChildLegalEntityCreate {
82
82
 
83
83
  bank_settings?: ChildLegalEntityCreate.BankSettings | null;
84
84
 
85
+ /**
86
+ * A description of the business.
87
+ */
88
+ business_description?: string | null;
89
+
85
90
  /**
86
91
  * The business's legal business name.
87
92
  */
@@ -92,7 +97,20 @@ export interface ChildLegalEntityCreate {
92
97
  */
93
98
  citizenship_country?: string | null;
94
99
 
95
- compliance_details?: LegalEntityComplianceDetail | null;
100
+ /**
101
+ * The connection ID for the connection the legal entity is associated with.
102
+ * Defaults to the id of the connection designated with an is_default value of true
103
+ * or the id of an existing operational connection if only one is available. Pass
104
+ * in a value of null to prevent the connection from being associated with the
105
+ * legal entity.
106
+ */
107
+ connection_id?: string | null;
108
+
109
+ /**
110
+ * The country code where the business is incorporated in the ISO 3166-1 alpha-2 or
111
+ * alpha-3 formats.
112
+ */
113
+ country_of_incorporation?: string | null;
96
114
 
97
115
  /**
98
116
  * A business's formation date (YYYY-MM-DD).
@@ -111,6 +129,16 @@ export interface ChildLegalEntityCreate {
111
129
  */
112
130
  email?: string | null;
113
131
 
132
+ /**
133
+ * Monthly expected transaction volume in USD.
134
+ */
135
+ expected_activity_volume?: number | null;
136
+
137
+ /**
138
+ * An optional user-defined 180 character unique identifier.
139
+ */
140
+ external_id?: string | null;
141
+
114
142
  /**
115
143
  * An individual's first name.
116
144
  */
@@ -126,11 +154,21 @@ export interface ChildLegalEntityCreate {
126
154
  */
127
155
  industry_classifications?: Array<LegalEntityIndustryClassification>;
128
156
 
157
+ /**
158
+ * A description of the intended use of the legal entity.
159
+ */
160
+ intended_use?: string | null;
161
+
129
162
  /**
130
163
  * An individual's last name.
131
164
  */
132
165
  last_name?: string | null;
133
166
 
167
+ /**
168
+ * The legal entity associations and its child legal entities.
169
+ */
170
+ legal_entity_associations?: Array<LegalEntityAssociationInlineCreate> | null;
171
+
134
172
  /**
135
173
  * The type of legal entity.
136
174
  */
@@ -148,6 +186,11 @@ export interface ChildLegalEntityCreate {
148
186
  | 'trust'
149
187
  | null;
150
188
 
189
+ /**
190
+ * ISO 10383 market identifier code.
191
+ */
192
+ listed_exchange?: string | null;
193
+
151
194
  /**
152
195
  * Additional data represented as key-value pairs. Both the key and value must be
153
196
  * strings.
@@ -159,6 +202,12 @@ export interface ChildLegalEntityCreate {
159
202
  */
160
203
  middle_name?: string | null;
161
204
 
205
+ /**
206
+ * A list of countries where the business operates (ISO 3166-1 alpha-2 or alpha-3
207
+ * codes).
208
+ */
209
+ operating_jurisdictions?: Array<string>;
210
+
162
211
  phone_numbers?: Array<ChildLegalEntityCreate.PhoneNumber>;
163
212
 
164
213
  /**
@@ -176,16 +225,42 @@ export interface ChildLegalEntityCreate {
176
225
  */
177
226
  prefix?: string | null;
178
227
 
228
+ /**
229
+ * A list of primary social media URLs for the business.
230
+ */
231
+ primary_social_media_sites?: Array<string>;
232
+
233
+ /**
234
+ * Array of regulatory bodies overseeing this institution.
235
+ */
236
+ regulators?: Array<ChildLegalEntityCreate.Regulator> | null;
237
+
179
238
  /**
180
239
  * The risk rating of the legal entity. One of low, medium, high.
181
240
  */
182
241
  risk_rating?: 'low' | 'medium' | 'high' | null;
183
242
 
243
+ /**
244
+ * The activation status of the legal entity. One of pending, active, suspended, or
245
+ * closed.
246
+ */
247
+ status?: 'active' | 'closed' | 'pending' | 'suspended' | null;
248
+
184
249
  /**
185
250
  * An individual's suffix.
186
251
  */
187
252
  suffix?: string | null;
188
253
 
254
+ /**
255
+ * Information describing a third-party verification run by an external vendor.
256
+ */
257
+ third_party_verification?: ChildLegalEntityCreate.ThirdPartyVerification | null;
258
+
259
+ /**
260
+ * Stock ticker symbol for publicly traded companies.
261
+ */
262
+ ticker_symbol?: string | null;
263
+
189
264
  wealth_and_employment_details?: ChildLegalEntityCreate.WealthAndEmploymentDetails | null;
190
265
 
191
266
  /**
@@ -244,11 +319,44 @@ export namespace ChildLegalEntityCreate {
244
319
  phone_number?: string;
245
320
  }
246
321
 
322
+ export interface Regulator {
323
+ /**
324
+ * The country code where the regulator operates in the ISO 3166-1 alpha-2 format
325
+ * (e.g., "US", "CA", "GB").
326
+ */
327
+ jurisdiction: string;
328
+
329
+ /**
330
+ * Full name of the regulatory body.
331
+ */
332
+ name: string;
333
+
334
+ /**
335
+ * Registration or identification number with the regulator.
336
+ */
337
+ registration_number: string;
338
+ }
339
+
340
+ /**
341
+ * Information describing a third-party verification run by an external vendor.
342
+ */
343
+ export interface ThirdPartyVerification {
344
+ /**
345
+ * The vendor that performed the verification, e.g. `persona`.
346
+ */
347
+ vendor: 'persona';
348
+
349
+ /**
350
+ * The identification of the third party verification in `vendor`'s system.
351
+ */
352
+ vendor_verification_id: string;
353
+ }
354
+
247
355
  export interface WealthAndEmploymentDetails {
248
356
  id: string;
249
357
 
250
358
  /**
251
- * The annual income of the individual.
359
+ * The annual income of the individual in USD.
252
360
  */
253
361
  annual_income: number | null;
254
362
 
@@ -372,17 +480,24 @@ export namespace ChildLegalEntityCreate {
372
480
  | 'alimony'
373
481
  | 'annuity'
374
482
  | 'business_owner'
483
+ | 'business_revenue'
484
+ | 'debt_financing'
375
485
  | 'general_employee'
376
486
  | 'government_benefits'
377
487
  | 'homemaker'
378
488
  | 'inheritance_gift'
489
+ | 'intercompany_loan'
379
490
  | 'investment'
491
+ | 'investor_funding'
380
492
  | 'legal_settlement'
381
493
  | 'lottery'
382
494
  | 'real_estate'
495
+ | 'retained_earnings_or_savings'
383
496
  | 'retired'
384
497
  | 'retirement'
385
498
  | 'salary'
499
+ | 'sale_of_business_assets'
500
+ | 'sale_of_real_estate'
386
501
  | 'self_employed'
387
502
  | 'senior_executive'
388
503
  | 'trust_income'
@@ -754,6 +869,11 @@ export interface LedgerAccountCreateRequest {
754
869
  */
755
870
  description?: string | null;
756
871
 
872
+ /**
873
+ * An optional user-defined 180 character unique identifier.
874
+ */
875
+ external_id?: string | null;
876
+
757
877
  /**
758
878
  * The array of ledger account category ids that this ledger account should be a
759
879
  * child of.
@@ -845,6 +965,12 @@ export interface LedgerEntryCreateRequest {
845
965
  */
846
966
  available_balance_amount?: { [key: string]: number } | null;
847
967
 
968
+ /**
969
+ * The timestamp (ISO8601 format) at which the ledger transaction happened for
970
+ * reporting purposes.
971
+ */
972
+ effective_at?: string;
973
+
848
974
  /**
849
975
  * Lock version of the ledger account. This can be passed when creating a ledger
850
976
  * transaction to only succeed if no ledger transactions have posted since the
@@ -965,52 +1091,28 @@ export interface LegalEntityAddressCreateRequest {
965
1091
  line2?: string | null;
966
1092
  }
967
1093
 
968
- export interface LegalEntityComplianceDetail {
969
- id: string;
970
-
971
- created_at: string;
972
-
973
- discarded_at: string | null;
974
-
975
- /**
976
- * The issuer of the compliance token.
977
- */
978
- issuer: string;
979
-
980
- /**
981
- * This field will be true if this object exists in the live environment or false
982
- * if it exists in the test environment.
983
- */
984
- live_mode: boolean;
985
-
986
- object: string;
1094
+ export interface LegalEntityAssociationInlineCreate {
1095
+ relationship_types: Array<'authorized_signer' | 'beneficial_owner' | 'control_person'>;
987
1096
 
988
1097
  /**
989
- * The timestamp when the compliance token expires.
1098
+ * The child legal entity.
990
1099
  */
991
- token_expires_at: string | null;
1100
+ child_legal_entity?: ChildLegalEntityCreate;
992
1101
 
993
1102
  /**
994
- * The timestamp when the compliance token was issued.
1103
+ * The ID of the child legal entity.
995
1104
  */
996
- token_issued_at: string | null;
997
-
998
- /**
999
- * The URL to the compliance token. (ex. provider portal URL)
1000
- */
1001
- token_url: string | null;
1002
-
1003
- updated_at: string;
1105
+ child_legal_entity_id?: string;
1004
1106
 
1005
1107
  /**
1006
- * Whether entity corresponding to the compliance token has been validated.
1108
+ * The child entity's ownership percentage iff they are a beneficial owner.
1007
1109
  */
1008
- validated: boolean;
1110
+ ownership_percentage?: number | null;
1009
1111
 
1010
1112
  /**
1011
- * The timestamp when the entity was validated.
1113
+ * The job title of the child entity at the parent entity.
1012
1114
  */
1013
- validated_at: string | null;
1115
+ title?: string | null;
1014
1116
  }
1015
1117
 
1016
1118
  export interface LegalEntityIndustryClassification {
@@ -261,8 +261,9 @@ export interface Transaction {
261
261
  | 'hifi'
262
262
  | 'iso20022'
263
263
  | 'jpmc'
264
- | 'mt_fof'
264
+ | 'modern_treasury'
265
265
  | 'mx'
266
+ | 'paxos'
266
267
  | 'paypal'
267
268
  | 'pnc'
268
269
  | 'signet'
@@ -203,6 +203,7 @@ export namespace VirtualAccountCreateParams {
203
203
  account_number_type?:
204
204
  | 'au_number'
205
205
  | 'base_address'
206
+ | 'card_token'
206
207
  | 'clabe'
207
208
  | 'ethereum_address'
208
209
  | 'hk_number'
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.3.0'; // x-release-please-version
1
+ export const VERSION = '4.4.2'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.3.0";
1
+ export declare const VERSION = "4.4.2";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.3.0";
1
+ export declare const VERSION = "4.4.2";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '3.3.0'; // x-release-please-version
4
+ exports.VERSION = '4.4.2'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.3.0'; // x-release-please-version
1
+ export const VERSION = '4.4.2'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map