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
@@ -20,7 +20,7 @@ module ModernTreasury
20
20
  # `debit` pulls money from someone else's account to your own. Note that wire,
21
21
  # rtp, and check payments will always be `credit`.
22
22
  #
23
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::Direction]
23
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Direction]
24
24
  required :direction, enum: -> { ModernTreasury::PaymentOrderCreateParams::Direction }
25
25
 
26
26
  # @!attribute originating_account_id
@@ -34,12 +34,12 @@ module ModernTreasury
34
34
  # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
35
35
  # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
36
36
  #
37
- # @return [Symbol, ModernTreasury::PaymentOrderType]
37
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
38
38
  required :type, enum: -> { ModernTreasury::PaymentOrderType }
39
39
 
40
40
  # @!attribute accounting
41
41
  #
42
- # @return [ModernTreasury::PaymentOrderCreateParams::Accounting, nil]
42
+ # @return [ModernTreasury::Models::PaymentOrderCreateParams::Accounting, nil]
43
43
  optional :accounting, -> { ModernTreasury::PaymentOrderCreateParams::Accounting }
44
44
 
45
45
  # @!attribute accounting_category_id
@@ -65,13 +65,13 @@ module ModernTreasury
65
65
  # payment orders. Can be one of shared, sender, or receiver, which correspond
66
66
  # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
67
67
  #
68
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ChargeBearer, nil]
68
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil]
69
69
  optional :charge_bearer, enum: -> { ModernTreasury::PaymentOrderCreateParams::ChargeBearer }, nil?: true
70
70
 
71
71
  # @!attribute currency
72
72
  # Defaults to the currency of the originating account.
73
73
  #
74
- # @return [Symbol, ModernTreasury::Currency, nil]
74
+ # @return [Symbol, ModernTreasury::Models::Currency, nil]
75
75
  optional :currency, enum: -> { ModernTreasury::Currency }
76
76
 
77
77
  # @!attribute description
@@ -84,7 +84,7 @@ module ModernTreasury
84
84
  # An array of documents to be attached to the payment order. Note that if you
85
85
  # attach documents, the request's content type must be `multipart/form-data`.
86
86
  #
87
- # @return [Array<ModernTreasury::PaymentOrderCreateParams::Document>, nil]
87
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::Document>, nil]
88
88
  optional :documents,
89
89
  -> {
90
90
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::Document]
@@ -109,7 +109,7 @@ module ModernTreasury
109
109
  # receiving account. Currently, this only supports falling back from RTP to ACH
110
110
  # (type=rtp and fallback_type=ach)
111
111
  #
112
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::FallbackType, nil]
112
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::FallbackType, nil]
113
113
  optional :fallback_type, enum: -> { ModernTreasury::PaymentOrderCreateParams::FallbackType }
114
114
 
115
115
  # @!attribute foreign_exchange_contract
@@ -124,7 +124,7 @@ module ModernTreasury
124
124
  # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
125
125
  # currency matches the originating account currency.
126
126
  #
127
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ForeignExchangeIndicator, nil]
127
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ForeignExchangeIndicator, nil]
128
128
  optional :foreign_exchange_indicator,
129
129
  enum: -> { ModernTreasury::PaymentOrderCreateParams::ForeignExchangeIndicator },
130
130
  nil?: true
@@ -135,7 +135,7 @@ module ModernTreasury
135
135
  # creation will fail. The resulting ledger transaction will mirror the status of
136
136
  # the payment order.
137
137
  #
138
- # @return [ModernTreasury::PaymentOrderCreateParams::LedgerTransaction, nil]
138
+ # @return [ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction, nil]
139
139
  optional :ledger_transaction, -> { ModernTreasury::PaymentOrderCreateParams::LedgerTransaction }
140
140
 
141
141
  # @!attribute ledger_transaction_id
@@ -150,7 +150,7 @@ module ModernTreasury
150
150
  # @!attribute line_items
151
151
  # An array of line items that must sum up to the amount of the payment order.
152
152
  #
153
- # @return [Array<ModernTreasury::PaymentOrderCreateParams::LineItem>, nil]
153
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::LineItem>, nil]
154
154
  optional :line_items,
155
155
  -> {
156
156
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::LineItem]
@@ -184,7 +184,7 @@ module ModernTreasury
184
184
  # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
185
185
  # an overnight check rather than standard mail.
186
186
  #
187
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::Priority, nil]
187
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority, nil]
188
188
  optional :priority, enum: -> { ModernTreasury::PaymentOrderCreateParams::Priority }
189
189
 
190
190
  # @!attribute process_after
@@ -210,7 +210,7 @@ module ModernTreasury
210
210
  # `receiving_account_id`, you may pass the id of an external account or an
211
211
  # internal account.
212
212
  #
213
- # @return [ModernTreasury::PaymentOrderCreateParams::ReceivingAccount, nil]
213
+ # @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount, nil]
214
214
  optional :receiving_account, -> { ModernTreasury::PaymentOrderCreateParams::ReceivingAccount }
215
215
 
216
216
  # @!attribute receiving_account_id
@@ -253,7 +253,7 @@ module ModernTreasury
253
253
  # payment orders, the `subtype` represents the SEC code. We currently support
254
254
  # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
255
255
  #
256
- # @return [Symbol, ModernTreasury::PaymentOrderSubtype, nil]
256
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
257
257
  optional :subtype, enum: -> { ModernTreasury::PaymentOrderSubtype }, nil?: true
258
258
 
259
259
  # @!attribute transaction_monitoring_enabled
@@ -293,41 +293,41 @@ module ModernTreasury
293
293
  #
294
294
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
295
295
  #
296
- # @param direction [Symbol, ModernTreasury::PaymentOrderCreateParams::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
296
+ # @param direction [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Direction] One of `credit`, `debit`. Describes the direction money is flowing in the transa
297
297
  #
298
298
  # @param originating_account_id [String] The ID of one of your organization's internal accounts.
299
299
  #
300
- # @param type [Symbol, ModernTreasury::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
300
+ # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
301
301
  #
302
- # @param accounting [ModernTreasury::PaymentOrderCreateParams::Accounting]
302
+ # @param accounting [ModernTreasury::Models::PaymentOrderCreateParams::Accounting]
303
303
  #
304
304
  # @param accounting_category_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
305
305
  #
306
306
  # @param accounting_ledger_class_id [String, nil] The ID of one of your accounting ledger classes. Note that these will only be ac
307
307
  #
308
- # @param charge_bearer [Symbol, ModernTreasury::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
308
+ # @param charge_bearer [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ChargeBearer, nil] The party that will pay the fees for the payment order. Only applies to wire pay
309
309
  #
310
- # @param currency [Symbol, ModernTreasury::Currency] Defaults to the currency of the originating account.
310
+ # @param currency [Symbol, ModernTreasury::Models::Currency] Defaults to the currency of the originating account.
311
311
  #
312
312
  # @param description [String, nil] An optional description for internal use.
313
313
  #
314
- # @param documents [Array<ModernTreasury::PaymentOrderCreateParams::Document>] An array of documents to be attached to the payment order. Note that if you atta
314
+ # @param documents [Array<ModernTreasury::Models::PaymentOrderCreateParams::Document>] An array of documents to be attached to the payment order. Note that if you atta
315
315
  #
316
316
  # @param effective_date [Date] Date transactions are to be posted to the participants' account. Defaults to the
317
317
  #
318
318
  # @param expires_at [Time, nil] RFP payments require an expires_at. This value must be past the effective_date.
319
319
  #
320
- # @param fallback_type [Symbol, ModernTreasury::PaymentOrderCreateParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
320
+ # @param fallback_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::FallbackType] A payment type to fallback to if the original type is not valid for the receivin
321
321
  #
322
322
  # @param foreign_exchange_contract [String, nil] If present, indicates a specific foreign exchange contract number that has been
323
323
  #
324
- # @param foreign_exchange_indicator [Symbol, ModernTreasury::PaymentOrderCreateParams::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
324
+ # @param foreign_exchange_indicator [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ForeignExchangeIndicator, nil] Indicates the type of FX transfer to initiate, can be either `variable_to_fixed`
325
325
  #
326
- # @param ledger_transaction [ModernTreasury::PaymentOrderCreateParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the payment orde
326
+ # @param ledger_transaction [ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the payment orde
327
327
  #
328
328
  # @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
329
329
  #
330
- # @param line_items [Array<ModernTreasury::PaymentOrderCreateParams::LineItem>] An array of line items that must sum up to the amount of the payment order.
330
+ # @param line_items [Array<ModernTreasury::Models::PaymentOrderCreateParams::LineItem>] An array of line items that must sum up to the amount of the payment order.
331
331
  #
332
332
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
333
333
  #
@@ -335,13 +335,13 @@ module ModernTreasury
335
335
  #
336
336
  # @param originating_party_name [String, nil] If present, this will replace your default company name on receiver's bank state
337
337
  #
338
- # @param priority [Symbol, ModernTreasury::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
338
+ # @param priority [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Priority] Either `normal` or `high`. For ACH and EFT payments, `high` represents a same-da
339
339
  #
340
340
  # @param process_after [Time, nil] If present, Modern Treasury will not process the payment until after this time.
341
341
  #
342
342
  # @param purpose [String, nil] For `wire`, this is usually the purpose which is transmitted via the "InstrForDb
343
343
  #
344
- # @param receiving_account [ModernTreasury::PaymentOrderCreateParams::ReceivingAccount] Either `receiving_account` or `receiving_account_id` must be present. When using
344
+ # @param receiving_account [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount] Either `receiving_account` or `receiving_account_id` must be present. When using
345
345
  #
346
346
  # @param receiving_account_id [String] Either `receiving_account` or `receiving_account_id` must be present. When using
347
347
  #
@@ -351,7 +351,7 @@ module ModernTreasury
351
351
  #
352
352
  # @param statement_descriptor [String, nil] An optional descriptor which will appear in the receiver's statement. For `check
353
353
  #
354
- # @param subtype [Symbol, ModernTreasury::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
354
+ # @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
355
355
  #
356
356
  # @param transaction_monitoring_enabled [Boolean] A flag that determines whether a payment order should go through transaction mon
357
357
  #
@@ -397,7 +397,7 @@ module ModernTreasury
397
397
 
398
398
  # @!method initialize(account_id: nil, class_id: nil)
399
399
  # Some parameter documentations has been truncated, see
400
- # {ModernTreasury::PaymentOrderCreateParams::Accounting} for more details.
400
+ # {ModernTreasury::Models::PaymentOrderCreateParams::Accounting} for more details.
401
401
  #
402
402
  # @param account_id [String, nil] The ID of one of your accounting categories. Note that these will only be access
403
403
  #
@@ -427,13 +427,13 @@ module ModernTreasury
427
427
 
428
428
  # @!attribute documentable_type
429
429
  #
430
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::Document::DocumentableType]
430
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Document::DocumentableType]
431
431
  required :documentable_type,
432
432
  enum: -> { ModernTreasury::PaymentOrderCreateParams::Document::DocumentableType }
433
433
 
434
434
  # @!attribute file
435
435
  #
436
- # @return [Pathname, StringIO, IO, ModernTreasury::FilePart]
436
+ # @return [Pathname, StringIO, IO, String, ModernTreasury::FilePart]
437
437
  required :file, ModernTreasury::Internal::Type::FileInput
438
438
 
439
439
  # @!attribute document_type
@@ -445,28 +445,28 @@ module ModernTreasury
445
445
  # @!method initialize(documentable_id:, documentable_type:, file:, document_type: nil)
446
446
  # @param documentable_id [String] The unique identifier for the associated object.
447
447
  #
448
- # @param documentable_type [Symbol, ModernTreasury::PaymentOrderCreateParams::Document::DocumentableType]
448
+ # @param documentable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::Document::DocumentableType]
449
449
  #
450
- # @param file [Pathname, StringIO, IO, ModernTreasury::FilePart]
450
+ # @param file [Pathname, StringIO, IO, String, ModernTreasury::FilePart]
451
451
  #
452
452
  # @param document_type [String] A category given to the document, can be `null`.
453
453
 
454
- # @see ModernTreasury::PaymentOrderCreateParams::Document#documentable_type
454
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::Document#documentable_type
455
455
  module DocumentableType
456
456
  extend ModernTreasury::Internal::Type::Enum
457
457
 
458
- CASES = :cases
459
458
  COUNTERPARTIES = :counterparties
460
459
  EXPECTED_PAYMENTS = :expected_payments
461
460
  EXTERNAL_ACCOUNTS = :external_accounts
461
+ IDENTIFICATIONS = :identifications
462
462
  INCOMING_PAYMENT_DETAILS = :incoming_payment_details
463
463
  INTERNAL_ACCOUNTS = :internal_accounts
464
464
  ORGANIZATIONS = :organizations
465
465
  PAPER_ITEMS = :paper_items
466
466
  PAYMENT_ORDERS = :payment_orders
467
467
  TRANSACTIONS = :transactions
468
- DECISIONS = :decisions
469
468
  CONNECTIONS = :connections
469
+ CONVERSATIONS = :conversations
470
470
 
471
471
  # @!method self.values
472
472
  # @return [Array<Symbol>]
@@ -502,7 +502,7 @@ module ModernTreasury
502
502
  # @!attribute ledger_entries
503
503
  # An array of ledger entry objects.
504
504
  #
505
- # @return [Array<ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry>]
505
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry>]
506
506
  required :ledger_entries,
507
507
  -> {
508
508
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry]
@@ -548,7 +548,7 @@ module ModernTreasury
548
548
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
549
549
  # reversal.
550
550
  #
551
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerableType, nil]
551
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerableType, nil]
552
552
  optional :ledgerable_type,
553
553
  enum: -> { ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerableType }
554
554
 
@@ -562,19 +562,20 @@ module ModernTreasury
562
562
  # @!attribute status
563
563
  # To post a ledger transaction at creation, use `posted`.
564
564
  #
565
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::Status, nil]
565
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::Status, nil]
566
566
  optional :status, enum: -> { ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::Status }
567
567
 
568
568
  # @!method initialize(ledger_entries:, description: nil, effective_at: nil, effective_date: nil, external_id: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil, status: nil)
569
569
  # Some parameter documentations has been truncated, see
570
- # {ModernTreasury::PaymentOrderCreateParams::LedgerTransaction} for more details.
570
+ # {ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction} for more
571
+ # details.
571
572
  #
572
573
  # Specifies a ledger transaction object that will be created with the payment
573
574
  # order. If the ledger transaction cannot be created, then the payment order
574
575
  # creation will fail. The resulting ledger transaction will mirror the status of
575
576
  # the payment order.
576
577
  #
577
- # @param ledger_entries [Array<ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
578
+ # @param ledger_entries [Array<ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
578
579
  #
579
580
  # @param description [String, nil] An optional description for internal use.
580
581
  #
@@ -586,11 +587,11 @@ module ModernTreasury
586
587
  #
587
588
  # @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
588
589
  #
589
- # @param ledgerable_type [Symbol, ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
590
+ # @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
590
591
  #
591
592
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
592
593
  #
593
- # @param status [Symbol, ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
594
+ # @param status [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
594
595
 
595
596
  class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
596
597
  # @!attribute amount
@@ -606,7 +607,7 @@ module ModernTreasury
606
607
  # `debit` pulls money from someone else's account to your own. Note that wire,
607
608
  # rtp, and check payments will always be `credit`.
608
609
  #
609
- # @return [Symbol, ModernTreasury::TransactionDirection]
610
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
610
611
  required :direction, enum: -> { ModernTreasury::TransactionDirection }
611
612
 
612
613
  # @!attribute ledger_account_id
@@ -666,12 +667,12 @@ module ModernTreasury
666
667
 
667
668
  # @!method initialize(amount:, direction:, ledger_account_id:, available_balance_amount: nil, lock_version: nil, metadata: nil, pending_balance_amount: nil, posted_balance_amount: nil, show_resulting_ledger_account_balances: nil)
668
669
  # Some parameter documentations has been truncated, see
669
- # {ModernTreasury::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry} for
670
- # more details.
670
+ # {ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction::LedgerEntry}
671
+ # for more details.
671
672
  #
672
673
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
673
674
  #
674
- # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
675
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
675
676
  #
676
677
  # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
677
678
  #
@@ -693,7 +694,7 @@ module ModernTreasury
693
694
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
694
695
  # reversal.
695
696
  #
696
- # @see ModernTreasury::PaymentOrderCreateParams::LedgerTransaction#ledgerable_type
697
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction#ledgerable_type
697
698
  module LedgerableType
698
699
  extend ModernTreasury::Internal::Type::Enum
699
700
 
@@ -710,7 +711,7 @@ module ModernTreasury
710
711
 
711
712
  # To post a ledger transaction at creation, use `posted`.
712
713
  #
713
- # @see ModernTreasury::PaymentOrderCreateParams::LedgerTransaction#status
714
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::LedgerTransaction#status
714
715
  module Status
715
716
  extend ModernTreasury::Internal::Type::Enum
716
717
 
@@ -753,7 +754,7 @@ module ModernTreasury
753
754
 
754
755
  # @!method initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
755
756
  # Some parameter documentations has been truncated, see
756
- # {ModernTreasury::PaymentOrderCreateParams::LineItem} for more details.
757
+ # {ModernTreasury::Models::PaymentOrderCreateParams::LineItem} for more details.
757
758
  #
758
759
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
759
760
  #
@@ -780,7 +781,7 @@ module ModernTreasury
780
781
  class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
781
782
  # @!attribute account_details
782
783
  #
783
- # @return [Array<ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>, nil]
784
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>, nil]
784
785
  optional :account_details,
785
786
  -> {
786
787
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail]
@@ -789,12 +790,12 @@ module ModernTreasury
789
790
  # @!attribute account_type
790
791
  # Can be `checking`, `savings` or `other`.
791
792
  #
792
- # @return [Symbol, ModernTreasury::ExternalAccountType, nil]
793
+ # @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
793
794
  optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
794
795
 
795
796
  # @!attribute contact_details
796
797
  #
797
- # @return [Array<ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail>, nil]
798
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail>, nil]
798
799
  optional :contact_details,
799
800
  -> {
800
801
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail]
@@ -807,7 +808,7 @@ module ModernTreasury
807
808
  # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
808
809
  # for more details.
809
810
  #
810
- # @return [ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount, nil]
811
+ # @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount, nil]
811
812
  optional :ledger_account,
812
813
  -> {
813
814
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount
@@ -830,7 +831,7 @@ module ModernTreasury
830
831
  # @!attribute party_address
831
832
  # Required if receiving wire payments.
832
833
  #
833
- # @return [ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyAddress, nil]
834
+ # @return [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyAddress, nil]
834
835
  optional :party_address,
835
836
  -> {
836
837
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyAddress
@@ -850,7 +851,7 @@ module ModernTreasury
850
851
  # @!attribute party_type
851
852
  # Either `individual` or `business`.
852
853
  #
853
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyType, nil]
854
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyType, nil]
854
855
  optional :party_type,
855
856
  enum: -> { ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyType },
856
857
  nil?: true
@@ -864,7 +865,7 @@ module ModernTreasury
864
865
 
865
866
  # @!attribute routing_details
866
867
  #
867
- # @return [Array<ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail>, nil]
868
+ # @return [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail>, nil]
868
869
  optional :routing_details,
869
870
  -> {
870
871
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail]
@@ -872,35 +873,36 @@ module ModernTreasury
872
873
 
873
874
  # @!method initialize(account_details: nil, account_type: nil, contact_details: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
874
875
  # Some parameter documentations has been truncated, see
875
- # {ModernTreasury::PaymentOrderCreateParams::ReceivingAccount} for more details.
876
+ # {ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount} for more
877
+ # details.
876
878
  #
877
879
  # Either `receiving_account` or `receiving_account_id` must be present. When using
878
880
  # `receiving_account_id`, you may pass the id of an external account or an
879
881
  # internal account.
880
882
  #
881
- # @param account_details [Array<ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>]
883
+ # @param account_details [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail>]
882
884
  #
883
- # @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
885
+ # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
884
886
  #
885
- # @param contact_details [Array<ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail>]
887
+ # @param contact_details [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail>]
886
888
  #
887
- # @param ledger_account [ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount] Specifies a ledger account object that will be created with the external account
889
+ # @param ledger_account [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount] Specifies a ledger account object that will be created with the external account
888
890
  #
889
891
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
890
892
  #
891
893
  # @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
892
894
  #
893
- # @param party_address [ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyAddress] Required if receiving wire payments.
895
+ # @param party_address [ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyAddress] Required if receiving wire payments.
894
896
  #
895
897
  # @param party_identifier [String]
896
898
  #
897
899
  # @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
898
900
  #
899
- # @param party_type [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::PartyType, nil] Either `individual` or `business`.
901
+ # @param party_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::PartyType, nil] Either `individual` or `business`.
900
902
  #
901
903
  # @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
902
904
  #
903
- # @param routing_details [Array<ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail>]
905
+ # @param routing_details [Array<ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail>]
904
906
 
905
907
  class AccountDetail < ModernTreasury::Internal::Type::BaseModel
906
908
  # @!attribute account_number
@@ -910,7 +912,7 @@ module ModernTreasury
910
912
 
911
913
  # @!attribute account_number_type
912
914
  #
913
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
915
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType, nil]
914
916
  optional :account_number_type,
915
917
  enum: -> {
916
918
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType
@@ -918,21 +920,25 @@ module ModernTreasury
918
920
 
919
921
  # @!method initialize(account_number:, account_number_type: nil)
920
922
  # @param account_number [String]
921
- # @param account_number_type [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType]
923
+ # @param account_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail::AccountNumberType]
922
924
 
923
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::AccountDetail#account_number_type
925
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::AccountDetail#account_number_type
924
926
  module AccountNumberType
925
927
  extend ModernTreasury::Internal::Type::Enum
926
928
 
927
929
  AU_NUMBER = :au_number
930
+ BASE_ADDRESS = :base_address
928
931
  CLABE = :clabe
932
+ ETHEREUM_ADDRESS = :ethereum_address
929
933
  HK_NUMBER = :hk_number
930
934
  IBAN = :iban
931
935
  ID_NUMBER = :id_number
932
936
  NZ_NUMBER = :nz_number
933
937
  OTHER = :other
934
938
  PAN = :pan
939
+ POLYGON_ADDRESS = :polygon_address
935
940
  SG_NUMBER = :sg_number
941
+ SOLANA_ADDRESS = :solana_address
936
942
  WALLET_ADDRESS = :wallet_address
937
943
 
938
944
  # @!method self.values
@@ -948,7 +954,7 @@ module ModernTreasury
948
954
 
949
955
  # @!attribute contact_identifier_type
950
956
  #
951
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
957
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType, nil]
952
958
  optional :contact_identifier_type,
953
959
  enum: -> {
954
960
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType
@@ -956,9 +962,9 @@ module ModernTreasury
956
962
 
957
963
  # @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
958
964
  # @param contact_identifier [String]
959
- # @param contact_identifier_type [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
965
+ # @param contact_identifier_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail::ContactIdentifierType]
960
966
 
961
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::ContactDetail#contact_identifier_type
967
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::ContactDetail#contact_identifier_type
962
968
  module ContactIdentifierType
963
969
  extend ModernTreasury::Internal::Type::Enum
964
970
 
@@ -971,7 +977,7 @@ module ModernTreasury
971
977
  end
972
978
  end
973
979
 
974
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount#ledger_account
980
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount#ledger_account
975
981
  class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
976
982
  # @!attribute currency
977
983
  # The currency of the ledger account.
@@ -994,7 +1000,7 @@ module ModernTreasury
994
1000
  # @!attribute normal_balance
995
1001
  # The normal balance of the ledger account.
996
1002
  #
997
- # @return [Symbol, ModernTreasury::TransactionDirection]
1003
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
998
1004
  required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
999
1005
 
1000
1006
  # @!attribute currency_exponent
@@ -1028,7 +1034,7 @@ module ModernTreasury
1028
1034
  # be populated here, otherwise null. The value is one of internal_account or
1029
1035
  # external_account.
1030
1036
  #
1031
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType, nil]
1037
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType, nil]
1032
1038
  optional :ledgerable_type,
1033
1039
  enum: -> {
1034
1040
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType
@@ -1043,8 +1049,8 @@ module ModernTreasury
1043
1049
 
1044
1050
  # @!method initialize(currency:, ledger_id:, name:, normal_balance:, currency_exponent: nil, description: nil, ledger_account_category_ids: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil)
1045
1051
  # Some parameter documentations has been truncated, see
1046
- # {ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount} for
1047
- # more details.
1052
+ # {ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount}
1053
+ # for more details.
1048
1054
  #
1049
1055
  # Specifies a ledger account object that will be created with the external
1050
1056
  # account. The resulting ledger account is linked to the external account for
@@ -1058,7 +1064,7 @@ module ModernTreasury
1058
1064
  #
1059
1065
  # @param name [String] The name of the ledger account.
1060
1066
  #
1061
- # @param normal_balance [Symbol, ModernTreasury::TransactionDirection] The normal balance of the ledger account.
1067
+ # @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection] The normal balance of the ledger account.
1062
1068
  #
1063
1069
  # @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
1064
1070
  #
@@ -1068,7 +1074,7 @@ module ModernTreasury
1068
1074
  #
1069
1075
  # @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
1070
1076
  #
1071
- # @param ledgerable_type [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
1077
+ # @param ledgerable_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
1072
1078
  #
1073
1079
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
1074
1080
 
@@ -1076,7 +1082,7 @@ module ModernTreasury
1076
1082
  # be populated here, otherwise null. The value is one of internal_account or
1077
1083
  # external_account.
1078
1084
  #
1079
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount#ledgerable_type
1085
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::LedgerAccount#ledgerable_type
1080
1086
  module LedgerableType
1081
1087
  extend ModernTreasury::Internal::Type::Enum
1082
1088
 
@@ -1090,7 +1096,7 @@ module ModernTreasury
1090
1096
  end
1091
1097
  end
1092
1098
 
1093
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount#party_address
1099
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount#party_address
1094
1100
  class PartyAddress < ModernTreasury::Internal::Type::BaseModel
1095
1101
  # @!attribute country
1096
1102
  # Country code conforms to [ISO 3166-1 alpha-2]
@@ -1144,7 +1150,7 @@ module ModernTreasury
1144
1150
 
1145
1151
  # Either `individual` or `business`.
1146
1152
  #
1147
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount#party_type
1153
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount#party_type
1148
1154
  module PartyType
1149
1155
  extend ModernTreasury::Internal::Type::Enum
1150
1156
 
@@ -1163,7 +1169,7 @@ module ModernTreasury
1163
1169
 
1164
1170
  # @!attribute routing_number_type
1165
1171
  #
1166
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
1172
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
1167
1173
  required :routing_number_type,
1168
1174
  enum: -> {
1169
1175
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType
@@ -1171,7 +1177,7 @@ module ModernTreasury
1171
1177
 
1172
1178
  # @!attribute payment_type
1173
1179
  #
1174
- # @return [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
1180
+ # @return [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType, nil]
1175
1181
  optional :payment_type,
1176
1182
  enum: -> {
1177
1183
  ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType
@@ -1179,10 +1185,10 @@ module ModernTreasury
1179
1185
 
1180
1186
  # @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
1181
1187
  # @param routing_number [String]
1182
- # @param routing_number_type [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
1183
- # @param payment_type [Symbol, ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType]
1188
+ # @param routing_number_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::RoutingNumberType]
1189
+ # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail::PaymentType]
1184
1190
 
1185
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail#routing_number_type
1191
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail#routing_number_type
1186
1192
  module RoutingNumberType
1187
1193
  extend ModernTreasury::Internal::Type::Enum
1188
1194
 
@@ -1212,13 +1218,14 @@ module ModernTreasury
1212
1218
  # @return [Array<Symbol>]
1213
1219
  end
1214
1220
 
1215
- # @see ModernTreasury::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail#payment_type
1221
+ # @see ModernTreasury::Models::PaymentOrderCreateParams::ReceivingAccount::RoutingDetail#payment_type
1216
1222
  module PaymentType
1217
1223
  extend ModernTreasury::Internal::Type::Enum
1218
1224
 
1219
1225
  ACH = :ach
1220
1226
  AU_BECS = :au_becs
1221
1227
  BACS = :bacs
1228
+ BASE = :base
1222
1229
  BOOK = :book
1223
1230
  CARD = :card
1224
1231
  CHATS = :chats
@@ -1226,6 +1233,7 @@ module ModernTreasury
1226
1233
  CROSS_BORDER = :cross_border
1227
1234
  DK_NETS = :dk_nets
1228
1235
  EFT = :eft
1236
+ ETHEREUM = :ethereum
1229
1237
  HU_ICS = :hu_ics
1230
1238
  INTERAC = :interac
1231
1239
  MASAV = :masav
@@ -1234,6 +1242,7 @@ module ModernTreasury
1234
1242
  NICS = :nics
1235
1243
  NZ_BECS = :nz_becs
1236
1244
  PL_ELIXIR = :pl_elixir
1245
+ POLYGON = :polygon
1237
1246
  PROVXCHANGE = :provxchange
1238
1247
  RO_SENT = :ro_sent
1239
1248
  RTP = :rtp
@@ -1244,6 +1253,7 @@ module ModernTreasury
1244
1253
  SIC = :sic
1245
1254
  SIGNET = :signet
1246
1255
  SKNBI = :sknbi
1256
+ SOLANA = :solana
1247
1257
  WIRE = :wire
1248
1258
  ZENGIN = :zengin
1249
1259