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
@@ -56,6 +56,7 @@ module ModernTreasury
56
56
  ERN = :ERN
57
57
  ETB = :ETB
58
58
  EUR = :EUR
59
+ EURC = :EURC
59
60
  FJD = :FJD
60
61
  FKP = :FKP
61
62
  GBP = :GBP
@@ -131,12 +132,14 @@ module ModernTreasury
131
132
  PKR = :PKR
132
133
  PLN = :PLN
133
134
  PYG = :PYG
135
+ PYUSD = :PYUSD
134
136
  QAR = :QAR
135
137
  RON = :RON
136
138
  RSD = :RSD
137
139
  RUB = :RUB
138
140
  RWF = :RWF
139
141
  SAR = :SAR
142
+ SBC = :SBC
140
143
  SBD = :SBD
141
144
  SCR = :SCR
142
145
  SDG = :SDG
@@ -165,6 +168,10 @@ module ModernTreasury
165
168
  UAH = :UAH
166
169
  UGX = :UGX
167
170
  USD = :USD
171
+ USDB = :USDB
172
+ USDC = :USDC
173
+ USDP = :USDP
174
+ USDT = :USDT
168
175
  UYU = :UYU
169
176
  UZS = :UZS
170
177
  VEF = :VEF
@@ -21,7 +21,7 @@ module ModernTreasury
21
21
 
22
22
  # @!attribute document_details
23
23
  #
24
- # @return [Array<ModernTreasury::Document::DocumentDetail>]
24
+ # @return [Array<ModernTreasury::Models::Document::DocumentDetail>]
25
25
  required :document_details,
26
26
  -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Document::DocumentDetail] }
27
27
 
@@ -42,12 +42,12 @@ module ModernTreasury
42
42
  # `transaction`, `paper_item`, `expected_payment`, `counterparty`, `organization`,
43
43
  # `case`, `internal_account`, `decision`, or `external_account`.
44
44
  #
45
- # @return [Symbol, ModernTreasury::Document::DocumentableType]
45
+ # @return [Symbol, ModernTreasury::Models::Document::DocumentableType]
46
46
  required :documentable_type, enum: -> { ModernTreasury::Document::DocumentableType }
47
47
 
48
48
  # @!attribute file
49
49
  #
50
- # @return [ModernTreasury::Document::File]
50
+ # @return [ModernTreasury::Models::Document::File]
51
51
  required :file, -> { ModernTreasury::Document::File }
52
52
 
53
53
  # @!attribute live_mode
@@ -74,8 +74,8 @@ module ModernTreasury
74
74
  required :updated_at, Time
75
75
 
76
76
  # @!method initialize(id:, created_at:, discarded_at:, document_details:, document_type:, documentable_id:, documentable_type:, file:, live_mode:, object:, source:, updated_at:)
77
- # Some parameter documentations has been truncated, see {ModernTreasury::Document}
78
- # for more details.
77
+ # Some parameter documentations has been truncated, see
78
+ # {ModernTreasury::Models::Document} for more details.
79
79
  #
80
80
  # @param id [String]
81
81
  #
@@ -83,15 +83,15 @@ module ModernTreasury
83
83
  #
84
84
  # @param discarded_at [Time, nil]
85
85
  #
86
- # @param document_details [Array<ModernTreasury::Document::DocumentDetail>]
86
+ # @param document_details [Array<ModernTreasury::Models::Document::DocumentDetail>]
87
87
  #
88
88
  # @param document_type [String, nil] A category given to the document, can be `null`.
89
89
  #
90
90
  # @param documentable_id [String] The unique identifier for the associated object.
91
91
  #
92
- # @param documentable_type [Symbol, ModernTreasury::Document::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
92
+ # @param documentable_type [Symbol, ModernTreasury::Models::Document::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
93
93
  #
94
- # @param file [ModernTreasury::Document::File]
94
+ # @param file [ModernTreasury::Models::Document::File]
95
95
  #
96
96
  # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
97
97
  #
@@ -146,7 +146,7 @@ module ModernTreasury
146
146
 
147
147
  # @!method initialize(id:, created_at:, discarded_at:, document_identifier:, document_identifier_type:, live_mode:, object:, updated_at:)
148
148
  # Some parameter documentations has been truncated, see
149
- # {ModernTreasury::Document::DocumentDetail} for more details.
149
+ # {ModernTreasury::Models::Document::DocumentDetail} for more details.
150
150
  #
151
151
  # @param id [String]
152
152
  #
@@ -169,28 +169,28 @@ module ModernTreasury
169
169
  # `transaction`, `paper_item`, `expected_payment`, `counterparty`, `organization`,
170
170
  # `case`, `internal_account`, `decision`, or `external_account`.
171
171
  #
172
- # @see ModernTreasury::Document#documentable_type
172
+ # @see ModernTreasury::Models::Document#documentable_type
173
173
  module DocumentableType
174
174
  extend ModernTreasury::Internal::Type::Enum
175
175
 
176
- CASE = :case
177
176
  COUNTERPARTY = :counterparty
178
177
  EXPECTED_PAYMENT = :expected_payment
179
178
  EXTERNAL_ACCOUNT = :external_account
179
+ IDENTIFICATION = :identification
180
180
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
181
181
  INTERNAL_ACCOUNT = :internal_account
182
182
  ORGANIZATION = :organization
183
183
  PAPER_ITEM = :paper_item
184
184
  PAYMENT_ORDER = :payment_order
185
185
  TRANSACTION = :transaction
186
- DECISION = :decision
187
186
  CONNECTION = :connection
187
+ CONVERSATION = :conversation
188
188
 
189
189
  # @!method self.values
190
190
  # @return [Array<Symbol>]
191
191
  end
192
192
 
193
- # @see ModernTreasury::Document#file
193
+ # @see ModernTreasury::Models::Document#file
194
194
  class File < ModernTreasury::Internal::Type::BaseModel
195
195
  # @!attribute content_type
196
196
  # The MIME content type of the document.
@@ -15,12 +15,12 @@ module ModernTreasury
15
15
 
16
16
  # @!attribute documentable_type
17
17
  #
18
- # @return [Symbol, ModernTreasury::DocumentCreateParams::DocumentableType]
18
+ # @return [Symbol, ModernTreasury::Models::DocumentCreateParams::DocumentableType]
19
19
  required :documentable_type, enum: -> { ModernTreasury::DocumentCreateParams::DocumentableType }
20
20
 
21
21
  # @!attribute file
22
22
  #
23
- # @return [Pathname, StringIO, IO, ModernTreasury::FilePart]
23
+ # @return [Pathname, StringIO, IO, String, ModernTreasury::FilePart]
24
24
  required :file, ModernTreasury::Internal::Type::FileInput
25
25
 
26
26
  # @!attribute document_type
@@ -32,9 +32,9 @@ module ModernTreasury
32
32
  # @!method initialize(documentable_id:, documentable_type:, file:, document_type: nil, request_options: {})
33
33
  # @param documentable_id [String] The unique identifier for the associated object.
34
34
  #
35
- # @param documentable_type [Symbol, ModernTreasury::DocumentCreateParams::DocumentableType]
35
+ # @param documentable_type [Symbol, ModernTreasury::Models::DocumentCreateParams::DocumentableType]
36
36
  #
37
- # @param file [Pathname, StringIO, IO, ModernTreasury::FilePart]
37
+ # @param file [Pathname, StringIO, IO, String, ModernTreasury::FilePart]
38
38
  #
39
39
  # @param document_type [String] A category given to the document, can be `null`.
40
40
  #
@@ -43,18 +43,18 @@ module ModernTreasury
43
43
  module DocumentableType
44
44
  extend ModernTreasury::Internal::Type::Enum
45
45
 
46
- CASES = :cases
47
46
  COUNTERPARTIES = :counterparties
48
47
  EXPECTED_PAYMENTS = :expected_payments
49
48
  EXTERNAL_ACCOUNTS = :external_accounts
49
+ IDENTIFICATIONS = :identifications
50
50
  INCOMING_PAYMENT_DETAILS = :incoming_payment_details
51
51
  INTERNAL_ACCOUNTS = :internal_accounts
52
52
  ORGANIZATIONS = :organizations
53
53
  PAPER_ITEMS = :paper_items
54
54
  PAYMENT_ORDERS = :payment_orders
55
55
  TRANSACTIONS = :transactions
56
- DECISIONS = :decisions
57
56
  CONNECTIONS = :connections
57
+ CONVERSATIONS = :conversations
58
58
 
59
59
  # @!method self.values
60
60
  # @return [Array<Symbol>]
@@ -23,7 +23,7 @@ module ModernTreasury
23
23
  # `transaction`, `paper_item`, `expected_payment`, `counterparty`, `organization`,
24
24
  # `case`, `internal_account`, `decision`, or `external_account`.
25
25
  #
26
- # @return [Symbol, ModernTreasury::DocumentListParams::DocumentableType, nil]
26
+ # @return [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType, nil]
27
27
  optional :documentable_type, enum: -> { ModernTreasury::DocumentListParams::DocumentableType }
28
28
 
29
29
  # @!attribute per_page
@@ -39,7 +39,7 @@ module ModernTreasury
39
39
  #
40
40
  # @param documentable_id [String] The unique identifier for the associated object.
41
41
  #
42
- # @param documentable_type [Symbol, ModernTreasury::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
42
+ # @param documentable_type [Symbol, ModernTreasury::Models::DocumentListParams::DocumentableType] The type of the associated object. Currently can be one of `payment_order`, `tra
43
43
  #
44
44
  # @param per_page [Integer]
45
45
  #
@@ -51,18 +51,18 @@ module ModernTreasury
51
51
  module DocumentableType
52
52
  extend ModernTreasury::Internal::Type::Enum
53
53
 
54
- CASES = :cases
55
54
  COUNTERPARTIES = :counterparties
56
55
  EXPECTED_PAYMENTS = :expected_payments
57
56
  EXTERNAL_ACCOUNTS = :external_accounts
57
+ IDENTIFICATIONS = :identifications
58
58
  INCOMING_PAYMENT_DETAILS = :incoming_payment_details
59
59
  INTERNAL_ACCOUNTS = :internal_accounts
60
60
  ORGANIZATIONS = :organizations
61
61
  PAPER_ITEMS = :paper_items
62
62
  PAYMENT_ORDERS = :payment_orders
63
63
  TRANSACTIONS = :transactions
64
- DECISIONS = :decisions
65
64
  CONNECTIONS = :connections
65
+ CONVERSATIONS = :conversations
66
66
 
67
67
  # @!method self.values
68
68
  # @return [Array<Symbol>]
@@ -62,8 +62,8 @@ module ModernTreasury
62
62
  required :updated_at, Time
63
63
 
64
64
  # @!method initialize(id:, created_at:, data:, entity_id:, event_name:, event_time:, live_mode:, object:, resource:, updated_at:)
65
- # Some parameter documentations has been truncated, see {ModernTreasury::Event}
66
- # for more details.
65
+ # Some parameter documentations has been truncated, see
66
+ # {ModernTreasury::Models::Event} for more details.
67
67
  #
68
68
  # @param id [String]
69
69
  #
@@ -37,7 +37,7 @@ module ModernTreasury
37
37
  # @!attribute currency
38
38
  # Must conform to ISO 4217. Defaults to the currency of the internal account.
39
39
  #
40
- # @return [Symbol, ModernTreasury::Currency, nil]
40
+ # @return [Symbol, ModernTreasury::Models::Currency, nil]
41
41
  required :currency, enum: -> { ModernTreasury::Currency }, nil?: true
42
42
 
43
43
  # @!attribute date_lower_bound
@@ -62,7 +62,7 @@ module ModernTreasury
62
62
  # One of credit or debit. When you are receiving money, use credit. When you are
63
63
  # being charged, use debit.
64
64
  #
65
- # @return [Symbol, ModernTreasury::ExpectedPayment::Direction, nil]
65
+ # @return [Symbol, ModernTreasury::Models::ExpectedPayment::Direction, nil]
66
66
  required :direction, enum: -> { ModernTreasury::ExpectedPayment::Direction }, nil?: true
67
67
 
68
68
  # @!attribute internal_account_id
@@ -113,7 +113,7 @@ module ModernTreasury
113
113
  # automatic if it was automatically reconciled by Modern Treasury, or null if it
114
114
  # is unreconciled.
115
115
  #
116
- # @return [Symbol, ModernTreasury::ExpectedPayment::ReconciliationMethod, nil]
116
+ # @return [Symbol, ModernTreasury::Models::ExpectedPayment::ReconciliationMethod, nil]
117
117
  required :reconciliation_method,
118
118
  enum: -> { ModernTreasury::ExpectedPayment::ReconciliationMethod },
119
119
  nil?: true
@@ -121,7 +121,7 @@ module ModernTreasury
121
121
  # @!attribute reconciliation_rule_variables
122
122
  # An array of reconciliation rule variables for this payment.
123
123
  #
124
- # @return [Array<ModernTreasury::ReconciliationRule>, nil]
124
+ # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
125
125
  required :reconciliation_rule_variables,
126
126
  -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
127
127
  nil?: true
@@ -146,7 +146,7 @@ module ModernTreasury
146
146
  # @!attribute status
147
147
  # One of unreconciled, partially_reconciled, reconciled, or archived.
148
148
  #
149
- # @return [Symbol, ModernTreasury::ExpectedPayment::Status]
149
+ # @return [Symbol, ModernTreasury::Models::ExpectedPayment::Status]
150
150
  required :status, enum: -> { ModernTreasury::ExpectedPayment::Status }
151
151
 
152
152
  # @!attribute transaction_id
@@ -165,7 +165,7 @@ module ModernTreasury
165
165
  # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
166
166
  # sepa, signet, wire.
167
167
  #
168
- # @return [Symbol, ModernTreasury::ExpectedPaymentType, nil]
168
+ # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
169
169
  required :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
170
170
 
171
171
  # @!attribute updated_at
@@ -175,7 +175,7 @@ module ModernTreasury
175
175
 
176
176
  # @!method initialize(id:, amount_lower_bound:, amount_upper_bound:, counterparty_id:, created_at:, currency:, date_lower_bound:, date_upper_bound:, description:, direction:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, reconciliation_filters:, reconciliation_groups:, reconciliation_method:, reconciliation_rule_variables:, remittance_information:, statement_descriptor:, status:, transaction_id:, transaction_line_item_id:, type:, updated_at:)
177
177
  # Some parameter documentations has been truncated, see
178
- # {ModernTreasury::ExpectedPayment} for more details.
178
+ # {ModernTreasury::Models::ExpectedPayment} for more details.
179
179
  #
180
180
  # @param id [String]
181
181
  #
@@ -187,7 +187,7 @@ module ModernTreasury
187
187
  #
188
188
  # @param created_at [Time]
189
189
  #
190
- # @param currency [Symbol, ModernTreasury::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
190
+ # @param currency [Symbol, ModernTreasury::Models::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
191
191
  #
192
192
  # @param date_lower_bound [Date, nil] The earliest date the payment may come in. Format: yyyy-mm-dd
193
193
  #
@@ -195,7 +195,7 @@ module ModernTreasury
195
195
  #
196
196
  # @param description [String, nil] An optional description for internal use.
197
197
  #
198
- # @param direction [Symbol, ModernTreasury::ExpectedPayment::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
198
+ # @param direction [Symbol, ModernTreasury::Models::ExpectedPayment::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
199
199
  #
200
200
  # @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
201
201
  #
@@ -211,28 +211,28 @@ module ModernTreasury
211
211
  #
212
212
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
213
213
  #
214
- # @param reconciliation_method [Symbol, ModernTreasury::ExpectedPayment::ReconciliationMethod, nil] One of manual if this expected payment was manually reconciled in the dashboard,
214
+ # @param reconciliation_method [Symbol, ModernTreasury::Models::ExpectedPayment::ReconciliationMethod, nil] One of manual if this expected payment was manually reconciled in the dashboard,
215
215
  #
216
- # @param reconciliation_rule_variables [Array<ModernTreasury::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
216
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
217
217
  #
218
218
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
219
219
  #
220
220
  # @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
221
221
  #
222
- # @param status [Symbol, ModernTreasury::ExpectedPayment::Status] One of unreconciled, partially_reconciled, reconciled, or archived.
222
+ # @param status [Symbol, ModernTreasury::Models::ExpectedPayment::Status] One of unreconciled, partially_reconciled, reconciled, or archived.
223
223
  #
224
224
  # @param transaction_id [String, nil] The ID of the Transaction this expected payment object has been matched to.
225
225
  #
226
226
  # @param transaction_line_item_id [String, nil] The ID of the Transaction Line Item this expected payment has been matched to.
227
227
  #
228
- # @param type [Symbol, ModernTreasury::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
228
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
229
229
  #
230
230
  # @param updated_at [Time]
231
231
 
232
232
  # One of credit or debit. When you are receiving money, use credit. When you are
233
233
  # being charged, use debit.
234
234
  #
235
- # @see ModernTreasury::ExpectedPayment#direction
235
+ # @see ModernTreasury::Models::ExpectedPayment#direction
236
236
  module Direction
237
237
  extend ModernTreasury::Internal::Type::Enum
238
238
 
@@ -247,7 +247,7 @@ module ModernTreasury
247
247
  # automatic if it was automatically reconciled by Modern Treasury, or null if it
248
248
  # is unreconciled.
249
249
  #
250
- # @see ModernTreasury::ExpectedPayment#reconciliation_method
250
+ # @see ModernTreasury::Models::ExpectedPayment#reconciliation_method
251
251
  module ReconciliationMethod
252
252
  extend ModernTreasury::Internal::Type::Enum
253
253
 
@@ -260,7 +260,7 @@ module ModernTreasury
260
260
 
261
261
  # One of unreconciled, partially_reconciled, reconciled, or archived.
262
262
  #
263
- # @see ModernTreasury::ExpectedPayment#status
263
+ # @see ModernTreasury::Models::ExpectedPayment#status
264
264
  module Status
265
265
  extend ModernTreasury::Internal::Type::Enum
266
266
 
@@ -30,7 +30,7 @@ module ModernTreasury
30
30
  # @!attribute currency
31
31
  # Must conform to ISO 4217. Defaults to the currency of the internal account.
32
32
  #
33
- # @return [Symbol, ModernTreasury::Currency, nil]
33
+ # @return [Symbol, ModernTreasury::Models::Currency, nil]
34
34
  optional :currency, enum: -> { ModernTreasury::Currency }, nil?: true
35
35
 
36
36
  # @!attribute date_lower_bound
@@ -55,7 +55,7 @@ module ModernTreasury
55
55
  # One of credit or debit. When you are receiving money, use credit. When you are
56
56
  # being charged, use debit.
57
57
  #
58
- # @return [Symbol, ModernTreasury::ExpectedPaymentCreateParams::Direction, nil]
58
+ # @return [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::Direction, nil]
59
59
  optional :direction, enum: -> { ModernTreasury::ExpectedPaymentCreateParams::Direction }, nil?: true
60
60
 
61
61
  # @!attribute internal_account_id
@@ -70,7 +70,7 @@ module ModernTreasury
70
70
  # creation will fail. The resulting ledger transaction will mirror the status of
71
71
  # the expected payment.
72
72
  #
73
- # @return [ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction, nil]
73
+ # @return [ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction, nil]
74
74
  optional :ledger_transaction, -> { ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction }
75
75
 
76
76
  # @!attribute ledger_transaction_id
@@ -84,7 +84,7 @@ module ModernTreasury
84
84
 
85
85
  # @!attribute line_items
86
86
  #
87
- # @return [Array<ModernTreasury::ExpectedPaymentCreateParams::LineItem>, nil]
87
+ # @return [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LineItem>, nil]
88
88
  optional :line_items,
89
89
  -> {
90
90
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExpectedPaymentCreateParams::LineItem]
@@ -112,7 +112,7 @@ module ModernTreasury
112
112
  # @!attribute reconciliation_rule_variables
113
113
  # An array of reconciliation rule variables for this payment.
114
114
  #
115
- # @return [Array<ModernTreasury::ReconciliationRule>, nil]
115
+ # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
116
116
  optional :reconciliation_rule_variables,
117
117
  -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
118
118
  nil?: true
@@ -138,7 +138,7 @@ module ModernTreasury
138
138
  # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
139
139
  # sepa, signet, wire.
140
140
  #
141
- # @return [Symbol, ModernTreasury::ExpectedPaymentType, nil]
141
+ # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
142
142
  optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
143
143
 
144
144
  # @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, internal_account_id: nil, ledger_transaction: nil, ledger_transaction_id: nil, line_items: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, type: nil, request_options: {})
@@ -151,7 +151,7 @@ module ModernTreasury
151
151
  #
152
152
  # @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
153
153
  #
154
- # @param currency [Symbol, ModernTreasury::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
154
+ # @param currency [Symbol, ModernTreasury::Models::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
155
155
  #
156
156
  # @param date_lower_bound [Date, nil] The earliest date the payment may come in. Format: yyyy-mm-dd
157
157
  #
@@ -159,15 +159,15 @@ module ModernTreasury
159
159
  #
160
160
  # @param description [String, nil] An optional description for internal use.
161
161
  #
162
- # @param direction [Symbol, ModernTreasury::ExpectedPaymentCreateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
162
+ # @param direction [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
163
163
  #
164
164
  # @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
165
165
  #
166
- # @param ledger_transaction [ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the expected pay
166
+ # @param ledger_transaction [ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction] Specifies a ledger transaction object that will be created with the expected pay
167
167
  #
168
168
  # @param ledger_transaction_id [String] Either ledger_transaction or ledger_transaction_id can be provided. Only a pendi
169
169
  #
170
- # @param line_items [Array<ModernTreasury::ExpectedPaymentCreateParams::LineItem>]
170
+ # @param line_items [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LineItem>]
171
171
  #
172
172
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
173
173
  #
@@ -175,13 +175,13 @@ module ModernTreasury
175
175
  #
176
176
  # @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
177
177
  #
178
- # @param reconciliation_rule_variables [Array<ModernTreasury::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
178
+ # @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
179
179
  #
180
180
  # @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
181
181
  #
182
182
  # @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
183
183
  #
184
- # @param type [Symbol, ModernTreasury::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
184
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
185
185
  #
186
186
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
187
187
 
@@ -201,7 +201,7 @@ module ModernTreasury
201
201
  # @!attribute ledger_entries
202
202
  # An array of ledger entry objects.
203
203
  #
204
- # @return [Array<ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry>]
204
+ # @return [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry>]
205
205
  required :ledger_entries,
206
206
  -> {
207
207
  ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry]
@@ -247,7 +247,7 @@ module ModernTreasury
247
247
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
248
248
  # reversal.
249
249
  #
250
- # @return [Symbol, ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType, nil]
250
+ # @return [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType, nil]
251
251
  optional :ledgerable_type,
252
252
  enum: -> { ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType }
253
253
 
@@ -261,20 +261,20 @@ module ModernTreasury
261
261
  # @!attribute status
262
262
  # To post a ledger transaction at creation, use `posted`.
263
263
  #
264
- # @return [Symbol, ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::Status, nil]
264
+ # @return [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::Status, nil]
265
265
  optional :status, enum: -> { ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::Status }
266
266
 
267
267
  # @!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)
268
268
  # Some parameter documentations has been truncated, see
269
- # {ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction} for more
270
- # details.
269
+ # {ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction} for
270
+ # more details.
271
271
  #
272
272
  # Specifies a ledger transaction object that will be created with the expected
273
273
  # payment. If the ledger transaction cannot be created, then the expected payment
274
274
  # creation will fail. The resulting ledger transaction will mirror the status of
275
275
  # the expected payment.
276
276
  #
277
- # @param ledger_entries [Array<ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
277
+ # @param ledger_entries [Array<ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry>] An array of ledger entry objects.
278
278
  #
279
279
  # @param description [String, nil] An optional description for internal use.
280
280
  #
@@ -286,11 +286,11 @@ module ModernTreasury
286
286
  #
287
287
  # @param ledgerable_id [String] If the ledger transaction can be reconciled to another object in Modern Treasury
288
288
  #
289
- # @param ledgerable_type [Symbol, ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
289
+ # @param ledgerable_type [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerableType] If the ledger transaction can be reconciled to another object in Modern Treasury
290
290
  #
291
291
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
292
292
  #
293
- # @param status [Symbol, ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
293
+ # @param status [Symbol, ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::Status] To post a ledger transaction at creation, use `posted`.
294
294
 
295
295
  class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
296
296
  # @!attribute amount
@@ -306,7 +306,7 @@ module ModernTreasury
306
306
  # `debit` pulls money from someone else's account to your own. Note that wire,
307
307
  # rtp, and check payments will always be `credit`.
308
308
  #
309
- # @return [Symbol, ModernTreasury::TransactionDirection]
309
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
310
310
  required :direction, enum: -> { ModernTreasury::TransactionDirection }
311
311
 
312
312
  # @!attribute ledger_account_id
@@ -366,12 +366,12 @@ module ModernTreasury
366
366
 
367
367
  # @!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)
368
368
  # Some parameter documentations has been truncated, see
369
- # {ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry}
369
+ # {ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction::LedgerEntry}
370
370
  # for more details.
371
371
  #
372
372
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
373
373
  #
374
- # @param direction [Symbol, ModernTreasury::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
374
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit`, `debit`. Describes the direction money is flowing in the transa
375
375
  #
376
376
  # @param ledger_account_id [String] The ledger account that this ledger entry is associated with.
377
377
  #
@@ -393,7 +393,7 @@ module ModernTreasury
393
393
  # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
394
394
  # reversal.
395
395
  #
396
- # @see ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction#ledgerable_type
396
+ # @see ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction#ledgerable_type
397
397
  module LedgerableType
398
398
  extend ModernTreasury::Internal::Type::Enum
399
399
 
@@ -410,7 +410,7 @@ module ModernTreasury
410
410
 
411
411
  # To post a ledger transaction at creation, use `posted`.
412
412
  #
413
- # @see ModernTreasury::ExpectedPaymentCreateParams::LedgerTransaction#status
413
+ # @see ModernTreasury::Models::ExpectedPaymentCreateParams::LedgerTransaction#status
414
414
  module Status
415
415
  extend ModernTreasury::Internal::Type::Enum
416
416
 
@@ -453,7 +453,8 @@ module ModernTreasury
453
453
 
454
454
  # @!method initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
455
455
  # Some parameter documentations has been truncated, see
456
- # {ModernTreasury::ExpectedPaymentCreateParams::LineItem} for more details.
456
+ # {ModernTreasury::Models::ExpectedPaymentCreateParams::LineItem} for more
457
+ # details.
457
458
  #
458
459
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
459
460
  #
@@ -33,7 +33,7 @@ module ModernTreasury
33
33
  # @!attribute direction
34
34
  # One of credit, debit
35
35
  #
36
- # @return [Symbol, ModernTreasury::TransactionDirection, nil]
36
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection, nil]
37
37
  optional :direction, enum: -> { ModernTreasury::TransactionDirection }
38
38
 
39
39
  # @!attribute internal_account_id
@@ -58,17 +58,29 @@ module ModernTreasury
58
58
  # @!attribute status
59
59
  # One of unreconciled, reconciled, or archived.
60
60
  #
61
- # @return [Symbol, ModernTreasury::ExpectedPaymentListParams::Status, nil]
61
+ # @return [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Status, nil]
62
62
  optional :status, enum: -> { ModernTreasury::ExpectedPaymentListParams::Status }
63
63
 
64
64
  # @!attribute type
65
65
  # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen,
66
66
  # sepa, signet, wire
67
67
  #
68
- # @return [Symbol, ModernTreasury::ExpectedPaymentListParams::Type, nil]
68
+ # @return [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type, nil]
69
69
  optional :type, enum: -> { ModernTreasury::ExpectedPaymentListParams::Type }
70
70
 
71
- # @!method initialize(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, request_options: {})
71
+ # @!attribute updated_at_lower_bound
72
+ # Used to return expected payments updated after some datetime
73
+ #
74
+ # @return [Time, nil]
75
+ optional :updated_at_lower_bound, Time
76
+
77
+ # @!attribute updated_at_upper_bound
78
+ # Used to return expected payments updated before some datetime
79
+ #
80
+ # @return [Time, nil]
81
+ optional :updated_at_upper_bound, Time
82
+
83
+ # @!method initialize(after_cursor: nil, counterparty_id: nil, created_at_lower_bound: nil, created_at_upper_bound: nil, direction: nil, internal_account_id: nil, metadata: nil, per_page: nil, status: nil, type: nil, updated_at_lower_bound: nil, updated_at_upper_bound: nil, request_options: {})
72
84
  # Some parameter documentations has been truncated, see
73
85
  # {ModernTreasury::Models::ExpectedPaymentListParams} for more details.
74
86
  #
@@ -80,7 +92,7 @@ module ModernTreasury
80
92
  #
81
93
  # @param created_at_upper_bound [Time] Used to return expected payments created before some datetime
82
94
  #
83
- # @param direction [Symbol, ModernTreasury::TransactionDirection] One of credit, debit
95
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of credit, debit
84
96
  #
85
97
  # @param internal_account_id [String] Specify internal_account_id to see expected_payments for a specific account.
86
98
  #
@@ -88,9 +100,13 @@ module ModernTreasury
88
100
  #
89
101
  # @param per_page [Integer]
90
102
  #
91
- # @param status [Symbol, ModernTreasury::ExpectedPaymentListParams::Status] One of unreconciled, reconciled, or archived.
103
+ # @param status [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Status] One of unreconciled, reconciled, or archived.
104
+ #
105
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, sep
106
+ #
107
+ # @param updated_at_lower_bound [Time] Used to return expected payments updated after some datetime
92
108
  #
93
- # @param type [Symbol, ModernTreasury::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, sep
109
+ # @param updated_at_upper_bound [Time] Used to return expected payments updated before some datetime
94
110
  #
95
111
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
96
112
 
@@ -115,6 +131,7 @@ module ModernTreasury
115
131
  ACH = :ach
116
132
  AU_BECS = :au_becs
117
133
  BACS = :bacs
134
+ BASE = :base
118
135
  BOOK = :book
119
136
  CARD = :card
120
137
  CHATS = :chats
@@ -122,6 +139,7 @@ module ModernTreasury
122
139
  CROSS_BORDER = :cross_border
123
140
  DK_NETS = :dk_nets
124
141
  EFT = :eft
142
+ ETHEREUM = :ethereum
125
143
  HU_ICS = :hu_ics
126
144
  INTERAC = :interac
127
145
  MASAV = :masav
@@ -130,6 +148,7 @@ module ModernTreasury
130
148
  NICS = :nics
131
149
  NZ_BECS = :nz_becs
132
150
  PL_ELIXIR = :pl_elixir
151
+ POLYGON = :polygon
133
152
  PROVXCHANGE = :provxchange
134
153
  RO_SENT = :ro_sent
135
154
  RTP = :rtp
@@ -140,6 +159,7 @@ module ModernTreasury
140
159
  SIC = :sic
141
160
  SIGNET = :signet
142
161
  SKNBI = :sknbi
162
+ SOLANA = :solana
143
163
  WIRE = :wire
144
164
  ZENGIN = :zengin
145
165