modern_treasury 0.0.0 → 0.1.0.pre.alpha.16

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 (827) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +168 -0
  3. data/lib/modern_treasury/base_client.rb +457 -0
  4. data/lib/modern_treasury/base_model.rb +1211 -0
  5. data/lib/modern_treasury/base_page.rb +59 -0
  6. data/lib/modern_treasury/client.rb +250 -0
  7. data/lib/modern_treasury/errors.rb +183 -0
  8. data/lib/modern_treasury/extern.rb +7 -0
  9. data/lib/modern_treasury/models/account_collection_flow.rb +199 -0
  10. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +72 -0
  11. data/lib/modern_treasury/models/account_collection_flow_list_params.rb +85 -0
  12. data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +18 -0
  13. data/lib/modern_treasury/models/account_collection_flow_update_params.rb +40 -0
  14. data/lib/modern_treasury/models/account_detail.rb +113 -0
  15. data/lib/modern_treasury/models/account_detail_create_params.rb +79 -0
  16. data/lib/modern_treasury/models/account_detail_delete_params.rb +42 -0
  17. data/lib/modern_treasury/models/account_detail_list_params.rb +40 -0
  18. data/lib/modern_treasury/models/account_detail_retrieve_params.rb +30 -0
  19. data/lib/modern_treasury/models/accounts_type.rb +18 -0
  20. data/lib/modern_treasury/models/async_response.rb +25 -0
  21. data/lib/modern_treasury/models/bank_settings.rb +97 -0
  22. data/lib/modern_treasury/models/bulk_request.rb +159 -0
  23. data/lib/modern_treasury/models/bulk_request_create_params.rb +4128 -0
  24. data/lib/modern_treasury/models/bulk_request_list_params.rb +137 -0
  25. data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +18 -0
  26. data/lib/modern_treasury/models/bulk_result.rb +272 -0
  27. data/lib/modern_treasury/models/bulk_result_list_params.rb +151 -0
  28. data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +18 -0
  29. data/lib/modern_treasury/models/client_ping_params.rb +18 -0
  30. data/lib/modern_treasury/models/connection.rb +85 -0
  31. data/lib/modern_treasury/models/connection_legal_entity.rb +109 -0
  32. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +1024 -0
  33. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +89 -0
  34. data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +18 -0
  35. data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +42 -0
  36. data/lib/modern_treasury/models/connection_list_params.rb +56 -0
  37. data/lib/modern_treasury/models/counterparty.rb +561 -0
  38. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +110 -0
  39. data/lib/modern_treasury/models/counterparty_collect_account_response.rb +38 -0
  40. data/lib/modern_treasury/models/counterparty_create_params.rb +1737 -0
  41. data/lib/modern_treasury/models/counterparty_delete_params.rb +18 -0
  42. data/lib/modern_treasury/models/counterparty_list_params.rb +117 -0
  43. data/lib/modern_treasury/models/counterparty_retrieve_params.rb +18 -0
  44. data/lib/modern_treasury/models/counterparty_update_params.rb +93 -0
  45. data/lib/modern_treasury/models/currency.rb +206 -0
  46. data/lib/modern_treasury/models/document.rb +247 -0
  47. data/lib/modern_treasury/models/document_create_params.rb +71 -0
  48. data/lib/modern_treasury/models/document_list_params.rb +84 -0
  49. data/lib/modern_treasury/models/document_retrieve_params.rb +18 -0
  50. data/lib/modern_treasury/models/event.rb +94 -0
  51. data/lib/modern_treasury/models/event_list_params.rb +98 -0
  52. data/lib/modern_treasury/models/event_retrieve_params.rb +18 -0
  53. data/lib/modern_treasury/models/expected_payment.rb +285 -0
  54. data/lib/modern_treasury/models/expected_payment_create_params.rb +537 -0
  55. data/lib/modern_treasury/models/expected_payment_delete_params.rb +18 -0
  56. data/lib/modern_treasury/models/expected_payment_list_params.rb +199 -0
  57. data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +18 -0
  58. data/lib/modern_treasury/models/expected_payment_type.rb +48 -0
  59. data/lib/modern_treasury/models/expected_payment_update_params.rb +207 -0
  60. data/lib/modern_treasury/models/external_account.rb +389 -0
  61. data/lib/modern_treasury/models/external_account_complete_verification_params.rb +28 -0
  62. data/lib/modern_treasury/models/external_account_create_params.rb +570 -0
  63. data/lib/modern_treasury/models/external_account_delete_params.rb +18 -0
  64. data/lib/modern_treasury/models/external_account_list_params.rb +78 -0
  65. data/lib/modern_treasury/models/external_account_retrieve_params.rb +18 -0
  66. data/lib/modern_treasury/models/external_account_type.rb +25 -0
  67. data/lib/modern_treasury/models/external_account_update_params.rb +159 -0
  68. data/lib/modern_treasury/models/external_account_verify_params.rb +151 -0
  69. data/lib/modern_treasury/models/external_account_verify_response.rb +186 -0
  70. data/lib/modern_treasury/models/foreign_exchange_quote.rb +180 -0
  71. data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +89 -0
  72. data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +127 -0
  73. data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +18 -0
  74. data/lib/modern_treasury/models/incoming_payment_detail.rb +320 -0
  75. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +141 -0
  76. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +170 -0
  77. data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +18 -0
  78. data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +30 -0
  79. data/lib/modern_treasury/models/internal_account.rb +299 -0
  80. data/lib/modern_treasury/models/internal_account_create_params.rb +186 -0
  81. data/lib/modern_treasury/models/internal_account_list_params.rb +157 -0
  82. data/lib/modern_treasury/models/internal_account_retrieve_params.rb +18 -0
  83. data/lib/modern_treasury/models/internal_account_update_params.rb +84 -0
  84. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +260 -0
  85. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +135 -0
  86. data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +26 -0
  87. data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +77 -0
  88. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +26 -0
  89. data/lib/modern_treasury/models/invoice.rb +624 -0
  90. data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +24 -0
  91. data/lib/modern_treasury/models/invoice_create_params.rb +649 -0
  92. data/lib/modern_treasury/models/invoice_list_params.rb +163 -0
  93. data/lib/modern_treasury/models/invoice_retrieve_params.rb +18 -0
  94. data/lib/modern_treasury/models/invoice_update_params.rb +665 -0
  95. data/lib/modern_treasury/models/invoices/invoice_line_item.rb +130 -0
  96. data/lib/modern_treasury/models/invoices/line_item_create_params.rb +108 -0
  97. data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +26 -0
  98. data/lib/modern_treasury/models/invoices/line_item_list_params.rb +36 -0
  99. data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +26 -0
  100. data/lib/modern_treasury/models/invoices/line_item_update_params.rb +123 -0
  101. data/lib/modern_treasury/models/ledger.rb +73 -0
  102. data/lib/modern_treasury/models/ledger_account.rb +351 -0
  103. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +337 -0
  104. data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +92 -0
  105. data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +18 -0
  106. data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +70 -0
  107. data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +18 -0
  108. data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +41 -0
  109. data/lib/modern_treasury/models/ledger_account_category.rb +282 -0
  110. data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +24 -0
  111. data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +24 -0
  112. data/lib/modern_treasury/models/ledger_account_category_create_params.rb +97 -0
  113. data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +18 -0
  114. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +162 -0
  115. data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +24 -0
  116. data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +24 -0
  117. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +63 -0
  118. data/lib/modern_treasury/models/ledger_account_category_update_params.rb +48 -0
  119. data/lib/modern_treasury/models/ledger_account_create_params.rb +142 -0
  120. data/lib/modern_treasury/models/ledger_account_delete_params.rb +18 -0
  121. data/lib/modern_treasury/models/ledger_account_list_params.rb +467 -0
  122. data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +108 -0
  123. data/lib/modern_treasury/models/ledger_account_settlement.rb +175 -0
  124. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +117 -0
  125. data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +140 -0
  126. data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +18 -0
  127. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +64 -0
  128. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +28 -0
  129. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +28 -0
  130. data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +71 -0
  131. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +488 -0
  132. data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +18 -0
  133. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +488 -0
  134. data/lib/modern_treasury/models/ledger_account_update_params.rb +48 -0
  135. data/lib/modern_treasury/models/ledger_create_params.rb +44 -0
  136. data/lib/modern_treasury/models/ledger_delete_params.rb +18 -0
  137. data/lib/modern_treasury/models/ledger_entry.rb +346 -0
  138. data/lib/modern_treasury/models/ledger_entry_list_params.rb +347 -0
  139. data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +30 -0
  140. data/lib/modern_treasury/models/ledger_entry_update_params.rb +30 -0
  141. data/lib/modern_treasury/models/ledger_event_handler.rb +218 -0
  142. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +185 -0
  143. data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +18 -0
  144. data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +70 -0
  145. data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +18 -0
  146. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +58 -0
  147. data/lib/modern_treasury/models/ledger_list_params.rb +72 -0
  148. data/lib/modern_treasury/models/ledger_retrieve_params.rb +18 -0
  149. data/lib/modern_treasury/models/ledger_transaction.rb +213 -0
  150. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +272 -0
  151. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +127 -0
  152. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +146 -0
  153. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +339 -0
  154. data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +18 -0
  155. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +250 -0
  156. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +555 -0
  157. data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +96 -0
  158. data/lib/modern_treasury/models/ledger_update_params.rb +48 -0
  159. data/lib/modern_treasury/models/ledgerable_event.rb +96 -0
  160. data/lib/modern_treasury/models/ledgerable_event_create_params.rb +51 -0
  161. data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +18 -0
  162. data/lib/modern_treasury/models/legal_entity.rb +544 -0
  163. data/lib/modern_treasury/models/legal_entity_association.rb +655 -0
  164. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +531 -0
  165. data/lib/modern_treasury/models/legal_entity_create_params.rb +964 -0
  166. data/lib/modern_treasury/models/legal_entity_list_params.rb +90 -0
  167. data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +18 -0
  168. data/lib/modern_treasury/models/legal_entity_update_params.rb +417 -0
  169. data/lib/modern_treasury/models/line_item.rb +161 -0
  170. data/lib/modern_treasury/models/line_item_list_params.rb +53 -0
  171. data/lib/modern_treasury/models/line_item_retrieve_params.rb +43 -0
  172. data/lib/modern_treasury/models/line_item_update_params.rb +55 -0
  173. data/lib/modern_treasury/models/paper_item.rb +175 -0
  174. data/lib/modern_treasury/models/paper_item_list_params.rb +78 -0
  175. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +18 -0
  176. data/lib/modern_treasury/models/payment_flow.rb +293 -0
  177. data/lib/modern_treasury/models/payment_flow_create_params.rb +95 -0
  178. data/lib/modern_treasury/models/payment_flow_list_params.rb +107 -0
  179. data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +18 -0
  180. data/lib/modern_treasury/models/payment_flow_update_params.rb +40 -0
  181. data/lib/modern_treasury/models/payment_order.rb +824 -0
  182. data/lib/modern_treasury/models/payment_order_create_async_params.rb +1387 -0
  183. data/lib/modern_treasury/models/payment_order_create_params.rb +1460 -0
  184. data/lib/modern_treasury/models/payment_order_list_params.rb +299 -0
  185. data/lib/modern_treasury/models/payment_order_retrieve_params.rb +18 -0
  186. data/lib/modern_treasury/models/payment_order_subtype.rb +49 -0
  187. data/lib/modern_treasury/models/payment_order_type.rb +49 -0
  188. data/lib/modern_treasury/models/payment_order_update_params.rb +1146 -0
  189. data/lib/modern_treasury/models/payment_orders/reversal.rb +139 -0
  190. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +340 -0
  191. data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +36 -0
  192. data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +26 -0
  193. data/lib/modern_treasury/models/payment_reference.rb +189 -0
  194. data/lib/modern_treasury/models/payment_reference_list_params.rb +96 -0
  195. data/lib/modern_treasury/models/payment_reference_retireve_params.rb +18 -0
  196. data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +18 -0
  197. data/lib/modern_treasury/models/ping_response.rb +19 -0
  198. data/lib/modern_treasury/models/reconciliation_rule.rb +163 -0
  199. data/lib/modern_treasury/models/return_create_params.rb +154 -0
  200. data/lib/modern_treasury/models/return_list_params.rb +110 -0
  201. data/lib/modern_treasury/models/return_object.rb +485 -0
  202. data/lib/modern_treasury/models/return_retrieve_params.rb +18 -0
  203. data/lib/modern_treasury/models/routing_detail.rb +276 -0
  204. data/lib/modern_treasury/models/routing_detail_create_params.rb +141 -0
  205. data/lib/modern_treasury/models/routing_detail_delete_params.rb +42 -0
  206. data/lib/modern_treasury/models/routing_detail_list_params.rb +40 -0
  207. data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +30 -0
  208. data/lib/modern_treasury/models/routing_number_lookup_request.rb +211 -0
  209. data/lib/modern_treasury/models/transaction.rb +383 -0
  210. data/lib/modern_treasury/models/transaction_create_params.rb +163 -0
  211. data/lib/modern_treasury/models/transaction_delete_params.rb +18 -0
  212. data/lib/modern_treasury/models/transaction_direction.rb +18 -0
  213. data/lib/modern_treasury/models/transaction_list_params.rb +186 -0
  214. data/lib/modern_treasury/models/transaction_retrieve_params.rb +18 -0
  215. data/lib/modern_treasury/models/transaction_update_params.rb +30 -0
  216. data/lib/modern_treasury/models/transactions/line_item_create_params.rb +42 -0
  217. data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +20 -0
  218. data/lib/modern_treasury/models/transactions/line_item_list_params.rb +75 -0
  219. data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +20 -0
  220. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +182 -0
  221. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +72 -0
  222. data/lib/modern_treasury/models/virtual_account.rb +148 -0
  223. data/lib/modern_treasury/models/virtual_account_create_params.rb +444 -0
  224. data/lib/modern_treasury/models/virtual_account_delete_params.rb +18 -0
  225. data/lib/modern_treasury/models/virtual_account_list_params.rb +77 -0
  226. data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +18 -0
  227. data/lib/modern_treasury/models/virtual_account_update_params.rb +55 -0
  228. data/lib/modern_treasury/models/wealth_and_employment_details.rb +324 -0
  229. data/lib/modern_treasury/page.rb +92 -0
  230. data/lib/modern_treasury/pooled_net_requester.rb +180 -0
  231. data/lib/modern_treasury/request_options.rb +108 -0
  232. data/lib/modern_treasury/resources/account_collection_flows.rb +108 -0
  233. data/lib/modern_treasury/resources/account_details.rb +136 -0
  234. data/lib/modern_treasury/resources/bulk_requests.rb +91 -0
  235. data/lib/modern_treasury/resources/bulk_results.rb +66 -0
  236. data/lib/modern_treasury/resources/connection_legal_entities.rb +105 -0
  237. data/lib/modern_treasury/resources/connections.rb +39 -0
  238. data/lib/modern_treasury/resources/counterparties.rb +203 -0
  239. data/lib/modern_treasury/resources/documents.rb +86 -0
  240. data/lib/modern_treasury/resources/events.rb +63 -0
  241. data/lib/modern_treasury/resources/expected_payments.rb +227 -0
  242. data/lib/modern_treasury/resources/external_accounts.rb +222 -0
  243. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +101 -0
  244. data/lib/modern_treasury/resources/incoming_payment_details.rb +133 -0
  245. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +128 -0
  246. data/lib/modern_treasury/resources/internal_accounts.rb +140 -0
  247. data/lib/modern_treasury/resources/invoices/line_items.rb +177 -0
  248. data/lib/modern_treasury/resources/invoices.rb +286 -0
  249. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +132 -0
  250. data/lib/modern_treasury/resources/ledger_account_categories.rb +266 -0
  251. data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +62 -0
  252. data/lib/modern_treasury/resources/ledger_account_settlements.rb +152 -0
  253. data/lib/modern_treasury/resources/ledger_account_statements.rb +62 -0
  254. data/lib/modern_treasury/resources/ledger_accounts.rb +189 -0
  255. data/lib/modern_treasury/resources/ledger_entries.rb +137 -0
  256. data/lib/modern_treasury/resources/ledger_event_handlers.rb +114 -0
  257. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +50 -0
  258. data/lib/modern_treasury/resources/ledger_transactions.rb +262 -0
  259. data/lib/modern_treasury/resources/ledgerable_events.rb +57 -0
  260. data/lib/modern_treasury/resources/ledgers.rb +134 -0
  261. data/lib/modern_treasury/resources/legal_entities.rb +193 -0
  262. data/lib/modern_treasury/resources/legal_entity_associations.rb +43 -0
  263. data/lib/modern_treasury/resources/line_items.rb +109 -0
  264. data/lib/modern_treasury/resources/paper_items.rb +60 -0
  265. data/lib/modern_treasury/resources/payment_flows.rb +123 -0
  266. data/lib/modern_treasury/resources/payment_orders/reversals.rb +95 -0
  267. data/lib/modern_treasury/resources/payment_orders.rb +517 -0
  268. data/lib/modern_treasury/resources/payment_references.rb +66 -0
  269. data/lib/modern_treasury/resources/returns.rb +98 -0
  270. data/lib/modern_treasury/resources/routing_details.rb +140 -0
  271. data/lib/modern_treasury/resources/transactions/line_items.rb +104 -0
  272. data/lib/modern_treasury/resources/transactions.rb +174 -0
  273. data/lib/modern_treasury/resources/validations.rb +38 -0
  274. data/lib/modern_treasury/resources/virtual_accounts.rb +152 -0
  275. data/lib/modern_treasury/util.rb +728 -0
  276. data/lib/modern_treasury/version.rb +5 -0
  277. data/lib/modern_treasury.rb +310 -0
  278. data/manifest.yaml +14 -0
  279. data/rbi/lib/modern_treasury/base_client.rbi +197 -0
  280. data/rbi/lib/modern_treasury/base_model.rbi +645 -0
  281. data/rbi/lib/modern_treasury/base_page.rbi +36 -0
  282. data/rbi/lib/modern_treasury/client.rbi +174 -0
  283. data/rbi/lib/modern_treasury/errors.rbi +144 -0
  284. data/rbi/lib/modern_treasury/extern.rbi +7 -0
  285. data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +203 -0
  286. data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +114 -0
  287. data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +83 -0
  288. data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +21 -0
  289. data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +57 -0
  290. data/rbi/lib/modern_treasury/models/account_detail.rbi +115 -0
  291. data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +107 -0
  292. data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +56 -0
  293. data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +48 -0
  294. data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +40 -0
  295. data/rbi/lib/modern_treasury/models/accounts_type.rbi +19 -0
  296. data/rbi/lib/modern_treasury/models/async_response.rbi +21 -0
  297. data/rbi/lib/modern_treasury/models/bank_settings.rbi +96 -0
  298. data/rbi/lib/modern_treasury/models/bulk_request.rbi +162 -0
  299. data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +6311 -0
  300. data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +146 -0
  301. data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +21 -0
  302. data/rbi/lib/modern_treasury/models/bulk_result.rbi +286 -0
  303. data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +157 -0
  304. data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +21 -0
  305. data/rbi/lib/modern_treasury/models/client_ping_params.rbi +21 -0
  306. data/rbi/lib/modern_treasury/models/connection.rbi +85 -0
  307. data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +110 -0
  308. data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1752 -0
  309. data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +94 -0
  310. data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +21 -0
  311. data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +58 -0
  312. data/rbi/lib/modern_treasury/models/connection_list_params.rbi +61 -0
  313. data/rbi/lib/modern_treasury/models/counterparty.rbi +607 -0
  314. data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +161 -0
  315. data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +31 -0
  316. data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +2867 -0
  317. data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +21 -0
  318. data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +111 -0
  319. data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +21 -0
  320. data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +91 -0
  321. data/rbi/lib/modern_treasury/models/currency.rbi +207 -0
  322. data/rbi/lib/modern_treasury/models/document.rbi +243 -0
  323. data/rbi/lib/modern_treasury/models/document_create_params.rbi +95 -0
  324. data/rbi/lib/modern_treasury/models/document_list_params.rbi +105 -0
  325. data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +21 -0
  326. data/rbi/lib/modern_treasury/models/event.rbi +82 -0
  327. data/rbi/lib/modern_treasury/models/event_list_params.rbi +94 -0
  328. data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +21 -0
  329. data/rbi/lib/modern_treasury/models/expected_payment.rbi +272 -0
  330. data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +616 -0
  331. data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +21 -0
  332. data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +197 -0
  333. data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +21 -0
  334. data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +49 -0
  335. data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +201 -0
  336. data/rbi/lib/modern_treasury/models/external_account.rbi +410 -0
  337. data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +30 -0
  338. data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +959 -0
  339. data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +21 -0
  340. data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +78 -0
  341. data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +21 -0
  342. data/rbi/lib/modern_treasury/models/external_account_type.rbi +26 -0
  343. data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +170 -0
  344. data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +167 -0
  345. data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +395 -0
  346. data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +188 -0
  347. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +88 -0
  348. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +119 -0
  349. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +21 -0
  350. data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +427 -0
  351. data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +153 -0
  352. data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +170 -0
  353. data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +21 -0
  354. data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +34 -0
  355. data/rbi/lib/modern_treasury/models/internal_account.rbi +302 -0
  356. data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +193 -0
  357. data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +158 -0
  358. data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +21 -0
  359. data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +83 -0
  360. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +311 -0
  361. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +235 -0
  362. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +31 -0
  363. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +119 -0
  364. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +31 -0
  365. data/rbi/lib/modern_treasury/models/invoice.rbi +648 -0
  366. data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +30 -0
  367. data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +707 -0
  368. data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +154 -0
  369. data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +21 -0
  370. data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +719 -0
  371. data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +126 -0
  372. data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +105 -0
  373. data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +29 -0
  374. data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +45 -0
  375. data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +29 -0
  376. data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +117 -0
  377. data/rbi/lib/modern_treasury/models/ledger.rbi +76 -0
  378. data/rbi/lib/modern_treasury/models/ledger_account.rbi +401 -0
  379. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +447 -0
  380. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +103 -0
  381. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +21 -0
  382. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +73 -0
  383. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +21 -0
  384. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +49 -0
  385. data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +354 -0
  386. data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +30 -0
  387. data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +30 -0
  388. data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +96 -0
  389. data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +21 -0
  390. data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +154 -0
  391. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +30 -0
  392. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +30 -0
  393. data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +77 -0
  394. data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +55 -0
  395. data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +146 -0
  396. data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +21 -0
  397. data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +454 -0
  398. data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +121 -0
  399. data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +169 -0
  400. data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +123 -0
  401. data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +130 -0
  402. data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +21 -0
  403. data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +79 -0
  404. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +39 -0
  405. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +37 -0
  406. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +74 -0
  407. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +638 -0
  408. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +21 -0
  409. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +638 -0
  410. data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +55 -0
  411. data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +52 -0
  412. data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +21 -0
  413. data/rbi/lib/modern_treasury/models/ledger_entry.rbi +415 -0
  414. data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +342 -0
  415. data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +32 -0
  416. data/rbi/lib/modern_treasury/models/ledger_entry_update_params.rbi +34 -0
  417. data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +231 -0
  418. data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +210 -0
  419. data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +21 -0
  420. data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +73 -0
  421. data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +21 -0
  422. data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +59 -0
  423. data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +75 -0
  424. data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +21 -0
  425. data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +208 -0
  426. data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +286 -0
  427. data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +171 -0
  428. data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +191 -0
  429. data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +360 -0
  430. data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +21 -0
  431. data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +272 -0
  432. data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +731 -0
  433. data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +94 -0
  434. data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +55 -0
  435. data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +94 -0
  436. data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +58 -0
  437. data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +21 -0
  438. data/rbi/lib/modern_treasury/models/legal_entity.rbi +543 -0
  439. data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +879 -0
  440. data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +892 -0
  441. data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +1421 -0
  442. data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +94 -0
  443. data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +21 -0
  444. data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +487 -0
  445. data/rbi/lib/modern_treasury/models/line_item.rbi +158 -0
  446. data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +65 -0
  447. data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +58 -0
  448. data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +68 -0
  449. data/rbi/lib/modern_treasury/models/paper_item.rbi +167 -0
  450. data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +78 -0
  451. data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +21 -0
  452. data/rbi/lib/modern_treasury/models/payment_flow.rbi +285 -0
  453. data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +99 -0
  454. data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +101 -0
  455. data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +21 -0
  456. data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +53 -0
  457. data/rbi/lib/modern_treasury/models/payment_order.rbi +1115 -0
  458. data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +2008 -0
  459. data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +2083 -0
  460. data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +282 -0
  461. data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +21 -0
  462. data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +50 -0
  463. data/rbi/lib/modern_treasury/models/payment_order_type.rbi +50 -0
  464. data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1651 -0
  465. data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +145 -0
  466. data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +465 -0
  467. data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +45 -0
  468. data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +29 -0
  469. data/rbi/lib/modern_treasury/models/payment_reference.rbi +371 -0
  470. data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +109 -0
  471. data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +21 -0
  472. data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +21 -0
  473. data/rbi/lib/modern_treasury/models/ping_response.rbi +18 -0
  474. data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +164 -0
  475. data/rbi/lib/modern_treasury/models/return_create_params.rbi +161 -0
  476. data/rbi/lib/modern_treasury/models/return_list_params.rbi +112 -0
  477. data/rbi/lib/modern_treasury/models/return_object.rbi +769 -0
  478. data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +21 -0
  479. data/rbi/lib/modern_treasury/models/routing_detail.rbi +297 -0
  480. data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +207 -0
  481. data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +56 -0
  482. data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +48 -0
  483. data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +40 -0
  484. data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +291 -0
  485. data/rbi/lib/modern_treasury/models/transaction.rbi +380 -0
  486. data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +162 -0
  487. data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +21 -0
  488. data/rbi/lib/modern_treasury/models/transaction_direction.rbi +19 -0
  489. data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +168 -0
  490. data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +21 -0
  491. data/rbi/lib/modern_treasury/models/transaction_update_params.rbi +34 -0
  492. data/rbi/lib/modern_treasury/models/transactions/line_item_create_params.rbi +51 -0
  493. data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +23 -0
  494. data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +84 -0
  495. data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +23 -0
  496. data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +212 -0
  497. data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +178 -0
  498. data/rbi/lib/modern_treasury/models/virtual_account.rbi +141 -0
  499. data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +753 -0
  500. data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +21 -0
  501. data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +77 -0
  502. data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +21 -0
  503. data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +60 -0
  504. data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +410 -0
  505. data/rbi/lib/modern_treasury/page.rbi +31 -0
  506. data/rbi/lib/modern_treasury/pooled_net_requester.rbi +62 -0
  507. data/rbi/lib/modern_treasury/request_options.rbi +63 -0
  508. data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +88 -0
  509. data/rbi/lib/modern_treasury/resources/account_details.rbi +100 -0
  510. data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +95 -0
  511. data/rbi/lib/modern_treasury/resources/bulk_results.rbi +60 -0
  512. data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +90 -0
  513. data/rbi/lib/modern_treasury/resources/connections.rbi +33 -0
  514. data/rbi/lib/modern_treasury/resources/counterparties.rbi +198 -0
  515. data/rbi/lib/modern_treasury/resources/documents.rbi +72 -0
  516. data/rbi/lib/modern_treasury/resources/events.rbi +54 -0
  517. data/rbi/lib/modern_treasury/resources/expected_payments.rbi +248 -0
  518. data/rbi/lib/modern_treasury/resources/external_accounts.rbi +212 -0
  519. data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +97 -0
  520. data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +127 -0
  521. data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +106 -0
  522. data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +137 -0
  523. data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +157 -0
  524. data/rbi/lib/modern_treasury/resources/invoices.rbi +338 -0
  525. data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +119 -0
  526. data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +227 -0
  527. data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +51 -0
  528. data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +143 -0
  529. data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +57 -0
  530. data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +191 -0
  531. data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +135 -0
  532. data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +107 -0
  533. data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +46 -0
  534. data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +268 -0
  535. data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +51 -0
  536. data/rbi/lib/modern_treasury/resources/ledgers.rbi +118 -0
  537. data/rbi/lib/modern_treasury/resources/legal_entities.rbi +217 -0
  538. data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +44 -0
  539. data/rbi/lib/modern_treasury/resources/line_items.rbi +81 -0
  540. data/rbi/lib/modern_treasury/resources/paper_items.rbi +52 -0
  541. data/rbi/lib/modern_treasury/resources/payment_flows.rbi +108 -0
  542. data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +82 -0
  543. data/rbi/lib/modern_treasury/resources/payment_orders.rbi +601 -0
  544. data/rbi/lib/modern_treasury/resources/payment_references.rbi +53 -0
  545. data/rbi/lib/modern_treasury/resources/returns.rbi +91 -0
  546. data/rbi/lib/modern_treasury/resources/routing_details.rbi +105 -0
  547. data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +87 -0
  548. data/rbi/lib/modern_treasury/resources/transactions.rbi +166 -0
  549. data/rbi/lib/modern_treasury/resources/validations.rbi +33 -0
  550. data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +139 -0
  551. data/rbi/lib/modern_treasury/util.rbi +281 -0
  552. data/rbi/lib/modern_treasury/version.rbi +5 -0
  553. data/sig/modern_treasury/base_client.rbs +108 -0
  554. data/sig/modern_treasury/base_model.rbs +262 -0
  555. data/sig/modern_treasury/base_page.rbs +20 -0
  556. data/sig/modern_treasury/client.rbs +106 -0
  557. data/sig/modern_treasury/errors.rbs +99 -0
  558. data/sig/modern_treasury/extern.rbs +4 -0
  559. data/sig/modern_treasury/models/account_collection_flow.rbs +147 -0
  560. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +80 -0
  561. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +53 -0
  562. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +15 -0
  563. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +33 -0
  564. data/sig/modern_treasury/models/account_detail.rbs +81 -0
  565. data/sig/modern_treasury/models/account_detail_create_params.rbs +74 -0
  566. data/sig/modern_treasury/models/account_detail_delete_params.rbs +37 -0
  567. data/sig/modern_treasury/models/account_detail_list_params.rbs +33 -0
  568. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +27 -0
  569. data/sig/modern_treasury/models/accounts_type.rbs +14 -0
  570. data/sig/modern_treasury/models/async_response.rbs +15 -0
  571. data/sig/modern_treasury/models/bank_settings.rbs +54 -0
  572. data/sig/modern_treasury/models/bulk_request.rbs +100 -0
  573. data/sig/modern_treasury/models/bulk_request_create_params.rbs +2594 -0
  574. data/sig/modern_treasury/models/bulk_request_list_params.rbs +97 -0
  575. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +15 -0
  576. data/sig/modern_treasury/models/bulk_result.rbs +176 -0
  577. data/sig/modern_treasury/models/bulk_result_list_params.rbs +106 -0
  578. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +14 -0
  579. data/sig/modern_treasury/models/client_ping_params.rbs +14 -0
  580. data/sig/modern_treasury/models/connection.rbs +50 -0
  581. data/sig/modern_treasury/models/connection_legal_entity.rbs +67 -0
  582. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +711 -0
  583. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +62 -0
  584. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +15 -0
  585. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +37 -0
  586. data/sig/modern_treasury/models/connection_list_params.rbs +41 -0
  587. data/sig/modern_treasury/models/counterparty.rbs +343 -0
  588. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +110 -0
  589. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +18 -0
  590. data/sig/modern_treasury/models/counterparty_create_params.rbs +1265 -0
  591. data/sig/modern_treasury/models/counterparty_delete_params.rbs +14 -0
  592. data/sig/modern_treasury/models/counterparty_list_params.rbs +65 -0
  593. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +15 -0
  594. data/sig/modern_treasury/models/counterparty_update_params.rbs +53 -0
  595. data/sig/modern_treasury/models/currency.rbs +390 -0
  596. data/sig/modern_treasury/models/document.rbs +162 -0
  597. data/sig/modern_treasury/models/document_create_params.rbs +70 -0
  598. data/sig/modern_treasury/models/document_list_params.rbs +76 -0
  599. data/sig/modern_treasury/models/document_retrieve_params.rbs +14 -0
  600. data/sig/modern_treasury/models/event.rbs +54 -0
  601. data/sig/modern_treasury/models/event_list_params.rbs +59 -0
  602. data/sig/modern_treasury/models/event_retrieve_params.rbs +14 -0
  603. data/sig/modern_treasury/models/expected_payment.rbs +154 -0
  604. data/sig/modern_treasury/models/expected_payment_create_params.rbs +294 -0
  605. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +15 -0
  606. data/sig/modern_treasury/models/expected_payment_list_params.rbs +166 -0
  607. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +15 -0
  608. data/sig/modern_treasury/models/expected_payment_type.rbs +72 -0
  609. data/sig/modern_treasury/models/expected_payment_update_params.rbs +110 -0
  610. data/sig/modern_treasury/models/external_account.rbs +235 -0
  611. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +22 -0
  612. data/sig/modern_treasury/models/external_account_create_params.rbs +463 -0
  613. data/sig/modern_treasury/models/external_account_delete_params.rbs +15 -0
  614. data/sig/modern_treasury/models/external_account_list_params.rbs +47 -0
  615. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +15 -0
  616. data/sig/modern_treasury/models/external_account_type.rbs +28 -0
  617. data/sig/modern_treasury/models/external_account_update_params.rbs +105 -0
  618. data/sig/modern_treasury/models/external_account_verify_params.rbs +141 -0
  619. data/sig/modern_treasury/models/external_account_verify_response.rbs +157 -0
  620. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +103 -0
  621. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +53 -0
  622. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +71 -0
  623. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +15 -0
  624. data/sig/modern_treasury/models/incoming_payment_detail.rbs +225 -0
  625. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +93 -0
  626. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +108 -0
  627. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +15 -0
  628. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +22 -0
  629. data/sig/modern_treasury/models/internal_account.rbs +181 -0
  630. data/sig/modern_treasury/models/internal_account_create_params.rbs +115 -0
  631. data/sig/modern_treasury/models/internal_account_list_params.rbs +140 -0
  632. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +15 -0
  633. data/sig/modern_treasury/models/internal_account_update_params.rbs +49 -0
  634. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +160 -0
  635. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +105 -0
  636. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +22 -0
  637. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +59 -0
  638. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +22 -0
  639. data/sig/modern_treasury/models/invoice.rbs +367 -0
  640. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +20 -0
  641. data/sig/modern_treasury/models/invoice_create_params.rbs +370 -0
  642. data/sig/modern_treasury/models/invoice_list_params.rbs +101 -0
  643. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +14 -0
  644. data/sig/modern_treasury/models/invoice_update_params.rbs +378 -0
  645. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +70 -0
  646. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +59 -0
  647. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +22 -0
  648. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +28 -0
  649. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +22 -0
  650. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +67 -0
  651. data/sig/modern_treasury/models/ledger.rbs +50 -0
  652. data/sig/modern_treasury/models/ledger_account.rbs +212 -0
  653. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +215 -0
  654. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +57 -0
  655. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +15 -0
  656. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +47 -0
  657. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +15 -0
  658. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +28 -0
  659. data/sig/modern_treasury/models/ledger_account_category.rbs +178 -0
  660. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +20 -0
  661. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +20 -0
  662. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +55 -0
  663. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +15 -0
  664. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +91 -0
  665. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +20 -0
  666. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +20 -0
  667. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +43 -0
  668. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +31 -0
  669. data/sig/modern_treasury/models/ledger_account_create_params.rbs +83 -0
  670. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +15 -0
  671. data/sig/modern_treasury/models/ledger_account_list_params.rbs +285 -0
  672. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +68 -0
  673. data/sig/modern_treasury/models/ledger_account_settlement.rbs +98 -0
  674. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +64 -0
  675. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +77 -0
  676. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +15 -0
  677. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +48 -0
  678. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +22 -0
  679. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +23 -0
  680. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +41 -0
  681. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +306 -0
  682. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +15 -0
  683. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +306 -0
  684. data/sig/modern_treasury/models/ledger_account_update_params.rbs +31 -0
  685. data/sig/modern_treasury/models/ledger_create_params.rbs +29 -0
  686. data/sig/modern_treasury/models/ledger_delete_params.rbs +14 -0
  687. data/sig/modern_treasury/models/ledger_entry.rbs +206 -0
  688. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +206 -0
  689. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +22 -0
  690. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +22 -0
  691. data/sig/modern_treasury/models/ledger_event_handler.rbs +126 -0
  692. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +109 -0
  693. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +15 -0
  694. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +47 -0
  695. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +15 -0
  696. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +36 -0
  697. data/sig/modern_treasury/models/ledger_list_params.rbs +47 -0
  698. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +14 -0
  699. data/sig/modern_treasury/models/ledger_transaction.rbs +123 -0
  700. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +155 -0
  701. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +81 -0
  702. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +96 -0
  703. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +219 -0
  704. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +15 -0
  705. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +147 -0
  706. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +326 -0
  707. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +55 -0
  708. data/sig/modern_treasury/models/ledger_update_params.rbs +31 -0
  709. data/sig/modern_treasury/models/ledgerable_event.rbs +54 -0
  710. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +37 -0
  711. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +15 -0
  712. data/sig/modern_treasury/models/legal_entity.rbs +363 -0
  713. data/sig/modern_treasury/models/legal_entity_association.rbs +425 -0
  714. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +371 -0
  715. data/sig/modern_treasury/models/legal_entity_create_params.rbs +678 -0
  716. data/sig/modern_treasury/models/legal_entity_list_params.rbs +60 -0
  717. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +15 -0
  718. data/sig/modern_treasury/models/legal_entity_update_params.rbs +300 -0
  719. data/sig/modern_treasury/models/line_item.rbs +89 -0
  720. data/sig/modern_treasury/models/line_item_list_params.rbs +44 -0
  721. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +38 -0
  722. data/sig/modern_treasury/models/line_item_update_params.rbs +44 -0
  723. data/sig/modern_treasury/models/paper_item.rbs +98 -0
  724. data/sig/modern_treasury/models/paper_item_list_params.rbs +47 -0
  725. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +14 -0
  726. data/sig/modern_treasury/models/payment_flow.rbs +165 -0
  727. data/sig/modern_treasury/models/payment_flow_create_params.rbs +56 -0
  728. data/sig/modern_treasury/models/payment_flow_list_params.rbs +65 -0
  729. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +15 -0
  730. data/sig/modern_treasury/models/payment_flow_update_params.rbs +31 -0
  731. data/sig/modern_treasury/models/payment_order.rbs +564 -0
  732. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +893 -0
  733. data/sig/modern_treasury/models/payment_order_create_params.rbs +963 -0
  734. data/sig/modern_treasury/models/payment_order_list_params.rbs +238 -0
  735. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +15 -0
  736. data/sig/modern_treasury/models/payment_order_subtype.rbs +70 -0
  737. data/sig/modern_treasury/models/payment_order_type.rbs +72 -0
  738. data/sig/modern_treasury/models/payment_order_update_params.rbs +781 -0
  739. data/sig/modern_treasury/models/payment_orders/reversal.rbs +95 -0
  740. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +205 -0
  741. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +28 -0
  742. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +22 -0
  743. data/sig/modern_treasury/models/payment_reference.rbs +213 -0
  744. data/sig/modern_treasury/models/payment_reference_list_params.rbs +61 -0
  745. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +15 -0
  746. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +15 -0
  747. data/sig/modern_treasury/models/ping_response.rbs +13 -0
  748. data/sig/modern_treasury/models/reconciliation_rule.rbs +138 -0
  749. data/sig/modern_treasury/models/return_create_params.rbs +168 -0
  750. data/sig/modern_treasury/models/return_list_params.rbs +74 -0
  751. data/sig/modern_treasury/models/return_object.rbs +492 -0
  752. data/sig/modern_treasury/models/return_retrieve_params.rbs +14 -0
  753. data/sig/modern_treasury/models/routing_detail.rbs +233 -0
  754. data/sig/modern_treasury/models/routing_detail_create_params.rbs +165 -0
  755. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +37 -0
  756. data/sig/modern_treasury/models/routing_detail_list_params.rbs +33 -0
  757. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +27 -0
  758. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +185 -0
  759. data/sig/modern_treasury/models/transaction.rbs +281 -0
  760. data/sig/modern_treasury/models/transaction_create_params.rbs +134 -0
  761. data/sig/modern_treasury/models/transaction_delete_params.rbs +14 -0
  762. data/sig/modern_treasury/models/transaction_direction.rbs +14 -0
  763. data/sig/modern_treasury/models/transaction_list_params.rbs +101 -0
  764. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +14 -0
  765. data/sig/modern_treasury/models/transaction_update_params.rbs +22 -0
  766. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +29 -0
  767. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +16 -0
  768. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +58 -0
  769. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +16 -0
  770. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +110 -0
  771. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +78 -0
  772. data/sig/modern_treasury/models/virtual_account.rbs +78 -0
  773. data/sig/modern_treasury/models/virtual_account_create_params.rbs +354 -0
  774. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +15 -0
  775. data/sig/modern_treasury/models/virtual_account_list_params.rbs +47 -0
  776. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +15 -0
  777. data/sig/modern_treasury/models/virtual_account_update_params.rbs +41 -0
  778. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +306 -0
  779. data/sig/modern_treasury/page.rbs +17 -0
  780. data/sig/modern_treasury/pooled_net_requester.rbs +37 -0
  781. data/sig/modern_treasury/request_options.rbs +46 -0
  782. data/sig/modern_treasury/resources/account_collection_flows.rbs +35 -0
  783. data/sig/modern_treasury/resources/account_details.rbs +37 -0
  784. data/sig/modern_treasury/resources/bulk_requests.rbs +30 -0
  785. data/sig/modern_treasury/resources/bulk_results.rbs +23 -0
  786. data/sig/modern_treasury/resources/connection_legal_entities.rbs +34 -0
  787. data/sig/modern_treasury/resources/connections.rbs +15 -0
  788. data/sig/modern_treasury/resources/counterparties.rbs +64 -0
  789. data/sig/modern_treasury/resources/documents.rbs +28 -0
  790. data/sig/modern_treasury/resources/events.rbs +23 -0
  791. data/sig/modern_treasury/resources/expected_payments.rbs +76 -0
  792. data/sig/modern_treasury/resources/external_accounts.rbs +71 -0
  793. data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +35 -0
  794. data/sig/modern_treasury/resources/incoming_payment_details.rbs +43 -0
  795. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +39 -0
  796. data/sig/modern_treasury/resources/internal_accounts.rbs +49 -0
  797. data/sig/modern_treasury/resources/invoices/line_items.rbs +53 -0
  798. data/sig/modern_treasury/resources/invoices.rbs +94 -0
  799. data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +41 -0
  800. data/sig/modern_treasury/resources/ledger_account_categories.rbs +76 -0
  801. data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +21 -0
  802. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +48 -0
  803. data/sig/modern_treasury/resources/ledger_account_statements.rbs +21 -0
  804. data/sig/modern_treasury/resources/ledger_accounts.rbs +58 -0
  805. data/sig/modern_treasury/resources/ledger_entries.rbs +43 -0
  806. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +37 -0
  807. data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +19 -0
  808. data/sig/modern_treasury/resources/ledger_transactions.rbs +83 -0
  809. data/sig/modern_treasury/resources/ledgerable_events.rbs +20 -0
  810. data/sig/modern_treasury/resources/ledgers.rbs +41 -0
  811. data/sig/modern_treasury/resources/legal_entities.rbs +76 -0
  812. data/sig/modern_treasury/resources/legal_entity_associations.rbs +17 -0
  813. data/sig/modern_treasury/resources/line_items.rbs +30 -0
  814. data/sig/modern_treasury/resources/paper_items.rbs +21 -0
  815. data/sig/modern_treasury/resources/payment_flows.rbs +40 -0
  816. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +30 -0
  817. data/sig/modern_treasury/resources/payment_orders.rbs +153 -0
  818. data/sig/modern_treasury/resources/payment_references.rbs +23 -0
  819. data/sig/modern_treasury/resources/returns.rbs +32 -0
  820. data/sig/modern_treasury/resources/routing_details.rbs +38 -0
  821. data/sig/modern_treasury/resources/transactions/line_items.rbs +35 -0
  822. data/sig/modern_treasury/resources/transactions.rbs +57 -0
  823. data/sig/modern_treasury/resources/validations.rbs +13 -0
  824. data/sig/modern_treasury/resources/virtual_accounts.rbs +49 -0
  825. data/sig/modern_treasury/util.rbs +136 -0
  826. data/sig/modern_treasury/version.rbs +3 -0
  827. metadata +861 -20
@@ -0,0 +1,250 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class LedgerTransactionUpdateParams < ModernTreasury::BaseModel
6
+ # @!parse
7
+ # extend ModernTreasury::RequestParameters::Converter
8
+ include ModernTreasury::RequestParameters
9
+
10
+ # @!attribute description
11
+ # An optional description for internal use.
12
+ #
13
+ # @return [String, nil]
14
+ optional :description, String, nil?: true
15
+
16
+ # @!attribute [r] effective_at
17
+ # The timestamp (ISO8601 format) at which the ledger transaction happened for
18
+ # reporting purposes.
19
+ #
20
+ # @return [Time, nil]
21
+ optional :effective_at, Time
22
+
23
+ # @!parse
24
+ # # @return [Time]
25
+ # attr_writer :effective_at
26
+
27
+ # @!attribute [r] ledger_entries
28
+ # An array of ledger entry objects.
29
+ #
30
+ # @return [Array<ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerEntry>, nil]
31
+ optional :ledger_entries,
32
+ -> { ModernTreasury::ArrayOf[ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerEntry] }
33
+
34
+ # @!parse
35
+ # # @return [Array<ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerEntry>]
36
+ # attr_writer :ledger_entries
37
+
38
+ # @!attribute [r] ledgerable_id
39
+ # If the ledger transaction can be reconciled to another object in Modern
40
+ # Treasury, the id will be populated here, otherwise null.
41
+ #
42
+ # @return [String, nil]
43
+ optional :ledgerable_id, String
44
+
45
+ # @!parse
46
+ # # @return [String]
47
+ # attr_writer :ledgerable_id
48
+
49
+ # @!attribute [r] ledgerable_type
50
+ # If the ledger transaction can be reconciled to another object in Modern
51
+ # Treasury, the type will be populated here, otherwise null. This can be one of
52
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
53
+ # reversal.
54
+ #
55
+ # @return [Symbol, ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerableType, nil]
56
+ optional :ledgerable_type,
57
+ enum: -> { ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerableType }
58
+
59
+ # @!parse
60
+ # # @return [Symbol, ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerableType]
61
+ # attr_writer :ledgerable_type
62
+
63
+ # @!attribute [r] metadata
64
+ # Additional data represented as key-value pairs. Both the key and value must be
65
+ # strings.
66
+ #
67
+ # @return [Hash{Symbol=>String}, nil]
68
+ optional :metadata, ModernTreasury::HashOf[String]
69
+
70
+ # @!parse
71
+ # # @return [Hash{Symbol=>String}]
72
+ # attr_writer :metadata
73
+
74
+ # @!attribute [r] status
75
+ # To post a ledger transaction at creation, use `posted`.
76
+ #
77
+ # @return [Symbol, ModernTreasury::Models::LedgerTransactionUpdateParams::Status, nil]
78
+ optional :status, enum: -> { ModernTreasury::Models::LedgerTransactionUpdateParams::Status }
79
+
80
+ # @!parse
81
+ # # @return [Symbol, ModernTreasury::Models::LedgerTransactionUpdateParams::Status]
82
+ # attr_writer :status
83
+
84
+ # @!parse
85
+ # # @param description [String, nil]
86
+ # # @param effective_at [Time]
87
+ # # @param ledger_entries [Array<ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerEntry>]
88
+ # # @param ledgerable_id [String]
89
+ # # @param ledgerable_type [Symbol, ModernTreasury::Models::LedgerTransactionUpdateParams::LedgerableType]
90
+ # # @param metadata [Hash{Symbol=>String}]
91
+ # # @param status [Symbol, ModernTreasury::Models::LedgerTransactionUpdateParams::Status]
92
+ # # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
93
+ # #
94
+ # def initialize(
95
+ # description: nil,
96
+ # effective_at: nil,
97
+ # ledger_entries: nil,
98
+ # ledgerable_id: nil,
99
+ # ledgerable_type: nil,
100
+ # metadata: nil,
101
+ # status: nil,
102
+ # request_options: {},
103
+ # **
104
+ # )
105
+ # super
106
+ # end
107
+
108
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
109
+
110
+ class LedgerEntry < ModernTreasury::BaseModel
111
+ # @!attribute amount
112
+ # Value in specified currency's smallest unit. e.g. $10 would be represented
113
+ # as 1000. Can be any integer up to 36 digits.
114
+ #
115
+ # @return [Integer]
116
+ required :amount, Integer
117
+
118
+ # @!attribute direction
119
+ # One of `credit`, `debit`. Describes the direction money is flowing in the
120
+ # transaction. A `credit` moves money from your account to someone else's. A
121
+ # `debit` pulls money from someone else's account to your own. Note that wire,
122
+ # rtp, and check payments will always be `credit`.
123
+ #
124
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
125
+ required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
126
+
127
+ # @!attribute ledger_account_id
128
+ # The ledger account that this ledger entry is associated with.
129
+ #
130
+ # @return [String]
131
+ required :ledger_account_id, String
132
+
133
+ # @!attribute available_balance_amount
134
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
135
+ # account’s available balance. If any of these conditions would be false after the
136
+ # transaction is created, the entire call will fail with error code 422.
137
+ #
138
+ # @return [Hash{Symbol=>Integer}, nil]
139
+ optional :available_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
140
+
141
+ # @!attribute lock_version
142
+ # Lock version of the ledger account. This can be passed when creating a ledger
143
+ # transaction to only succeed if no ledger transactions have posted since the
144
+ # given version. See our post about Designing the Ledgers API with Optimistic
145
+ # Locking for more details.
146
+ #
147
+ # @return [Integer, nil]
148
+ optional :lock_version, Integer, nil?: true
149
+
150
+ # @!attribute [r] metadata
151
+ # Additional data represented as key-value pairs. Both the key and value must be
152
+ # strings.
153
+ #
154
+ # @return [Hash{Symbol=>String}, nil]
155
+ optional :metadata, ModernTreasury::HashOf[String]
156
+
157
+ # @!parse
158
+ # # @return [Hash{Symbol=>String}]
159
+ # attr_writer :metadata
160
+
161
+ # @!attribute pending_balance_amount
162
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
163
+ # account’s pending balance. If any of these conditions would be false after the
164
+ # transaction is created, the entire call will fail with error code 422.
165
+ #
166
+ # @return [Hash{Symbol=>Integer}, nil]
167
+ optional :pending_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
168
+
169
+ # @!attribute posted_balance_amount
170
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
171
+ # account’s posted balance. If any of these conditions would be false after the
172
+ # transaction is created, the entire call will fail with error code 422.
173
+ #
174
+ # @return [Hash{Symbol=>Integer}, nil]
175
+ optional :posted_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
176
+
177
+ # @!attribute show_resulting_ledger_account_balances
178
+ # If true, response will include the balance of the associated ledger account for
179
+ # the entry.
180
+ #
181
+ # @return [Boolean, nil]
182
+ optional :show_resulting_ledger_account_balances, ModernTreasury::BooleanModel, nil?: true
183
+
184
+ # @!parse
185
+ # # @param amount [Integer]
186
+ # # @param direction [Symbol, ModernTreasury::Models::TransactionDirection]
187
+ # # @param ledger_account_id [String]
188
+ # # @param available_balance_amount [Hash{Symbol=>Integer}, nil]
189
+ # # @param lock_version [Integer, nil]
190
+ # # @param metadata [Hash{Symbol=>String}]
191
+ # # @param pending_balance_amount [Hash{Symbol=>Integer}, nil]
192
+ # # @param posted_balance_amount [Hash{Symbol=>Integer}, nil]
193
+ # # @param show_resulting_ledger_account_balances [Boolean, nil]
194
+ # #
195
+ # def initialize(
196
+ # amount:,
197
+ # direction:,
198
+ # ledger_account_id:,
199
+ # available_balance_amount: nil,
200
+ # lock_version: nil,
201
+ # metadata: nil,
202
+ # pending_balance_amount: nil,
203
+ # posted_balance_amount: nil,
204
+ # show_resulting_ledger_account_balances: nil,
205
+ # **
206
+ # )
207
+ # super
208
+ # end
209
+
210
+ # def initialize: (Hash | ModernTreasury::BaseModel) -> void
211
+ end
212
+
213
+ # If the ledger transaction can be reconciled to another object in Modern
214
+ # Treasury, the type will be populated here, otherwise null. This can be one of
215
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
216
+ # reversal.
217
+ module LedgerableType
218
+ extend ModernTreasury::Enum
219
+
220
+ EXPECTED_PAYMENT = :expected_payment
221
+ INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
222
+ PAPER_ITEM = :paper_item
223
+ PAYMENT_ORDER = :payment_order
224
+ RETURN = :return
225
+ REVERSAL = :reversal
226
+
227
+ finalize!
228
+
229
+ # @!parse
230
+ # # @return [Array<Symbol>]
231
+ # def self.values; end
232
+ end
233
+
234
+ # To post a ledger transaction at creation, use `posted`.
235
+ module Status
236
+ extend ModernTreasury::Enum
237
+
238
+ ARCHIVED = :archived
239
+ PENDING = :pending
240
+ POSTED = :posted
241
+
242
+ finalize!
243
+
244
+ # @!parse
245
+ # # @return [Array<Symbol>]
246
+ # def self.values; end
247
+ end
248
+ end
249
+ end
250
+ end