modern_treasury 0.1.0.pre.alpha.15 → 0.1.0.pre.alpha.17

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 (877) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +116 -28
  3. data/lib/modern_treasury/client.rb +29 -13
  4. data/lib/modern_treasury/errors.rb +168 -163
  5. data/lib/modern_treasury/internal/page.rb +86 -0
  6. data/lib/modern_treasury/internal/transport/base_client.rb +476 -0
  7. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +184 -0
  8. data/lib/modern_treasury/internal/type/array_of.rb +124 -0
  9. data/lib/modern_treasury/internal/type/base_model.rb +376 -0
  10. data/lib/modern_treasury/internal/type/base_page.rb +46 -0
  11. data/lib/modern_treasury/internal/type/boolean.rb +54 -0
  12. data/lib/modern_treasury/internal/type/converter.rb +222 -0
  13. data/lib/modern_treasury/internal/type/enum.rb +105 -0
  14. data/lib/modern_treasury/internal/type/hash_of.rb +144 -0
  15. data/lib/modern_treasury/internal/type/request_parameters.rb +40 -0
  16. data/lib/modern_treasury/internal/type/union.rb +198 -0
  17. data/lib/modern_treasury/internal/type/unknown.rb +58 -0
  18. data/lib/modern_treasury/internal/util.rb +696 -0
  19. data/lib/modern_treasury/internal.rb +8 -0
  20. data/lib/modern_treasury/models/account_collection_flow.rb +22 -64
  21. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +10 -28
  22. data/lib/modern_treasury/models/account_collection_flow_list_params.rb +5 -4
  23. data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +5 -4
  24. data/lib/modern_treasury/models/account_collection_flow_update_params.rb +10 -18
  25. data/lib/modern_treasury/models/account_detail.rb +11 -27
  26. data/lib/modern_treasury/models/account_detail_create_params.rb +13 -39
  27. data/lib/modern_treasury/models/account_detail_delete_params.rb +8 -15
  28. data/lib/modern_treasury/models/account_detail_list_params.rb +5 -4
  29. data/lib/modern_treasury/models/account_detail_retrieve_params.rb +5 -4
  30. data/lib/modern_treasury/models/accounts_type.rb +3 -13
  31. data/lib/modern_treasury/models/async_response.rb +2 -2
  32. data/lib/modern_treasury/models/bank_settings.rb +11 -11
  33. data/lib/modern_treasury/models/bulk_request.rb +24 -56
  34. data/lib/modern_treasury/models/bulk_request_create_params.rb +654 -1109
  35. data/lib/modern_treasury/models/bulk_request_list_params.rb +20 -58
  36. data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +5 -4
  37. data/lib/modern_treasury/models/bulk_result.rb +49 -89
  38. data/lib/modern_treasury/models/bulk_result_list_params.rb +22 -58
  39. data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +5 -4
  40. data/lib/modern_treasury/models/client_ping_params.rb +5 -4
  41. data/lib/modern_treasury/models/connection.rb +5 -4
  42. data/lib/modern_treasury/models/connection_legal_entity.rb +9 -21
  43. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +130 -239
  44. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +8 -21
  45. data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +5 -4
  46. data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +8 -16
  47. data/lib/modern_treasury/models/connection_list_params.rb +5 -4
  48. data/lib/modern_treasury/models/counterparty.rb +53 -103
  49. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +22 -39
  50. data/lib/modern_treasury/models/counterparty_collect_account_response.rb +8 -7
  51. data/lib/modern_treasury/models/counterparty_create_params.rb +214 -440
  52. data/lib/modern_treasury/models/counterparty_delete_params.rb +5 -4
  53. data/lib/modern_treasury/models/counterparty_list_params.rb +10 -9
  54. data/lib/modern_treasury/models/counterparty_retrieve_params.rb +5 -4
  55. data/lib/modern_treasury/models/counterparty_update_params.rb +9 -8
  56. data/lib/modern_treasury/models/currency.rb +3 -22
  57. data/lib/modern_treasury/models/document.rb +21 -36
  58. data/lib/modern_treasury/models/document_create_params.rb +8 -25
  59. data/lib/modern_treasury/models/document_list_params.rb +12 -30
  60. data/lib/modern_treasury/models/document_retrieve_params.rb +5 -4
  61. data/lib/modern_treasury/models/event.rb +6 -5
  62. data/lib/modern_treasury/models/event_list_params.rb +5 -4
  63. data/lib/modern_treasury/models/event_retrieve_params.rb +5 -4
  64. data/lib/modern_treasury/models/expected_payment.rb +36 -66
  65. data/lib/modern_treasury/models/expected_payment_create_params.rb +86 -122
  66. data/lib/modern_treasury/models/expected_payment_delete_params.rb +5 -4
  67. data/lib/modern_treasury/models/expected_payment_list_params.rb +16 -49
  68. data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +5 -4
  69. data/lib/modern_treasury/models/expected_payment_type.rb +4 -23
  70. data/lib/modern_treasury/models/expected_payment_update_params.rb +28 -47
  71. data/lib/modern_treasury/models/external_account.rb +39 -77
  72. data/lib/modern_treasury/models/external_account_complete_verification_params.rb +6 -5
  73. data/lib/modern_treasury/models/external_account_create_params.rb +62 -147
  74. data/lib/modern_treasury/models/external_account_delete_params.rb +5 -4
  75. data/lib/modern_treasury/models/external_account_list_params.rb +8 -7
  76. data/lib/modern_treasury/models/external_account_retrieve_params.rb +5 -4
  77. data/lib/modern_treasury/models/external_account_type.rb +3 -22
  78. data/lib/modern_treasury/models/external_account_update_params.rb +13 -23
  79. data/lib/modern_treasury/models/external_account_verify_params.rb +21 -59
  80. data/lib/modern_treasury/models/external_account_verify_response.rb +28 -71
  81. data/lib/modern_treasury/models/foreign_exchange_quote.rb +16 -14
  82. data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +7 -6
  83. data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +8 -7
  84. data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +5 -4
  85. data/lib/modern_treasury/models/incoming_payment_detail.rb +38 -95
  86. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +26 -42
  87. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +25 -52
  88. data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +5 -4
  89. data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +7 -6
  90. data/lib/modern_treasury/models/internal_account.rb +25 -47
  91. data/lib/modern_treasury/models/internal_account_create_params.rb +14 -24
  92. data/lib/modern_treasury/models/internal_account_list_params.rb +11 -29
  93. data/lib/modern_treasury/models/internal_account_retrieve_params.rb +5 -4
  94. data/lib/modern_treasury/models/internal_account_update_params.rb +7 -6
  95. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +35 -64
  96. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +26 -57
  97. data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +5 -4
  98. data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +10 -24
  99. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +5 -4
  100. data/lib/modern_treasury/models/invoice.rb +61 -102
  101. data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +5 -4
  102. data/lib/modern_treasury/models/invoice_create_params.rb +69 -92
  103. data/lib/modern_treasury/models/invoice_list_params.rb +11 -28
  104. data/lib/modern_treasury/models/invoice_retrieve_params.rb +5 -4
  105. data/lib/modern_treasury/models/invoice_update_params.rb +68 -91
  106. data/lib/modern_treasury/models/invoices/invoice_line_item.rb +14 -13
  107. data/lib/modern_treasury/models/invoices/line_item_create_params.rb +13 -12
  108. data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +5 -4
  109. data/lib/modern_treasury/models/invoices/line_item_list_params.rb +5 -4
  110. data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +5 -4
  111. data/lib/modern_treasury/models/invoices/line_item_update_params.rb +13 -12
  112. data/lib/modern_treasury/models/ledger.rb +7 -6
  113. data/lib/modern_treasury/models/ledger_account.rb +44 -52
  114. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +40 -33
  115. data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +14 -13
  116. data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +5 -4
  117. data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +10 -9
  118. data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +5 -4
  119. data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +7 -6
  120. data/lib/modern_treasury/models/ledger_account_category.rb +33 -28
  121. data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +5 -4
  122. data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +5 -4
  123. data/lib/modern_treasury/models/ledger_account_category_create_params.rb +9 -8
  124. data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +5 -4
  125. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +17 -16
  126. data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +5 -4
  127. data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +5 -4
  128. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +11 -10
  129. data/lib/modern_treasury/models/ledger_account_category_update_params.rb +7 -6
  130. data/lib/modern_treasury/models/ledger_account_create_params.rb +17 -31
  131. data/lib/modern_treasury/models/ledger_account_delete_params.rb +5 -4
  132. data/lib/modern_treasury/models/ledger_account_list_params.rb +40 -39
  133. data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +17 -16
  134. data/lib/modern_treasury/models/ledger_account_settlement.rb +17 -33
  135. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +21 -31
  136. data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +16 -15
  137. data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +5 -4
  138. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +12 -22
  139. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +9 -8
  140. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +7 -6
  141. data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +10 -9
  142. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +62 -53
  143. data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +5 -4
  144. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +62 -53
  145. data/lib/modern_treasury/models/ledger_account_update_params.rb +7 -6
  146. data/lib/modern_treasury/models/ledger_create_params.rb +7 -6
  147. data/lib/modern_treasury/models/ledger_delete_params.rb +5 -4
  148. data/lib/modern_treasury/models/ledger_entry.rb +50 -56
  149. data/lib/modern_treasury/models/ledger_entry_list_params.rb +49 -79
  150. data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +7 -6
  151. data/lib/modern_treasury/models/ledger_entry_update_params.rb +7 -6
  152. data/lib/modern_treasury/models/ledger_event_handler.rb +25 -15
  153. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +19 -15
  154. data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +5 -4
  155. data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +11 -10
  156. data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +5 -4
  157. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +9 -5
  158. data/lib/modern_treasury/models/ledger_list_params.rb +13 -12
  159. data/lib/modern_treasury/models/ledger_retrieve_params.rb +5 -4
  160. data/lib/modern_treasury/models/ledger_transaction.rb +28 -54
  161. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +46 -77
  162. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +27 -35
  163. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +21 -52
  164. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +42 -89
  165. data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +5 -4
  166. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +44 -75
  167. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +75 -109
  168. data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +12 -11
  169. data/lib/modern_treasury/models/ledger_update_params.rb +7 -6
  170. data/lib/modern_treasury/models/ledgerable_event.rb +10 -7
  171. data/lib/modern_treasury/models/ledgerable_event_create_params.rb +8 -7
  172. data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +5 -4
  173. data/lib/modern_treasury/models/legal_entity.rb +62 -115
  174. data/lib/modern_treasury/models/legal_entity_association.rb +69 -134
  175. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +66 -126
  176. data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +109 -0
  177. data/lib/modern_treasury/models/legal_entity_create_params.rb +121 -236
  178. data/lib/modern_treasury/models/legal_entity_industry_classification.rb +107 -0
  179. data/lib/modern_treasury/models/legal_entity_list_params.rb +11 -20
  180. data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +5 -4
  181. data/lib/modern_treasury/models/legal_entity_update_params.rb +53 -97
  182. data/lib/modern_treasury/models/line_item.rb +21 -28
  183. data/lib/modern_treasury/models/line_item_list_params.rb +8 -17
  184. data/lib/modern_treasury/models/line_item_retrieve_params.rb +8 -17
  185. data/lib/modern_treasury/models/line_item_update_params.rb +10 -19
  186. data/lib/modern_treasury/models/paper_item.rb +11 -21
  187. data/lib/modern_treasury/models/paper_item_list_params.rb +6 -5
  188. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +5 -4
  189. data/lib/modern_treasury/models/payment_flow.rb +41 -78
  190. data/lib/modern_treasury/models/payment_flow_create_params.rb +14 -24
  191. data/lib/modern_treasury/models/payment_flow_list_params.rb +5 -4
  192. data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +5 -4
  193. data/lib/modern_treasury/models/payment_flow_update_params.rb +10 -18
  194. data/lib/modern_treasury/models/payment_order.rb +138 -223
  195. data/lib/modern_treasury/models/payment_order_create_async_params.rb +213 -375
  196. data/lib/modern_treasury/models/payment_order_create_params.rb +221 -400
  197. data/lib/modern_treasury/models/payment_order_list_params.rb +21 -67
  198. data/lib/modern_treasury/models/payment_order_retrieve_params.rb +5 -4
  199. data/lib/modern_treasury/models/payment_order_subtype.rb +6 -25
  200. data/lib/modern_treasury/models/payment_order_type.rb +5 -24
  201. data/lib/modern_treasury/models/payment_order_update_params.rb +170 -325
  202. data/lib/modern_treasury/models/payment_orders/reversal.rb +17 -47
  203. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +65 -107
  204. data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +5 -4
  205. data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +5 -4
  206. data/lib/modern_treasury/models/payment_reference.rb +21 -44
  207. data/lib/modern_treasury/models/payment_reference_list_params.rb +11 -23
  208. data/lib/modern_treasury/models/payment_reference_retireve_params.rb +5 -4
  209. data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +5 -4
  210. data/lib/modern_treasury/models/ping_response.rb +3 -2
  211. data/lib/modern_treasury/models/reconciliation_rule.rb +17 -43
  212. data/lib/modern_treasury/models/return_create_params.rb +36 -55
  213. data/lib/modern_treasury/models/return_list_params.rb +12 -28
  214. data/lib/modern_treasury/models/return_object.rb +67 -146
  215. data/lib/modern_treasury/models/return_retrieve_params.rb +5 -4
  216. data/lib/modern_treasury/models/routing_detail.rb +24 -56
  217. data/lib/modern_treasury/models/routing_detail_create_params.rb +20 -65
  218. data/lib/modern_treasury/models/routing_detail_delete_params.rb +8 -15
  219. data/lib/modern_treasury/models/routing_detail_list_params.rb +5 -4
  220. data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +5 -4
  221. data/lib/modern_treasury/models/routing_number_lookup_request.rb +25 -57
  222. data/lib/modern_treasury/models/transaction.rb +52 -83
  223. data/lib/modern_treasury/models/transaction_create_params.rb +19 -37
  224. data/lib/modern_treasury/models/transaction_delete_params.rb +5 -4
  225. data/lib/modern_treasury/models/transaction_direction.rb +3 -13
  226. data/lib/modern_treasury/models/transaction_list_params.rb +13 -12
  227. data/lib/modern_treasury/models/transaction_retrieve_params.rb +5 -4
  228. data/lib/modern_treasury/models/transaction_update_params.rb +7 -6
  229. data/lib/modern_treasury/models/transactions/line_item_create_params.rb +6 -5
  230. data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +5 -4
  231. data/lib/modern_treasury/models/transactions/line_item_list_params.rb +9 -18
  232. data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +5 -4
  233. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +25 -50
  234. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +14 -32
  235. data/lib/modern_treasury/models/virtual_account.rb +17 -14
  236. data/lib/modern_treasury/models/virtual_account_create_params.rb +56 -119
  237. data/lib/modern_treasury/models/virtual_account_delete_params.rb +5 -4
  238. data/lib/modern_treasury/models/virtual_account_list_params.rb +8 -7
  239. data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +5 -4
  240. data/lib/modern_treasury/models/virtual_account_update_params.rb +6 -5
  241. data/lib/modern_treasury/models/wealth_and_employment_details.rb +28 -128
  242. data/lib/modern_treasury/request_options.rb +14 -53
  243. data/lib/modern_treasury/resources/account_collection_flows.rb +30 -38
  244. data/lib/modern_treasury/resources/account_details.rb +60 -64
  245. data/lib/modern_treasury/resources/bulk_requests.rb +25 -36
  246. data/lib/modern_treasury/resources/bulk_results.rb +19 -27
  247. data/lib/modern_treasury/resources/connection_legal_entities.rb +29 -35
  248. data/lib/modern_treasury/resources/connections.rb +11 -13
  249. data/lib/modern_treasury/resources/counterparties.rb +60 -106
  250. data/lib/modern_treasury/resources/documents.rb +24 -31
  251. data/lib/modern_treasury/resources/events.rb +19 -24
  252. data/lib/modern_treasury/resources/expected_payments.rb +73 -146
  253. data/lib/modern_treasury/resources/external_accounts.rb +67 -110
  254. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +30 -46
  255. data/lib/modern_treasury/resources/incoming_payment_details.rb +39 -63
  256. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +48 -56
  257. data/lib/modern_treasury/resources/internal_accounts.rb +43 -67
  258. data/lib/modern_treasury/resources/invoices/line_items.rb +62 -91
  259. data/lib/modern_treasury/resources/invoices.rb +93 -199
  260. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +36 -49
  261. data/lib/modern_treasury/resources/ledger_account_categories.rb +96 -122
  262. data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +18 -19
  263. data/lib/modern_treasury/resources/ledger_account_settlements.rb +44 -79
  264. data/lib/modern_treasury/resources/ledger_account_statements.rb +15 -22
  265. data/lib/modern_treasury/resources/ledger_accounts.rb +57 -108
  266. data/lib/modern_treasury/resources/ledger_entries.rb +42 -84
  267. data/lib/modern_treasury/resources/ledger_event_handlers.rb +32 -46
  268. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +13 -22
  269. data/lib/modern_treasury/resources/ledger_transactions.rb +80 -162
  270. data/lib/modern_treasury/resources/ledgerable_events.rb +14 -17
  271. data/lib/modern_treasury/resources/ledgers.rb +36 -51
  272. data/lib/modern_treasury/resources/legal_entities.rb +77 -125
  273. data/lib/modern_treasury/resources/legal_entity_associations.rb +11 -16
  274. data/lib/modern_treasury/resources/line_items.rb +49 -52
  275. data/lib/modern_treasury/resources/paper_items.rb +17 -21
  276. data/lib/modern_treasury/resources/payment_flows.rb +35 -53
  277. data/lib/modern_treasury/resources/payment_orders/reversals.rb +29 -38
  278. data/lib/modern_treasury/resources/payment_orders.rb +150 -432
  279. data/lib/modern_treasury/resources/payment_references.rb +18 -39
  280. data/lib/modern_treasury/resources/returns.rb +28 -43
  281. data/lib/modern_treasury/resources/routing_details.rb +61 -68
  282. data/lib/modern_treasury/resources/transactions/line_items.rb +28 -34
  283. data/lib/modern_treasury/resources/transactions.rb +54 -91
  284. data/lib/modern_treasury/resources/validations.rb +8 -11
  285. data/lib/modern_treasury/resources/virtual_accounts.rb +45 -70
  286. data/lib/modern_treasury/version.rb +1 -1
  287. data/lib/modern_treasury.rb +35 -7
  288. data/manifest.yaml +3 -0
  289. data/rbi/lib/modern_treasury/client.rbi +61 -86
  290. data/rbi/lib/modern_treasury/errors.rbi +125 -127
  291. data/rbi/lib/modern_treasury/internal/page.rbi +29 -0
  292. data/rbi/lib/modern_treasury/internal/transport/base_client.rbi +198 -0
  293. data/rbi/lib/modern_treasury/internal/transport/pooled_net_requester.rbi +60 -0
  294. data/rbi/lib/modern_treasury/internal/type/array_of.rbi +79 -0
  295. data/rbi/lib/modern_treasury/internal/type/base_model.rbi +193 -0
  296. data/rbi/lib/modern_treasury/internal/type/base_page.rbi +36 -0
  297. data/rbi/lib/modern_treasury/internal/type/boolean.rbi +43 -0
  298. data/rbi/lib/modern_treasury/internal/type/converter.rbi +104 -0
  299. data/rbi/lib/modern_treasury/internal/type/enum.rbi +59 -0
  300. data/rbi/lib/modern_treasury/internal/type/hash_of.rbi +79 -0
  301. data/rbi/lib/modern_treasury/internal/type/request_parameters.rbi +21 -0
  302. data/rbi/lib/modern_treasury/internal/type/union.rbi +69 -0
  303. data/rbi/lib/modern_treasury/internal/type/unknown.rbi +37 -0
  304. data/rbi/lib/modern_treasury/internal/util.rbi +254 -0
  305. data/rbi/lib/modern_treasury/internal.rbi +12 -0
  306. data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +122 -123
  307. data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +79 -49
  308. data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +24 -42
  309. data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +8 -7
  310. data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +34 -22
  311. data/rbi/lib/modern_treasury/models/account_detail.rbi +49 -82
  312. data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +65 -51
  313. data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +29 -34
  314. data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +15 -29
  315. data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +19 -29
  316. data/rbi/lib/modern_treasury/models/accounts_type.rbi +9 -7
  317. data/rbi/lib/modern_treasury/models/async_response.rbi +6 -18
  318. data/rbi/lib/modern_treasury/models/bank_settings.rbi +25 -68
  319. data/rbi/lib/modern_treasury/models/bulk_request.rbi +79 -114
  320. data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +4133 -2573
  321. data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +85 -76
  322. data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +8 -7
  323. data/rbi/lib/modern_treasury/models/bulk_result.rbi +124 -204
  324. data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +89 -80
  325. data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +8 -7
  326. data/rbi/lib/modern_treasury/models/client_ping_params.rbi +8 -7
  327. data/rbi/lib/modern_treasury/models/connection.rbi +19 -62
  328. data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +37 -80
  329. data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1185 -695
  330. data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +39 -49
  331. data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +8 -7
  332. data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +34 -21
  333. data/rbi/lib/modern_treasury/models/connection_list_params.rbi +19 -29
  334. data/rbi/lib/modern_treasury/models/counterparty.rbi +264 -387
  335. data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +120 -70
  336. data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +14 -24
  337. data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +1998 -1124
  338. data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +8 -7
  339. data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +40 -52
  340. data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +8 -7
  341. data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +32 -42
  342. data/rbi/lib/modern_treasury/models/currency.rbi +197 -194
  343. data/rbi/lib/modern_treasury/models/document.rbi +96 -187
  344. data/rbi/lib/modern_treasury/models/document_create_params.rbi +53 -52
  345. data/rbi/lib/modern_treasury/models/document_list_params.rbi +61 -49
  346. data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +8 -7
  347. data/rbi/lib/modern_treasury/models/event.rbi +21 -65
  348. data/rbi/lib/modern_treasury/models/event_list_params.rbi +29 -47
  349. data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +8 -7
  350. data/rbi/lib/modern_treasury/models/expected_payment.rbi +123 -206
  351. data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +331 -318
  352. data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +8 -7
  353. data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +120 -122
  354. data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +8 -7
  355. data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +40 -35
  356. data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +94 -141
  357. data/rbi/lib/modern_treasury/models/external_account.rbi +170 -312
  358. data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +10 -14
  359. data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +737 -362
  360. data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +8 -7
  361. data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +25 -37
  362. data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +8 -7
  363. data/rbi/lib/modern_treasury/models/external_account_type.rbi +17 -13
  364. data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +73 -106
  365. data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +117 -103
  366. data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +310 -131
  367. data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +72 -133
  368. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +36 -49
  369. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +42 -57
  370. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +8 -7
  371. data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +302 -249
  372. data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +109 -88
  373. data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +103 -95
  374. data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +8 -7
  375. data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +12 -14
  376. data/rbi/lib/modern_treasury/models/internal_account.rbi +114 -234
  377. data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +81 -113
  378. data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +94 -99
  379. data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +8 -7
  380. data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +29 -36
  381. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +176 -197
  382. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +169 -102
  383. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +8 -15
  384. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +71 -38
  385. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +8 -15
  386. data/rbi/lib/modern_treasury/models/invoice.rbi +256 -472
  387. data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +8 -18
  388. data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +313 -415
  389. data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +63 -81
  390. data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +8 -7
  391. data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +321 -411
  392. data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +38 -88
  393. data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +39 -48
  394. data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +8 -15
  395. data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +11 -20
  396. data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +8 -15
  397. data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +44 -52
  398. data/rbi/lib/modern_treasury/models/ledger.rbi +19 -59
  399. data/rbi/lib/modern_treasury/models/ledger_account.rbi +157 -263
  400. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +171 -266
  401. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +48 -55
  402. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +8 -7
  403. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +26 -34
  404. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +8 -7
  405. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +16 -19
  406. data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +132 -219
  407. data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +8 -18
  408. data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +8 -18
  409. data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +33 -60
  410. data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +8 -7
  411. data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +67 -75
  412. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +8 -18
  413. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +8 -18
  414. data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +36 -32
  415. data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +18 -25
  416. data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +71 -84
  417. data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +8 -7
  418. data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +202 -223
  419. data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +47 -50
  420. data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +61 -124
  421. data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +55 -67
  422. data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +47 -62
  423. data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +8 -7
  424. data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +39 -34
  425. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +16 -23
  426. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +10 -15
  427. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +24 -40
  428. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +257 -373
  429. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +8 -7
  430. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +255 -373
  431. data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +18 -25
  432. data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +16 -26
  433. data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +8 -7
  434. data/rbi/lib/modern_treasury/models/ledger_entry.rbi +180 -256
  435. data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +177 -158
  436. data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +12 -14
  437. data/rbi/lib/modern_treasury/models/ledger_entry_update_params.rbi +12 -14
  438. data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +90 -173
  439. data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +93 -143
  440. data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +8 -7
  441. data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +26 -34
  442. data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +8 -7
  443. data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +28 -41
  444. data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +28 -34
  445. data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +8 -7
  446. data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +89 -151
  447. data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +152 -150
  448. data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +96 -72
  449. data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +126 -70
  450. data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +213 -167
  451. data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +8 -7
  452. data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +152 -137
  453. data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +350 -409
  454. data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +33 -42
  455. data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +18 -25
  456. data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +23 -68
  457. data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +18 -32
  458. data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +8 -7
  459. data/rbi/lib/modern_treasury/models/legal_entity.rbi +259 -445
  460. data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +512 -501
  461. data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +618 -352
  462. data/rbi/lib/modern_treasury/models/legal_entity_compliance_detail.rbi +103 -0
  463. data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +943 -658
  464. data/rbi/lib/modern_treasury/models/legal_entity_industry_classification.rbi +136 -0
  465. data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +39 -47
  466. data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +8 -7
  467. data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +297 -290
  468. data/rbi/lib/modern_treasury/models/line_item.rbi +62 -115
  469. data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +27 -36
  470. data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +35 -39
  471. data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +30 -36
  472. data/rbi/lib/modern_treasury/models/paper_item.rbi +58 -130
  473. data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +25 -37
  474. data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +8 -7
  475. data/rbi/lib/modern_treasury/models/payment_flow.rbi +149 -149
  476. data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +42 -56
  477. data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +30 -52
  478. data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +8 -7
  479. data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +31 -23
  480. data/rbi/lib/modern_treasury/models/payment_order.rbi +777 -629
  481. data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +1343 -814
  482. data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +1424 -879
  483. data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +165 -178
  484. data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +8 -7
  485. data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +41 -34
  486. data/rbi/lib/modern_treasury/models/payment_order_type.rbi +40 -35
  487. data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1155 -692
  488. data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +63 -101
  489. data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +288 -195
  490. data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +11 -20
  491. data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +8 -15
  492. data/rbi/lib/modern_treasury/models/payment_reference.rbi +315 -154
  493. data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +55 -49
  494. data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +8 -7
  495. data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +8 -7
  496. data/rbi/lib/modern_treasury/models/ping_response.rbi +5 -12
  497. data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +99 -125
  498. data/rbi/lib/modern_treasury/models/return_create_params.rbi +117 -123
  499. data/rbi/lib/modern_treasury/models/return_list_params.rbi +51 -55
  500. data/rbi/lib/modern_treasury/models/return_object.rbi +622 -410
  501. data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +8 -7
  502. data/rbi/lib/modern_treasury/models/routing_detail.rbi +148 -220
  503. data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +165 -111
  504. data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +29 -34
  505. data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +15 -29
  506. data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +19 -29
  507. data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +198 -134
  508. data/rbi/lib/modern_treasury/models/transaction.rbi +210 -296
  509. data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +87 -111
  510. data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +8 -7
  511. data/rbi/lib/modern_treasury/models/transaction_direction.rbi +10 -7
  512. data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +61 -82
  513. data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +8 -7
  514. data/rbi/lib/modern_treasury/models/transaction_update_params.rbi +12 -14
  515. data/rbi/lib/modern_treasury/models/transactions/line_item_create_params.rbi +14 -27
  516. data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +7 -8
  517. data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +34 -45
  518. data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +7 -8
  519. data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +116 -124
  520. data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +145 -49
  521. data/rbi/lib/modern_treasury/models/virtual_account.rbi +42 -112
  522. data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +590 -274
  523. data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +8 -7
  524. data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +24 -37
  525. data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +8 -7
  526. data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +18 -29
  527. data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +304 -266
  528. data/rbi/lib/modern_treasury/request_options.rbi +28 -66
  529. data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +35 -22
  530. data/rbi/lib/modern_treasury/resources/account_details.rbi +56 -25
  531. data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +52 -32
  532. data/rbi/lib/modern_treasury/resources/bulk_results.rbi +25 -15
  533. data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +40 -23
  534. data/rbi/lib/modern_treasury/resources/connections.rbi +15 -8
  535. data/rbi/lib/modern_treasury/resources/counterparties.rbi +84 -35
  536. data/rbi/lib/modern_treasury/resources/documents.rbi +31 -18
  537. data/rbi/lib/modern_treasury/resources/events.rbi +16 -12
  538. data/rbi/lib/modern_treasury/resources/expected_payments.rbi +118 -38
  539. data/rbi/lib/modern_treasury/resources/external_accounts.rbi +113 -46
  540. data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +36 -18
  541. data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +61 -26
  542. data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +64 -23
  543. data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +55 -27
  544. data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +93 -24
  545. data/rbi/lib/modern_treasury/resources/invoices.rbi +178 -43
  546. data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +57 -25
  547. data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +108 -43
  548. data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +34 -12
  549. data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +63 -24
  550. data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +22 -11
  551. data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +100 -31
  552. data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +64 -19
  553. data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +48 -23
  554. data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +23 -8
  555. data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +130 -42
  556. data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +24 -11
  557. data/rbi/lib/modern_treasury/resources/ledgers.rbi +62 -24
  558. data/rbi/lib/modern_treasury/resources/legal_entities.rbi +98 -37
  559. data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +17 -9
  560. data/rbi/lib/modern_treasury/resources/line_items.rbi +45 -19
  561. data/rbi/lib/modern_treasury/resources/paper_items.rbi +18 -12
  562. data/rbi/lib/modern_treasury/resources/payment_flows.rbi +40 -22
  563. data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +60 -18
  564. data/rbi/lib/modern_treasury/resources/payment_orders.rbi +355 -66
  565. data/rbi/lib/modern_treasury/resources/payment_references.rbi +20 -23
  566. data/rbi/lib/modern_treasury/resources/returns.rbi +40 -19
  567. data/rbi/lib/modern_treasury/resources/routing_details.rbi +54 -26
  568. data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +53 -18
  569. data/rbi/lib/modern_treasury/resources/transactions.rbi +67 -27
  570. data/rbi/lib/modern_treasury/resources/validations.rbi +17 -8
  571. data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +65 -27
  572. data/rbi/lib/modern_treasury/version.rbi +1 -1
  573. data/sig/modern_treasury/client.rbs +13 -9
  574. data/sig/modern_treasury/errors.rbs +98 -95
  575. data/sig/modern_treasury/internal/page.rbs +19 -0
  576. data/sig/modern_treasury/internal/transport/base_client.rbs +110 -0
  577. data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +41 -0
  578. data/sig/modern_treasury/internal/type/array_of.rbs +38 -0
  579. data/sig/modern_treasury/internal/type/base_model.rbs +81 -0
  580. data/sig/modern_treasury/internal/type/base_page.rbs +24 -0
  581. data/sig/modern_treasury/internal/type/boolean.rbs +20 -0
  582. data/sig/modern_treasury/internal/type/converter.rbs +44 -0
  583. data/sig/modern_treasury/internal/type/enum.rbs +24 -0
  584. data/sig/modern_treasury/internal/type/hash_of.rbs +38 -0
  585. data/sig/modern_treasury/internal/type/request_parameters.rbs +16 -0
  586. data/sig/modern_treasury/internal/type/union.rbs +42 -0
  587. data/sig/modern_treasury/internal/type/unknown.rbs +20 -0
  588. data/sig/modern_treasury/internal/util.rbs +139 -0
  589. data/sig/modern_treasury/{extern.rbs → internal.rbs} +2 -1
  590. data/sig/modern_treasury/models/account_collection_flow.rbs +26 -25
  591. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +14 -17
  592. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +13 -18
  593. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +5 -10
  594. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +12 -15
  595. data/sig/modern_treasury/models/account_detail.rbs +16 -19
  596. data/sig/modern_treasury/models/account_detail_create_params.rbs +18 -19
  597. data/sig/modern_treasury/models/account_detail_delete_params.rbs +13 -16
  598. data/sig/modern_treasury/models/account_detail_list_params.rbs +10 -15
  599. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +9 -14
  600. data/sig/modern_treasury/models/accounts_type.rbs +4 -2
  601. data/sig/modern_treasury/models/async_response.rbs +2 -7
  602. data/sig/modern_treasury/models/bank_settings.rbs +13 -18
  603. data/sig/modern_treasury/models/bulk_request.rbs +36 -27
  604. data/sig/modern_treasury/models/bulk_request_create_params.rbs +537 -616
  605. data/sig/modern_treasury/models/bulk_request_list_params.rbs +34 -26
  606. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +5 -10
  607. data/sig/modern_treasury/models/bulk_result.rbs +52 -50
  608. data/sig/modern_treasury/models/bulk_result_list_params.rbs +32 -27
  609. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +6 -10
  610. data/sig/modern_treasury/models/client_ping_params.rbs +6 -10
  611. data/sig/modern_treasury/models/connection.rbs +12 -16
  612. data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -20
  613. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +175 -179
  614. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +16 -19
  615. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +5 -10
  616. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +12 -15
  617. data/sig/modern_treasury/models/connection_list_params.rbs +11 -16
  618. data/sig/modern_treasury/models/counterparty.rbs +82 -91
  619. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +17 -20
  620. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -7
  621. data/sig/modern_treasury/models/counterparty_create_params.rbs +276 -297
  622. data/sig/modern_treasury/models/counterparty_delete_params.rbs +6 -10
  623. data/sig/modern_treasury/models/counterparty_list_params.rbs +15 -20
  624. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +5 -10
  625. data/sig/modern_treasury/models/counterparty_update_params.rbs +13 -18
  626. data/sig/modern_treasury/models/currency.rbs +4 -2
  627. data/sig/modern_treasury/models/document.rbs +36 -44
  628. data/sig/modern_treasury/models/document_create_params.rbs +15 -18
  629. data/sig/modern_treasury/models/document_list_params.rbs +15 -18
  630. data/sig/modern_treasury/models/document_retrieve_params.rbs +6 -10
  631. data/sig/modern_treasury/models/event.rbs +13 -17
  632. data/sig/modern_treasury/models/event_list_params.rbs +14 -19
  633. data/sig/modern_treasury/models/event_retrieve_params.rbs +6 -10
  634. data/sig/modern_treasury/models/expected_payment.rbs +41 -40
  635. data/sig/modern_treasury/models/expected_payment_create_params.rbs +69 -83
  636. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +5 -10
  637. data/sig/modern_treasury/models/expected_payment_list_params.rbs +25 -26
  638. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +5 -10
  639. data/sig/modern_treasury/models/expected_payment_type.rbs +4 -2
  640. data/sig/modern_treasury/models/expected_payment_update_params.rbs +32 -33
  641. data/sig/modern_treasury/models/external_account.rbs +63 -70
  642. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +9 -13
  643. data/sig/modern_treasury/models/external_account_create_params.rbs +82 -100
  644. data/sig/modern_treasury/models/external_account_delete_params.rbs +5 -10
  645. data/sig/modern_treasury/models/external_account_list_params.rbs +12 -17
  646. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +5 -10
  647. data/sig/modern_treasury/models/external_account_type.rbs +4 -2
  648. data/sig/modern_treasury/models/external_account_update_params.rbs +27 -35
  649. data/sig/modern_treasury/models/external_account_verify_params.rbs +24 -23
  650. data/sig/modern_treasury/models/external_account_verify_response.rbs +29 -26
  651. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -35
  652. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +13 -18
  653. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +16 -21
  654. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +5 -10
  655. data/sig/modern_treasury/models/incoming_payment_detail.rbs +61 -42
  656. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +44 -25
  657. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +41 -26
  658. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +5 -10
  659. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +9 -13
  660. data/sig/modern_treasury/models/internal_account.rbs +44 -50
  661. data/sig/modern_treasury/models/internal_account_create_params.rbs +29 -37
  662. data/sig/modern_treasury/models/internal_account_list_params.rbs +19 -22
  663. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +5 -10
  664. data/sig/modern_treasury/models/internal_account_update_params.rbs +12 -17
  665. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +41 -47
  666. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +26 -32
  667. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +9 -13
  668. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +15 -18
  669. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +9 -13
  670. data/sig/modern_treasury/models/invoice.rbs +94 -110
  671. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +8 -10
  672. data/sig/modern_treasury/models/invoice_create_params.rbs +88 -114
  673. data/sig/modern_treasury/models/invoice_list_params.rbs +22 -25
  674. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +6 -10
  675. data/sig/modern_treasury/models/invoice_update_params.rbs +88 -114
  676. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +16 -22
  677. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +14 -19
  678. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +9 -13
  679. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +9 -14
  680. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +9 -13
  681. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +15 -20
  682. data/sig/modern_treasury/models/ledger.rbs +12 -16
  683. data/sig/modern_treasury/models/ledger_account.rbs +54 -77
  684. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +56 -87
  685. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +17 -23
  686. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +5 -10
  687. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +12 -17
  688. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +5 -10
  689. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +9 -14
  690. data/sig/modern_treasury/models/ledger_account_category.rbs +45 -70
  691. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +8 -10
  692. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +8 -10
  693. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +15 -20
  694. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +5 -10
  695. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +19 -29
  696. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +8 -10
  697. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +8 -10
  698. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +10 -20
  699. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +10 -15
  700. data/sig/modern_treasury/models/ledger_account_create_params.rbs +21 -24
  701. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +5 -10
  702. data/sig/modern_treasury/models/ledger_account_list_params.rbs +55 -80
  703. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +16 -26
  704. data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -27
  705. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +19 -22
  706. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +17 -22
  707. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +5 -10
  708. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +14 -17
  709. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +10 -14
  710. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +8 -13
  711. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +12 -17
  712. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -123
  713. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +5 -10
  714. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -123
  715. data/sig/modern_treasury/models/ledger_account_update_params.rbs +10 -15
  716. data/sig/modern_treasury/models/ledger_create_params.rbs +10 -15
  717. data/sig/modern_treasury/models/ledger_delete_params.rbs +6 -10
  718. data/sig/modern_treasury/models/ledger_entry.rbs +53 -75
  719. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +44 -48
  720. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +9 -13
  721. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +9 -13
  722. data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -51
  723. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +29 -49
  724. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +5 -10
  725. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +12 -17
  726. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +5 -10
  727. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -17
  728. data/sig/modern_treasury/models/ledger_list_params.rbs +12 -17
  729. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +6 -10
  730. data/sig/modern_treasury/models/ledger_transaction.rbs +30 -31
  731. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +36 -42
  732. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +22 -30
  733. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +22 -23
  734. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +47 -49
  735. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +5 -10
  736. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +34 -40
  737. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -107
  738. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +13 -18
  739. data/sig/modern_treasury/models/ledger_update_params.rbs +10 -15
  740. data/sig/modern_treasury/models/ledgerable_event.rbs +13 -18
  741. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +11 -16
  742. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +5 -10
  743. data/sig/modern_treasury/models/legal_entity.rbs +90 -91
  744. data/sig/modern_treasury/models/legal_entity_association.rbs +107 -112
  745. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +93 -94
  746. data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +62 -0
  747. data/sig/modern_treasury/models/legal_entity_create_params.rbs +169 -168
  748. data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +85 -0
  749. data/sig/modern_treasury/models/legal_entity_list_params.rbs +16 -19
  750. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +5 -10
  751. data/sig/modern_treasury/models/legal_entity_update_params.rbs +75 -75
  752. data/sig/modern_treasury/models/line_item.rbs +22 -29
  753. data/sig/modern_treasury/models/line_item_list_params.rbs +14 -17
  754. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +13 -16
  755. data/sig/modern_treasury/models/line_item_update_params.rbs +14 -17
  756. data/sig/modern_treasury/models/paper_item.rbs +25 -27
  757. data/sig/modern_treasury/models/paper_item_list_params.rbs +12 -17
  758. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +6 -10
  759. data/sig/modern_treasury/models/payment_flow.rbs +38 -34
  760. data/sig/modern_treasury/models/payment_flow_create_params.rbs +17 -20
  761. data/sig/modern_treasury/models/payment_flow_list_params.rbs +15 -20
  762. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +5 -10
  763. data/sig/modern_treasury/models/payment_flow_update_params.rbs +12 -15
  764. data/sig/modern_treasury/models/payment_order.rbs +117 -113
  765. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +180 -209
  766. data/sig/modern_treasury/models/payment_order_create_params.rbs +192 -224
  767. data/sig/modern_treasury/models/payment_order_list_params.rbs +36 -35
  768. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +5 -10
  769. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -2
  770. data/sig/modern_treasury/models/payment_order_type.rbs +4 -2
  771. data/sig/modern_treasury/models/payment_order_update_params.rbs +151 -172
  772. data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -23
  773. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +46 -55
  774. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +9 -14
  775. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +9 -13
  776. data/sig/modern_treasury/models/payment_reference.rbs +26 -21
  777. data/sig/modern_treasury/models/payment_reference_list_params.rbs +16 -19
  778. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +5 -10
  779. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +5 -10
  780. data/sig/modern_treasury/models/ping_response.rbs +2 -7
  781. data/sig/modern_treasury/models/reconciliation_rule.rbs +21 -22
  782. data/sig/modern_treasury/models/return_create_params.rbs +37 -34
  783. data/sig/modern_treasury/models/return_list_params.rbs +17 -20
  784. data/sig/modern_treasury/models/return_object.rbs +83 -71
  785. data/sig/modern_treasury/models/return_retrieve_params.rbs +6 -10
  786. data/sig/modern_treasury/models/routing_detail.rbs +36 -42
  787. data/sig/modern_treasury/models/routing_detail_create_params.rbs +23 -22
  788. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +13 -16
  789. data/sig/modern_treasury/models/routing_detail_list_params.rbs +10 -15
  790. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +9 -14
  791. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +28 -32
  792. data/sig/modern_treasury/models/transaction.rbs +50 -53
  793. data/sig/modern_treasury/models/transaction_create_params.rbs +21 -24
  794. data/sig/modern_treasury/models/transaction_delete_params.rbs +6 -10
  795. data/sig/modern_treasury/models/transaction_direction.rbs +4 -2
  796. data/sig/modern_treasury/models/transaction_list_params.rbs +21 -26
  797. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +6 -10
  798. data/sig/modern_treasury/models/transaction_update_params.rbs +9 -13
  799. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +10 -15
  800. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +6 -10
  801. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +16 -19
  802. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +6 -10
  803. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -28
  804. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +13 -16
  805. data/sig/modern_treasury/models/virtual_account.rbs +19 -24
  806. data/sig/modern_treasury/models/virtual_account_create_params.rbs +57 -69
  807. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +5 -10
  808. data/sig/modern_treasury/models/virtual_account_list_params.rbs +12 -17
  809. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +5 -10
  810. data/sig/modern_treasury/models/virtual_account_update_params.rbs +11 -16
  811. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -38
  812. data/sig/modern_treasury/request_options.rbs +7 -13
  813. data/sig/modern_treasury/resources/account_collection_flows.rbs +24 -46
  814. data/sig/modern_treasury/resources/account_details.rbs +26 -50
  815. data/sig/modern_treasury/resources/bulk_requests.rbs +20 -36
  816. data/sig/modern_treasury/resources/bulk_results.rbs +14 -25
  817. data/sig/modern_treasury/resources/connection_legal_entities.rbs +23 -45
  818. data/sig/modern_treasury/resources/connections.rbs +7 -12
  819. data/sig/modern_treasury/resources/counterparties.rbs +51 -82
  820. data/sig/modern_treasury/resources/documents.rbs +18 -34
  821. data/sig/modern_treasury/resources/events.rbs +14 -24
  822. data/sig/modern_treasury/resources/expected_payments.rbs +64 -92
  823. data/sig/modern_treasury/resources/external_accounts.rbs +57 -94
  824. data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +25 -41
  825. data/sig/modern_treasury/resources/incoming_payment_details.rbs +33 -54
  826. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +26 -50
  827. data/sig/modern_treasury/resources/internal_accounts.rbs +36 -58
  828. data/sig/modern_treasury/resources/invoices/line_items.rbs +39 -69
  829. data/sig/modern_treasury/resources/invoices.rbs +80 -108
  830. data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +29 -57
  831. data/sig/modern_treasury/resources/ledger_account_categories.rbs +60 -112
  832. data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +10 -22
  833. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +35 -57
  834. data/sig/modern_treasury/resources/ledger_account_statements.rbs +12 -23
  835. data/sig/modern_treasury/resources/ledger_accounts.rbs +46 -74
  836. data/sig/modern_treasury/resources/ledger_entries.rbs +33 -50
  837. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +26 -48
  838. data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +9 -14
  839. data/sig/modern_treasury/resources/ledger_transactions.rbs +68 -102
  840. data/sig/modern_treasury/resources/ledgerable_events.rbs +11 -22
  841. data/sig/modern_treasury/resources/ledgers.rbs +29 -56
  842. data/sig/modern_treasury/resources/legal_entities.rbs +69 -87
  843. data/sig/modern_treasury/resources/legal_entity_associations.rbs +9 -14
  844. data/sig/modern_treasury/resources/line_items.rbs +20 -38
  845. data/sig/modern_treasury/resources/paper_items.rbs +12 -23
  846. data/sig/modern_treasury/resources/payment_flows.rbs +29 -51
  847. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +18 -36
  848. data/sig/modern_treasury/resources/payment_orders.rbs +139 -166
  849. data/sig/modern_treasury/resources/payment_references.rbs +13 -33
  850. data/sig/modern_treasury/resources/returns.rbs +23 -37
  851. data/sig/modern_treasury/resources/routing_details.rbs +27 -51
  852. data/sig/modern_treasury/resources/transactions/line_items.rbs +22 -41
  853. data/sig/modern_treasury/resources/transactions.rbs +43 -68
  854. data/sig/modern_treasury/resources/validations.rbs +5 -10
  855. data/sig/modern_treasury/resources/virtual_accounts.rbs +37 -65
  856. data/sig/modern_treasury/version.rbs +1 -1
  857. metadata +55 -25
  858. data/lib/modern_treasury/base_client.rb +0 -475
  859. data/lib/modern_treasury/base_model.rb +0 -1191
  860. data/lib/modern_treasury/base_page.rb +0 -40
  861. data/lib/modern_treasury/extern.rb +0 -10
  862. data/lib/modern_treasury/page.rb +0 -94
  863. data/lib/modern_treasury/pooled_net_requester.rb +0 -163
  864. data/lib/modern_treasury/util.rb +0 -468
  865. data/rbi/lib/modern_treasury/base_client.rbi +0 -161
  866. data/rbi/lib/modern_treasury/base_model.rbi +0 -480
  867. data/rbi/lib/modern_treasury/base_page.rbi +0 -39
  868. data/rbi/lib/modern_treasury/extern.rbi +0 -7
  869. data/rbi/lib/modern_treasury/page.rbi +0 -49
  870. data/rbi/lib/modern_treasury/pooled_net_requester.rbi +0 -59
  871. data/rbi/lib/modern_treasury/util.rbi +0 -135
  872. data/sig/modern_treasury/base_client.rbs +0 -100
  873. data/sig/modern_treasury/base_model.rbs +0 -246
  874. data/sig/modern_treasury/base_page.rbs +0 -20
  875. data/sig/modern_treasury/page.rbs +0 -22
  876. data/sig/modern_treasury/pooled_net_requester.rbs +0 -42
  877. data/sig/modern_treasury/util.rbs +0 -91
@@ -2,10 +2,11 @@
2
2
 
3
3
  module ModernTreasury
4
4
  module Models
5
- class CounterpartyCreateParams < ModernTreasury::BaseModel
5
+ # @see ModernTreasury::Resources::Counterparties#create
6
+ class CounterpartyCreateParams < ModernTreasury::Internal::Type::BaseModel
6
7
  # @!parse
7
- # extend ModernTreasury::RequestParameters::Converter
8
- include ModernTreasury::RequestParameters
8
+ # extend ModernTreasury::Internal::Type::RequestParameters::Converter
9
+ include ModernTreasury::Internal::Type::RequestParameters
9
10
 
10
11
  # @!attribute name
11
12
  # A human friendly name for this counterparty.
@@ -27,7 +28,7 @@ module ModernTreasury
27
28
  #
28
29
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>, nil]
29
30
  optional :accounts,
30
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account] }
31
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account] }
31
32
 
32
33
  # @!parse
33
34
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>]
@@ -41,7 +42,7 @@ module ModernTreasury
41
42
 
42
43
  # @!attribute [r] ledger_type
43
44
  # An optional type to auto-sync the counterparty to your ledger. Either `customer`
44
- # or `vendor`.
45
+ # or `vendor`.
45
46
  #
46
47
  # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType, nil]
47
48
  optional :ledger_type, enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LedgerType }
@@ -67,10 +68,10 @@ module ModernTreasury
67
68
 
68
69
  # @!attribute [r] metadata
69
70
  # Additional data represented as key-value pairs. Both the key and value must be
70
- # strings.
71
+ # strings.
71
72
  #
72
73
  # @return [Hash{Symbol=>String}, nil]
73
- optional :metadata, ModernTreasury::HashOf[String]
74
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
74
75
 
75
76
  # @!parse
76
77
  # # @return [Hash{Symbol=>String}]
@@ -78,10 +79,10 @@ module ModernTreasury
78
79
 
79
80
  # @!attribute [r] send_remittance_advice
80
81
  # Send an email to the counterparty whenever an associated payment order is sent
81
- # to the bank.
82
+ # to the bank.
82
83
  #
83
84
  # @return [Boolean, nil]
84
- optional :send_remittance_advice, ModernTreasury::BooleanModel
85
+ optional :send_remittance_advice, ModernTreasury::Internal::Type::Boolean
85
86
 
86
87
  # @!parse
87
88
  # # @return [Boolean]
@@ -140,12 +141,12 @@ module ModernTreasury
140
141
  # super
141
142
  # end
142
143
 
143
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
144
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
144
145
 
145
- class Accounting < ModernTreasury::BaseModel
146
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
146
147
  # @!attribute [r] type
147
148
  # An optional type to auto-sync the counterparty to your ledger. Either `customer`
148
- # or `vendor`.
149
+ # or `vendor`.
149
150
  #
150
151
  # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type, nil]
151
152
  optional :type, enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type }
@@ -159,23 +160,15 @@ module ModernTreasury
159
160
  # #
160
161
  # def initialize(type: nil, **) = super
161
162
 
162
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
163
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
163
164
 
164
- # @abstract
165
- #
166
165
  # An optional type to auto-sync the counterparty to your ledger. Either `customer`
167
- # or `vendor`.
166
+ # or `vendor`.
168
167
  #
169
- # @example
170
- # ```ruby
171
- # case type
172
- # in :customer
173
- # # ...
174
- # in :vendor
175
- # # ...
176
- # end
177
- # ```
178
- class Type < ModernTreasury::Enum
168
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Accounting#type
169
+ module Type
170
+ extend ModernTreasury::Internal::Type::Enum
171
+
179
172
  CUSTOMER = :customer
180
173
  VENDOR = :vendor
181
174
 
@@ -183,17 +176,16 @@ module ModernTreasury
183
176
 
184
177
  # @!parse
185
178
  # # @return [Array<Symbol>]
186
- # #
187
179
  # def self.values; end
188
180
  end
189
181
  end
190
182
 
191
- class Account < ModernTreasury::BaseModel
183
+ class Account < ModernTreasury::Internal::Type::BaseModel
192
184
  # @!attribute [r] account_details
193
185
  #
194
186
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>, nil]
195
187
  optional :account_details,
196
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail] }
188
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail] }
197
189
 
198
190
  # @!parse
199
191
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
@@ -213,7 +205,7 @@ module ModernTreasury
213
205
  #
214
206
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>, nil]
215
207
  optional :contact_details,
216
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail] }
208
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail] }
217
209
 
218
210
  # @!parse
219
211
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
@@ -221,10 +213,10 @@ module ModernTreasury
221
213
 
222
214
  # @!attribute [r] ledger_account
223
215
  # Specifies a ledger account object that will be created with the external
224
- # account. The resulting ledger account is linked to the external account for
225
- # auto-ledgering Payment objects. See
226
- # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
227
- # for more details.
216
+ # account. The resulting ledger account is linked to the external account for
217
+ # auto-ledgering Payment objects. See
218
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
219
+ # for more details.
228
220
  #
229
221
  # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount, nil]
230
222
  optional :ledger_account, -> { ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount }
@@ -235,10 +227,10 @@ module ModernTreasury
235
227
 
236
228
  # @!attribute [r] metadata
237
229
  # Additional data represented as key-value pairs. Both the key and value must be
238
- # strings.
230
+ # strings.
239
231
  #
240
232
  # @return [Hash{Symbol=>String}, nil]
241
- optional :metadata, ModernTreasury::HashOf[String]
233
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
242
234
 
243
235
  # @!parse
244
236
  # # @return [Hash{Symbol=>String}]
@@ -246,7 +238,7 @@ module ModernTreasury
246
238
 
247
239
  # @!attribute name
248
240
  # A nickname for the external account. This is only for internal usage and won't
249
- # affect any payments
241
+ # affect any payments
250
242
  #
251
243
  # @return [String, nil]
252
244
  optional :name, String, nil?: true
@@ -290,7 +282,7 @@ module ModernTreasury
290
282
 
291
283
  # @!attribute [r] plaid_processor_token
292
284
  # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
293
- # you can pass the processor token in this field.
285
+ # you can pass the processor token in this field.
294
286
  #
295
287
  # @return [String, nil]
296
288
  optional :plaid_processor_token, String
@@ -303,7 +295,7 @@ module ModernTreasury
303
295
  #
304
296
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>, nil]
305
297
  optional :routing_details,
306
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail] }
298
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail] }
307
299
 
308
300
  # @!parse
309
301
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>]
@@ -341,9 +333,9 @@ module ModernTreasury
341
333
  # super
342
334
  # end
343
335
 
344
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
336
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
345
337
 
346
- class AccountDetail < ModernTreasury::BaseModel
338
+ class AccountDetail < ModernTreasury::Internal::Type::BaseModel
347
339
  # @!attribute account_number
348
340
  #
349
341
  # @return [String]
@@ -365,28 +357,12 @@ module ModernTreasury
365
357
  # #
366
358
  # def initialize(account_number:, account_number_type: nil, **) = super
367
359
 
368
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
360
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
361
+
362
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail#account_number_type
363
+ module AccountNumberType
364
+ extend ModernTreasury::Internal::Type::Enum
369
365
 
370
- # @abstract
371
- #
372
- # @example
373
- # ```ruby
374
- # case account_number_type
375
- # in :au_number
376
- # # ...
377
- # in :clabe
378
- # # ...
379
- # in :hk_number
380
- # # ...
381
- # in :iban
382
- # # ...
383
- # in :id_number
384
- # # ...
385
- # in ...
386
- # #...
387
- # end
388
- # ```
389
- class AccountNumberType < ModernTreasury::Enum
390
366
  AU_NUMBER = :au_number
391
367
  CLABE = :clabe
392
368
  HK_NUMBER = :hk_number
@@ -402,12 +378,11 @@ module ModernTreasury
402
378
 
403
379
  # @!parse
404
380
  # # @return [Array<Symbol>]
405
- # #
406
381
  # def self.values; end
407
382
  end
408
383
  end
409
384
 
410
- class ContactDetail < ModernTreasury::BaseModel
385
+ class ContactDetail < ModernTreasury::Internal::Type::BaseModel
411
386
  # @!attribute [r] contact_identifier
412
387
  #
413
388
  # @return [String, nil]
@@ -433,22 +408,12 @@ module ModernTreasury
433
408
  # #
434
409
  # def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
435
410
 
436
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
411
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
412
+
413
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail#contact_identifier_type
414
+ module ContactIdentifierType
415
+ extend ModernTreasury::Internal::Type::Enum
437
416
 
438
- # @abstract
439
- #
440
- # @example
441
- # ```ruby
442
- # case contact_identifier_type
443
- # in :email
444
- # # ...
445
- # in :phone_number
446
- # # ...
447
- # in :website
448
- # # ...
449
- # end
450
- # ```
451
- class ContactIdentifierType < ModernTreasury::Enum
452
417
  EMAIL = :email
453
418
  PHONE_NUMBER = :phone_number
454
419
  WEBSITE = :website
@@ -457,12 +422,12 @@ module ModernTreasury
457
422
 
458
423
  # @!parse
459
424
  # # @return [Array<Symbol>]
460
- # #
461
425
  # def self.values; end
462
426
  end
463
427
  end
464
428
 
465
- class LedgerAccount < ModernTreasury::BaseModel
429
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account#ledger_account
430
+ class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
466
431
  # @!attribute currency
467
432
  # The currency of the ledger account.
468
433
  #
@@ -501,10 +466,10 @@ module ModernTreasury
501
466
 
502
467
  # @!attribute [r] ledger_account_category_ids
503
468
  # The array of ledger account category ids that this ledger account should be a
504
- # child of.
469
+ # child of.
505
470
  #
506
471
  # @return [Array<String>, nil]
507
- optional :ledger_account_category_ids, ModernTreasury::ArrayOf[String]
472
+ optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]
508
473
 
509
474
  # @!parse
510
475
  # # @return [Array<String>]
@@ -512,7 +477,7 @@ module ModernTreasury
512
477
 
513
478
  # @!attribute [r] ledgerable_id
514
479
  # If the ledger account links to another object in Modern Treasury, the id will be
515
- # populated here, otherwise null.
480
+ # populated here, otherwise null.
516
481
  #
517
482
  # @return [String, nil]
518
483
  optional :ledgerable_id, String
@@ -523,8 +488,8 @@ module ModernTreasury
523
488
 
524
489
  # @!attribute [r] ledgerable_type
525
490
  # If the ledger account links to another object in Modern Treasury, the type will
526
- # be populated here, otherwise null. The value is one of internal_account or
527
- # external_account.
491
+ # be populated here, otherwise null. The value is one of internal_account or
492
+ # external_account.
528
493
  #
529
494
  # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType, nil]
530
495
  optional :ledgerable_type,
@@ -536,10 +501,10 @@ module ModernTreasury
536
501
 
537
502
  # @!attribute [r] metadata
538
503
  # Additional data represented as key-value pairs. Both the key and value must be
539
- # strings.
504
+ # strings.
540
505
  #
541
506
  # @return [Hash{Symbol=>String}, nil]
542
- optional :metadata, ModernTreasury::HashOf[String]
507
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
543
508
 
544
509
  # @!parse
545
510
  # # @return [Hash{Symbol=>String}]
@@ -547,10 +512,10 @@ module ModernTreasury
547
512
 
548
513
  # @!parse
549
514
  # # Specifies a ledger account object that will be created with the external
550
- # # account. The resulting ledger account is linked to the external account for
551
- # # auto-ledgering Payment objects. See
552
- # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
553
- # # for more details.
515
+ # # account. The resulting ledger account is linked to the external account for
516
+ # # auto-ledgering Payment objects. See
517
+ # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
518
+ # # for more details.
554
519
  # #
555
520
  # # @param currency [String]
556
521
  # # @param ledger_id [String]
@@ -579,28 +544,16 @@ module ModernTreasury
579
544
  # super
580
545
  # end
581
546
 
582
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
547
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
583
548
 
584
- # @abstract
585
- #
586
549
  # If the ledger account links to another object in Modern Treasury, the type will
587
- # be populated here, otherwise null. The value is one of internal_account or
588
- # external_account.
550
+ # be populated here, otherwise null. The value is one of internal_account or
551
+ # external_account.
589
552
  #
590
- # @example
591
- # ```ruby
592
- # case ledgerable_type
593
- # in :counterparty
594
- # # ...
595
- # in :external_account
596
- # # ...
597
- # in :internal_account
598
- # # ...
599
- # in :virtual_account
600
- # # ...
601
- # end
602
- # ```
603
- class LedgerableType < ModernTreasury::Enum
553
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount#ledgerable_type
554
+ module LedgerableType
555
+ extend ModernTreasury::Internal::Type::Enum
556
+
604
557
  COUNTERPARTY = :counterparty
605
558
  EXTERNAL_ACCOUNT = :external_account
606
559
  INTERNAL_ACCOUNT = :internal_account
@@ -610,12 +563,12 @@ module ModernTreasury
610
563
 
611
564
  # @!parse
612
565
  # # @return [Array<Symbol>]
613
- # #
614
566
  # def self.values; end
615
567
  end
616
568
  end
617
569
 
618
- class PartyAddress < ModernTreasury::BaseModel
570
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account#party_address
571
+ class PartyAddress < ModernTreasury::Internal::Type::BaseModel
619
572
  # @!attribute country
620
573
  # Country code conforms to [ISO 3166-1 alpha-2]
621
574
  #
@@ -662,23 +615,15 @@ module ModernTreasury
662
615
  # #
663
616
  # def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
664
617
 
665
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
618
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
666
619
  end
667
620
 
668
- # @abstract
669
- #
670
621
  # Either `individual` or `business`.
671
622
  #
672
- # @example
673
- # ```ruby
674
- # case party_type
675
- # in :business
676
- # # ...
677
- # in :individual
678
- # # ...
679
- # end
680
- # ```
681
- class PartyType < ModernTreasury::Enum
623
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account#party_type
624
+ module PartyType
625
+ extend ModernTreasury::Internal::Type::Enum
626
+
682
627
  BUSINESS = :business
683
628
  INDIVIDUAL = :individual
684
629
 
@@ -686,11 +631,10 @@ module ModernTreasury
686
631
 
687
632
  # @!parse
688
633
  # # @return [Array<Symbol>]
689
- # #
690
634
  # def self.values; end
691
635
  end
692
636
 
693
- class RoutingDetail < ModernTreasury::BaseModel
637
+ class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
694
638
  # @!attribute routing_number
695
639
  #
696
640
  # @return [String]
@@ -719,28 +663,12 @@ module ModernTreasury
719
663
  # #
720
664
  # def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
721
665
 
722
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
666
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
667
+
668
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail#routing_number_type
669
+ module RoutingNumberType
670
+ extend ModernTreasury::Internal::Type::Enum
723
671
 
724
- # @abstract
725
- #
726
- # @example
727
- # ```ruby
728
- # case routing_number_type
729
- # in :aba
730
- # # ...
731
- # in :au_bsb
732
- # # ...
733
- # in :br_codigo
734
- # # ...
735
- # in :ca_cpa
736
- # # ...
737
- # in :chips
738
- # # ...
739
- # in ...
740
- # #...
741
- # end
742
- # ```
743
- class RoutingNumberType < ModernTreasury::Enum
744
672
  ABA = :aba
745
673
  AU_BSB = :au_bsb
746
674
  BR_CODIGO = :br_codigo
@@ -767,30 +695,13 @@ module ModernTreasury
767
695
 
768
696
  # @!parse
769
697
  # # @return [Array<Symbol>]
770
- # #
771
698
  # def self.values; end
772
699
  end
773
700
 
774
- # @abstract
775
- #
776
- # @example
777
- # ```ruby
778
- # case payment_type
779
- # in :ach
780
- # # ...
781
- # in :au_becs
782
- # # ...
783
- # in :bacs
784
- # # ...
785
- # in :book
786
- # # ...
787
- # in :card
788
- # # ...
789
- # in ...
790
- # #...
791
- # end
792
- # ```
793
- class PaymentType < ModernTreasury::Enum
701
+ # @see ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail#payment_type
702
+ module PaymentType
703
+ extend ModernTreasury::Internal::Type::Enum
704
+
794
705
  ACH = :ach
795
706
  AU_BECS = :au_becs
796
707
  BACS = :bacs
@@ -826,29 +737,18 @@ module ModernTreasury
826
737
 
827
738
  # @!parse
828
739
  # # @return [Array<Symbol>]
829
- # #
830
740
  # def self.values; end
831
741
  end
832
742
  end
833
743
  end
834
744
 
835
- # @abstract
836
- #
837
745
  # @deprecated
838
746
  #
839
- # An optional type to auto-sync the counterparty to your ledger. Either `customer`
840
- # or `vendor`.
841
- #
842
- # @example
843
- # ```ruby
844
- # case ledger_type
845
- # in :customer
846
- # # ...
847
- # in :vendor
848
- # # ...
849
- # end
850
- # ```
851
- class LedgerType < ModernTreasury::Enum
747
+ # An optional type to auto-sync the counterparty to your ledger. Either `customer`
748
+ # or `vendor`.
749
+ module LedgerType
750
+ extend ModernTreasury::Internal::Type::Enum
751
+
852
752
  CUSTOMER = :customer
853
753
  VENDOR = :vendor
854
754
 
@@ -856,11 +756,10 @@ module ModernTreasury
856
756
 
857
757
  # @!parse
858
758
  # # @return [Array<Symbol>]
859
- # #
860
759
  # def self.values; end
861
760
  end
862
761
 
863
- class LegalEntity < ModernTreasury::BaseModel
762
+ class LegalEntity < ModernTreasury::Internal::Type::BaseModel
864
763
  # @!attribute legal_entity_type
865
764
  # The type of legal entity.
866
765
  #
@@ -873,7 +772,7 @@ module ModernTreasury
873
772
  #
874
773
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>, nil]
875
774
  optional :addresses,
876
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address] }
775
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address] }
877
776
 
878
777
  # @!parse
879
778
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>]
@@ -896,6 +795,11 @@ module ModernTreasury
896
795
  # @return [String, nil]
897
796
  optional :citizenship_country, String, nil?: true
898
797
 
798
+ # @!attribute compliance_details
799
+ #
800
+ # @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
801
+ optional :compliance_details, -> { ModernTreasury::Models::LegalEntityComplianceDetail }, nil?: true
802
+
899
803
  # @!attribute date_formed
900
804
  # A business's formation date (YYYY-MM-DD).
901
805
  #
@@ -911,7 +815,7 @@ module ModernTreasury
911
815
  # @!attribute [r] doing_business_as_names
912
816
  #
913
817
  # @return [Array<String>, nil]
914
- optional :doing_business_as_names, ModernTreasury::ArrayOf[String]
818
+ optional :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
915
819
 
916
820
  # @!parse
917
821
  # # @return [Array<String>]
@@ -934,12 +838,23 @@ module ModernTreasury
934
838
  #
935
839
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>, nil]
936
840
  optional :identifications,
937
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification] }
841
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification] }
938
842
 
939
843
  # @!parse
940
844
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>]
941
845
  # attr_writer :identifications
942
846
 
847
+ # @!attribute [r] industry_classifications
848
+ # A list of industry classifications for the legal entity.
849
+ #
850
+ # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
851
+ optional :industry_classifications,
852
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::LegalEntityIndustryClassification] }
853
+
854
+ # @!parse
855
+ # # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
856
+ # attr_writer :industry_classifications
857
+
943
858
  # @!attribute last_name
944
859
  # An individual's last name.
945
860
  #
@@ -951,7 +866,7 @@ module ModernTreasury
951
866
  #
952
867
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
953
868
  optional :legal_entity_associations,
954
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation] },
869
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation] },
955
870
  nil?: true
956
871
 
957
872
  # @!attribute legal_structure
@@ -964,10 +879,10 @@ module ModernTreasury
964
879
 
965
880
  # @!attribute [r] metadata
966
881
  # Additional data represented as key-value pairs. Both the key and value must be
967
- # strings.
882
+ # strings.
968
883
  #
969
884
  # @return [Hash{Symbol=>String}, nil]
970
- optional :metadata, ModernTreasury::HashOf[String]
885
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
971
886
 
972
887
  # @!parse
973
888
  # # @return [Hash{Symbol=>String}]
@@ -983,7 +898,7 @@ module ModernTreasury
983
898
  #
984
899
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>, nil]
985
900
  optional :phone_numbers,
986
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber] }
901
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber] }
987
902
 
988
903
  # @!parse
989
904
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
@@ -993,7 +908,7 @@ module ModernTreasury
993
908
  # Whether the individual is a politically exposed person.
994
909
  #
995
910
  # @return [Boolean, nil]
996
- optional :politically_exposed_person, ModernTreasury::BooleanModel, nil?: true
911
+ optional :politically_exposed_person, ModernTreasury::Internal::Type::Boolean, nil?: true
997
912
 
998
913
  # @!attribute preferred_name
999
914
  # An individual's preferred name.
@@ -1040,12 +955,14 @@ module ModernTreasury
1040
955
  # # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
1041
956
  # # @param business_name [String, nil]
1042
957
  # # @param citizenship_country [String, nil]
958
+ # # @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
1043
959
  # # @param date_formed [Date, nil]
1044
960
  # # @param date_of_birth [Date, nil]
1045
961
  # # @param doing_business_as_names [Array<String>]
1046
962
  # # @param email [String, nil]
1047
963
  # # @param first_name [String, nil]
1048
964
  # # @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>]
965
+ # # @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
1049
966
  # # @param last_name [String, nil]
1050
967
  # # @param legal_entity_associations [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
1051
968
  # # @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
@@ -1066,12 +983,14 @@ module ModernTreasury
1066
983
  # bank_settings: nil,
1067
984
  # business_name: nil,
1068
985
  # citizenship_country: nil,
986
+ # compliance_details: nil,
1069
987
  # date_formed: nil,
1070
988
  # date_of_birth: nil,
1071
989
  # doing_business_as_names: nil,
1072
990
  # email: nil,
1073
991
  # first_name: nil,
1074
992
  # identifications: nil,
993
+ # industry_classifications: nil,
1075
994
  # last_name: nil,
1076
995
  # legal_entity_associations: nil,
1077
996
  # legal_structure: nil,
@@ -1090,22 +1009,14 @@ module ModernTreasury
1090
1009
  # super
1091
1010
  # end
1092
1011
 
1093
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1012
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1094
1013
 
1095
- # @abstract
1096
- #
1097
1014
  # The type of legal entity.
1098
1015
  #
1099
- # @example
1100
- # ```ruby
1101
- # case legal_entity_type
1102
- # in :business
1103
- # # ...
1104
- # in :individual
1105
- # # ...
1106
- # end
1107
- # ```
1108
- class LegalEntityType < ModernTreasury::Enum
1016
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#legal_entity_type
1017
+ module LegalEntityType
1018
+ extend ModernTreasury::Internal::Type::Enum
1019
+
1109
1020
  BUSINESS = :business
1110
1021
  INDIVIDUAL = :individual
1111
1022
 
@@ -1113,11 +1024,10 @@ module ModernTreasury
1113
1024
 
1114
1025
  # @!parse
1115
1026
  # # @return [Array<Symbol>]
1116
- # #
1117
1027
  # def self.values; end
1118
1028
  end
1119
1029
 
1120
- class Address < ModernTreasury::BaseModel
1030
+ class Address < ModernTreasury::Internal::Type::BaseModel
1121
1031
  # @!attribute country
1122
1032
  # Country code conforms to [ISO 3166-1 alpha-2]
1123
1033
  #
@@ -1152,7 +1062,7 @@ module ModernTreasury
1152
1062
  #
1153
1063
  # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>, nil]
1154
1064
  optional :address_types,
1155
- -> { ModernTreasury::ArrayOf[enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType] }
1065
+ -> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType] }
1156
1066
 
1157
1067
  # @!parse
1158
1068
  # # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>]
@@ -1174,26 +1084,11 @@ module ModernTreasury
1174
1084
  # #
1175
1085
  # def initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, **) = super
1176
1086
 
1177
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1087
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1088
+
1089
+ module AddressType
1090
+ extend ModernTreasury::Internal::Type::Enum
1178
1091
 
1179
- # @abstract
1180
- #
1181
- # @example
1182
- # ```ruby
1183
- # case address_type
1184
- # in :business
1185
- # # ...
1186
- # in :mailing
1187
- # # ...
1188
- # in :other
1189
- # # ...
1190
- # in :po_box
1191
- # # ...
1192
- # in :residential
1193
- # # ...
1194
- # end
1195
- # ```
1196
- class AddressType < ModernTreasury::Enum
1197
1092
  BUSINESS = :business
1198
1093
  MAILING = :mailing
1199
1094
  OTHER = :other
@@ -1204,12 +1099,11 @@ module ModernTreasury
1204
1099
 
1205
1100
  # @!parse
1206
1101
  # # @return [Array<Symbol>]
1207
- # #
1208
1102
  # def self.values; end
1209
1103
  end
1210
1104
  end
1211
1105
 
1212
- class Identification < ModernTreasury::BaseModel
1106
+ class Identification < ModernTreasury::Internal::Type::BaseModel
1213
1107
  # @!attribute id_number
1214
1108
  # The ID number of identification document.
1215
1109
  #
@@ -1225,7 +1119,7 @@ module ModernTreasury
1225
1119
 
1226
1120
  # @!attribute issuing_country
1227
1121
  # The ISO 3166-1 alpha-2 country code of the country that issued the
1228
- # identification
1122
+ # identification
1229
1123
  #
1230
1124
  # @return [String, nil]
1231
1125
  optional :issuing_country, String, nil?: true
@@ -1237,30 +1131,14 @@ module ModernTreasury
1237
1131
  # #
1238
1132
  # def initialize(id_number:, id_type:, issuing_country: nil, **) = super
1239
1133
 
1240
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1134
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1241
1135
 
1242
- # @abstract
1243
- #
1244
1136
  # The type of ID number.
1245
1137
  #
1246
- # @example
1247
- # ```ruby
1248
- # case id_type
1249
- # in :ar_cuil
1250
- # # ...
1251
- # in :ar_cuit
1252
- # # ...
1253
- # in :br_cnpj
1254
- # # ...
1255
- # in :br_cpf
1256
- # # ...
1257
- # in :cl_run
1258
- # # ...
1259
- # in ...
1260
- # #...
1261
- # end
1262
- # ```
1263
- class IDType < ModernTreasury::Enum
1138
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification#id_type
1139
+ module IDType
1140
+ extend ModernTreasury::Internal::Type::Enum
1141
+
1264
1142
  AR_CUIL = :ar_cuil
1265
1143
  AR_CUIT = :ar_cuit
1266
1144
  BR_CNPJ = :br_cnpj
@@ -1287,19 +1165,18 @@ module ModernTreasury
1287
1165
 
1288
1166
  # @!parse
1289
1167
  # # @return [Array<Symbol>]
1290
- # #
1291
1168
  # def self.values; end
1292
1169
  end
1293
1170
  end
1294
1171
 
1295
- class LegalEntityAssociation < ModernTreasury::BaseModel
1172
+ class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
1296
1173
  # @!attribute relationship_types
1297
1174
  #
1298
1175
  # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
1299
1176
  required :relationship_types,
1300
1177
  -> do
1301
- ModernTreasury::ArrayOf[
1302
- enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType
1178
+ ModernTreasury::Internal::Type::ArrayOf[
1179
+ enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType
1303
1180
  ]
1304
1181
  end
1305
1182
 
@@ -1354,22 +1231,12 @@ module ModernTreasury
1354
1231
  # super
1355
1232
  # end
1356
1233
 
1357
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1234
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1358
1235
 
1359
- # @abstract
1360
- #
1361
1236
  # A list of relationship types for how the child entity relates to parent entity.
1362
- #
1363
- # @example
1364
- # ```ruby
1365
- # case relationship_type
1366
- # in :beneficial_owner
1367
- # # ...
1368
- # in :control_person
1369
- # # ...
1370
- # end
1371
- # ```
1372
- class RelationshipType < ModernTreasury::Enum
1237
+ module RelationshipType
1238
+ extend ModernTreasury::Internal::Type::Enum
1239
+
1373
1240
  BENEFICIAL_OWNER = :beneficial_owner
1374
1241
  CONTROL_PERSON = :control_person
1375
1242
 
@@ -1377,19 +1244,19 @@ module ModernTreasury
1377
1244
 
1378
1245
  # @!parse
1379
1246
  # # @return [Array<Symbol>]
1380
- # #
1381
1247
  # def self.values; end
1382
1248
  end
1383
1249
 
1384
- class ChildLegalEntity < ModernTreasury::BaseModel
1250
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation#child_legal_entity
1251
+ class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
1385
1252
  # @!attribute [r] addresses
1386
1253
  # A list of addresses for the entity.
1387
1254
  #
1388
1255
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
1389
1256
  optional :addresses,
1390
1257
  -> do
1391
- ModernTreasury::ArrayOf[
1392
- ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
1258
+ ModernTreasury::Internal::Type::ArrayOf[
1259
+ ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
1393
1260
  ]
1394
1261
  end
1395
1262
 
@@ -1414,6 +1281,11 @@ module ModernTreasury
1414
1281
  # @return [String, nil]
1415
1282
  optional :citizenship_country, String, nil?: true
1416
1283
 
1284
+ # @!attribute compliance_details
1285
+ #
1286
+ # @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
1287
+ optional :compliance_details, -> { ModernTreasury::Models::LegalEntityComplianceDetail }, nil?: true
1288
+
1417
1289
  # @!attribute date_formed
1418
1290
  # A business's formation date (YYYY-MM-DD).
1419
1291
  #
@@ -1429,7 +1301,7 @@ module ModernTreasury
1429
1301
  # @!attribute [r] doing_business_as_names
1430
1302
  #
1431
1303
  # @return [Array<String>, nil]
1432
- optional :doing_business_as_names, ModernTreasury::ArrayOf[String]
1304
+ optional :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
1433
1305
 
1434
1306
  # @!parse
1435
1307
  # # @return [Array<String>]
@@ -1453,8 +1325,8 @@ module ModernTreasury
1453
1325
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
1454
1326
  optional :identifications,
1455
1327
  -> do
1456
- ModernTreasury::ArrayOf[
1457
- ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
1328
+ ModernTreasury::Internal::Type::ArrayOf[
1329
+ ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
1458
1330
  ]
1459
1331
  end
1460
1332
 
@@ -1462,6 +1334,17 @@ module ModernTreasury
1462
1334
  # # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>]
1463
1335
  # attr_writer :identifications
1464
1336
 
1337
+ # @!attribute [r] industry_classifications
1338
+ # A list of industry classifications for the legal entity.
1339
+ #
1340
+ # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
1341
+ optional :industry_classifications,
1342
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::LegalEntityIndustryClassification] }
1343
+
1344
+ # @!parse
1345
+ # # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
1346
+ # attr_writer :industry_classifications
1347
+
1465
1348
  # @!attribute last_name
1466
1349
  # An individual's last name.
1467
1350
  #
@@ -1489,10 +1372,10 @@ module ModernTreasury
1489
1372
 
1490
1373
  # @!attribute [r] metadata
1491
1374
  # Additional data represented as key-value pairs. Both the key and value must be
1492
- # strings.
1375
+ # strings.
1493
1376
  #
1494
1377
  # @return [Hash{Symbol=>String}, nil]
1495
- optional :metadata, ModernTreasury::HashOf[String]
1378
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1496
1379
 
1497
1380
  # @!parse
1498
1381
  # # @return [Hash{Symbol=>String}]
@@ -1509,8 +1392,8 @@ module ModernTreasury
1509
1392
  # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
1510
1393
  optional :phone_numbers,
1511
1394
  -> do
1512
- ModernTreasury::ArrayOf[
1513
- ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
1395
+ ModernTreasury::Internal::Type::ArrayOf[
1396
+ ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
1514
1397
  ]
1515
1398
  end
1516
1399
 
@@ -1522,7 +1405,7 @@ module ModernTreasury
1522
1405
  # Whether the individual is a politically exposed person.
1523
1406
  #
1524
1407
  # @return [Boolean, nil]
1525
- optional :politically_exposed_person, ModernTreasury::BooleanModel, nil?: true
1408
+ optional :politically_exposed_person, ModernTreasury::Internal::Type::Boolean, nil?: true
1526
1409
 
1527
1410
  # @!attribute preferred_name
1528
1411
  # An individual's preferred name.
@@ -1570,12 +1453,14 @@ module ModernTreasury
1570
1453
  # # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
1571
1454
  # # @param business_name [String, nil]
1572
1455
  # # @param citizenship_country [String, nil]
1456
+ # # @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
1573
1457
  # # @param date_formed [Date, nil]
1574
1458
  # # @param date_of_birth [Date, nil]
1575
1459
  # # @param doing_business_as_names [Array<String>]
1576
1460
  # # @param email [String, nil]
1577
1461
  # # @param first_name [String, nil]
1578
1462
  # # @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>]
1463
+ # # @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
1579
1464
  # # @param last_name [String, nil]
1580
1465
  # # @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
1581
1466
  # # @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
@@ -1595,12 +1480,14 @@ module ModernTreasury
1595
1480
  # bank_settings: nil,
1596
1481
  # business_name: nil,
1597
1482
  # citizenship_country: nil,
1483
+ # compliance_details: nil,
1598
1484
  # date_formed: nil,
1599
1485
  # date_of_birth: nil,
1600
1486
  # doing_business_as_names: nil,
1601
1487
  # email: nil,
1602
1488
  # first_name: nil,
1603
1489
  # identifications: nil,
1490
+ # industry_classifications: nil,
1604
1491
  # last_name: nil,
1605
1492
  # legal_entity_type: nil,
1606
1493
  # legal_structure: nil,
@@ -1619,9 +1506,9 @@ module ModernTreasury
1619
1506
  # super
1620
1507
  # end
1621
1508
 
1622
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1509
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1623
1510
 
1624
- class Address < ModernTreasury::BaseModel
1511
+ class Address < ModernTreasury::Internal::Type::BaseModel
1625
1512
  # @!attribute country
1626
1513
  # Country code conforms to [ISO 3166-1 alpha-2]
1627
1514
  #
@@ -1657,8 +1544,8 @@ module ModernTreasury
1657
1544
  # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
1658
1545
  optional :address_types,
1659
1546
  -> do
1660
- ModernTreasury::ArrayOf[
1661
- enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
1547
+ ModernTreasury::Internal::Type::ArrayOf[
1548
+ enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
1662
1549
  ]
1663
1550
  end
1664
1551
 
@@ -1682,26 +1569,11 @@ module ModernTreasury
1682
1569
  # #
1683
1570
  # def initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, **) = super
1684
1571
 
1685
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1572
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1573
+
1574
+ module AddressType
1575
+ extend ModernTreasury::Internal::Type::Enum
1686
1576
 
1687
- # @abstract
1688
- #
1689
- # @example
1690
- # ```ruby
1691
- # case address_type
1692
- # in :business
1693
- # # ...
1694
- # in :mailing
1695
- # # ...
1696
- # in :other
1697
- # # ...
1698
- # in :po_box
1699
- # # ...
1700
- # in :residential
1701
- # # ...
1702
- # end
1703
- # ```
1704
- class AddressType < ModernTreasury::Enum
1705
1577
  BUSINESS = :business
1706
1578
  MAILING = :mailing
1707
1579
  OTHER = :other
@@ -1712,12 +1584,11 @@ module ModernTreasury
1712
1584
 
1713
1585
  # @!parse
1714
1586
  # # @return [Array<Symbol>]
1715
- # #
1716
1587
  # def self.values; end
1717
1588
  end
1718
1589
  end
1719
1590
 
1720
- class Identification < ModernTreasury::BaseModel
1591
+ class Identification < ModernTreasury::Internal::Type::BaseModel
1721
1592
  # @!attribute id_number
1722
1593
  # The ID number of identification document.
1723
1594
  #
@@ -1733,7 +1604,7 @@ module ModernTreasury
1733
1604
 
1734
1605
  # @!attribute issuing_country
1735
1606
  # The ISO 3166-1 alpha-2 country code of the country that issued the
1736
- # identification
1607
+ # identification
1737
1608
  #
1738
1609
  # @return [String, nil]
1739
1610
  optional :issuing_country, String, nil?: true
@@ -1745,30 +1616,14 @@ module ModernTreasury
1745
1616
  # #
1746
1617
  # def initialize(id_number:, id_type:, issuing_country: nil, **) = super
1747
1618
 
1748
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1619
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1749
1620
 
1750
- # @abstract
1751
- #
1752
1621
  # The type of ID number.
1753
1622
  #
1754
- # @example
1755
- # ```ruby
1756
- # case id_type
1757
- # in :ar_cuil
1758
- # # ...
1759
- # in :ar_cuit
1760
- # # ...
1761
- # in :br_cnpj
1762
- # # ...
1763
- # in :br_cpf
1764
- # # ...
1765
- # in :cl_run
1766
- # # ...
1767
- # in ...
1768
- # #...
1769
- # end
1770
- # ```
1771
- class IDType < ModernTreasury::Enum
1623
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
1624
+ module IDType
1625
+ extend ModernTreasury::Internal::Type::Enum
1626
+
1772
1627
  AR_CUIL = :ar_cuil
1773
1628
  AR_CUIT = :ar_cuit
1774
1629
  BR_CNPJ = :br_cnpj
@@ -1795,25 +1650,16 @@ module ModernTreasury
1795
1650
 
1796
1651
  # @!parse
1797
1652
  # # @return [Array<Symbol>]
1798
- # #
1799
1653
  # def self.values; end
1800
1654
  end
1801
1655
  end
1802
1656
 
1803
- # @abstract
1804
- #
1805
1657
  # The type of legal entity.
1806
1658
  #
1807
- # @example
1808
- # ```ruby
1809
- # case legal_entity_type
1810
- # in :business
1811
- # # ...
1812
- # in :individual
1813
- # # ...
1814
- # end
1815
- # ```
1816
- class LegalEntityType < ModernTreasury::Enum
1659
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
1660
+ module LegalEntityType
1661
+ extend ModernTreasury::Internal::Type::Enum
1662
+
1817
1663
  BUSINESS = :business
1818
1664
  INDIVIDUAL = :individual
1819
1665
 
@@ -1821,32 +1667,15 @@ module ModernTreasury
1821
1667
 
1822
1668
  # @!parse
1823
1669
  # # @return [Array<Symbol>]
1824
- # #
1825
1670
  # def self.values; end
1826
1671
  end
1827
1672
 
1828
- # @abstract
1829
- #
1830
1673
  # The business's legal structure.
1831
1674
  #
1832
- # @example
1833
- # ```ruby
1834
- # case legal_structure
1835
- # in :corporation
1836
- # # ...
1837
- # in :llc
1838
- # # ...
1839
- # in :non_profit
1840
- # # ...
1841
- # in :partnership
1842
- # # ...
1843
- # in :sole_proprietorship
1844
- # # ...
1845
- # in ...
1846
- # #...
1847
- # end
1848
- # ```
1849
- class LegalStructure < ModernTreasury::Enum
1675
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_structure
1676
+ module LegalStructure
1677
+ extend ModernTreasury::Internal::Type::Enum
1678
+
1850
1679
  CORPORATION = :corporation
1851
1680
  LLC = :llc
1852
1681
  NON_PROFIT = :non_profit
@@ -1858,11 +1687,10 @@ module ModernTreasury
1858
1687
 
1859
1688
  # @!parse
1860
1689
  # # @return [Array<Symbol>]
1861
- # #
1862
1690
  # def self.values; end
1863
1691
  end
1864
1692
 
1865
- class PhoneNumber < ModernTreasury::BaseModel
1693
+ class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
1866
1694
  # @!attribute [r] phone_number
1867
1695
  #
1868
1696
  # @return [String, nil]
@@ -1879,25 +1707,15 @@ module ModernTreasury
1879
1707
  # #
1880
1708
  # def initialize(phone_number: nil, **) = super
1881
1709
 
1882
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1710
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1883
1711
  end
1884
1712
 
1885
- # @abstract
1886
- #
1887
1713
  # The risk rating of the legal entity. One of low, medium, high.
1888
1714
  #
1889
- # @example
1890
- # ```ruby
1891
- # case risk_rating
1892
- # in :low
1893
- # # ...
1894
- # in :medium
1895
- # # ...
1896
- # in :high
1897
- # # ...
1898
- # end
1899
- # ```
1900
- class RiskRating < ModernTreasury::Enum
1715
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#risk_rating
1716
+ module RiskRating
1717
+ extend ModernTreasury::Internal::Type::Enum
1718
+
1901
1719
  LOW = :low
1902
1720
  MEDIUM = :medium
1903
1721
  HIGH = :high
@@ -1906,34 +1724,17 @@ module ModernTreasury
1906
1724
 
1907
1725
  # @!parse
1908
1726
  # # @return [Array<Symbol>]
1909
- # #
1910
1727
  # def self.values; end
1911
1728
  end
1912
1729
  end
1913
1730
  end
1914
1731
 
1915
- # @abstract
1916
- #
1917
1732
  # The business's legal structure.
1918
1733
  #
1919
- # @example
1920
- # ```ruby
1921
- # case legal_structure
1922
- # in :corporation
1923
- # # ...
1924
- # in :llc
1925
- # # ...
1926
- # in :non_profit
1927
- # # ...
1928
- # in :partnership
1929
- # # ...
1930
- # in :sole_proprietorship
1931
- # # ...
1932
- # in ...
1933
- # #...
1934
- # end
1935
- # ```
1936
- class LegalStructure < ModernTreasury::Enum
1734
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#legal_structure
1735
+ module LegalStructure
1736
+ extend ModernTreasury::Internal::Type::Enum
1737
+
1937
1738
  CORPORATION = :corporation
1938
1739
  LLC = :llc
1939
1740
  NON_PROFIT = :non_profit
@@ -1945,11 +1746,10 @@ module ModernTreasury
1945
1746
 
1946
1747
  # @!parse
1947
1748
  # # @return [Array<Symbol>]
1948
- # #
1949
1749
  # def self.values; end
1950
1750
  end
1951
1751
 
1952
- class PhoneNumber < ModernTreasury::BaseModel
1752
+ class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
1953
1753
  # @!attribute [r] phone_number
1954
1754
  #
1955
1755
  # @return [String, nil]
@@ -1966,25 +1766,15 @@ module ModernTreasury
1966
1766
  # #
1967
1767
  # def initialize(phone_number: nil, **) = super
1968
1768
 
1969
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1769
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1970
1770
  end
1971
1771
 
1972
- # @abstract
1973
- #
1974
1772
  # The risk rating of the legal entity. One of low, medium, high.
1975
1773
  #
1976
- # @example
1977
- # ```ruby
1978
- # case risk_rating
1979
- # in :low
1980
- # # ...
1981
- # in :medium
1982
- # # ...
1983
- # in :high
1984
- # # ...
1985
- # end
1986
- # ```
1987
- class RiskRating < ModernTreasury::Enum
1774
+ # @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#risk_rating
1775
+ module RiskRating
1776
+ extend ModernTreasury::Internal::Type::Enum
1777
+
1988
1778
  LOW = :low
1989
1779
  MEDIUM = :medium
1990
1780
  HIGH = :high
@@ -1993,29 +1783,14 @@ module ModernTreasury
1993
1783
 
1994
1784
  # @!parse
1995
1785
  # # @return [Array<Symbol>]
1996
- # #
1997
1786
  # def self.values; end
1998
1787
  end
1999
1788
  end
2000
1789
 
2001
- # @abstract
2002
- #
2003
1790
  # The verification status of the counterparty.
2004
- #
2005
- # @example
2006
- # ```ruby
2007
- # case verification_status
2008
- # in :denied
2009
- # # ...
2010
- # in :needs_approval
2011
- # # ...
2012
- # in :unverified
2013
- # # ...
2014
- # in :verified
2015
- # # ...
2016
- # end
2017
- # ```
2018
- class VerificationStatus < ModernTreasury::Enum
1791
+ module VerificationStatus
1792
+ extend ModernTreasury::Internal::Type::Enum
1793
+
2019
1794
  DENIED = :denied
2020
1795
  NEEDS_APPROVAL = :needs_approval
2021
1796
  UNVERIFIED = :unverified
@@ -2025,7 +1800,6 @@ module ModernTreasury
2025
1800
 
2026
1801
  # @!parse
2027
1802
  # # @return [Array<Symbol>]
2028
- # #
2029
1803
  # def self.values; end
2030
1804
  end
2031
1805
  end