modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.21

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 (519) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +46 -0
  3. data/README.md +110 -61
  4. data/SECURITY.md +2 -2
  5. data/lib/modern_treasury/client.rb +9 -5
  6. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +3 -1
  7. data/lib/modern_treasury/internal/type/array_of.rb +8 -0
  8. data/lib/modern_treasury/internal/type/base_model.rb +14 -0
  9. data/lib/modern_treasury/internal/type/boolean.rb +8 -0
  10. data/lib/modern_treasury/internal/type/enum.rb +15 -0
  11. data/lib/modern_treasury/internal/type/file_input.rb +7 -0
  12. data/lib/modern_treasury/internal/type/hash_of.rb +8 -0
  13. data/lib/modern_treasury/internal/type/union.rb +17 -0
  14. data/lib/modern_treasury/internal/type/unknown.rb +8 -0
  15. data/lib/modern_treasury/internal/util.rb +62 -10
  16. data/lib/modern_treasury/internal.rb +3 -0
  17. data/lib/modern_treasury/models/account_collection_flow.rb +8 -8
  18. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +2 -2
  19. data/lib/modern_treasury/models/account_collection_flow_update_params.rb +2 -2
  20. data/lib/modern_treasury/models/account_detail.rb +8 -4
  21. data/lib/modern_treasury/models/account_detail_create_params.rb +8 -4
  22. data/lib/modern_treasury/models/account_detail_delete_params.rb +2 -2
  23. data/lib/modern_treasury/models/account_detail_list_params.rb +2 -2
  24. data/lib/modern_treasury/models/account_detail_retrieve_params.rb +2 -2
  25. data/lib/modern_treasury/models/bank_settings.rb +1 -1
  26. data/lib/modern_treasury/models/bulk_request.rb +11 -10
  27. data/lib/modern_treasury/models/bulk_request_create_params.rb +252 -247
  28. data/lib/modern_treasury/models/bulk_request_list_params.rb +7 -6
  29. data/lib/modern_treasury/models/bulk_result.rb +18 -29
  30. data/lib/modern_treasury/models/bulk_result_list_params.rb +7 -6
  31. data/lib/modern_treasury/models/connection.rb +1 -1
  32. data/lib/modern_treasury/models/connection_legal_entity.rb +4 -4
  33. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +108 -72
  34. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -2
  35. data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +2 -2
  36. data/lib/modern_treasury/models/counterparty.rb +32 -32
  37. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +4 -4
  38. data/lib/modern_treasury/models/counterparty_collect_account_response.rb +1 -1
  39. data/lib/modern_treasury/models/counterparty_create_params.rb +166 -121
  40. data/lib/modern_treasury/models/currency.rb +7 -0
  41. data/lib/modern_treasury/models/document.rb +13 -13
  42. data/lib/modern_treasury/models/document_create_params.rb +6 -6
  43. data/lib/modern_treasury/models/document_list_params.rb +4 -4
  44. data/lib/modern_treasury/models/event.rb +2 -2
  45. data/lib/modern_treasury/models/expected_payment.rb +16 -16
  46. data/lib/modern_treasury/models/expected_payment_create_params.rb +27 -26
  47. data/lib/modern_treasury/models/expected_payment_list_params.rb +27 -7
  48. data/lib/modern_treasury/models/expected_payment_type.rb +4 -0
  49. data/lib/modern_treasury/models/expected_payment_update_params.rb +10 -10
  50. data/lib/modern_treasury/models/external_account.rb +26 -26
  51. data/lib/modern_treasury/models/external_account_create_params.rb +41 -32
  52. data/lib/modern_treasury/models/external_account_type.rb +5 -0
  53. data/lib/modern_treasury/models/external_account_update_params.rb +6 -6
  54. data/lib/modern_treasury/models/external_account_verify_params.rb +12 -8
  55. data/lib/modern_treasury/models/external_account_verify_response.rb +5 -10
  56. data/lib/modern_treasury/models/foreign_exchange_quote.rb +10 -9
  57. data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +4 -4
  58. data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -19
  59. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -6
  60. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -6
  61. data/lib/modern_treasury/models/internal_account.rb +24 -19
  62. data/lib/modern_treasury/models/internal_account_create_params.rb +37 -5
  63. data/lib/modern_treasury/models/internal_account_list_params.rb +10 -6
  64. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +13 -12
  65. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +9 -9
  66. data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +2 -2
  67. data/lib/modern_treasury/models/invoice.rb +34 -34
  68. data/lib/modern_treasury/models/invoice_create_params.rb +21 -21
  69. data/lib/modern_treasury/models/invoice_list_params.rb +2 -2
  70. data/lib/modern_treasury/models/invoice_update_params.rb +21 -21
  71. data/lib/modern_treasury/models/invoices/invoice_line_item.rb +10 -2
  72. data/lib/modern_treasury/models/ledger.rb +2 -2
  73. data/lib/modern_treasury/models/ledger_account.rb +19 -19
  74. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +23 -22
  75. data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +4 -4
  76. data/lib/modern_treasury/models/ledger_account_category.rb +16 -16
  77. data/lib/modern_treasury/models/ledger_account_category_create_params.rb +2 -2
  78. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +2 -2
  79. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +2 -2
  80. data/lib/modern_treasury/models/ledger_account_create_params.rb +4 -4
  81. data/lib/modern_treasury/models/ledger_account_list_params.rb +8 -8
  82. data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +2 -2
  83. data/lib/modern_treasury/models/ledger_account_settlement.rb +4 -4
  84. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +2 -2
  85. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +2 -2
  86. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +2 -2
  87. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +2 -2
  88. data/lib/modern_treasury/models/ledger_entry.rb +20 -19
  89. data/lib/modern_treasury/models/ledger_entry_list_params.rb +12 -12
  90. data/lib/modern_treasury/models/ledger_event_handler.rb +12 -12
  91. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +10 -10
  92. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +4 -4
  93. data/lib/modern_treasury/models/ledger_transaction.rb +9 -9
  94. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +10 -9
  95. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +6 -6
  96. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +4 -4
  97. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -12
  98. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +10 -9
  99. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +30 -29
  100. data/lib/modern_treasury/models/ledgerable_event.rb +1 -1
  101. data/lib/modern_treasury/models/legal_entity.rb +52 -34
  102. data/lib/modern_treasury/models/legal_entity_association.rb +59 -40
  103. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +54 -36
  104. data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +1 -1
  105. data/lib/modern_treasury/models/legal_entity_create_params.rb +102 -65
  106. data/lib/modern_treasury/models/legal_entity_industry_classification.rb +4 -4
  107. data/lib/modern_treasury/models/legal_entity_list_params.rb +2 -2
  108. data/lib/modern_treasury/models/legal_entity_update_params.rb +44 -25
  109. data/lib/modern_treasury/models/line_item.rb +9 -9
  110. data/lib/modern_treasury/models/line_item_list_params.rb +2 -2
  111. data/lib/modern_treasury/models/line_item_retrieve_params.rb +2 -2
  112. data/lib/modern_treasury/models/line_item_update_params.rb +2 -2
  113. data/lib/modern_treasury/models/paper_item.rb +16 -7
  114. data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
  115. data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
  116. data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
  117. data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
  118. data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
  119. data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
  120. data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
  121. data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
  122. data/lib/modern_treasury/models/payment_flow.rb +13 -13
  123. data/lib/modern_treasury/models/payment_flow_create_params.rb +2 -2
  124. data/lib/modern_treasury/models/payment_flow_update_params.rb +2 -2
  125. data/lib/modern_treasury/models/payment_order.rb +57 -86
  126. data/lib/modern_treasury/models/payment_order_create_async_params.rb +86 -76
  127. data/lib/modern_treasury/models/payment_order_create_params.rb +95 -85
  128. data/lib/modern_treasury/models/payment_order_list_params.rb +12 -8
  129. data/lib/modern_treasury/models/payment_order_type.rb +4 -0
  130. data/lib/modern_treasury/models/payment_order_update_params.rb +72 -63
  131. data/lib/modern_treasury/models/payment_orders/reversal.rb +7 -7
  132. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +17 -17
  133. data/lib/modern_treasury/models/payment_reference.rb +11 -7
  134. data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -2
  135. data/lib/modern_treasury/models/reconciliation_rule.rb +13 -9
  136. data/lib/modern_treasury/models/return_create_params.rb +44 -4
  137. data/lib/modern_treasury/models/return_list_params.rb +2 -2
  138. data/lib/modern_treasury/models/return_object.rb +78 -27
  139. data/lib/modern_treasury/models/routing_detail.rb +15 -11
  140. data/lib/modern_treasury/models/routing_detail_create_params.rb +10 -6
  141. data/lib/modern_treasury/models/routing_detail_delete_params.rb +2 -2
  142. data/lib/modern_treasury/models/routing_detail_list_params.rb +2 -2
  143. data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +2 -2
  144. data/lib/modern_treasury/models/routing_number_lookup_request.rb +13 -9
  145. data/lib/modern_treasury/models/transaction.rb +23 -17
  146. data/lib/modern_treasury/models/transaction_create_params.rb +6 -2
  147. data/lib/modern_treasury/models/transactions/line_item_list_params.rb +2 -2
  148. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +7 -7
  149. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +2 -2
  150. data/lib/modern_treasury/models/virtual_account.rb +5 -5
  151. data/lib/modern_treasury/models/virtual_account_create_params.rb +34 -23
  152. data/lib/modern_treasury/models/wealth_and_employment_details.rb +19 -19
  153. data/lib/modern_treasury/models.rb +38 -19
  154. data/lib/modern_treasury/resources/account_collection_flows.rb +6 -6
  155. data/lib/modern_treasury/resources/account_details.rb +8 -8
  156. data/lib/modern_treasury/resources/bulk_requests.rb +9 -9
  157. data/lib/modern_treasury/resources/bulk_results.rb +5 -5
  158. data/lib/modern_treasury/resources/connection_legal_entities.rb +7 -7
  159. data/lib/modern_treasury/resources/connections.rb +1 -1
  160. data/lib/modern_treasury/resources/counterparties.rb +12 -12
  161. data/lib/modern_treasury/resources/documents.rb +6 -6
  162. data/lib/modern_treasury/resources/events.rb +2 -2
  163. data/lib/modern_treasury/resources/expected_payments.rb +24 -20
  164. data/lib/modern_treasury/resources/external_accounts.rb +20 -20
  165. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +5 -5
  166. data/lib/modern_treasury/resources/incoming_payment_details.rb +10 -10
  167. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +6 -6
  168. data/lib/modern_treasury/resources/internal_accounts.rb +12 -10
  169. data/lib/modern_treasury/resources/invoices/line_items.rb +5 -5
  170. data/lib/modern_treasury/resources/invoices.rb +21 -21
  171. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +6 -6
  172. data/lib/modern_treasury/resources/ledger_account_categories.rb +8 -8
  173. data/lib/modern_treasury/resources/ledger_account_settlements.rb +6 -6
  174. data/lib/modern_treasury/resources/ledger_accounts.rb +12 -12
  175. data/lib/modern_treasury/resources/ledger_entries.rb +6 -6
  176. data/lib/modern_treasury/resources/ledger_event_handlers.rb +7 -7
  177. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +1 -1
  178. data/lib/modern_treasury/resources/ledger_transactions.rb +18 -18
  179. data/lib/modern_treasury/resources/ledgerable_events.rb +2 -2
  180. data/lib/modern_treasury/resources/ledgers.rb +5 -5
  181. data/lib/modern_treasury/resources/legal_entities.rb +25 -25
  182. data/lib/modern_treasury/resources/legal_entity_associations.rb +3 -3
  183. data/lib/modern_treasury/resources/line_items.rb +6 -6
  184. data/lib/modern_treasury/resources/paper_items.rb +2 -2
  185. data/lib/modern_treasury/resources/payment_actions.rb +137 -0
  186. data/lib/modern_treasury/resources/payment_flows.rb +6 -6
  187. data/lib/modern_treasury/resources/payment_orders/reversals.rb +5 -5
  188. data/lib/modern_treasury/resources/payment_orders.rb +46 -46
  189. data/lib/modern_treasury/resources/payment_references.rb +3 -3
  190. data/lib/modern_treasury/resources/returns.rb +6 -6
  191. data/lib/modern_treasury/resources/routing_details.rb +9 -9
  192. data/lib/modern_treasury/resources/transactions/line_items.rb +4 -4
  193. data/lib/modern_treasury/resources/transactions.rb +5 -5
  194. data/lib/modern_treasury/resources/validations.rb +2 -2
  195. data/lib/modern_treasury/resources/virtual_accounts.rb +8 -8
  196. data/lib/modern_treasury/version.rb +1 -1
  197. data/lib/modern_treasury.rb +12 -1
  198. data/rbi/modern_treasury/client.rbi +3 -0
  199. data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +5 -1
  200. data/rbi/modern_treasury/internal/type/array_of.rbi +6 -0
  201. data/rbi/modern_treasury/internal/type/base_model.rbi +5 -0
  202. data/rbi/modern_treasury/internal/type/boolean.rbi +6 -0
  203. data/rbi/modern_treasury/internal/type/enum.rbi +5 -0
  204. data/rbi/modern_treasury/internal/type/file_input.rbi +5 -0
  205. data/rbi/modern_treasury/internal/type/hash_of.rbi +6 -0
  206. data/rbi/modern_treasury/internal/type/union.rbi +5 -0
  207. data/rbi/modern_treasury/internal/type/unknown.rbi +6 -0
  208. data/rbi/modern_treasury/internal/util.rbi +36 -0
  209. data/rbi/modern_treasury/internal.rbi +5 -0
  210. data/rbi/modern_treasury/models/account_detail.rbi +20 -0
  211. data/rbi/modern_treasury/models/account_detail_create_params.rbi +20 -0
  212. data/rbi/modern_treasury/models/bulk_request.rbi +5 -0
  213. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +105 -0
  214. data/rbi/modern_treasury/models/bulk_request_list_params.rbi +5 -0
  215. data/rbi/modern_treasury/models/bulk_result.rbi +7 -19
  216. data/rbi/modern_treasury/models/bulk_result_list_params.rbi +5 -0
  217. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +52 -6
  218. data/rbi/modern_treasury/models/counterparty_create_params.rbi +92 -6
  219. data/rbi/modern_treasury/models/currency.rbi +7 -0
  220. data/rbi/modern_treasury/models/document.rbi +9 -6
  221. data/rbi/modern_treasury/models/document_create_params.rbi +12 -12
  222. data/rbi/modern_treasury/models/document_list_params.rbi +9 -9
  223. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +42 -0
  224. data/rbi/modern_treasury/models/expected_payment_type.rbi +6 -0
  225. data/rbi/modern_treasury/models/external_account_create_params.rbi +40 -0
  226. data/rbi/modern_treasury/models/external_account_type.rbi +16 -0
  227. data/rbi/modern_treasury/models/external_account_verify_params.rbi +20 -0
  228. data/rbi/modern_treasury/models/external_account_verify_response.rbi +20 -0
  229. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +20 -0
  230. data/rbi/modern_treasury/models/internal_account.rbi +25 -0
  231. data/rbi/modern_treasury/models/internal_account_create_params.rbi +117 -0
  232. data/rbi/modern_treasury/models/internal_account_list_params.rbi +20 -0
  233. data/rbi/modern_treasury/models/invoice.rbi +2 -2
  234. data/rbi/modern_treasury/models/invoices/invoice_line_item.rbi +8 -0
  235. data/rbi/modern_treasury/models/legal_entity.rbi +23 -0
  236. data/rbi/modern_treasury/models/legal_entity_association.rbi +23 -0
  237. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -3
  238. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +52 -6
  239. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +26 -3
  240. data/rbi/modern_treasury/models/paper_item.rbi +10 -0
  241. data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
  242. data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
  243. data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
  244. data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
  245. data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
  246. data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
  247. data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
  248. data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
  249. data/rbi/modern_treasury/models/payment_order.rbi +22 -38
  250. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +40 -0
  251. data/rbi/modern_treasury/models/payment_order_create_params.rbi +52 -12
  252. data/rbi/modern_treasury/models/payment_order_list_params.rbi +20 -0
  253. data/rbi/modern_treasury/models/payment_order_type.rbi +5 -0
  254. data/rbi/modern_treasury/models/payment_order_update_params.rbi +40 -0
  255. data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
  256. data/rbi/modern_treasury/models/reconciliation_rule.rbi +14 -0
  257. data/rbi/modern_treasury/models/return_create_params.rbi +80 -0
  258. data/rbi/modern_treasury/models/return_object.rbi +66 -0
  259. data/rbi/modern_treasury/models/routing_detail.rbi +17 -0
  260. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +20 -0
  261. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +20 -0
  262. data/rbi/modern_treasury/models/transaction.rbi +16 -0
  263. data/rbi/modern_treasury/models/transaction_create_params.rbi +20 -0
  264. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +40 -0
  265. data/rbi/modern_treasury/models.rbi +9 -0
  266. data/rbi/modern_treasury/resources/documents.rbi +1 -1
  267. data/rbi/modern_treasury/resources/expected_payments.rbi +6 -0
  268. data/rbi/modern_treasury/resources/external_accounts.rbi +1 -4
  269. data/rbi/modern_treasury/resources/internal_accounts.rbi +5 -0
  270. data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
  271. data/sig/modern_treasury/client.rbs +2 -0
  272. data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
  273. data/sig/modern_treasury/internal/type/array_of.rbs +3 -0
  274. data/sig/modern_treasury/internal/type/base_model.rbs +2 -0
  275. data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
  276. data/sig/modern_treasury/internal/type/enum.rbs +2 -0
  277. data/sig/modern_treasury/internal/type/file_input.rbs +2 -0
  278. data/sig/modern_treasury/internal/type/hash_of.rbs +3 -0
  279. data/sig/modern_treasury/internal/type/union.rbs +2 -0
  280. data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
  281. data/sig/modern_treasury/internal/util.rbs +12 -0
  282. data/sig/modern_treasury/internal.rbs +3 -0
  283. data/sig/modern_treasury/models/account_collection_flow.rbs +30 -16
  284. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +13 -6
  285. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +10 -0
  286. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +2 -0
  287. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +5 -0
  288. data/sig/modern_treasury/models/account_detail.rbs +24 -4
  289. data/sig/modern_treasury/models/account_detail_create_params.rbs +15 -0
  290. data/sig/modern_treasury/models/account_detail_delete_params.rbs +6 -0
  291. data/sig/modern_treasury/models/account_detail_list_params.rbs +7 -0
  292. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +6 -0
  293. data/sig/modern_treasury/models/async_response.rbs +2 -0
  294. data/sig/modern_treasury/models/bank_settings.rbs +13 -0
  295. data/sig/modern_treasury/models/bulk_request.rbs +29 -12
  296. data/sig/modern_treasury/models/bulk_request_create_params.rbs +600 -188
  297. data/sig/modern_treasury/models/bulk_request_list_params.rbs +12 -0
  298. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +2 -0
  299. data/sig/modern_treasury/models/bulk_result.rbs +44 -16
  300. data/sig/modern_treasury/models/bulk_result_list_params.rbs +13 -0
  301. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +2 -0
  302. data/sig/modern_treasury/models/client_ping_params.rbs +2 -0
  303. data/sig/modern_treasury/models/connection.rbs +12 -0
  304. data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -4
  305. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +188 -56
  306. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +9 -0
  307. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +2 -0
  308. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +5 -0
  309. data/sig/modern_treasury/models/connection_list_params.rbs +8 -0
  310. data/sig/modern_treasury/models/counterparty.rbs +84 -22
  311. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +14 -6
  312. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -0
  313. data/sig/modern_treasury/models/counterparty_create_params.rbs +307 -92
  314. data/sig/modern_treasury/models/counterparty_delete_params.rbs +2 -0
  315. data/sig/modern_treasury/models/counterparty_list_params.rbs +12 -0
  316. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +2 -0
  317. data/sig/modern_treasury/models/counterparty_update_params.rbs +10 -0
  318. data/sig/modern_treasury/models/currency.rbs +14 -0
  319. data/sig/modern_treasury/models/document.rbs +41 -9
  320. data/sig/modern_treasury/models/document_create_params.rbs +16 -8
  321. data/sig/modern_treasury/models/document_list_params.rbs +13 -5
  322. data/sig/modern_treasury/models/document_retrieve_params.rbs +2 -0
  323. data/sig/modern_treasury/models/event.rbs +13 -0
  324. data/sig/modern_treasury/models/event_list_params.rbs +11 -0
  325. data/sig/modern_treasury/models/event_retrieve_params.rbs +2 -0
  326. data/sig/modern_treasury/models/expected_payment.rbs +41 -12
  327. data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -12
  328. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +2 -0
  329. data/sig/modern_treasury/models/expected_payment_list_params.rbs +37 -1
  330. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +2 -0
  331. data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
  332. data/sig/modern_treasury/models/expected_payment_update_params.rbs +21 -0
  333. data/sig/modern_treasury/models/external_account.rbs +63 -16
  334. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +5 -0
  335. data/sig/modern_treasury/models/external_account_create_params.rbs +99 -28
  336. data/sig/modern_treasury/models/external_account_delete_params.rbs +2 -0
  337. data/sig/modern_treasury/models/external_account_list_params.rbs +9 -0
  338. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +2 -0
  339. data/sig/modern_treasury/models/external_account_type.rbs +11 -1
  340. data/sig/modern_treasury/models/external_account_update_params.rbs +20 -0
  341. data/sig/modern_treasury/models/external_account_verify_params.rbs +17 -0
  342. data/sig/modern_treasury/models/external_account_verify_response.rbs +21 -0
  343. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -0
  344. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +10 -0
  345. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +13 -0
  346. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +2 -0
  347. data/sig/modern_treasury/models/incoming_payment_detail.rbs +52 -16
  348. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +13 -0
  349. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +13 -0
  350. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +2 -0
  351. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +5 -0
  352. data/sig/modern_treasury/models/internal_account.rbs +55 -9
  353. data/sig/modern_treasury/models/internal_account_create_params.rbs +66 -0
  354. data/sig/modern_treasury/models/internal_account_list_params.rbs +20 -0
  355. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +2 -0
  356. data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
  357. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +37 -8
  358. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +19 -4
  359. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +5 -0
  360. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +8 -0
  361. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +5 -0
  362. data/sig/modern_treasury/models/invoice.rbs +94 -16
  363. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +5 -0
  364. data/sig/modern_treasury/models/invoice_create_params.rbs +81 -4
  365. data/sig/modern_treasury/models/invoice_list_params.rbs +15 -0
  366. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +2 -0
  367. data/sig/modern_treasury/models/invoice_update_params.rbs +81 -4
  368. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +21 -0
  369. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +11 -0
  370. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +5 -0
  371. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +6 -0
  372. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +5 -0
  373. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +12 -0
  374. data/sig/modern_treasury/models/ledger.rbs +12 -0
  375. data/sig/modern_treasury/models/ledger_account.rbs +54 -4
  376. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +52 -0
  377. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +10 -0
  378. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +2 -0
  379. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +9 -0
  380. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +2 -0
  381. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +6 -0
  382. data/sig/modern_treasury/models/ledger_account_category.rbs +45 -0
  383. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +5 -0
  384. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +5 -0
  385. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +12 -0
  386. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +2 -0
  387. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +16 -0
  388. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +5 -0
  389. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +5 -0
  390. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +7 -0
  391. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +7 -0
  392. data/sig/modern_treasury/models/ledger_account_create_params.rbs +14 -0
  393. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +2 -0
  394. data/sig/modern_treasury/models/ledger_account_list_params.rbs +52 -0
  395. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +13 -0
  396. data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -4
  397. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +12 -0
  398. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +14 -0
  399. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +2 -0
  400. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +7 -0
  401. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +5 -0
  402. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +5 -0
  403. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +9 -0
  404. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -0
  405. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +2 -0
  406. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -0
  407. data/sig/modern_treasury/models/ledger_account_update_params.rbs +7 -0
  408. data/sig/modern_treasury/models/ledger_create_params.rbs +7 -0
  409. data/sig/modern_treasury/models/ledger_delete_params.rbs +2 -0
  410. data/sig/modern_treasury/models/ledger_entry.rbs +53 -4
  411. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +41 -12
  412. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +5 -0
  413. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +5 -0
  414. data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -0
  415. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +26 -0
  416. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +2 -0
  417. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +9 -0
  418. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +2 -0
  419. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -0
  420. data/sig/modern_treasury/models/ledger_list_params.rbs +9 -0
  421. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +2 -0
  422. data/sig/modern_treasury/models/ledger_transaction.rbs +30 -8
  423. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +25 -0
  424. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +19 -4
  425. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +11 -0
  426. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +40 -12
  427. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +2 -0
  428. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +23 -0
  429. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -12
  430. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +10 -0
  431. data/sig/modern_treasury/models/ledger_update_params.rbs +7 -0
  432. data/sig/modern_treasury/models/ledgerable_event.rbs +13 -0
  433. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +8 -0
  434. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +2 -0
  435. data/sig/modern_treasury/models/legal_entity.rbs +96 -20
  436. data/sig/modern_treasury/models/legal_entity_association.rbs +113 -24
  437. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +98 -30
  438. data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +15 -0
  439. data/sig/modern_treasury/models/legal_entity_create_params.rbs +168 -42
  440. data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +15 -4
  441. data/sig/modern_treasury/models/legal_entity_list_params.rbs +9 -0
  442. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +2 -0
  443. data/sig/modern_treasury/models/legal_entity_update_params.rbs +70 -12
  444. data/sig/modern_treasury/models/line_item.rbs +22 -4
  445. data/sig/modern_treasury/models/line_item_list_params.rbs +7 -0
  446. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +6 -0
  447. data/sig/modern_treasury/models/line_item_update_params.rbs +7 -0
  448. data/sig/modern_treasury/models/paper_item.rbs +30 -4
  449. data/sig/modern_treasury/models/paper_item_list_params.rbs +9 -0
  450. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +2 -0
  451. data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
  452. data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
  453. data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
  454. data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
  455. data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
  456. data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
  457. data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
  458. data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
  459. data/sig/modern_treasury/models/payment_flow.rbs +44 -22
  460. data/sig/modern_treasury/models/payment_flow_create_params.rbs +10 -0
  461. data/sig/modern_treasury/models/payment_flow_list_params.rbs +12 -0
  462. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +2 -0
  463. data/sig/modern_treasury/models/payment_flow_update_params.rbs +5 -0
  464. data/sig/modern_treasury/models/payment_order.rbs +116 -48
  465. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +185 -44
  466. data/sig/modern_treasury/models/payment_order_create_params.rbs +205 -56
  467. data/sig/modern_treasury/models/payment_order_list_params.rbs +29 -0
  468. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +2 -0
  469. data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
  470. data/sig/modern_treasury/models/payment_order_update_params.rbs +148 -32
  471. data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -8
  472. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +43 -12
  473. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +6 -0
  474. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +5 -0
  475. data/sig/modern_treasury/models/payment_reference.rbs +28 -8
  476. data/sig/modern_treasury/models/payment_reference_list_params.rbs +9 -0
  477. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +2 -0
  478. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +2 -0
  479. data/sig/modern_treasury/models/ping_response.rbs +2 -0
  480. data/sig/modern_treasury/models/reconciliation_rule.rbs +29 -8
  481. data/sig/modern_treasury/models/return_create_params.rbs +91 -0
  482. data/sig/modern_treasury/models/return_list_params.rbs +10 -0
  483. data/sig/modern_treasury/models/return_object.rbs +154 -24
  484. data/sig/modern_treasury/models/return_retrieve_params.rbs +2 -0
  485. data/sig/modern_treasury/models/routing_detail.rbs +44 -8
  486. data/sig/modern_treasury/models/routing_detail_create_params.rbs +16 -0
  487. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +6 -0
  488. data/sig/modern_treasury/models/routing_detail_list_params.rbs +7 -0
  489. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +6 -0
  490. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +38 -12
  491. data/sig/modern_treasury/models/transaction.rbs +58 -8
  492. data/sig/modern_treasury/models/transaction_create_params.rbs +22 -0
  493. data/sig/modern_treasury/models/transaction_delete_params.rbs +2 -0
  494. data/sig/modern_treasury/models/transaction_list_params.rbs +18 -0
  495. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +2 -0
  496. data/sig/modern_treasury/models/transaction_update_params.rbs +5 -0
  497. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +7 -0
  498. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +2 -0
  499. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +9 -0
  500. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +2 -0
  501. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -8
  502. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +6 -0
  503. data/sig/modern_treasury/models/virtual_account.rbs +19 -0
  504. data/sig/modern_treasury/models/virtual_account_create_params.rbs +74 -20
  505. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +2 -0
  506. data/sig/modern_treasury/models/virtual_account_list_params.rbs +9 -0
  507. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +2 -0
  508. data/sig/modern_treasury/models/virtual_account_update_params.rbs +8 -0
  509. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -24
  510. data/sig/modern_treasury/models.rbs +8 -0
  511. data/sig/modern_treasury/resources/account_collection_flows.rbs +1 -1
  512. data/sig/modern_treasury/resources/bulk_requests.rbs +1 -1
  513. data/sig/modern_treasury/resources/counterparties.rbs +1 -1
  514. data/sig/modern_treasury/resources/documents.rbs +1 -1
  515. data/sig/modern_treasury/resources/expected_payments.rbs +2 -0
  516. data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
  517. data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
  518. data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
  519. metadata +29 -2
@@ -17,13 +17,13 @@ module ModernTreasury
17
17
  # @!attribute payment_type
18
18
  # Can be `ach`, `eft`, or `rtp`.
19
19
  #
20
- # @return [Symbol, ModernTreasury::ExternalAccountVerifyParams::PaymentType]
20
+ # @return [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::PaymentType]
21
21
  required :payment_type, enum: -> { ModernTreasury::ExternalAccountVerifyParams::PaymentType }
22
22
 
23
23
  # @!attribute currency
24
24
  # Defaults to the currency of the originating account.
25
25
  #
26
- # @return [Symbol, ModernTreasury::Currency, nil]
26
+ # @return [Symbol, ModernTreasury::Models::Currency, nil]
27
27
  optional :currency, enum: -> { ModernTreasury::Currency }
28
28
 
29
29
  # @!attribute fallback_type
@@ -31,14 +31,14 @@ module ModernTreasury
31
31
  # receiving account. Currently, this only supports falling back from RTP to ACH
32
32
  # (payment_type=rtp and fallback_type=ach)
33
33
  #
34
- # @return [Symbol, ModernTreasury::ExternalAccountVerifyParams::FallbackType, nil]
34
+ # @return [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::FallbackType, nil]
35
35
  optional :fallback_type, enum: -> { ModernTreasury::ExternalAccountVerifyParams::FallbackType }
36
36
 
37
37
  # @!attribute priority
38
38
  # Either `normal` or `high`. For ACH payments, `high` represents a same-day ACH
39
39
  # transfer. This will apply to both `payment_type` and `fallback_type`.
40
40
  #
41
- # @return [Symbol, ModernTreasury::ExternalAccountVerifyParams::Priority, nil]
41
+ # @return [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::Priority, nil]
42
42
  optional :priority, enum: -> { ModernTreasury::ExternalAccountVerifyParams::Priority }
43
43
 
44
44
  # @!method initialize(originating_account_id:, payment_type:, currency: nil, fallback_type: nil, priority: nil, request_options: {})
@@ -47,13 +47,13 @@ module ModernTreasury
47
47
  #
48
48
  # @param originating_account_id [String] The ID of the internal account where the micro-deposits originate from. Both cre
49
49
  #
50
- # @param payment_type [Symbol, ModernTreasury::ExternalAccountVerifyParams::PaymentType] Can be `ach`, `eft`, or `rtp`.
50
+ # @param payment_type [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::PaymentType] Can be `ach`, `eft`, or `rtp`.
51
51
  #
52
- # @param currency [Symbol, ModernTreasury::Currency] Defaults to the currency of the originating account.
52
+ # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
53
53
  #
54
- # @param fallback_type [Symbol, ModernTreasury::ExternalAccountVerifyParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
54
+ # @param fallback_type [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
55
55
  #
56
- # @param priority [Symbol, ModernTreasury::ExternalAccountVerifyParams::Priority] Either `normal` or `high`. For ACH payments, `high` represents a same-day ACH tr
56
+ # @param priority [Symbol, ModernTreasury::Models::ExternalAccountVerifyParams::Priority] Either `normal` or `high`. For ACH payments, `high` represents a same-day ACH tr
57
57
  #
58
58
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
59
59
 
@@ -64,6 +64,7 @@ module ModernTreasury
64
64
  ACH = :ach
65
65
  AU_BECS = :au_becs
66
66
  BACS = :bacs
67
+ BASE = :base
67
68
  BOOK = :book
68
69
  CARD = :card
69
70
  CHATS = :chats
@@ -71,6 +72,7 @@ module ModernTreasury
71
72
  CROSS_BORDER = :cross_border
72
73
  DK_NETS = :dk_nets
73
74
  EFT = :eft
75
+ ETHEREUM = :ethereum
74
76
  HU_ICS = :hu_ics
75
77
  INTERAC = :interac
76
78
  MASAV = :masav
@@ -79,6 +81,7 @@ module ModernTreasury
79
81
  NICS = :nics
80
82
  NZ_BECS = :nz_becs
81
83
  PL_ELIXIR = :pl_elixir
84
+ POLYGON = :polygon
82
85
  PROVXCHANGE = :provxchange
83
86
  RO_SENT = :ro_sent
84
87
  RTP = :rtp
@@ -89,6 +92,7 @@ module ModernTreasury
89
92
  SIC = :sic
90
93
  SIGNET = :signet
91
94
  SKNBI = :sknbi
95
+ SOLANA = :solana
92
96
  WIRE = :wire
93
97
  ZENGIN = :zengin
94
98
 
@@ -109,6 +109,7 @@ module ModernTreasury
109
109
  ACH = :ach
110
110
  AU_BECS = :au_becs
111
111
  BACS = :bacs
112
+ BASE = :base
112
113
  BOOK = :book
113
114
  CARD = :card
114
115
  CHATS = :chats
@@ -116,6 +117,7 @@ module ModernTreasury
116
117
  CROSS_BORDER = :cross_border
117
118
  DK_NETS = :dk_nets
118
119
  EFT = :eft
120
+ ETHEREUM = :ethereum
119
121
  HU_ICS = :hu_ics
120
122
  INTERAC = :interac
121
123
  MASAV = :masav
@@ -124,6 +126,7 @@ module ModernTreasury
124
126
  NICS = :nics
125
127
  NZ_BECS = :nz_becs
126
128
  PL_ELIXIR = :pl_elixir
129
+ POLYGON = :polygon
127
130
  PROVXCHANGE = :provxchange
128
131
  RO_SENT = :ro_sent
129
132
  RTP = :rtp
@@ -134,6 +137,7 @@ module ModernTreasury
134
137
  SIC = :sic
135
138
  SIGNET = :signet
136
139
  SKNBI = :sknbi
140
+ SOLANA = :solana
137
141
  WIRE = :wire
138
142
  ZENGIN = :zengin
139
143
 
@@ -172,16 +176,7 @@ module ModernTreasury
172
176
  end
173
177
 
174
178
  # @!method self.variants
175
- # @return [Array(ModernTreasury::ExternalAccount, ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt)]
176
-
177
- define_sorbet_constant!(:Variants) do
178
- T.type_alias do
179
- T.any(
180
- ModernTreasury::ExternalAccount,
181
- ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt
182
- )
183
- end
184
- end
179
+ # @return [Array(ModernTreasury::Models::ExternalAccount, ModernTreasury::Models::ExternalAccountVerifyResponse::ExternalAccountVerificationAttempt)]
185
180
  end
186
181
  end
187
182
  end
@@ -37,7 +37,7 @@ module ModernTreasury
37
37
  # @!attribute foreign_exchange_rate
38
38
  # The serialized rate information represented by this quote.
39
39
  #
40
- # @return [ModernTreasury::ForeignExchangeQuote::ForeignExchangeRate]
40
+ # @return [ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate]
41
41
  required :foreign_exchange_rate, -> { ModernTreasury::ForeignExchangeQuote::ForeignExchangeRate }
42
42
 
43
43
  # @!attribute internal_account_id
@@ -78,7 +78,7 @@ module ModernTreasury
78
78
 
79
79
  # @!method initialize(id:, created_at:, effective_at:, expires_at:, foreign_exchange_indicator:, foreign_exchange_rate:, internal_account_id:, live_mode:, metadata:, object:, updated_at:, vendor_id: nil)
80
80
  # Some parameter documentations has been truncated, see
81
- # {ModernTreasury::ForeignExchangeQuote} for more details.
81
+ # {ModernTreasury::Models::ForeignExchangeQuote} for more details.
82
82
  #
83
83
  # @param id [String]
84
84
  #
@@ -90,7 +90,7 @@ module ModernTreasury
90
90
  #
91
91
  # @param foreign_exchange_indicator [String] Either `fixed_to_variable` if the `base_amount` was specified, or `variable_to_f
92
92
  #
93
- # @param foreign_exchange_rate [ModernTreasury::ForeignExchangeQuote::ForeignExchangeRate] The serialized rate information represented by this quote.
93
+ # @param foreign_exchange_rate [ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate] The serialized rate information represented by this quote.
94
94
  #
95
95
  # @param internal_account_id [String] The ID for the `InternalAccount` this quote is associated with.
96
96
  #
@@ -104,7 +104,7 @@ module ModernTreasury
104
104
  #
105
105
  # @param vendor_id [String] This vendor assigned ID for this quote.
106
106
 
107
- # @see ModernTreasury::ForeignExchangeQuote#foreign_exchange_rate
107
+ # @see ModernTreasury::Models::ForeignExchangeQuote#foreign_exchange_rate
108
108
  class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
109
109
  # @!attribute base_amount
110
110
  # Amount in the lowest denomination of the `base_currency` to convert, often
@@ -116,7 +116,7 @@ module ModernTreasury
116
116
  # @!attribute base_currency
117
117
  # Currency to convert, often called the "sell" currency.
118
118
  #
119
- # @return [Symbol, ModernTreasury::Currency]
119
+ # @return [Symbol, ModernTreasury::Models::Currency]
120
120
  required :base_currency, enum: -> { ModernTreasury::Currency }
121
121
 
122
122
  # @!attribute exponent
@@ -142,7 +142,7 @@ module ModernTreasury
142
142
  # @!attribute target_currency
143
143
  # Currency to convert the `base_currency` to, often called the "buy" currency.
144
144
  #
145
- # @return [Symbol, ModernTreasury::Currency]
145
+ # @return [Symbol, ModernTreasury::Models::Currency]
146
146
  required :target_currency, enum: -> { ModernTreasury::Currency }
147
147
 
148
148
  # @!attribute value
@@ -154,13 +154,14 @@ module ModernTreasury
154
154
 
155
155
  # @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
156
156
  # Some parameter documentations has been truncated, see
157
- # {ModernTreasury::ForeignExchangeQuote::ForeignExchangeRate} for more details.
157
+ # {ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate} for more
158
+ # details.
158
159
  #
159
160
  # The serialized rate information represented by this quote.
160
161
  #
161
162
  # @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
162
163
  #
163
- # @param base_currency [Symbol, ModernTreasury::Currency] Currency to convert, often called the "sell" currency.
164
+ # @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
164
165
  #
165
166
  # @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
166
167
  #
@@ -168,7 +169,7 @@ module ModernTreasury
168
169
  #
169
170
  # @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
170
171
  #
171
- # @param target_currency [Symbol, ModernTreasury::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
172
+ # @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
172
173
  #
173
174
  # @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
174
175
  end
@@ -16,7 +16,7 @@ module ModernTreasury
16
16
  # @!attribute target_currency
17
17
  # Currency to convert the `base_currency` to, often called the "buy" currency.
18
18
  #
19
- # @return [Symbol, ModernTreasury::Currency]
19
+ # @return [Symbol, ModernTreasury::Models::Currency]
20
20
  required :target_currency, enum: -> { ModernTreasury::Currency }
21
21
 
22
22
  # @!attribute base_amount
@@ -29,7 +29,7 @@ module ModernTreasury
29
29
  # @!attribute base_currency
30
30
  # Currency to convert, often called the "sell" currency.
31
31
  #
32
- # @return [Symbol, ModernTreasury::Currency, nil]
32
+ # @return [Symbol, ModernTreasury::Models::Currency, nil]
33
33
  optional :base_currency, enum: -> { ModernTreasury::Currency }
34
34
 
35
35
  # @!attribute effective_at
@@ -51,11 +51,11 @@ module ModernTreasury
51
51
  #
52
52
  # @param internal_account_id [String] The ID for the `InternalAccount` this quote is associated with.
53
53
  #
54
- # @param target_currency [Symbol, ModernTreasury::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
54
+ # @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
55
55
  #
56
56
  # @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
57
57
  #
58
- # @param base_currency [Symbol, ModernTreasury::Currency] Currency to convert, often called the "sell" currency.
58
+ # @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
59
59
  #
60
60
  # @param effective_at [Time] The timestamp until when the quoted rate is valid.
61
61
  #
@@ -30,7 +30,7 @@ module ModernTreasury
30
30
  # @!attribute currency
31
31
  # The currency of the incoming payment detail.
32
32
  #
33
- # @return [Symbol, ModernTreasury::Currency]
33
+ # @return [Symbol, ModernTreasury::Models::Currency]
34
34
  required :currency, enum: -> { ModernTreasury::Currency }
35
35
 
36
36
  # @!attribute data
@@ -42,7 +42,7 @@ module ModernTreasury
42
42
  # @!attribute direction
43
43
  # One of `credit` or `debit`.
44
44
  #
45
- # @return [Symbol, ModernTreasury::TransactionDirection]
45
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
46
46
  required :direction, enum: -> { ModernTreasury::TransactionDirection }
47
47
 
48
48
  # @!attribute internal_account_id
@@ -88,7 +88,7 @@ module ModernTreasury
88
88
  # @!attribute originating_account_number_type
89
89
  # The type of the originating account number for the incoming payment detail.
90
90
  #
91
- # @return [Symbol, ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType, nil]
91
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetail::OriginatingAccountNumberType, nil]
92
92
  required :originating_account_number_type,
93
93
  enum: -> { ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType },
94
94
  nil?: true
@@ -102,7 +102,7 @@ module ModernTreasury
102
102
  # @!attribute originating_routing_number_type
103
103
  # The type of the originating routing number for the incoming payment detail.
104
104
  #
105
- # @return [Symbol, ModernTreasury::IncomingPaymentDetail::OriginatingRoutingNumberType, nil]
105
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetail::OriginatingRoutingNumberType, nil]
106
106
  required :originating_routing_number_type,
107
107
  enum: -> { ModernTreasury::IncomingPaymentDetail::OriginatingRoutingNumberType },
108
108
  nil?: true
@@ -111,7 +111,7 @@ module ModernTreasury
111
111
  # The current status of the incoming payment order. One of `pending`, `completed`,
112
112
  # or `returned`.
113
113
  #
114
- # @return [Symbol, ModernTreasury::IncomingPaymentDetail::Status]
114
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetail::Status]
115
115
  required :status, enum: -> { ModernTreasury::IncomingPaymentDetail::Status }
116
116
 
117
117
  # @!attribute transaction_id
@@ -130,7 +130,7 @@ module ModernTreasury
130
130
  # One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or
131
131
  # `wire`.
132
132
  #
133
- # @return [Symbol, ModernTreasury::IncomingPaymentDetail::Type]
133
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetail::Type]
134
134
  required :type, enum: -> { ModernTreasury::IncomingPaymentDetail::Type }
135
135
 
136
136
  # @!attribute updated_at
@@ -148,7 +148,7 @@ module ModernTreasury
148
148
  # If the incoming payment detail is in a virtual account, the serialized virtual
149
149
  # account object.
150
150
  #
151
- # @return [ModernTreasury::VirtualAccount, nil]
151
+ # @return [ModernTreasury::Models::VirtualAccount, nil]
152
152
  required :virtual_account, -> { ModernTreasury::VirtualAccount }, nil?: true
153
153
 
154
154
  # @!attribute virtual_account_id
@@ -166,7 +166,7 @@ module ModernTreasury
166
166
 
167
167
  # @!method initialize(id:, amount:, as_of_date:, created_at:, currency:, data:, direction:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, originating_account_number_safe:, originating_account_number_type:, originating_routing_number:, originating_routing_number_type:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:, vendor_id:, virtual_account:, virtual_account_id:, originating_account_number: nil)
168
168
  # Some parameter documentations has been truncated, see
169
- # {ModernTreasury::IncomingPaymentDetail} for more details.
169
+ # {ModernTreasury::Models::IncomingPaymentDetail} for more details.
170
170
  #
171
171
  # @param id [String]
172
172
  #
@@ -176,11 +176,11 @@ module ModernTreasury
176
176
  #
177
177
  # @param created_at [Time]
178
178
  #
179
- # @param currency [Symbol, ModernTreasury::Currency] The currency of the incoming payment detail.
179
+ # @param currency [Symbol, ModernTreasury::Models::Currency] The currency of the incoming payment detail.
180
180
  #
181
181
  # @param data [Hash{Symbol=>Object}] The raw data from the payment pre-notification file that we get from the bank.
182
182
  #
183
- # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit` or `debit`.
183
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit` or `debit`.
184
184
  #
185
185
  # @param internal_account_id [String] The ID of the Internal Account for the incoming payment detail. This is always p
186
186
  #
@@ -194,25 +194,25 @@ module ModernTreasury
194
194
  #
195
195
  # @param originating_account_number_safe [String, nil] The last 4 digits of the originating account_number for the incoming payment det
196
196
  #
197
- # @param originating_account_number_type [Symbol, ModernTreasury::IncomingPaymentDetail::OriginatingAccountNumberType, nil] The type of the originating account number for the incoming payment detail.
197
+ # @param originating_account_number_type [Symbol, ModernTreasury::Models::IncomingPaymentDetail::OriginatingAccountNumberType, nil] The type of the originating account number for the incoming payment detail.
198
198
  #
199
199
  # @param originating_routing_number [String, nil] The routing number of the originating account for the incoming payment detail.
200
200
  #
201
- # @param originating_routing_number_type [Symbol, ModernTreasury::IncomingPaymentDetail::OriginatingRoutingNumberType, nil] The type of the originating routing number for the incoming payment detail.
201
+ # @param originating_routing_number_type [Symbol, ModernTreasury::Models::IncomingPaymentDetail::OriginatingRoutingNumberType, nil] The type of the originating routing number for the incoming payment detail.
202
202
  #
203
- # @param status [Symbol, ModernTreasury::IncomingPaymentDetail::Status] The current status of the incoming payment order. One of `pending`, `completed`,
203
+ # @param status [Symbol, ModernTreasury::Models::IncomingPaymentDetail::Status] The current status of the incoming payment order. One of `pending`, `completed`,
204
204
  #
205
205
  # @param transaction_id [String, nil] The ID of the reconciled Transaction or `null`.
206
206
  #
207
207
  # @param transaction_line_item_id [String, nil] The ID of the reconciled Transaction Line Item or `null`.
208
208
  #
209
- # @param type [Symbol, ModernTreasury::IncomingPaymentDetail::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
209
+ # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetail::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
210
210
  #
211
211
  # @param updated_at [Time]
212
212
  #
213
213
  # @param vendor_id [String, nil] The identifier of the vendor bank.
214
214
  #
215
- # @param virtual_account [ModernTreasury::VirtualAccount, nil] If the incoming payment detail is in a virtual account, the serialized virtual a
215
+ # @param virtual_account [ModernTreasury::Models::VirtualAccount, nil] If the incoming payment detail is in a virtual account, the serialized virtual a
216
216
  #
217
217
  # @param virtual_account_id [String, nil] If the incoming payment detail is in a virtual account, the ID of the Virtual Ac
218
218
  #
@@ -220,19 +220,23 @@ module ModernTreasury
220
220
 
221
221
  # The type of the originating account number for the incoming payment detail.
222
222
  #
223
- # @see ModernTreasury::IncomingPaymentDetail#originating_account_number_type
223
+ # @see ModernTreasury::Models::IncomingPaymentDetail#originating_account_number_type
224
224
  module OriginatingAccountNumberType
225
225
  extend ModernTreasury::Internal::Type::Enum
226
226
 
227
227
  AU_NUMBER = :au_number
228
+ BASE_ADDRESS = :base_address
228
229
  CLABE = :clabe
230
+ ETHEREUM_ADDRESS = :ethereum_address
229
231
  HK_NUMBER = :hk_number
230
232
  IBAN = :iban
231
233
  ID_NUMBER = :id_number
232
234
  NZ_NUMBER = :nz_number
233
235
  OTHER = :other
234
236
  PAN = :pan
237
+ POLYGON_ADDRESS = :polygon_address
235
238
  SG_NUMBER = :sg_number
239
+ SOLANA_ADDRESS = :solana_address
236
240
  WALLET_ADDRESS = :wallet_address
237
241
 
238
242
  # @!method self.values
@@ -241,7 +245,7 @@ module ModernTreasury
241
245
 
242
246
  # The type of the originating routing number for the incoming payment detail.
243
247
  #
244
- # @see ModernTreasury::IncomingPaymentDetail#originating_routing_number_type
248
+ # @see ModernTreasury::Models::IncomingPaymentDetail#originating_routing_number_type
245
249
  module OriginatingRoutingNumberType
246
250
  extend ModernTreasury::Internal::Type::Enum
247
251
 
@@ -274,7 +278,7 @@ module ModernTreasury
274
278
  # The current status of the incoming payment order. One of `pending`, `completed`,
275
279
  # or `returned`.
276
280
  #
277
- # @see ModernTreasury::IncomingPaymentDetail#status
281
+ # @see ModernTreasury::Models::IncomingPaymentDetail#status
278
282
  module Status
279
283
  extend ModernTreasury::Internal::Type::Enum
280
284
 
@@ -289,7 +293,7 @@ module ModernTreasury
289
293
  # One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or
290
294
  # `wire`.
291
295
  #
292
- # @see ModernTreasury::IncomingPaymentDetail#type
296
+ # @see ModernTreasury::Models::IncomingPaymentDetail#type
293
297
  module Type
294
298
  extend ModernTreasury::Internal::Type::Enum
295
299
 
@@ -23,7 +23,7 @@ module ModernTreasury
23
23
  # @!attribute currency
24
24
  # Defaults to the currency of the originating account.
25
25
  #
26
- # @return [Symbol, ModernTreasury::Currency, nil]
26
+ # @return [Symbol, ModernTreasury::Models::Currency, nil]
27
27
  optional :currency, enum: -> { ModernTreasury::Currency }, nil?: true
28
28
 
29
29
  # @!attribute data
@@ -42,7 +42,7 @@ module ModernTreasury
42
42
  # @!attribute direction
43
43
  # One of `credit`, `debit`.
44
44
  #
45
- # @return [Symbol, ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Direction, nil]
45
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Direction, nil]
46
46
  optional :direction, enum: -> { ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Direction }
47
47
 
48
48
  # @!attribute internal_account_id
@@ -54,7 +54,7 @@ module ModernTreasury
54
54
  # @!attribute type
55
55
  # One of `ach`, `wire`, `check`.
56
56
  #
57
- # @return [Symbol, ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Type, nil]
57
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type, nil]
58
58
  optional :type, enum: -> { ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Type }
59
59
 
60
60
  # @!attribute virtual_account_id
@@ -73,17 +73,17 @@ module ModernTreasury
73
73
  #
74
74
  # @param as_of_date [Date, nil] Defaults to today.
75
75
  #
76
- # @param currency [Symbol, ModernTreasury::Currency, nil] Defaults to the currency of the originating account.
76
+ # @param currency [Symbol, ModernTreasury::Models::Currency, nil] Defaults to the currency of the originating account.
77
77
  #
78
78
  # @param data [Object, nil] An object passed through to the simulated IPD that could reflect what a vendor w
79
79
  #
80
80
  # @param description [String, nil] Defaults to a random description.
81
81
  #
82
- # @param direction [Symbol, ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Direction] One of `credit`, `debit`.
82
+ # @param direction [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Direction] One of `credit`, `debit`.
83
83
  #
84
84
  # @param internal_account_id [String] The ID of one of your internal accounts.
85
85
  #
86
- # @param type [Symbol, ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Type] One of `ach`, `wire`, `check`.
86
+ # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type] One of `ach`, `wire`, `check`.
87
87
  #
88
88
  # @param virtual_account_id [String, nil] An optional parameter to associate the incoming payment detail to a virtual acco
89
89
  #
@@ -29,7 +29,7 @@ module ModernTreasury
29
29
  # @!attribute direction
30
30
  # One of `credit` or `debit`.
31
31
  #
32
- # @return [Symbol, ModernTreasury::TransactionDirection, nil]
32
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection, nil]
33
33
  optional :direction, enum: -> { ModernTreasury::TransactionDirection }
34
34
 
35
35
  # @!attribute metadata
@@ -49,14 +49,14 @@ module ModernTreasury
49
49
  # The current status of the incoming payment order. One of `pending`, `completed`,
50
50
  # or `returned`.
51
51
  #
52
- # @return [Symbol, ModernTreasury::IncomingPaymentDetailListParams::Status, nil]
52
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Status, nil]
53
53
  optional :status, enum: -> { ModernTreasury::IncomingPaymentDetailListParams::Status }
54
54
 
55
55
  # @!attribute type
56
56
  # One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or
57
57
  # `wire`.
58
58
  #
59
- # @return [Symbol, ModernTreasury::IncomingPaymentDetailListParams::Type, nil]
59
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Type, nil]
60
60
  optional :type, enum: -> { ModernTreasury::IncomingPaymentDetailListParams::Type }
61
61
 
62
62
  # @!attribute virtual_account_id
@@ -76,15 +76,15 @@ module ModernTreasury
76
76
  #
77
77
  # @param as_of_date_start [Date] Filters incoming payment details with an as_of_date starting on or after the spe
78
78
  #
79
- # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit` or `debit`.
79
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit` or `debit`.
80
80
  #
81
81
  # @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
82
82
  #
83
83
  # @param per_page [Integer]
84
84
  #
85
- # @param status [Symbol, ModernTreasury::IncomingPaymentDetailListParams::Status] The current status of the incoming payment order. One of `pending`, `completed`,
85
+ # @param status [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Status] The current status of the incoming payment order. One of `pending`, `completed`,
86
86
  #
87
- # @param type [Symbol, ModernTreasury::IncomingPaymentDetailListParams::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
87
+ # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
88
88
  #
89
89
  # @param virtual_account_id [String] If the incoming payment detail is in a virtual account, the ID of the Virtual Ac
90
90
  #
@@ -12,19 +12,19 @@ module ModernTreasury
12
12
  # @!attribute account_details
13
13
  # An array of account detail objects.
14
14
  #
15
- # @return [Array<ModernTreasury::AccountDetail>]
15
+ # @return [Array<ModernTreasury::Models::AccountDetail>]
16
16
  required :account_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::AccountDetail] }
17
17
 
18
18
  # @!attribute account_type
19
19
  # Can be checking, savings or other.
20
20
  #
21
- # @return [Symbol, ModernTreasury::InternalAccount::AccountType, nil]
21
+ # @return [Symbol, ModernTreasury::Models::InternalAccount::AccountType, nil]
22
22
  required :account_type, enum: -> { ModernTreasury::InternalAccount::AccountType }, nil?: true
23
23
 
24
24
  # @!attribute connection
25
25
  # Specifies which financial institution the accounts belong to.
26
26
  #
27
- # @return [ModernTreasury::Connection]
27
+ # @return [ModernTreasury::Models::Connection]
28
28
  required :connection, -> { ModernTreasury::Connection }
29
29
 
30
30
  # @!attribute counterparty_id
@@ -41,7 +41,7 @@ module ModernTreasury
41
41
  # @!attribute currency
42
42
  # The currency of the account.
43
43
  #
44
- # @return [Symbol, ModernTreasury::Currency]
44
+ # @return [Symbol, ModernTreasury::Models::Currency]
45
45
  required :currency, enum: -> { ModernTreasury::Currency }
46
46
 
47
47
  # @!attribute ledger_account_id
@@ -91,7 +91,7 @@ module ModernTreasury
91
91
  # @!attribute party_address
92
92
  # The address associated with the owner or null.
93
93
  #
94
- # @return [ModernTreasury::InternalAccount::PartyAddress, nil]
94
+ # @return [ModernTreasury::Models::InternalAccount::PartyAddress, nil]
95
95
  required :party_address, -> { ModernTreasury::InternalAccount::PartyAddress }, nil?: true
96
96
 
97
97
  # @!attribute party_name
@@ -103,13 +103,13 @@ module ModernTreasury
103
103
  # @!attribute party_type
104
104
  # Either individual or business.
105
105
  #
106
- # @return [Symbol, ModernTreasury::InternalAccount::PartyType, nil]
106
+ # @return [Symbol, ModernTreasury::Models::InternalAccount::PartyType, nil]
107
107
  required :party_type, enum: -> { ModernTreasury::InternalAccount::PartyType }, nil?: true
108
108
 
109
109
  # @!attribute routing_details
110
110
  # An array of routing detail objects.
111
111
  #
112
- # @return [Array<ModernTreasury::RoutingDetail>]
112
+ # @return [Array<ModernTreasury::Models::RoutingDetail>]
113
113
  required :routing_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::RoutingDetail] }
114
114
 
115
115
  # @!attribute updated_at
@@ -119,21 +119,21 @@ module ModernTreasury
119
119
 
120
120
  # @!method initialize(id:, account_details:, account_type:, connection:, counterparty_id:, created_at:, currency:, ledger_account_id:, legal_entity_id:, live_mode:, metadata:, name:, object:, parent_account_id:, party_address:, party_name:, party_type:, routing_details:, updated_at:)
121
121
  # Some parameter documentations has been truncated, see
122
- # {ModernTreasury::InternalAccount} for more details.
122
+ # {ModernTreasury::Models::InternalAccount} for more details.
123
123
  #
124
124
  # @param id [String]
125
125
  #
126
- # @param account_details [Array<ModernTreasury::AccountDetail>] An array of account detail objects.
126
+ # @param account_details [Array<ModernTreasury::Models::AccountDetail>] An array of account detail objects.
127
127
  #
128
- # @param account_type [Symbol, ModernTreasury::InternalAccount::AccountType, nil] Can be checking, savings or other.
128
+ # @param account_type [Symbol, ModernTreasury::Models::InternalAccount::AccountType, nil] Can be checking, savings or other.
129
129
  #
130
- # @param connection [ModernTreasury::Connection] Specifies which financial institution the accounts belong to.
130
+ # @param connection [ModernTreasury::Models::Connection] Specifies which financial institution the accounts belong to.
131
131
  #
132
132
  # @param counterparty_id [String, nil] The Counterparty associated to this account.
133
133
  #
134
134
  # @param created_at [Time]
135
135
  #
136
- # @param currency [Symbol, ModernTreasury::Currency] The currency of the account.
136
+ # @param currency [Symbol, ModernTreasury::Models::Currency] The currency of the account.
137
137
  #
138
138
  # @param ledger_account_id [String, nil] If the internal account links to a ledger account in Modern Treasury, the id of
139
139
  #
@@ -149,36 +149,41 @@ module ModernTreasury
149
149
  #
150
150
  # @param parent_account_id [String, nil] The parent InternalAccount of this account.
151
151
  #
152
- # @param party_address [ModernTreasury::InternalAccount::PartyAddress, nil] The address associated with the owner or null.
152
+ # @param party_address [ModernTreasury::Models::InternalAccount::PartyAddress, nil] The address associated with the owner or null.
153
153
  #
154
154
  # @param party_name [String] The legal name of the entity which owns the account.
155
155
  #
156
- # @param party_type [Symbol, ModernTreasury::InternalAccount::PartyType, nil] Either individual or business.
156
+ # @param party_type [Symbol, ModernTreasury::Models::InternalAccount::PartyType, nil] Either individual or business.
157
157
  #
158
- # @param routing_details [Array<ModernTreasury::RoutingDetail>] An array of routing detail objects.
158
+ # @param routing_details [Array<ModernTreasury::Models::RoutingDetail>] An array of routing detail objects.
159
159
  #
160
160
  # @param updated_at [Time]
161
161
 
162
162
  # Can be checking, savings or other.
163
163
  #
164
- # @see ModernTreasury::InternalAccount#account_type
164
+ # @see ModernTreasury::Models::InternalAccount#account_type
165
165
  module AccountType
166
166
  extend ModernTreasury::Internal::Type::Enum
167
167
 
168
+ BASE_WALLET = :base_wallet
168
169
  CASH = :cash
169
170
  CHECKING = :checking
171
+ CRYPTO_WALLET = :crypto_wallet
172
+ ETHEREUM_WALLET = :ethereum_wallet
170
173
  GENERAL_LEDGER = :general_ledger
171
174
  LOAN = :loan
172
175
  NON_RESIDENT = :non_resident
173
176
  OTHER = :other
174
177
  OVERDRAFT = :overdraft
178
+ POLYGON_WALLET = :polygon_wallet
175
179
  SAVINGS = :savings
180
+ SOLANA_WALLET = :solana_wallet
176
181
 
177
182
  # @!method self.values
178
183
  # @return [Array<Symbol>]
179
184
  end
180
185
 
181
- # @see ModernTreasury::InternalAccount#party_address
186
+ # @see ModernTreasury::Models::InternalAccount#party_address
182
187
  class PartyAddress < ModernTreasury::Internal::Type::BaseModel
183
188
  # @!attribute id
184
189
  #
@@ -243,7 +248,7 @@ module ModernTreasury
243
248
 
244
249
  # @!method initialize(id:, country:, created_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
245
250
  # Some parameter documentations has been truncated, see
246
- # {ModernTreasury::InternalAccount::PartyAddress} for more details.
251
+ # {ModernTreasury::Models::InternalAccount::PartyAddress} for more details.
247
252
  #
248
253
  # The address associated with the owner or null.
249
254
  #
@@ -272,7 +277,7 @@ module ModernTreasury
272
277
 
273
278
  # Either individual or business.
274
279
  #
275
- # @see ModernTreasury::InternalAccount#party_type
280
+ # @see ModernTreasury::Models::InternalAccount#party_type
276
281
  module PartyType
277
282
  extend ModernTreasury::Internal::Type::Enum
278
283