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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (877) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +116 -28
  3. data/lib/modern_treasury/client.rb +29 -13
  4. data/lib/modern_treasury/errors.rb +168 -163
  5. data/lib/modern_treasury/internal/page.rb +86 -0
  6. data/lib/modern_treasury/internal/transport/base_client.rb +476 -0
  7. data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +184 -0
  8. data/lib/modern_treasury/internal/type/array_of.rb +124 -0
  9. data/lib/modern_treasury/internal/type/base_model.rb +376 -0
  10. data/lib/modern_treasury/internal/type/base_page.rb +46 -0
  11. data/lib/modern_treasury/internal/type/boolean.rb +54 -0
  12. data/lib/modern_treasury/internal/type/converter.rb +222 -0
  13. data/lib/modern_treasury/internal/type/enum.rb +105 -0
  14. data/lib/modern_treasury/internal/type/hash_of.rb +144 -0
  15. data/lib/modern_treasury/internal/type/request_parameters.rb +40 -0
  16. data/lib/modern_treasury/internal/type/union.rb +198 -0
  17. data/lib/modern_treasury/internal/type/unknown.rb +58 -0
  18. data/lib/modern_treasury/internal/util.rb +696 -0
  19. data/lib/modern_treasury/internal.rb +8 -0
  20. data/lib/modern_treasury/models/account_collection_flow.rb +22 -64
  21. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +10 -28
  22. data/lib/modern_treasury/models/account_collection_flow_list_params.rb +5 -4
  23. data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +5 -4
  24. data/lib/modern_treasury/models/account_collection_flow_update_params.rb +10 -18
  25. data/lib/modern_treasury/models/account_detail.rb +11 -27
  26. data/lib/modern_treasury/models/account_detail_create_params.rb +13 -39
  27. data/lib/modern_treasury/models/account_detail_delete_params.rb +8 -15
  28. data/lib/modern_treasury/models/account_detail_list_params.rb +5 -4
  29. data/lib/modern_treasury/models/account_detail_retrieve_params.rb +5 -4
  30. data/lib/modern_treasury/models/accounts_type.rb +3 -13
  31. data/lib/modern_treasury/models/async_response.rb +2 -2
  32. data/lib/modern_treasury/models/bank_settings.rb +11 -11
  33. data/lib/modern_treasury/models/bulk_request.rb +24 -56
  34. data/lib/modern_treasury/models/bulk_request_create_params.rb +654 -1109
  35. data/lib/modern_treasury/models/bulk_request_list_params.rb +20 -58
  36. data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +5 -4
  37. data/lib/modern_treasury/models/bulk_result.rb +49 -89
  38. data/lib/modern_treasury/models/bulk_result_list_params.rb +22 -58
  39. data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +5 -4
  40. data/lib/modern_treasury/models/client_ping_params.rb +5 -4
  41. data/lib/modern_treasury/models/connection.rb +5 -4
  42. data/lib/modern_treasury/models/connection_legal_entity.rb +9 -21
  43. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +130 -239
  44. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +8 -21
  45. data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +5 -4
  46. data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +8 -16
  47. data/lib/modern_treasury/models/connection_list_params.rb +5 -4
  48. data/lib/modern_treasury/models/counterparty.rb +53 -103
  49. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +22 -39
  50. data/lib/modern_treasury/models/counterparty_collect_account_response.rb +8 -7
  51. data/lib/modern_treasury/models/counterparty_create_params.rb +214 -440
  52. data/lib/modern_treasury/models/counterparty_delete_params.rb +5 -4
  53. data/lib/modern_treasury/models/counterparty_list_params.rb +10 -9
  54. data/lib/modern_treasury/models/counterparty_retrieve_params.rb +5 -4
  55. data/lib/modern_treasury/models/counterparty_update_params.rb +9 -8
  56. data/lib/modern_treasury/models/currency.rb +3 -22
  57. data/lib/modern_treasury/models/document.rb +21 -36
  58. data/lib/modern_treasury/models/document_create_params.rb +8 -25
  59. data/lib/modern_treasury/models/document_list_params.rb +12 -30
  60. data/lib/modern_treasury/models/document_retrieve_params.rb +5 -4
  61. data/lib/modern_treasury/models/event.rb +6 -5
  62. data/lib/modern_treasury/models/event_list_params.rb +5 -4
  63. data/lib/modern_treasury/models/event_retrieve_params.rb +5 -4
  64. data/lib/modern_treasury/models/expected_payment.rb +36 -66
  65. data/lib/modern_treasury/models/expected_payment_create_params.rb +86 -122
  66. data/lib/modern_treasury/models/expected_payment_delete_params.rb +5 -4
  67. data/lib/modern_treasury/models/expected_payment_list_params.rb +16 -49
  68. data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +5 -4
  69. data/lib/modern_treasury/models/expected_payment_type.rb +4 -23
  70. data/lib/modern_treasury/models/expected_payment_update_params.rb +28 -47
  71. data/lib/modern_treasury/models/external_account.rb +39 -77
  72. data/lib/modern_treasury/models/external_account_complete_verification_params.rb +6 -5
  73. data/lib/modern_treasury/models/external_account_create_params.rb +62 -147
  74. data/lib/modern_treasury/models/external_account_delete_params.rb +5 -4
  75. data/lib/modern_treasury/models/external_account_list_params.rb +8 -7
  76. data/lib/modern_treasury/models/external_account_retrieve_params.rb +5 -4
  77. data/lib/modern_treasury/models/external_account_type.rb +3 -22
  78. data/lib/modern_treasury/models/external_account_update_params.rb +13 -23
  79. data/lib/modern_treasury/models/external_account_verify_params.rb +21 -59
  80. data/lib/modern_treasury/models/external_account_verify_response.rb +28 -71
  81. data/lib/modern_treasury/models/foreign_exchange_quote.rb +16 -14
  82. data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +7 -6
  83. data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +8 -7
  84. data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +5 -4
  85. data/lib/modern_treasury/models/incoming_payment_detail.rb +38 -95
  86. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +26 -42
  87. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +25 -52
  88. data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +5 -4
  89. data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +7 -6
  90. data/lib/modern_treasury/models/internal_account.rb +25 -47
  91. data/lib/modern_treasury/models/internal_account_create_params.rb +14 -24
  92. data/lib/modern_treasury/models/internal_account_list_params.rb +11 -29
  93. data/lib/modern_treasury/models/internal_account_retrieve_params.rb +5 -4
  94. data/lib/modern_treasury/models/internal_account_update_params.rb +7 -6
  95. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +35 -64
  96. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +26 -57
  97. data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +5 -4
  98. data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +10 -24
  99. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +5 -4
  100. data/lib/modern_treasury/models/invoice.rb +61 -102
  101. data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +5 -4
  102. data/lib/modern_treasury/models/invoice_create_params.rb +69 -92
  103. data/lib/modern_treasury/models/invoice_list_params.rb +11 -28
  104. data/lib/modern_treasury/models/invoice_retrieve_params.rb +5 -4
  105. data/lib/modern_treasury/models/invoice_update_params.rb +68 -91
  106. data/lib/modern_treasury/models/invoices/invoice_line_item.rb +14 -13
  107. data/lib/modern_treasury/models/invoices/line_item_create_params.rb +13 -12
  108. data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +5 -4
  109. data/lib/modern_treasury/models/invoices/line_item_list_params.rb +5 -4
  110. data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +5 -4
  111. data/lib/modern_treasury/models/invoices/line_item_update_params.rb +13 -12
  112. data/lib/modern_treasury/models/ledger.rb +7 -6
  113. data/lib/modern_treasury/models/ledger_account.rb +44 -52
  114. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +40 -33
  115. data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +14 -13
  116. data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +5 -4
  117. data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +10 -9
  118. data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +5 -4
  119. data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +7 -6
  120. data/lib/modern_treasury/models/ledger_account_category.rb +33 -28
  121. data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +5 -4
  122. data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +5 -4
  123. data/lib/modern_treasury/models/ledger_account_category_create_params.rb +9 -8
  124. data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +5 -4
  125. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +17 -16
  126. data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +5 -4
  127. data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +5 -4
  128. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +11 -10
  129. data/lib/modern_treasury/models/ledger_account_category_update_params.rb +7 -6
  130. data/lib/modern_treasury/models/ledger_account_create_params.rb +17 -31
  131. data/lib/modern_treasury/models/ledger_account_delete_params.rb +5 -4
  132. data/lib/modern_treasury/models/ledger_account_list_params.rb +40 -39
  133. data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +17 -16
  134. data/lib/modern_treasury/models/ledger_account_settlement.rb +17 -33
  135. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +21 -31
  136. data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +16 -15
  137. data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +5 -4
  138. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +12 -22
  139. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +9 -8
  140. data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +7 -6
  141. data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +10 -9
  142. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +62 -53
  143. data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +5 -4
  144. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +62 -53
  145. data/lib/modern_treasury/models/ledger_account_update_params.rb +7 -6
  146. data/lib/modern_treasury/models/ledger_create_params.rb +7 -6
  147. data/lib/modern_treasury/models/ledger_delete_params.rb +5 -4
  148. data/lib/modern_treasury/models/ledger_entry.rb +50 -56
  149. data/lib/modern_treasury/models/ledger_entry_list_params.rb +49 -79
  150. data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +7 -6
  151. data/lib/modern_treasury/models/ledger_entry_update_params.rb +7 -6
  152. data/lib/modern_treasury/models/ledger_event_handler.rb +25 -15
  153. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +19 -15
  154. data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +5 -4
  155. data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +11 -10
  156. data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +5 -4
  157. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +9 -5
  158. data/lib/modern_treasury/models/ledger_list_params.rb +13 -12
  159. data/lib/modern_treasury/models/ledger_retrieve_params.rb +5 -4
  160. data/lib/modern_treasury/models/ledger_transaction.rb +28 -54
  161. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +46 -77
  162. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +27 -35
  163. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +21 -52
  164. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +42 -89
  165. data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +5 -4
  166. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +44 -75
  167. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +75 -109
  168. data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +12 -11
  169. data/lib/modern_treasury/models/ledger_update_params.rb +7 -6
  170. data/lib/modern_treasury/models/ledgerable_event.rb +10 -7
  171. data/lib/modern_treasury/models/ledgerable_event_create_params.rb +8 -7
  172. data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +5 -4
  173. data/lib/modern_treasury/models/legal_entity.rb +62 -115
  174. data/lib/modern_treasury/models/legal_entity_association.rb +69 -134
  175. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +66 -126
  176. data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +109 -0
  177. data/lib/modern_treasury/models/legal_entity_create_params.rb +121 -236
  178. data/lib/modern_treasury/models/legal_entity_industry_classification.rb +107 -0
  179. data/lib/modern_treasury/models/legal_entity_list_params.rb +11 -20
  180. data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +5 -4
  181. data/lib/modern_treasury/models/legal_entity_update_params.rb +53 -97
  182. data/lib/modern_treasury/models/line_item.rb +21 -28
  183. data/lib/modern_treasury/models/line_item_list_params.rb +8 -17
  184. data/lib/modern_treasury/models/line_item_retrieve_params.rb +8 -17
  185. data/lib/modern_treasury/models/line_item_update_params.rb +10 -19
  186. data/lib/modern_treasury/models/paper_item.rb +11 -21
  187. data/lib/modern_treasury/models/paper_item_list_params.rb +6 -5
  188. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +5 -4
  189. data/lib/modern_treasury/models/payment_flow.rb +41 -78
  190. data/lib/modern_treasury/models/payment_flow_create_params.rb +14 -24
  191. data/lib/modern_treasury/models/payment_flow_list_params.rb +5 -4
  192. data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +5 -4
  193. data/lib/modern_treasury/models/payment_flow_update_params.rb +10 -18
  194. data/lib/modern_treasury/models/payment_order.rb +138 -223
  195. data/lib/modern_treasury/models/payment_order_create_async_params.rb +213 -375
  196. data/lib/modern_treasury/models/payment_order_create_params.rb +221 -400
  197. data/lib/modern_treasury/models/payment_order_list_params.rb +21 -67
  198. data/lib/modern_treasury/models/payment_order_retrieve_params.rb +5 -4
  199. data/lib/modern_treasury/models/payment_order_subtype.rb +6 -25
  200. data/lib/modern_treasury/models/payment_order_type.rb +5 -24
  201. data/lib/modern_treasury/models/payment_order_update_params.rb +170 -325
  202. data/lib/modern_treasury/models/payment_orders/reversal.rb +17 -47
  203. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +65 -107
  204. data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +5 -4
  205. data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +5 -4
  206. data/lib/modern_treasury/models/payment_reference.rb +21 -44
  207. data/lib/modern_treasury/models/payment_reference_list_params.rb +11 -23
  208. data/lib/modern_treasury/models/payment_reference_retireve_params.rb +5 -4
  209. data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +5 -4
  210. data/lib/modern_treasury/models/ping_response.rb +3 -2
  211. data/lib/modern_treasury/models/reconciliation_rule.rb +17 -43
  212. data/lib/modern_treasury/models/return_create_params.rb +36 -55
  213. data/lib/modern_treasury/models/return_list_params.rb +12 -28
  214. data/lib/modern_treasury/models/return_object.rb +67 -146
  215. data/lib/modern_treasury/models/return_retrieve_params.rb +5 -4
  216. data/lib/modern_treasury/models/routing_detail.rb +24 -56
  217. data/lib/modern_treasury/models/routing_detail_create_params.rb +20 -65
  218. data/lib/modern_treasury/models/routing_detail_delete_params.rb +8 -15
  219. data/lib/modern_treasury/models/routing_detail_list_params.rb +5 -4
  220. data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +5 -4
  221. data/lib/modern_treasury/models/routing_number_lookup_request.rb +25 -57
  222. data/lib/modern_treasury/models/transaction.rb +52 -83
  223. data/lib/modern_treasury/models/transaction_create_params.rb +19 -37
  224. data/lib/modern_treasury/models/transaction_delete_params.rb +5 -4
  225. data/lib/modern_treasury/models/transaction_direction.rb +3 -13
  226. data/lib/modern_treasury/models/transaction_list_params.rb +13 -12
  227. data/lib/modern_treasury/models/transaction_retrieve_params.rb +5 -4
  228. data/lib/modern_treasury/models/transaction_update_params.rb +7 -6
  229. data/lib/modern_treasury/models/transactions/line_item_create_params.rb +6 -5
  230. data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +5 -4
  231. data/lib/modern_treasury/models/transactions/line_item_list_params.rb +9 -18
  232. data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +5 -4
  233. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +25 -50
  234. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +14 -32
  235. data/lib/modern_treasury/models/virtual_account.rb +17 -14
  236. data/lib/modern_treasury/models/virtual_account_create_params.rb +56 -119
  237. data/lib/modern_treasury/models/virtual_account_delete_params.rb +5 -4
  238. data/lib/modern_treasury/models/virtual_account_list_params.rb +8 -7
  239. data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +5 -4
  240. data/lib/modern_treasury/models/virtual_account_update_params.rb +6 -5
  241. data/lib/modern_treasury/models/wealth_and_employment_details.rb +28 -128
  242. data/lib/modern_treasury/request_options.rb +14 -53
  243. data/lib/modern_treasury/resources/account_collection_flows.rb +30 -38
  244. data/lib/modern_treasury/resources/account_details.rb +60 -64
  245. data/lib/modern_treasury/resources/bulk_requests.rb +25 -36
  246. data/lib/modern_treasury/resources/bulk_results.rb +19 -27
  247. data/lib/modern_treasury/resources/connection_legal_entities.rb +29 -35
  248. data/lib/modern_treasury/resources/connections.rb +11 -13
  249. data/lib/modern_treasury/resources/counterparties.rb +60 -106
  250. data/lib/modern_treasury/resources/documents.rb +24 -31
  251. data/lib/modern_treasury/resources/events.rb +19 -24
  252. data/lib/modern_treasury/resources/expected_payments.rb +73 -146
  253. data/lib/modern_treasury/resources/external_accounts.rb +67 -110
  254. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +30 -46
  255. data/lib/modern_treasury/resources/incoming_payment_details.rb +39 -63
  256. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +48 -56
  257. data/lib/modern_treasury/resources/internal_accounts.rb +43 -67
  258. data/lib/modern_treasury/resources/invoices/line_items.rb +62 -91
  259. data/lib/modern_treasury/resources/invoices.rb +93 -199
  260. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +36 -49
  261. data/lib/modern_treasury/resources/ledger_account_categories.rb +96 -122
  262. data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +18 -19
  263. data/lib/modern_treasury/resources/ledger_account_settlements.rb +44 -79
  264. data/lib/modern_treasury/resources/ledger_account_statements.rb +15 -22
  265. data/lib/modern_treasury/resources/ledger_accounts.rb +57 -108
  266. data/lib/modern_treasury/resources/ledger_entries.rb +42 -84
  267. data/lib/modern_treasury/resources/ledger_event_handlers.rb +32 -46
  268. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +13 -22
  269. data/lib/modern_treasury/resources/ledger_transactions.rb +80 -162
  270. data/lib/modern_treasury/resources/ledgerable_events.rb +14 -17
  271. data/lib/modern_treasury/resources/ledgers.rb +36 -51
  272. data/lib/modern_treasury/resources/legal_entities.rb +77 -125
  273. data/lib/modern_treasury/resources/legal_entity_associations.rb +11 -16
  274. data/lib/modern_treasury/resources/line_items.rb +49 -52
  275. data/lib/modern_treasury/resources/paper_items.rb +17 -21
  276. data/lib/modern_treasury/resources/payment_flows.rb +35 -53
  277. data/lib/modern_treasury/resources/payment_orders/reversals.rb +29 -38
  278. data/lib/modern_treasury/resources/payment_orders.rb +150 -432
  279. data/lib/modern_treasury/resources/payment_references.rb +18 -39
  280. data/lib/modern_treasury/resources/returns.rb +28 -43
  281. data/lib/modern_treasury/resources/routing_details.rb +61 -68
  282. data/lib/modern_treasury/resources/transactions/line_items.rb +28 -34
  283. data/lib/modern_treasury/resources/transactions.rb +54 -91
  284. data/lib/modern_treasury/resources/validations.rb +8 -11
  285. data/lib/modern_treasury/resources/virtual_accounts.rb +45 -70
  286. data/lib/modern_treasury/version.rb +1 -1
  287. data/lib/modern_treasury.rb +35 -7
  288. data/manifest.yaml +3 -0
  289. data/rbi/lib/modern_treasury/client.rbi +61 -86
  290. data/rbi/lib/modern_treasury/errors.rbi +125 -127
  291. data/rbi/lib/modern_treasury/internal/page.rbi +29 -0
  292. data/rbi/lib/modern_treasury/internal/transport/base_client.rbi +198 -0
  293. data/rbi/lib/modern_treasury/internal/transport/pooled_net_requester.rbi +60 -0
  294. data/rbi/lib/modern_treasury/internal/type/array_of.rbi +79 -0
  295. data/rbi/lib/modern_treasury/internal/type/base_model.rbi +193 -0
  296. data/rbi/lib/modern_treasury/internal/type/base_page.rbi +36 -0
  297. data/rbi/lib/modern_treasury/internal/type/boolean.rbi +43 -0
  298. data/rbi/lib/modern_treasury/internal/type/converter.rbi +104 -0
  299. data/rbi/lib/modern_treasury/internal/type/enum.rbi +59 -0
  300. data/rbi/lib/modern_treasury/internal/type/hash_of.rbi +79 -0
  301. data/rbi/lib/modern_treasury/internal/type/request_parameters.rbi +21 -0
  302. data/rbi/lib/modern_treasury/internal/type/union.rbi +69 -0
  303. data/rbi/lib/modern_treasury/internal/type/unknown.rbi +37 -0
  304. data/rbi/lib/modern_treasury/internal/util.rbi +254 -0
  305. data/rbi/lib/modern_treasury/internal.rbi +12 -0
  306. data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +122 -123
  307. data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +79 -49
  308. data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +24 -42
  309. data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +8 -7
  310. data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +34 -22
  311. data/rbi/lib/modern_treasury/models/account_detail.rbi +49 -82
  312. data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +65 -51
  313. data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +29 -34
  314. data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +15 -29
  315. data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +19 -29
  316. data/rbi/lib/modern_treasury/models/accounts_type.rbi +9 -7
  317. data/rbi/lib/modern_treasury/models/async_response.rbi +6 -18
  318. data/rbi/lib/modern_treasury/models/bank_settings.rbi +25 -68
  319. data/rbi/lib/modern_treasury/models/bulk_request.rbi +79 -114
  320. data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +4133 -2573
  321. data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +85 -76
  322. data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +8 -7
  323. data/rbi/lib/modern_treasury/models/bulk_result.rbi +124 -204
  324. data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +89 -80
  325. data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +8 -7
  326. data/rbi/lib/modern_treasury/models/client_ping_params.rbi +8 -7
  327. data/rbi/lib/modern_treasury/models/connection.rbi +19 -62
  328. data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +37 -80
  329. data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1185 -695
  330. data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +39 -49
  331. data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +8 -7
  332. data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +34 -21
  333. data/rbi/lib/modern_treasury/models/connection_list_params.rbi +19 -29
  334. data/rbi/lib/modern_treasury/models/counterparty.rbi +264 -387
  335. data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +120 -70
  336. data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +14 -24
  337. data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +1998 -1124
  338. data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +8 -7
  339. data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +40 -52
  340. data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +8 -7
  341. data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +32 -42
  342. data/rbi/lib/modern_treasury/models/currency.rbi +197 -194
  343. data/rbi/lib/modern_treasury/models/document.rbi +96 -187
  344. data/rbi/lib/modern_treasury/models/document_create_params.rbi +53 -52
  345. data/rbi/lib/modern_treasury/models/document_list_params.rbi +61 -49
  346. data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +8 -7
  347. data/rbi/lib/modern_treasury/models/event.rbi +21 -65
  348. data/rbi/lib/modern_treasury/models/event_list_params.rbi +29 -47
  349. data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +8 -7
  350. data/rbi/lib/modern_treasury/models/expected_payment.rbi +123 -206
  351. data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +331 -318
  352. data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +8 -7
  353. data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +120 -122
  354. data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +8 -7
  355. data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +40 -35
  356. data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +94 -141
  357. data/rbi/lib/modern_treasury/models/external_account.rbi +170 -312
  358. data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +10 -14
  359. data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +737 -362
  360. data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +8 -7
  361. data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +25 -37
  362. data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +8 -7
  363. data/rbi/lib/modern_treasury/models/external_account_type.rbi +17 -13
  364. data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +73 -106
  365. data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +117 -103
  366. data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +310 -131
  367. data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +72 -133
  368. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +36 -49
  369. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +42 -57
  370. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +8 -7
  371. data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +302 -249
  372. data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +109 -88
  373. data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +103 -95
  374. data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +8 -7
  375. data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +12 -14
  376. data/rbi/lib/modern_treasury/models/internal_account.rbi +114 -234
  377. data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +81 -113
  378. data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +94 -99
  379. data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +8 -7
  380. data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +29 -36
  381. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +176 -197
  382. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +169 -102
  383. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +8 -15
  384. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +71 -38
  385. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +8 -15
  386. data/rbi/lib/modern_treasury/models/invoice.rbi +256 -472
  387. data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +8 -18
  388. data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +313 -415
  389. data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +63 -81
  390. data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +8 -7
  391. data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +321 -411
  392. data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +38 -88
  393. data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +39 -48
  394. data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +8 -15
  395. data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +11 -20
  396. data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +8 -15
  397. data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +44 -52
  398. data/rbi/lib/modern_treasury/models/ledger.rbi +19 -59
  399. data/rbi/lib/modern_treasury/models/ledger_account.rbi +157 -263
  400. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +171 -266
  401. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +48 -55
  402. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +8 -7
  403. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +26 -34
  404. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +8 -7
  405. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +16 -19
  406. data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +132 -219
  407. data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +8 -18
  408. data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +8 -18
  409. data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +33 -60
  410. data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +8 -7
  411. data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +67 -75
  412. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +8 -18
  413. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +8 -18
  414. data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +36 -32
  415. data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +18 -25
  416. data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +71 -84
  417. data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +8 -7
  418. data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +202 -223
  419. data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +47 -50
  420. data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +61 -124
  421. data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +55 -67
  422. data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +47 -62
  423. data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +8 -7
  424. data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +39 -34
  425. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +16 -23
  426. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +10 -15
  427. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +24 -40
  428. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +257 -373
  429. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +8 -7
  430. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +255 -373
  431. data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +18 -25
  432. data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +16 -26
  433. data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +8 -7
  434. data/rbi/lib/modern_treasury/models/ledger_entry.rbi +180 -256
  435. data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +177 -158
  436. data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +12 -14
  437. data/rbi/lib/modern_treasury/models/ledger_entry_update_params.rbi +12 -14
  438. data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +90 -173
  439. data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +93 -143
  440. data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +8 -7
  441. data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +26 -34
  442. data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +8 -7
  443. data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +28 -41
  444. data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +28 -34
  445. data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +8 -7
  446. data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +89 -151
  447. data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +152 -150
  448. data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +96 -72
  449. data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +126 -70
  450. data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +213 -167
  451. data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +8 -7
  452. data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +152 -137
  453. data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +350 -409
  454. data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +33 -42
  455. data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +18 -25
  456. data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +23 -68
  457. data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +18 -32
  458. data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +8 -7
  459. data/rbi/lib/modern_treasury/models/legal_entity.rbi +259 -445
  460. data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +512 -501
  461. data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +618 -352
  462. data/rbi/lib/modern_treasury/models/legal_entity_compliance_detail.rbi +103 -0
  463. data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +943 -658
  464. data/rbi/lib/modern_treasury/models/legal_entity_industry_classification.rbi +136 -0
  465. data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +39 -47
  466. data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +8 -7
  467. data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +297 -290
  468. data/rbi/lib/modern_treasury/models/line_item.rbi +62 -115
  469. data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +27 -36
  470. data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +35 -39
  471. data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +30 -36
  472. data/rbi/lib/modern_treasury/models/paper_item.rbi +58 -130
  473. data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +25 -37
  474. data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +8 -7
  475. data/rbi/lib/modern_treasury/models/payment_flow.rbi +149 -149
  476. data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +42 -56
  477. data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +30 -52
  478. data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +8 -7
  479. data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +31 -23
  480. data/rbi/lib/modern_treasury/models/payment_order.rbi +777 -629
  481. data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +1343 -814
  482. data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +1424 -879
  483. data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +165 -178
  484. data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +8 -7
  485. data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +41 -34
  486. data/rbi/lib/modern_treasury/models/payment_order_type.rbi +40 -35
  487. data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1155 -692
  488. data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +63 -101
  489. data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +288 -195
  490. data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +11 -20
  491. data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +8 -15
  492. data/rbi/lib/modern_treasury/models/payment_reference.rbi +315 -154
  493. data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +55 -49
  494. data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +8 -7
  495. data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +8 -7
  496. data/rbi/lib/modern_treasury/models/ping_response.rbi +5 -12
  497. data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +99 -125
  498. data/rbi/lib/modern_treasury/models/return_create_params.rbi +117 -123
  499. data/rbi/lib/modern_treasury/models/return_list_params.rbi +51 -55
  500. data/rbi/lib/modern_treasury/models/return_object.rbi +622 -410
  501. data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +8 -7
  502. data/rbi/lib/modern_treasury/models/routing_detail.rbi +148 -220
  503. data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +165 -111
  504. data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +29 -34
  505. data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +15 -29
  506. data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +19 -29
  507. data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +198 -134
  508. data/rbi/lib/modern_treasury/models/transaction.rbi +210 -296
  509. data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +87 -111
  510. data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +8 -7
  511. data/rbi/lib/modern_treasury/models/transaction_direction.rbi +10 -7
  512. data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +61 -82
  513. data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +8 -7
  514. data/rbi/lib/modern_treasury/models/transaction_update_params.rbi +12 -14
  515. data/rbi/lib/modern_treasury/models/transactions/line_item_create_params.rbi +14 -27
  516. data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +7 -8
  517. data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +34 -45
  518. data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +7 -8
  519. data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +116 -124
  520. data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +145 -49
  521. data/rbi/lib/modern_treasury/models/virtual_account.rbi +42 -112
  522. data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +590 -274
  523. data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +8 -7
  524. data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +24 -37
  525. data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +8 -7
  526. data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +18 -29
  527. data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +304 -266
  528. data/rbi/lib/modern_treasury/request_options.rbi +28 -66
  529. data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +35 -22
  530. data/rbi/lib/modern_treasury/resources/account_details.rbi +56 -25
  531. data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +52 -32
  532. data/rbi/lib/modern_treasury/resources/bulk_results.rbi +25 -15
  533. data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +40 -23
  534. data/rbi/lib/modern_treasury/resources/connections.rbi +15 -8
  535. data/rbi/lib/modern_treasury/resources/counterparties.rbi +84 -35
  536. data/rbi/lib/modern_treasury/resources/documents.rbi +31 -18
  537. data/rbi/lib/modern_treasury/resources/events.rbi +16 -12
  538. data/rbi/lib/modern_treasury/resources/expected_payments.rbi +118 -38
  539. data/rbi/lib/modern_treasury/resources/external_accounts.rbi +113 -46
  540. data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +36 -18
  541. data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +61 -26
  542. data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +64 -23
  543. data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +55 -27
  544. data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +93 -24
  545. data/rbi/lib/modern_treasury/resources/invoices.rbi +178 -43
  546. data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +57 -25
  547. data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +108 -43
  548. data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +34 -12
  549. data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +63 -24
  550. data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +22 -11
  551. data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +100 -31
  552. data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +64 -19
  553. data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +48 -23
  554. data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +23 -8
  555. data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +130 -42
  556. data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +24 -11
  557. data/rbi/lib/modern_treasury/resources/ledgers.rbi +62 -24
  558. data/rbi/lib/modern_treasury/resources/legal_entities.rbi +98 -37
  559. data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +17 -9
  560. data/rbi/lib/modern_treasury/resources/line_items.rbi +45 -19
  561. data/rbi/lib/modern_treasury/resources/paper_items.rbi +18 -12
  562. data/rbi/lib/modern_treasury/resources/payment_flows.rbi +40 -22
  563. data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +60 -18
  564. data/rbi/lib/modern_treasury/resources/payment_orders.rbi +355 -66
  565. data/rbi/lib/modern_treasury/resources/payment_references.rbi +20 -23
  566. data/rbi/lib/modern_treasury/resources/returns.rbi +40 -19
  567. data/rbi/lib/modern_treasury/resources/routing_details.rbi +54 -26
  568. data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +53 -18
  569. data/rbi/lib/modern_treasury/resources/transactions.rbi +67 -27
  570. data/rbi/lib/modern_treasury/resources/validations.rbi +17 -8
  571. data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +65 -27
  572. data/rbi/lib/modern_treasury/version.rbi +1 -1
  573. data/sig/modern_treasury/client.rbs +13 -9
  574. data/sig/modern_treasury/errors.rbs +98 -95
  575. data/sig/modern_treasury/internal/page.rbs +19 -0
  576. data/sig/modern_treasury/internal/transport/base_client.rbs +110 -0
  577. data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +41 -0
  578. data/sig/modern_treasury/internal/type/array_of.rbs +38 -0
  579. data/sig/modern_treasury/internal/type/base_model.rbs +81 -0
  580. data/sig/modern_treasury/internal/type/base_page.rbs +24 -0
  581. data/sig/modern_treasury/internal/type/boolean.rbs +20 -0
  582. data/sig/modern_treasury/internal/type/converter.rbs +44 -0
  583. data/sig/modern_treasury/internal/type/enum.rbs +24 -0
  584. data/sig/modern_treasury/internal/type/hash_of.rbs +38 -0
  585. data/sig/modern_treasury/internal/type/request_parameters.rbs +16 -0
  586. data/sig/modern_treasury/internal/type/union.rbs +42 -0
  587. data/sig/modern_treasury/internal/type/unknown.rbs +20 -0
  588. data/sig/modern_treasury/internal/util.rbs +139 -0
  589. data/sig/modern_treasury/{extern.rbs → internal.rbs} +2 -1
  590. data/sig/modern_treasury/models/account_collection_flow.rbs +26 -25
  591. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +14 -17
  592. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +13 -18
  593. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +5 -10
  594. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +12 -15
  595. data/sig/modern_treasury/models/account_detail.rbs +16 -19
  596. data/sig/modern_treasury/models/account_detail_create_params.rbs +18 -19
  597. data/sig/modern_treasury/models/account_detail_delete_params.rbs +13 -16
  598. data/sig/modern_treasury/models/account_detail_list_params.rbs +10 -15
  599. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +9 -14
  600. data/sig/modern_treasury/models/accounts_type.rbs +4 -2
  601. data/sig/modern_treasury/models/async_response.rbs +2 -7
  602. data/sig/modern_treasury/models/bank_settings.rbs +13 -18
  603. data/sig/modern_treasury/models/bulk_request.rbs +36 -27
  604. data/sig/modern_treasury/models/bulk_request_create_params.rbs +537 -616
  605. data/sig/modern_treasury/models/bulk_request_list_params.rbs +34 -26
  606. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +5 -10
  607. data/sig/modern_treasury/models/bulk_result.rbs +52 -50
  608. data/sig/modern_treasury/models/bulk_result_list_params.rbs +32 -27
  609. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +6 -10
  610. data/sig/modern_treasury/models/client_ping_params.rbs +6 -10
  611. data/sig/modern_treasury/models/connection.rbs +12 -16
  612. data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -20
  613. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +175 -179
  614. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +16 -19
  615. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +5 -10
  616. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +12 -15
  617. data/sig/modern_treasury/models/connection_list_params.rbs +11 -16
  618. data/sig/modern_treasury/models/counterparty.rbs +82 -91
  619. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +17 -20
  620. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -7
  621. data/sig/modern_treasury/models/counterparty_create_params.rbs +276 -297
  622. data/sig/modern_treasury/models/counterparty_delete_params.rbs +6 -10
  623. data/sig/modern_treasury/models/counterparty_list_params.rbs +15 -20
  624. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +5 -10
  625. data/sig/modern_treasury/models/counterparty_update_params.rbs +13 -18
  626. data/sig/modern_treasury/models/currency.rbs +4 -2
  627. data/sig/modern_treasury/models/document.rbs +36 -44
  628. data/sig/modern_treasury/models/document_create_params.rbs +15 -18
  629. data/sig/modern_treasury/models/document_list_params.rbs +15 -18
  630. data/sig/modern_treasury/models/document_retrieve_params.rbs +6 -10
  631. data/sig/modern_treasury/models/event.rbs +13 -17
  632. data/sig/modern_treasury/models/event_list_params.rbs +14 -19
  633. data/sig/modern_treasury/models/event_retrieve_params.rbs +6 -10
  634. data/sig/modern_treasury/models/expected_payment.rbs +41 -40
  635. data/sig/modern_treasury/models/expected_payment_create_params.rbs +69 -83
  636. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +5 -10
  637. data/sig/modern_treasury/models/expected_payment_list_params.rbs +25 -26
  638. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +5 -10
  639. data/sig/modern_treasury/models/expected_payment_type.rbs +4 -2
  640. data/sig/modern_treasury/models/expected_payment_update_params.rbs +32 -33
  641. data/sig/modern_treasury/models/external_account.rbs +63 -70
  642. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +9 -13
  643. data/sig/modern_treasury/models/external_account_create_params.rbs +82 -100
  644. data/sig/modern_treasury/models/external_account_delete_params.rbs +5 -10
  645. data/sig/modern_treasury/models/external_account_list_params.rbs +12 -17
  646. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +5 -10
  647. data/sig/modern_treasury/models/external_account_type.rbs +4 -2
  648. data/sig/modern_treasury/models/external_account_update_params.rbs +27 -35
  649. data/sig/modern_treasury/models/external_account_verify_params.rbs +24 -23
  650. data/sig/modern_treasury/models/external_account_verify_response.rbs +29 -26
  651. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -35
  652. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +13 -18
  653. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +16 -21
  654. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +5 -10
  655. data/sig/modern_treasury/models/incoming_payment_detail.rbs +61 -42
  656. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +44 -25
  657. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +41 -26
  658. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +5 -10
  659. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +9 -13
  660. data/sig/modern_treasury/models/internal_account.rbs +44 -50
  661. data/sig/modern_treasury/models/internal_account_create_params.rbs +29 -37
  662. data/sig/modern_treasury/models/internal_account_list_params.rbs +19 -22
  663. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +5 -10
  664. data/sig/modern_treasury/models/internal_account_update_params.rbs +12 -17
  665. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +41 -47
  666. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +26 -32
  667. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +9 -13
  668. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +15 -18
  669. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +9 -13
  670. data/sig/modern_treasury/models/invoice.rbs +94 -110
  671. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +8 -10
  672. data/sig/modern_treasury/models/invoice_create_params.rbs +88 -114
  673. data/sig/modern_treasury/models/invoice_list_params.rbs +22 -25
  674. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +6 -10
  675. data/sig/modern_treasury/models/invoice_update_params.rbs +88 -114
  676. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +16 -22
  677. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +14 -19
  678. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +9 -13
  679. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +9 -14
  680. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +9 -13
  681. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +15 -20
  682. data/sig/modern_treasury/models/ledger.rbs +12 -16
  683. data/sig/modern_treasury/models/ledger_account.rbs +54 -77
  684. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +56 -87
  685. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +17 -23
  686. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +5 -10
  687. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +12 -17
  688. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +5 -10
  689. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +9 -14
  690. data/sig/modern_treasury/models/ledger_account_category.rbs +45 -70
  691. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +8 -10
  692. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +8 -10
  693. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +15 -20
  694. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +5 -10
  695. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +19 -29
  696. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +8 -10
  697. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +8 -10
  698. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +10 -20
  699. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +10 -15
  700. data/sig/modern_treasury/models/ledger_account_create_params.rbs +21 -24
  701. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +5 -10
  702. data/sig/modern_treasury/models/ledger_account_list_params.rbs +55 -80
  703. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +16 -26
  704. data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -27
  705. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +19 -22
  706. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +17 -22
  707. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +5 -10
  708. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +14 -17
  709. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +10 -14
  710. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +8 -13
  711. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +12 -17
  712. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -123
  713. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +5 -10
  714. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -123
  715. data/sig/modern_treasury/models/ledger_account_update_params.rbs +10 -15
  716. data/sig/modern_treasury/models/ledger_create_params.rbs +10 -15
  717. data/sig/modern_treasury/models/ledger_delete_params.rbs +6 -10
  718. data/sig/modern_treasury/models/ledger_entry.rbs +53 -75
  719. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +44 -48
  720. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +9 -13
  721. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +9 -13
  722. data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -51
  723. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +29 -49
  724. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +5 -10
  725. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +12 -17
  726. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +5 -10
  727. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -17
  728. data/sig/modern_treasury/models/ledger_list_params.rbs +12 -17
  729. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +6 -10
  730. data/sig/modern_treasury/models/ledger_transaction.rbs +30 -31
  731. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +36 -42
  732. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +22 -30
  733. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +22 -23
  734. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +47 -49
  735. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +5 -10
  736. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +34 -40
  737. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -107
  738. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +13 -18
  739. data/sig/modern_treasury/models/ledger_update_params.rbs +10 -15
  740. data/sig/modern_treasury/models/ledgerable_event.rbs +13 -18
  741. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +11 -16
  742. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +5 -10
  743. data/sig/modern_treasury/models/legal_entity.rbs +90 -91
  744. data/sig/modern_treasury/models/legal_entity_association.rbs +107 -112
  745. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +93 -94
  746. data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +62 -0
  747. data/sig/modern_treasury/models/legal_entity_create_params.rbs +169 -168
  748. data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +85 -0
  749. data/sig/modern_treasury/models/legal_entity_list_params.rbs +16 -19
  750. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +5 -10
  751. data/sig/modern_treasury/models/legal_entity_update_params.rbs +75 -75
  752. data/sig/modern_treasury/models/line_item.rbs +22 -29
  753. data/sig/modern_treasury/models/line_item_list_params.rbs +14 -17
  754. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +13 -16
  755. data/sig/modern_treasury/models/line_item_update_params.rbs +14 -17
  756. data/sig/modern_treasury/models/paper_item.rbs +25 -27
  757. data/sig/modern_treasury/models/paper_item_list_params.rbs +12 -17
  758. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +6 -10
  759. data/sig/modern_treasury/models/payment_flow.rbs +38 -34
  760. data/sig/modern_treasury/models/payment_flow_create_params.rbs +17 -20
  761. data/sig/modern_treasury/models/payment_flow_list_params.rbs +15 -20
  762. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +5 -10
  763. data/sig/modern_treasury/models/payment_flow_update_params.rbs +12 -15
  764. data/sig/modern_treasury/models/payment_order.rbs +117 -113
  765. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +180 -209
  766. data/sig/modern_treasury/models/payment_order_create_params.rbs +192 -224
  767. data/sig/modern_treasury/models/payment_order_list_params.rbs +36 -35
  768. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +5 -10
  769. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -2
  770. data/sig/modern_treasury/models/payment_order_type.rbs +4 -2
  771. data/sig/modern_treasury/models/payment_order_update_params.rbs +151 -172
  772. data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -23
  773. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +46 -55
  774. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +9 -14
  775. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +9 -13
  776. data/sig/modern_treasury/models/payment_reference.rbs +26 -21
  777. data/sig/modern_treasury/models/payment_reference_list_params.rbs +16 -19
  778. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +5 -10
  779. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +5 -10
  780. data/sig/modern_treasury/models/ping_response.rbs +2 -7
  781. data/sig/modern_treasury/models/reconciliation_rule.rbs +21 -22
  782. data/sig/modern_treasury/models/return_create_params.rbs +37 -34
  783. data/sig/modern_treasury/models/return_list_params.rbs +17 -20
  784. data/sig/modern_treasury/models/return_object.rbs +83 -71
  785. data/sig/modern_treasury/models/return_retrieve_params.rbs +6 -10
  786. data/sig/modern_treasury/models/routing_detail.rbs +36 -42
  787. data/sig/modern_treasury/models/routing_detail_create_params.rbs +23 -22
  788. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +13 -16
  789. data/sig/modern_treasury/models/routing_detail_list_params.rbs +10 -15
  790. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +9 -14
  791. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +28 -32
  792. data/sig/modern_treasury/models/transaction.rbs +50 -53
  793. data/sig/modern_treasury/models/transaction_create_params.rbs +21 -24
  794. data/sig/modern_treasury/models/transaction_delete_params.rbs +6 -10
  795. data/sig/modern_treasury/models/transaction_direction.rbs +4 -2
  796. data/sig/modern_treasury/models/transaction_list_params.rbs +21 -26
  797. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +6 -10
  798. data/sig/modern_treasury/models/transaction_update_params.rbs +9 -13
  799. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +10 -15
  800. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +6 -10
  801. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +16 -19
  802. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +6 -10
  803. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -28
  804. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +13 -16
  805. data/sig/modern_treasury/models/virtual_account.rbs +19 -24
  806. data/sig/modern_treasury/models/virtual_account_create_params.rbs +57 -69
  807. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +5 -10
  808. data/sig/modern_treasury/models/virtual_account_list_params.rbs +12 -17
  809. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +5 -10
  810. data/sig/modern_treasury/models/virtual_account_update_params.rbs +11 -16
  811. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -38
  812. data/sig/modern_treasury/request_options.rbs +7 -13
  813. data/sig/modern_treasury/resources/account_collection_flows.rbs +24 -46
  814. data/sig/modern_treasury/resources/account_details.rbs +26 -50
  815. data/sig/modern_treasury/resources/bulk_requests.rbs +20 -36
  816. data/sig/modern_treasury/resources/bulk_results.rbs +14 -25
  817. data/sig/modern_treasury/resources/connection_legal_entities.rbs +23 -45
  818. data/sig/modern_treasury/resources/connections.rbs +7 -12
  819. data/sig/modern_treasury/resources/counterparties.rbs +51 -82
  820. data/sig/modern_treasury/resources/documents.rbs +18 -34
  821. data/sig/modern_treasury/resources/events.rbs +14 -24
  822. data/sig/modern_treasury/resources/expected_payments.rbs +64 -92
  823. data/sig/modern_treasury/resources/external_accounts.rbs +57 -94
  824. data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +25 -41
  825. data/sig/modern_treasury/resources/incoming_payment_details.rbs +33 -54
  826. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +26 -50
  827. data/sig/modern_treasury/resources/internal_accounts.rbs +36 -58
  828. data/sig/modern_treasury/resources/invoices/line_items.rbs +39 -69
  829. data/sig/modern_treasury/resources/invoices.rbs +80 -108
  830. data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +29 -57
  831. data/sig/modern_treasury/resources/ledger_account_categories.rbs +60 -112
  832. data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +10 -22
  833. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +35 -57
  834. data/sig/modern_treasury/resources/ledger_account_statements.rbs +12 -23
  835. data/sig/modern_treasury/resources/ledger_accounts.rbs +46 -74
  836. data/sig/modern_treasury/resources/ledger_entries.rbs +33 -50
  837. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +26 -48
  838. data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +9 -14
  839. data/sig/modern_treasury/resources/ledger_transactions.rbs +68 -102
  840. data/sig/modern_treasury/resources/ledgerable_events.rbs +11 -22
  841. data/sig/modern_treasury/resources/ledgers.rbs +29 -56
  842. data/sig/modern_treasury/resources/legal_entities.rbs +69 -87
  843. data/sig/modern_treasury/resources/legal_entity_associations.rbs +9 -14
  844. data/sig/modern_treasury/resources/line_items.rbs +20 -38
  845. data/sig/modern_treasury/resources/paper_items.rbs +12 -23
  846. data/sig/modern_treasury/resources/payment_flows.rbs +29 -51
  847. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +18 -36
  848. data/sig/modern_treasury/resources/payment_orders.rbs +139 -166
  849. data/sig/modern_treasury/resources/payment_references.rbs +13 -33
  850. data/sig/modern_treasury/resources/returns.rbs +23 -37
  851. data/sig/modern_treasury/resources/routing_details.rbs +27 -51
  852. data/sig/modern_treasury/resources/transactions/line_items.rbs +22 -41
  853. data/sig/modern_treasury/resources/transactions.rbs +43 -68
  854. data/sig/modern_treasury/resources/validations.rbs +5 -10
  855. data/sig/modern_treasury/resources/virtual_accounts.rbs +37 -65
  856. data/sig/modern_treasury/version.rbs +1 -1
  857. metadata +55 -25
  858. data/lib/modern_treasury/base_client.rb +0 -475
  859. data/lib/modern_treasury/base_model.rb +0 -1191
  860. data/lib/modern_treasury/base_page.rb +0 -40
  861. data/lib/modern_treasury/extern.rb +0 -10
  862. data/lib/modern_treasury/page.rb +0 -94
  863. data/lib/modern_treasury/pooled_net_requester.rb +0 -163
  864. data/lib/modern_treasury/util.rb +0 -468
  865. data/rbi/lib/modern_treasury/base_client.rbi +0 -161
  866. data/rbi/lib/modern_treasury/base_model.rbi +0 -480
  867. data/rbi/lib/modern_treasury/base_page.rbi +0 -39
  868. data/rbi/lib/modern_treasury/extern.rbi +0 -7
  869. data/rbi/lib/modern_treasury/page.rbi +0 -49
  870. data/rbi/lib/modern_treasury/pooled_net_requester.rbi +0 -59
  871. data/rbi/lib/modern_treasury/util.rbi +0 -135
  872. data/sig/modern_treasury/base_client.rbs +0 -100
  873. data/sig/modern_treasury/base_model.rbs +0 -246
  874. data/sig/modern_treasury/base_page.rbs +0 -20
  875. data/sig/modern_treasury/page.rbs +0 -22
  876. data/sig/modern_treasury/pooled_net_requester.rbs +0 -42
  877. data/sig/modern_treasury/util.rbs +0 -91
@@ -2,10 +2,11 @@
2
2
 
3
3
  module ModernTreasury
4
4
  module Models
5
- class BulkRequestCreateParams < ModernTreasury::BaseModel
5
+ # @see ModernTreasury::Resources::BulkRequests#create
6
+ class BulkRequestCreateParams < ModernTreasury::Internal::Type::BaseModel
6
7
  # @!parse
7
- # extend ModernTreasury::RequestParameters::Converter
8
- include ModernTreasury::RequestParameters
8
+ # extend ModernTreasury::Internal::Type::RequestParameters::Converter
9
+ include ModernTreasury::Internal::Type::RequestParameters
9
10
 
10
11
  # @!attribute action_type
11
12
  # One of create, or update.
@@ -21,18 +22,18 @@ module ModernTreasury
21
22
 
22
23
  # @!attribute resources
23
24
  # An array of objects where each object contains the input params for a single
24
- # `action_type` request on a `resource_type` resource
25
+ # `action_type` request on a `resource_type` resource
25
26
  #
26
27
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>]
27
28
  required :resources,
28
- -> { ModernTreasury::ArrayOf[union: ModernTreasury::Models::BulkRequestCreateParams::Resource] }
29
+ -> { ModernTreasury::Internal::Type::ArrayOf[union: ModernTreasury::Models::BulkRequestCreateParams::Resource] }
29
30
 
30
31
  # @!attribute [r] metadata
31
32
  # Additional data represented as key-value pairs. Both the key and value must be
32
- # strings.
33
+ # strings.
33
34
  #
34
35
  # @return [Hash{Symbol=>String}, nil]
35
- optional :metadata, ModernTreasury::HashOf[String]
36
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
36
37
 
37
38
  # @!parse
38
39
  # # @return [Hash{Symbol=>String}]
@@ -47,24 +48,12 @@ module ModernTreasury
47
48
  # #
48
49
  # def initialize(action_type:, resource_type:, resources:, metadata: nil, request_options: {}, **) = super
49
50
 
50
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
51
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
51
52
 
52
- # @abstract
53
- #
54
53
  # One of create, or update.
55
- #
56
- # @example
57
- # ```ruby
58
- # case action_type
59
- # in :create
60
- # # ...
61
- # in :update
62
- # # ...
63
- # in :delete
64
- # # ...
65
- # end
66
- # ```
67
- class ActionType < ModernTreasury::Enum
54
+ module ActionType
55
+ extend ModernTreasury::Internal::Type::Enum
56
+
68
57
  CREATE = :create
69
58
  UPDATE = :update
70
59
  DELETE = :delete
@@ -73,67 +62,30 @@ module ModernTreasury
73
62
 
74
63
  # @!parse
75
64
  # # @return [Array<Symbol>]
76
- # #
77
65
  # def self.values; end
78
66
  end
79
67
 
80
- # @abstract
81
- #
82
68
  # One of payment_order, expected_payment, or ledger_transaction.
83
- #
84
- # @example
85
- # ```ruby
86
- # case resource_type
87
- # in :payment_order
88
- # # ...
89
- # in :ledger_transaction
90
- # # ...
91
- # in :transaction
92
- # # ...
93
- # in :expected_payment
94
- # # ...
95
- # end
96
- # ```
97
- class ResourceType < ModernTreasury::Enum
69
+ module ResourceType
70
+ extend ModernTreasury::Internal::Type::Enum
71
+
98
72
  PAYMENT_ORDER = :payment_order
73
+ LEDGER_ACCOUNT = :ledger_account
99
74
  LEDGER_TRANSACTION = :ledger_transaction
100
- TRANSACTION = :transaction
101
75
  EXPECTED_PAYMENT = :expected_payment
76
+ TRANSACTION = :transaction
77
+ ENTITY_LINK = :entity_link
102
78
 
103
79
  finalize!
104
80
 
105
81
  # @!parse
106
82
  # # @return [Array<Symbol>]
107
- # #
108
83
  # def self.values; end
109
84
  end
110
85
 
111
- # @abstract
112
- #
113
- # @example
114
- # ```ruby
115
- # case resource
116
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest
117
- # # ...
118
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest
119
- # # ...
120
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest
121
- # # ...
122
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest
123
- # # ...
124
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::ID
125
- # # ...
126
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID
127
- # # ...
128
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID
129
- # # ...
130
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID
131
- # # ...
132
- # in ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID
133
- # # ...
134
- # end
135
- # ```
136
- class Resource < ModernTreasury::Union
86
+ module Resource
87
+ extend ModernTreasury::Internal::Type::Union
88
+
137
89
  variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest }
138
90
 
139
91
  variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest }
@@ -152,19 +104,19 @@ module ModernTreasury
152
104
 
153
105
  variant -> { ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID }
154
106
 
155
- class PaymentOrderAsyncCreateRequest < ModernTreasury::BaseModel
107
+ class PaymentOrderAsyncCreateRequest < ModernTreasury::Internal::Type::BaseModel
156
108
  # @!attribute amount
157
109
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
158
- # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
110
+ # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
159
111
  #
160
112
  # @return [Integer]
161
113
  required :amount, Integer
162
114
 
163
115
  # @!attribute direction
164
116
  # One of `credit`, `debit`. Describes the direction money is flowing in the
165
- # transaction. A `credit` moves money from your account to someone else's. A
166
- # `debit` pulls money from someone else's account to your own. Note that wire,
167
- # rtp, and check payments will always be `credit`.
117
+ # transaction. A `credit` moves money from your account to someone else's. A
118
+ # `debit` pulls money from someone else's account to your own. Note that wire,
119
+ # rtp, and check payments will always be `credit`.
168
120
  #
169
121
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Direction]
170
122
  required :direction,
@@ -178,8 +130,8 @@ module ModernTreasury
178
130
 
179
131
  # @!attribute type
180
132
  # One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
181
- # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
182
- # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
133
+ # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
134
+ # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
183
135
  #
184
136
  # @return [Symbol, ModernTreasury::Models::PaymentOrderType]
185
137
  required :type, enum: -> { ModernTreasury::Models::PaymentOrderType }
@@ -196,22 +148,22 @@ module ModernTreasury
196
148
 
197
149
  # @!attribute accounting_category_id
198
150
  # The ID of one of your accounting categories. Note that these will only be
199
- # accessible if your accounting system has been connected.
151
+ # accessible if your accounting system has been connected.
200
152
  #
201
153
  # @return [String, nil]
202
154
  optional :accounting_category_id, String, nil?: true
203
155
 
204
156
  # @!attribute accounting_ledger_class_id
205
157
  # The ID of one of your accounting ledger classes. Note that these will only be
206
- # accessible if your accounting system has been connected.
158
+ # accessible if your accounting system has been connected.
207
159
  #
208
160
  # @return [String, nil]
209
161
  optional :accounting_ledger_class_id, String, nil?: true
210
162
 
211
163
  # @!attribute charge_bearer
212
164
  # The party that will pay the fees for the payment order. Only applies to wire
213
- # payment orders. Can be one of shared, sender, or receiver, which correspond
214
- # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
165
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
166
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
215
167
  #
216
168
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ChargeBearer, nil]
217
169
  optional :charge_bearer,
@@ -236,8 +188,8 @@ module ModernTreasury
236
188
 
237
189
  # @!attribute [r] effective_date
238
190
  # Date transactions are to be posted to the participants' account. Defaults to the
239
- # current business day or the next business day if the current day is a bank
240
- # holiday or weekend. Format: yyyy-mm-dd.
191
+ # current business day or the next business day if the current day is a bank
192
+ # holiday or weekend. Format: yyyy-mm-dd.
241
193
  #
242
194
  # @return [Date, nil]
243
195
  optional :effective_date, Date
@@ -254,8 +206,8 @@ module ModernTreasury
254
206
 
255
207
  # @!attribute [r] fallback_type
256
208
  # A payment type to fallback to if the original type is not valid for the
257
- # receiving account. Currently, this only supports falling back from RTP to ACH
258
- # (type=rtp and fallback_type=ach)
209
+ # receiving account. Currently, this only supports falling back from RTP to ACH
210
+ # (type=rtp and fallback_type=ach)
259
211
  #
260
212
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::FallbackType, nil]
261
213
  optional :fallback_type,
@@ -267,15 +219,15 @@ module ModernTreasury
267
219
 
268
220
  # @!attribute foreign_exchange_contract
269
221
  # If present, indicates a specific foreign exchange contract number that has been
270
- # generated by your financial institution.
222
+ # generated by your financial institution.
271
223
  #
272
224
  # @return [String, nil]
273
225
  optional :foreign_exchange_contract, String, nil?: true
274
226
 
275
227
  # @!attribute foreign_exchange_indicator
276
228
  # Indicates the type of FX transfer to initiate, can be either
277
- # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
278
- # currency matches the originating account currency.
229
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
230
+ # currency matches the originating account currency.
279
231
  #
280
232
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ForeignExchangeIndicator, nil]
281
233
  optional :foreign_exchange_indicator,
@@ -284,9 +236,9 @@ module ModernTreasury
284
236
 
285
237
  # @!attribute [r] ledger_transaction
286
238
  # Specifies a ledger transaction object that will be created with the payment
287
- # order. If the ledger transaction cannot be created, then the payment order
288
- # creation will fail. The resulting ledger transaction will mirror the status of
289
- # the payment order.
239
+ # order. If the ledger transaction cannot be created, then the payment order
240
+ # creation will fail. The resulting ledger transaction will mirror the status of
241
+ # the payment order.
290
242
  #
291
243
  # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction, nil]
292
244
  optional :ledger_transaction,
@@ -298,9 +250,9 @@ module ModernTreasury
298
250
 
299
251
  # @!attribute [r] ledger_transaction_id
300
252
  # Either ledger_transaction or ledger_transaction_id can be provided. Only a
301
- # pending ledger transaction can be attached upon payment order creation. Once the
302
- # payment order is created, the status of the ledger transaction tracks the
303
- # payment order automatically.
253
+ # pending ledger transaction can be attached upon payment order creation. Once the
254
+ # payment order is created, the status of the ledger transaction tracks the
255
+ # payment order automatically.
304
256
  #
305
257
  # @return [String, nil]
306
258
  optional :ledger_transaction_id, String
@@ -314,7 +266,7 @@ module ModernTreasury
314
266
  #
315
267
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem>, nil]
316
268
  optional :line_items,
317
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem] }
269
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem] }
318
270
 
319
271
  # @!parse
320
272
  # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LineItem>]
@@ -322,10 +274,10 @@ module ModernTreasury
322
274
 
323
275
  # @!attribute [r] metadata
324
276
  # Additional data represented as key-value pairs. Both the key and value must be
325
- # strings.
277
+ # strings.
326
278
  #
327
279
  # @return [Hash{Symbol=>String}, nil]
328
- optional :metadata, ModernTreasury::HashOf[String]
280
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
329
281
 
330
282
  # @!parse
331
283
  # # @return [Hash{Symbol=>String}]
@@ -333,10 +285,10 @@ module ModernTreasury
333
285
 
334
286
  # @!attribute [r] nsf_protected
335
287
  # A boolean to determine if NSF Protection is enabled for this payment order. Note
336
- # that this setting must also be turned on in your organization settings page.
288
+ # that this setting must also be turned on in your organization settings page.
337
289
  #
338
290
  # @return [Boolean, nil]
339
- optional :nsf_protected, ModernTreasury::BooleanModel
291
+ optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
340
292
 
341
293
  # @!parse
342
294
  # # @return [Boolean]
@@ -344,17 +296,17 @@ module ModernTreasury
344
296
 
345
297
  # @!attribute originating_party_name
346
298
  # If present, this will replace your default company name on receiver's bank
347
- # statement. This field can only be used for ACH payments currently. For ACH, only
348
- # the first 16 characters of this string will be used. Any additional characters
349
- # will be truncated.
299
+ # statement. This field can only be used for ACH payments currently. For ACH, only
300
+ # the first 16 characters of this string will be used. Any additional characters
301
+ # will be truncated.
350
302
  #
351
303
  # @return [String, nil]
352
304
  optional :originating_party_name, String, nil?: true
353
305
 
354
306
  # @!attribute [r] priority
355
307
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
356
- # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
357
- # an overnight check rather than standard mail.
308
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
309
+ # an overnight check rather than standard mail.
358
310
  #
359
311
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::Priority, nil]
360
312
  optional :priority,
@@ -366,26 +318,26 @@ module ModernTreasury
366
318
 
367
319
  # @!attribute process_after
368
320
  # If present, Modern Treasury will not process the payment until after this time.
369
- # If `process_after` is past the cutoff for `effective_date`, `process_after` will
370
- # take precedence and `effective_date` will automatically update to reflect the
371
- # earliest possible sending date after `process_after`. Format is ISO8601
372
- # timestamp.
321
+ # If `process_after` is past the cutoff for `effective_date`, `process_after` will
322
+ # take precedence and `effective_date` will automatically update to reflect the
323
+ # earliest possible sending date after `process_after`. Format is ISO8601
324
+ # timestamp.
373
325
  #
374
326
  # @return [Time, nil]
375
327
  optional :process_after, Time, nil?: true
376
328
 
377
329
  # @!attribute purpose
378
330
  # For `wire`, this is usually the purpose which is transmitted via the
379
- # "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
380
- # digit CPA Code that will be attached to the payment.
331
+ # "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
332
+ # digit CPA Code that will be attached to the payment.
381
333
  #
382
334
  # @return [String, nil]
383
335
  optional :purpose, String, nil?: true
384
336
 
385
337
  # @!attribute [r] receiving_account
386
338
  # Either `receiving_account` or `receiving_account_id` must be present. When using
387
- # `receiving_account_id`, you may pass the id of an external account or an
388
- # internal account.
339
+ # `receiving_account_id`, you may pass the id of an external account or an
340
+ # internal account.
389
341
  #
390
342
  # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount, nil]
391
343
  optional :receiving_account,
@@ -397,8 +349,8 @@ module ModernTreasury
397
349
 
398
350
  # @!attribute [r] receiving_account_id
399
351
  # Either `receiving_account` or `receiving_account_id` must be present. When using
400
- # `receiving_account_id`, you may pass the id of an external account or an
401
- # internal account.
352
+ # `receiving_account_id`, you may pass the id of an external account or an
353
+ # internal account.
402
354
  #
403
355
  # @return [String, nil]
404
356
  optional :receiving_account_id, String
@@ -409,45 +361,45 @@ module ModernTreasury
409
361
 
410
362
  # @!attribute remittance_information
411
363
  # For `ach`, this field will be passed through on an addenda record. For `wire`
412
- # payments the field will be passed through as the "Originator to Beneficiary
413
- # Information", also known as OBI or Fedwire tag 6000.
364
+ # payments the field will be passed through as the "Originator to Beneficiary
365
+ # Information", also known as OBI or Fedwire tag 6000.
414
366
  #
415
367
  # @return [String, nil]
416
368
  optional :remittance_information, String, nil?: true
417
369
 
418
370
  # @!attribute send_remittance_advice
419
371
  # Send an email to the counterparty when the payment order is sent to the bank. If
420
- # `null`, `send_remittance_advice` on the Counterparty is used.
372
+ # `null`, `send_remittance_advice` on the Counterparty is used.
421
373
  #
422
374
  # @return [Boolean, nil]
423
- optional :send_remittance_advice, ModernTreasury::BooleanModel, nil?: true
375
+ optional :send_remittance_advice, ModernTreasury::Internal::Type::Boolean, nil?: true
424
376
 
425
377
  # @!attribute statement_descriptor
426
378
  # An optional descriptor which will appear in the receiver's statement. For
427
- # `check` payments this field will be used as the memo line. For `ach` the maximum
428
- # length is 10 characters. Note that for ACH payments, the name on your bank
429
- # account will be included automatically by the bank, so you can use the
430
- # characters for other useful information. For `eft` the maximum length is 15
431
- # characters.
379
+ # `check` payments this field will be used as the memo line. For `ach` the maximum
380
+ # length is 10 characters. Note that for ACH payments, the name on your bank
381
+ # account will be included automatically by the bank, so you can use the
382
+ # characters for other useful information. For `eft` the maximum length is 15
383
+ # characters.
432
384
  #
433
385
  # @return [String, nil]
434
386
  optional :statement_descriptor, String, nil?: true
435
387
 
436
388
  # @!attribute subtype
437
389
  # An additional layer of classification for the type of payment order you are
438
- # doing. This field is only used for `ach` payment orders currently. For `ach`
439
- # payment orders, the `subtype` represents the SEC code. We currently support
440
- # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
390
+ # doing. This field is only used for `ach` payment orders currently. For `ach`
391
+ # payment orders, the `subtype` represents the SEC code. We currently support
392
+ # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
441
393
  #
442
394
  # @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
443
395
  optional :subtype, enum: -> { ModernTreasury::Models::PaymentOrderSubtype }, nil?: true
444
396
 
445
397
  # @!attribute [r] transaction_monitoring_enabled
446
398
  # A flag that determines whether a payment order should go through transaction
447
- # monitoring.
399
+ # monitoring.
448
400
  #
449
401
  # @return [Boolean, nil]
450
- optional :transaction_monitoring_enabled, ModernTreasury::BooleanModel
402
+ optional :transaction_monitoring_enabled, ModernTreasury::Internal::Type::Boolean
451
403
 
452
404
  # @!parse
453
405
  # # @return [Boolean]
@@ -555,25 +507,17 @@ module ModernTreasury
555
507
  # super
556
508
  # end
557
509
 
558
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
510
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
559
511
 
560
- # @abstract
561
- #
562
512
  # One of `credit`, `debit`. Describes the direction money is flowing in the
563
- # transaction. A `credit` moves money from your account to someone else's. A
564
- # `debit` pulls money from someone else's account to your own. Note that wire,
565
- # rtp, and check payments will always be `credit`.
513
+ # transaction. A `credit` moves money from your account to someone else's. A
514
+ # `debit` pulls money from someone else's account to your own. Note that wire,
515
+ # rtp, and check payments will always be `credit`.
566
516
  #
567
- # @example
568
- # ```ruby
569
- # case direction
570
- # in :credit
571
- # # ...
572
- # in :debit
573
- # # ...
574
- # end
575
- # ```
576
- class Direction < ModernTreasury::Enum
517
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#direction
518
+ module Direction
519
+ extend ModernTreasury::Internal::Type::Enum
520
+
577
521
  CREDIT = :credit
578
522
  DEBIT = :debit
579
523
 
@@ -581,22 +525,22 @@ module ModernTreasury
581
525
 
582
526
  # @!parse
583
527
  # # @return [Array<Symbol>]
584
- # #
585
528
  # def self.values; end
586
529
  end
587
530
 
588
- class Accounting < ModernTreasury::BaseModel
531
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#accounting
532
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
589
533
  # @!attribute account_id
590
534
  # The ID of one of your accounting categories. Note that these will only be
591
- # accessible if your accounting system has been connected.
535
+ # accessible if your accounting system has been connected.
592
536
  #
593
537
  # @return [String, nil]
594
538
  optional :account_id, String, nil?: true
595
539
 
596
540
  # @!attribute class_id
597
541
  # The ID of one of the class objects in your accounting system. Class objects
598
- # track segments of your business independent of client or project. Note that
599
- # these will only be accessible if your accounting system has been connected.
542
+ # track segments of your business independent of client or project. Note that
543
+ # these will only be accessible if your accounting system has been connected.
600
544
  #
601
545
  # @return [String, nil]
602
546
  optional :class_id, String, nil?: true
@@ -607,27 +551,17 @@ module ModernTreasury
607
551
  # #
608
552
  # def initialize(account_id: nil, class_id: nil, **) = super
609
553
 
610
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
554
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
611
555
  end
612
556
 
613
- # @abstract
614
- #
615
557
  # The party that will pay the fees for the payment order. Only applies to wire
616
- # payment orders. Can be one of shared, sender, or receiver, which correspond
617
- # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
558
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
559
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
618
560
  #
619
- # @example
620
- # ```ruby
621
- # case charge_bearer
622
- # in :shared
623
- # # ...
624
- # in :sender
625
- # # ...
626
- # in :receiver
627
- # # ...
628
- # end
629
- # ```
630
- class ChargeBearer < ModernTreasury::Enum
561
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#charge_bearer
562
+ module ChargeBearer
563
+ extend ModernTreasury::Internal::Type::Enum
564
+
631
565
  SHARED = :shared
632
566
  SENDER = :sender
633
567
  RECEIVER = :receiver
@@ -636,50 +570,34 @@ module ModernTreasury
636
570
 
637
571
  # @!parse
638
572
  # # @return [Array<Symbol>]
639
- # #
640
573
  # def self.values; end
641
574
  end
642
575
 
643
- # @abstract
644
- #
645
576
  # A payment type to fallback to if the original type is not valid for the
646
- # receiving account. Currently, this only supports falling back from RTP to ACH
647
- # (type=rtp and fallback_type=ach)
577
+ # receiving account. Currently, this only supports falling back from RTP to ACH
578
+ # (type=rtp and fallback_type=ach)
648
579
  #
649
- # @example
650
- # ```ruby
651
- # case fallback_type
652
- # in :ach
653
- # # ...
654
- # end
655
- # ```
656
- class FallbackType < ModernTreasury::Enum
580
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#fallback_type
581
+ module FallbackType
582
+ extend ModernTreasury::Internal::Type::Enum
583
+
657
584
  ACH = :ach
658
585
 
659
586
  finalize!
660
587
 
661
588
  # @!parse
662
589
  # # @return [Array<Symbol>]
663
- # #
664
590
  # def self.values; end
665
591
  end
666
592
 
667
- # @abstract
668
- #
669
593
  # Indicates the type of FX transfer to initiate, can be either
670
- # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
671
- # currency matches the originating account currency.
594
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
595
+ # currency matches the originating account currency.
672
596
  #
673
- # @example
674
- # ```ruby
675
- # case foreign_exchange_indicator
676
- # in :fixed_to_variable
677
- # # ...
678
- # in :variable_to_fixed
679
- # # ...
680
- # end
681
- # ```
682
- class ForeignExchangeIndicator < ModernTreasury::Enum
597
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#foreign_exchange_indicator
598
+ module ForeignExchangeIndicator
599
+ extend ModernTreasury::Internal::Type::Enum
600
+
683
601
  FIXED_TO_VARIABLE = :fixed_to_variable
684
602
  VARIABLE_TO_FIXED = :variable_to_fixed
685
603
 
@@ -687,19 +605,19 @@ module ModernTreasury
687
605
 
688
606
  # @!parse
689
607
  # # @return [Array<Symbol>]
690
- # #
691
608
  # def self.values; end
692
609
  end
693
610
 
694
- class LedgerTransaction < ModernTreasury::BaseModel
611
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#ledger_transaction
612
+ class LedgerTransaction < ModernTreasury::Internal::Type::BaseModel
695
613
  # @!attribute ledger_entries
696
614
  # An array of ledger entry objects.
697
615
  #
698
616
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry>]
699
617
  required :ledger_entries,
700
618
  -> do
701
- ModernTreasury::ArrayOf[
702
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry
619
+ ModernTreasury::Internal::Type::ArrayOf[
620
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry
703
621
  ]
704
622
  end
705
623
 
@@ -711,7 +629,7 @@ module ModernTreasury
711
629
 
712
630
  # @!attribute [r] effective_at
713
631
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
714
- # reporting purposes.
632
+ # reporting purposes.
715
633
  #
716
634
  # @return [Time, nil]
717
635
  optional :effective_at, Time
@@ -722,7 +640,7 @@ module ModernTreasury
722
640
 
723
641
  # @!attribute [r] effective_date
724
642
  # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
725
- # purposes.
643
+ # purposes.
726
644
  #
727
645
  # @return [Date, nil]
728
646
  optional :effective_date, Date
@@ -733,7 +651,7 @@ module ModernTreasury
733
651
 
734
652
  # @!attribute [r] external_id
735
653
  # A unique string to represent the ledger transaction. Only one pending or posted
736
- # ledger transaction may have this ID in the ledger.
654
+ # ledger transaction may have this ID in the ledger.
737
655
  #
738
656
  # @return [String, nil]
739
657
  optional :external_id, String
@@ -744,7 +662,7 @@ module ModernTreasury
744
662
 
745
663
  # @!attribute [r] ledgerable_id
746
664
  # If the ledger transaction can be reconciled to another object in Modern
747
- # Treasury, the id will be populated here, otherwise null.
665
+ # Treasury, the id will be populated here, otherwise null.
748
666
  #
749
667
  # @return [String, nil]
750
668
  optional :ledgerable_id, String
@@ -755,9 +673,9 @@ module ModernTreasury
755
673
 
756
674
  # @!attribute [r] ledgerable_type
757
675
  # If the ledger transaction can be reconciled to another object in Modern
758
- # Treasury, the type will be populated here, otherwise null. This can be one of
759
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
760
- # reversal.
676
+ # Treasury, the type will be populated here, otherwise null. This can be one of
677
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
678
+ # reversal.
761
679
  #
762
680
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerableType, nil]
763
681
  optional :ledgerable_type,
@@ -769,10 +687,10 @@ module ModernTreasury
769
687
 
770
688
  # @!attribute [r] metadata
771
689
  # Additional data represented as key-value pairs. Both the key and value must be
772
- # strings.
690
+ # strings.
773
691
  #
774
692
  # @return [Hash{Symbol=>String}, nil]
775
- optional :metadata, ModernTreasury::HashOf[String]
693
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
776
694
 
777
695
  # @!parse
778
696
  # # @return [Hash{Symbol=>String}]
@@ -791,9 +709,9 @@ module ModernTreasury
791
709
 
792
710
  # @!parse
793
711
  # # Specifies a ledger transaction object that will be created with the payment
794
- # # order. If the ledger transaction cannot be created, then the payment order
795
- # # creation will fail. The resulting ledger transaction will mirror the status of
796
- # # the payment order.
712
+ # # order. If the ledger transaction cannot be created, then the payment order
713
+ # # creation will fail. The resulting ledger transaction will mirror the status of
714
+ # # the payment order.
797
715
  # #
798
716
  # # @param ledger_entries [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction::LedgerEntry>]
799
717
  # # @param description [String, nil]
@@ -820,21 +738,21 @@ module ModernTreasury
820
738
  # super
821
739
  # end
822
740
 
823
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
741
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
824
742
 
825
- class LedgerEntry < ModernTreasury::BaseModel
743
+ class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
826
744
  # @!attribute amount
827
745
  # Value in specified currency's smallest unit. e.g. $10 would be represented
828
- # as 1000. Can be any integer up to 36 digits.
746
+ # as 1000. Can be any integer up to 36 digits.
829
747
  #
830
748
  # @return [Integer]
831
749
  required :amount, Integer
832
750
 
833
751
  # @!attribute direction
834
752
  # One of `credit`, `debit`. Describes the direction money is flowing in the
835
- # transaction. A `credit` moves money from your account to someone else's. A
836
- # `debit` pulls money from someone else's account to your own. Note that wire,
837
- # rtp, and check payments will always be `credit`.
753
+ # transaction. A `credit` moves money from your account to someone else's. A
754
+ # `debit` pulls money from someone else's account to your own. Note that wire,
755
+ # rtp, and check payments will always be `credit`.
838
756
  #
839
757
  # @return [Symbol, ModernTreasury::Models::TransactionDirection]
840
758
  required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
@@ -847,27 +765,27 @@ module ModernTreasury
847
765
 
848
766
  # @!attribute available_balance_amount
849
767
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
850
- # account’s available balance. If any of these conditions would be false after the
851
- # transaction is created, the entire call will fail with error code 422.
768
+ # account’s available balance. If any of these conditions would be false after the
769
+ # transaction is created, the entire call will fail with error code 422.
852
770
  #
853
771
  # @return [Hash{Symbol=>Integer}, nil]
854
- optional :available_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
772
+ optional :available_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
855
773
 
856
774
  # @!attribute lock_version
857
775
  # Lock version of the ledger account. This can be passed when creating a ledger
858
- # transaction to only succeed if no ledger transactions have posted since the
859
- # given version. See our post about Designing the Ledgers API with Optimistic
860
- # Locking for more details.
776
+ # transaction to only succeed if no ledger transactions have posted since the
777
+ # given version. See our post about Designing the Ledgers API with Optimistic
778
+ # Locking for more details.
861
779
  #
862
780
  # @return [Integer, nil]
863
781
  optional :lock_version, Integer, nil?: true
864
782
 
865
783
  # @!attribute [r] metadata
866
784
  # Additional data represented as key-value pairs. Both the key and value must be
867
- # strings.
785
+ # strings.
868
786
  #
869
787
  # @return [Hash{Symbol=>String}, nil]
870
- optional :metadata, ModernTreasury::HashOf[String]
788
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
871
789
 
872
790
  # @!parse
873
791
  # # @return [Hash{Symbol=>String}]
@@ -875,26 +793,28 @@ module ModernTreasury
875
793
 
876
794
  # @!attribute pending_balance_amount
877
795
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
878
- # account’s pending balance. If any of these conditions would be false after the
879
- # transaction is created, the entire call will fail with error code 422.
796
+ # account’s pending balance. If any of these conditions would be false after the
797
+ # transaction is created, the entire call will fail with error code 422.
880
798
  #
881
799
  # @return [Hash{Symbol=>Integer}, nil]
882
- optional :pending_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
800
+ optional :pending_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
883
801
 
884
802
  # @!attribute posted_balance_amount
885
803
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
886
- # account’s posted balance. If any of these conditions would be false after the
887
- # transaction is created, the entire call will fail with error code 422.
804
+ # account’s posted balance. If any of these conditions would be false after the
805
+ # transaction is created, the entire call will fail with error code 422.
888
806
  #
889
807
  # @return [Hash{Symbol=>Integer}, nil]
890
- optional :posted_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
808
+ optional :posted_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
891
809
 
892
810
  # @!attribute show_resulting_ledger_account_balances
893
811
  # If true, response will include the balance of the associated ledger account for
894
- # the entry.
812
+ # the entry.
895
813
  #
896
814
  # @return [Boolean, nil]
897
- optional :show_resulting_ledger_account_balances, ModernTreasury::BooleanModel, nil?: true
815
+ optional :show_resulting_ledger_account_balances,
816
+ ModernTreasury::Internal::Type::Boolean,
817
+ nil?: true
898
818
 
899
819
  # @!parse
900
820
  # # @param amount [Integer]
@@ -922,34 +842,18 @@ module ModernTreasury
922
842
  # super
923
843
  # end
924
844
 
925
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
845
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
926
846
  end
927
847
 
928
- # @abstract
929
- #
930
848
  # If the ledger transaction can be reconciled to another object in Modern
931
- # Treasury, the type will be populated here, otherwise null. This can be one of
932
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
933
- # reversal.
849
+ # Treasury, the type will be populated here, otherwise null. This can be one of
850
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
851
+ # reversal.
934
852
  #
935
- # @example
936
- # ```ruby
937
- # case ledgerable_type
938
- # in :expected_payment
939
- # # ...
940
- # in :incoming_payment_detail
941
- # # ...
942
- # in :paper_item
943
- # # ...
944
- # in :payment_order
945
- # # ...
946
- # in :return
947
- # # ...
948
- # in ...
949
- # #...
950
- # end
951
- # ```
952
- class LedgerableType < ModernTreasury::Enum
853
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction#ledgerable_type
854
+ module LedgerableType
855
+ extend ModernTreasury::Internal::Type::Enum
856
+
953
857
  EXPECTED_PAYMENT = :expected_payment
954
858
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
955
859
  PAPER_ITEM = :paper_item
@@ -961,26 +865,15 @@ module ModernTreasury
961
865
 
962
866
  # @!parse
963
867
  # # @return [Array<Symbol>]
964
- # #
965
868
  # def self.values; end
966
869
  end
967
870
 
968
- # @abstract
969
- #
970
871
  # To post a ledger transaction at creation, use `posted`.
971
872
  #
972
- # @example
973
- # ```ruby
974
- # case status
975
- # in :archived
976
- # # ...
977
- # in :pending
978
- # # ...
979
- # in :posted
980
- # # ...
981
- # end
982
- # ```
983
- class Status < ModernTreasury::Enum
873
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::LedgerTransaction#status
874
+ module Status
875
+ extend ModernTreasury::Internal::Type::Enum
876
+
984
877
  ARCHIVED = :archived
985
878
  PENDING = :pending
986
879
  POSTED = :posted
@@ -989,22 +882,21 @@ module ModernTreasury
989
882
 
990
883
  # @!parse
991
884
  # # @return [Array<Symbol>]
992
- # #
993
885
  # def self.values; end
994
886
  end
995
887
  end
996
888
 
997
- class LineItem < ModernTreasury::BaseModel
889
+ class LineItem < ModernTreasury::Internal::Type::BaseModel
998
890
  # @!attribute amount
999
891
  # Value in specified currency's smallest unit. e.g. $10 would be represented
1000
- # as 1000.
892
+ # as 1000.
1001
893
  #
1002
894
  # @return [Integer]
1003
895
  required :amount, Integer
1004
896
 
1005
897
  # @!attribute accounting_category_id
1006
898
  # The ID of one of your accounting categories. Note that these will only be
1007
- # accessible if your accounting system has been connected.
899
+ # accessible if your accounting system has been connected.
1008
900
  #
1009
901
  # @return [String, nil]
1010
902
  optional :accounting_category_id, String, nil?: true
@@ -1017,10 +909,10 @@ module ModernTreasury
1017
909
 
1018
910
  # @!attribute [r] metadata
1019
911
  # Additional data represented as key-value pairs. Both the key and value must be
1020
- # strings.
912
+ # strings.
1021
913
  #
1022
914
  # @return [Hash{Symbol=>String}, nil]
1023
- optional :metadata, ModernTreasury::HashOf[String]
915
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1024
916
 
1025
917
  # @!parse
1026
918
  # # @return [Hash{Symbol=>String}]
@@ -1034,25 +926,17 @@ module ModernTreasury
1034
926
  # #
1035
927
  # def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
1036
928
 
1037
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
929
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1038
930
  end
1039
931
 
1040
- # @abstract
1041
- #
1042
932
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
1043
- # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
1044
- # an overnight check rather than standard mail.
933
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
934
+ # an overnight check rather than standard mail.
1045
935
  #
1046
- # @example
1047
- # ```ruby
1048
- # case priority
1049
- # in :high
1050
- # # ...
1051
- # in :normal
1052
- # # ...
1053
- # end
1054
- # ```
1055
- class Priority < ModernTreasury::Enum
936
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#priority
937
+ module Priority
938
+ extend ModernTreasury::Internal::Type::Enum
939
+
1056
940
  HIGH = :high
1057
941
  NORMAL = :normal
1058
942
 
@@ -1060,18 +944,18 @@ module ModernTreasury
1060
944
 
1061
945
  # @!parse
1062
946
  # # @return [Array<Symbol>]
1063
- # #
1064
947
  # def self.values; end
1065
948
  end
1066
949
 
1067
- class ReceivingAccount < ModernTreasury::BaseModel
950
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest#receiving_account
951
+ class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
1068
952
  # @!attribute [r] account_details
1069
953
  #
1070
954
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail>, nil]
1071
955
  optional :account_details,
1072
956
  -> do
1073
- ModernTreasury::ArrayOf[
1074
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail
957
+ ModernTreasury::Internal::Type::ArrayOf[
958
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail
1075
959
  ]
1076
960
  end
1077
961
 
@@ -1094,8 +978,8 @@ module ModernTreasury
1094
978
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail>, nil]
1095
979
  optional :contact_details,
1096
980
  -> do
1097
- ModernTreasury::ArrayOf[
1098
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail
981
+ ModernTreasury::Internal::Type::ArrayOf[
982
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail
1099
983
  ]
1100
984
  end
1101
985
 
@@ -1105,10 +989,10 @@ module ModernTreasury
1105
989
 
1106
990
  # @!attribute [r] ledger_account
1107
991
  # Specifies a ledger account object that will be created with the external
1108
- # account. The resulting ledger account is linked to the external account for
1109
- # auto-ledgering Payment objects. See
1110
- # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
1111
- # for more details.
992
+ # account. The resulting ledger account is linked to the external account for
993
+ # auto-ledgering Payment objects. See
994
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
995
+ # for more details.
1112
996
  #
1113
997
  # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount, nil]
1114
998
  optional :ledger_account,
@@ -1120,10 +1004,10 @@ module ModernTreasury
1120
1004
 
1121
1005
  # @!attribute [r] metadata
1122
1006
  # Additional data represented as key-value pairs. Both the key and value must be
1123
- # strings.
1007
+ # strings.
1124
1008
  #
1125
1009
  # @return [Hash{Symbol=>String}, nil]
1126
- optional :metadata, ModernTreasury::HashOf[String]
1010
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1127
1011
 
1128
1012
  # @!parse
1129
1013
  # # @return [Hash{Symbol=>String}]
@@ -1131,7 +1015,7 @@ module ModernTreasury
1131
1015
 
1132
1016
  # @!attribute name
1133
1017
  # A nickname for the external account. This is only for internal usage and won't
1134
- # affect any payments
1018
+ # affect any payments
1135
1019
  #
1136
1020
  # @return [String, nil]
1137
1021
  optional :name, String, nil?: true
@@ -1176,7 +1060,7 @@ module ModernTreasury
1176
1060
 
1177
1061
  # @!attribute [r] plaid_processor_token
1178
1062
  # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
1179
- # you can pass the processor token in this field.
1063
+ # you can pass the processor token in this field.
1180
1064
  #
1181
1065
  # @return [String, nil]
1182
1066
  optional :plaid_processor_token, String
@@ -1190,8 +1074,8 @@ module ModernTreasury
1190
1074
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail>, nil]
1191
1075
  optional :routing_details,
1192
1076
  -> do
1193
- ModernTreasury::ArrayOf[
1194
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail
1077
+ ModernTreasury::Internal::Type::ArrayOf[
1078
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail
1195
1079
  ]
1196
1080
  end
1197
1081
 
@@ -1201,8 +1085,8 @@ module ModernTreasury
1201
1085
 
1202
1086
  # @!parse
1203
1087
  # # Either `receiving_account` or `receiving_account_id` must be present. When using
1204
- # # `receiving_account_id`, you may pass the id of an external account or an
1205
- # # internal account.
1088
+ # # `receiving_account_id`, you may pass the id of an external account or an
1089
+ # # internal account.
1206
1090
  # #
1207
1091
  # # @param account_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail>]
1208
1092
  # # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
@@ -1235,9 +1119,9 @@ module ModernTreasury
1235
1119
  # super
1236
1120
  # end
1237
1121
 
1238
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1122
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1239
1123
 
1240
- class AccountDetail < ModernTreasury::BaseModel
1124
+ class AccountDetail < ModernTreasury::Internal::Type::BaseModel
1241
1125
  # @!attribute account_number
1242
1126
  #
1243
1127
  # @return [String]
@@ -1259,28 +1143,12 @@ module ModernTreasury
1259
1143
  # #
1260
1144
  # def initialize(account_number:, account_number_type: nil, **) = super
1261
1145
 
1262
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1146
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1147
+
1148
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::AccountDetail#account_number_type
1149
+ module AccountNumberType
1150
+ extend ModernTreasury::Internal::Type::Enum
1263
1151
 
1264
- # @abstract
1265
- #
1266
- # @example
1267
- # ```ruby
1268
- # case account_number_type
1269
- # in :au_number
1270
- # # ...
1271
- # in :clabe
1272
- # # ...
1273
- # in :hk_number
1274
- # # ...
1275
- # in :iban
1276
- # # ...
1277
- # in :id_number
1278
- # # ...
1279
- # in ...
1280
- # #...
1281
- # end
1282
- # ```
1283
- class AccountNumberType < ModernTreasury::Enum
1284
1152
  AU_NUMBER = :au_number
1285
1153
  CLABE = :clabe
1286
1154
  HK_NUMBER = :hk_number
@@ -1296,12 +1164,11 @@ module ModernTreasury
1296
1164
 
1297
1165
  # @!parse
1298
1166
  # # @return [Array<Symbol>]
1299
- # #
1300
1167
  # def self.values; end
1301
1168
  end
1302
1169
  end
1303
1170
 
1304
- class ContactDetail < ModernTreasury::BaseModel
1171
+ class ContactDetail < ModernTreasury::Internal::Type::BaseModel
1305
1172
  # @!attribute [r] contact_identifier
1306
1173
  #
1307
1174
  # @return [String, nil]
@@ -1327,22 +1194,12 @@ module ModernTreasury
1327
1194
  # #
1328
1195
  # def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
1329
1196
 
1330
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1197
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1198
+
1199
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::ContactDetail#contact_identifier_type
1200
+ module ContactIdentifierType
1201
+ extend ModernTreasury::Internal::Type::Enum
1331
1202
 
1332
- # @abstract
1333
- #
1334
- # @example
1335
- # ```ruby
1336
- # case contact_identifier_type
1337
- # in :email
1338
- # # ...
1339
- # in :phone_number
1340
- # # ...
1341
- # in :website
1342
- # # ...
1343
- # end
1344
- # ```
1345
- class ContactIdentifierType < ModernTreasury::Enum
1346
1203
  EMAIL = :email
1347
1204
  PHONE_NUMBER = :phone_number
1348
1205
  WEBSITE = :website
@@ -1351,12 +1208,12 @@ module ModernTreasury
1351
1208
 
1352
1209
  # @!parse
1353
1210
  # # @return [Array<Symbol>]
1354
- # #
1355
1211
  # def self.values; end
1356
1212
  end
1357
1213
  end
1358
1214
 
1359
- class LedgerAccount < ModernTreasury::BaseModel
1215
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#ledger_account
1216
+ class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
1360
1217
  # @!attribute currency
1361
1218
  # The currency of the ledger account.
1362
1219
  #
@@ -1395,10 +1252,10 @@ module ModernTreasury
1395
1252
 
1396
1253
  # @!attribute [r] ledger_account_category_ids
1397
1254
  # The array of ledger account category ids that this ledger account should be a
1398
- # child of.
1255
+ # child of.
1399
1256
  #
1400
1257
  # @return [Array<String>, nil]
1401
- optional :ledger_account_category_ids, ModernTreasury::ArrayOf[String]
1258
+ optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]
1402
1259
 
1403
1260
  # @!parse
1404
1261
  # # @return [Array<String>]
@@ -1406,7 +1263,7 @@ module ModernTreasury
1406
1263
 
1407
1264
  # @!attribute [r] ledgerable_id
1408
1265
  # If the ledger account links to another object in Modern Treasury, the id will be
1409
- # populated here, otherwise null.
1266
+ # populated here, otherwise null.
1410
1267
  #
1411
1268
  # @return [String, nil]
1412
1269
  optional :ledgerable_id, String
@@ -1417,8 +1274,8 @@ module ModernTreasury
1417
1274
 
1418
1275
  # @!attribute [r] ledgerable_type
1419
1276
  # If the ledger account links to another object in Modern Treasury, the type will
1420
- # be populated here, otherwise null. The value is one of internal_account or
1421
- # external_account.
1277
+ # be populated here, otherwise null. The value is one of internal_account or
1278
+ # external_account.
1422
1279
  #
1423
1280
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount::LedgerableType, nil]
1424
1281
  optional :ledgerable_type,
@@ -1430,10 +1287,10 @@ module ModernTreasury
1430
1287
 
1431
1288
  # @!attribute [r] metadata
1432
1289
  # Additional data represented as key-value pairs. Both the key and value must be
1433
- # strings.
1290
+ # strings.
1434
1291
  #
1435
1292
  # @return [Hash{Symbol=>String}, nil]
1436
- optional :metadata, ModernTreasury::HashOf[String]
1293
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1437
1294
 
1438
1295
  # @!parse
1439
1296
  # # @return [Hash{Symbol=>String}]
@@ -1441,10 +1298,10 @@ module ModernTreasury
1441
1298
 
1442
1299
  # @!parse
1443
1300
  # # Specifies a ledger account object that will be created with the external
1444
- # # account. The resulting ledger account is linked to the external account for
1445
- # # auto-ledgering Payment objects. See
1446
- # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
1447
- # # for more details.
1301
+ # # account. The resulting ledger account is linked to the external account for
1302
+ # # auto-ledgering Payment objects. See
1303
+ # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
1304
+ # # for more details.
1448
1305
  # #
1449
1306
  # # @param currency [String]
1450
1307
  # # @param ledger_id [String]
@@ -1473,28 +1330,16 @@ module ModernTreasury
1473
1330
  # super
1474
1331
  # end
1475
1332
 
1476
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1333
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1477
1334
 
1478
- # @abstract
1479
- #
1480
1335
  # If the ledger account links to another object in Modern Treasury, the type will
1481
- # be populated here, otherwise null. The value is one of internal_account or
1482
- # external_account.
1336
+ # be populated here, otherwise null. The value is one of internal_account or
1337
+ # external_account.
1483
1338
  #
1484
- # @example
1485
- # ```ruby
1486
- # case ledgerable_type
1487
- # in :counterparty
1488
- # # ...
1489
- # in :external_account
1490
- # # ...
1491
- # in :internal_account
1492
- # # ...
1493
- # in :virtual_account
1494
- # # ...
1495
- # end
1496
- # ```
1497
- class LedgerableType < ModernTreasury::Enum
1339
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::LedgerAccount#ledgerable_type
1340
+ module LedgerableType
1341
+ extend ModernTreasury::Internal::Type::Enum
1342
+
1498
1343
  COUNTERPARTY = :counterparty
1499
1344
  EXTERNAL_ACCOUNT = :external_account
1500
1345
  INTERNAL_ACCOUNT = :internal_account
@@ -1504,12 +1349,12 @@ module ModernTreasury
1504
1349
 
1505
1350
  # @!parse
1506
1351
  # # @return [Array<Symbol>]
1507
- # #
1508
1352
  # def self.values; end
1509
1353
  end
1510
1354
  end
1511
1355
 
1512
- class PartyAddress < ModernTreasury::BaseModel
1356
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#party_address
1357
+ class PartyAddress < ModernTreasury::Internal::Type::BaseModel
1513
1358
  # @!attribute country
1514
1359
  # Country code conforms to [ISO 3166-1 alpha-2]
1515
1360
  #
@@ -1556,23 +1401,15 @@ module ModernTreasury
1556
1401
  # #
1557
1402
  # def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
1558
1403
 
1559
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1404
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1560
1405
  end
1561
1406
 
1562
- # @abstract
1563
- #
1564
1407
  # Either `individual` or `business`.
1565
1408
  #
1566
- # @example
1567
- # ```ruby
1568
- # case party_type
1569
- # in :business
1570
- # # ...
1571
- # in :individual
1572
- # # ...
1573
- # end
1574
- # ```
1575
- class PartyType < ModernTreasury::Enum
1409
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount#party_type
1410
+ module PartyType
1411
+ extend ModernTreasury::Internal::Type::Enum
1412
+
1576
1413
  BUSINESS = :business
1577
1414
  INDIVIDUAL = :individual
1578
1415
 
@@ -1580,11 +1417,10 @@ module ModernTreasury
1580
1417
 
1581
1418
  # @!parse
1582
1419
  # # @return [Array<Symbol>]
1583
- # #
1584
1420
  # def self.values; end
1585
1421
  end
1586
1422
 
1587
- class RoutingDetail < ModernTreasury::BaseModel
1423
+ class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
1588
1424
  # @!attribute routing_number
1589
1425
  #
1590
1426
  # @return [String]
@@ -1613,28 +1449,12 @@ module ModernTreasury
1613
1449
  # #
1614
1450
  # def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
1615
1451
 
1616
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1452
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1453
+
1454
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail#routing_number_type
1455
+ module RoutingNumberType
1456
+ extend ModernTreasury::Internal::Type::Enum
1617
1457
 
1618
- # @abstract
1619
- #
1620
- # @example
1621
- # ```ruby
1622
- # case routing_number_type
1623
- # in :aba
1624
- # # ...
1625
- # in :au_bsb
1626
- # # ...
1627
- # in :br_codigo
1628
- # # ...
1629
- # in :ca_cpa
1630
- # # ...
1631
- # in :chips
1632
- # # ...
1633
- # in ...
1634
- # #...
1635
- # end
1636
- # ```
1637
- class RoutingNumberType < ModernTreasury::Enum
1638
1458
  ABA = :aba
1639
1459
  AU_BSB = :au_bsb
1640
1460
  BR_CODIGO = :br_codigo
@@ -1661,30 +1481,13 @@ module ModernTreasury
1661
1481
 
1662
1482
  # @!parse
1663
1483
  # # @return [Array<Symbol>]
1664
- # #
1665
1484
  # def self.values; end
1666
1485
  end
1667
1486
 
1668
- # @abstract
1669
- #
1670
- # @example
1671
- # ```ruby
1672
- # case payment_type
1673
- # in :ach
1674
- # # ...
1675
- # in :au_becs
1676
- # # ...
1677
- # in :bacs
1678
- # # ...
1679
- # in :book
1680
- # # ...
1681
- # in :card
1682
- # # ...
1683
- # in ...
1684
- # #...
1685
- # end
1686
- # ```
1687
- class PaymentType < ModernTreasury::Enum
1487
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest::ReceivingAccount::RoutingDetail#payment_type
1488
+ module PaymentType
1489
+ extend ModernTreasury::Internal::Type::Enum
1490
+
1688
1491
  ACH = :ach
1689
1492
  AU_BECS = :au_becs
1690
1493
  BACS = :bacs
@@ -1720,24 +1523,23 @@ module ModernTreasury
1720
1523
 
1721
1524
  # @!parse
1722
1525
  # # @return [Array<Symbol>]
1723
- # #
1724
1526
  # def self.values; end
1725
1527
  end
1726
1528
  end
1727
1529
  end
1728
1530
  end
1729
1531
 
1730
- class ExpectedPaymentCreateRequest < ModernTreasury::BaseModel
1532
+ class ExpectedPaymentCreateRequest < ModernTreasury::Internal::Type::BaseModel
1731
1533
  # @!attribute amount_lower_bound
1732
1534
  # The lowest amount this expected payment may be equal to. Value in specified
1733
- # currency's smallest unit. e.g. $10 would be represented as 1000.
1535
+ # currency's smallest unit. e.g. $10 would be represented as 1000.
1734
1536
  #
1735
1537
  # @return [Integer, nil]
1736
1538
  optional :amount_lower_bound, Integer, nil?: true
1737
1539
 
1738
1540
  # @!attribute amount_upper_bound
1739
1541
  # The highest amount this expected payment may be equal to. Value in specified
1740
- # currency's smallest unit. e.g. $10 would be represented as 1000.
1542
+ # currency's smallest unit. e.g. $10 would be represented as 1000.
1741
1543
  #
1742
1544
  # @return [Integer, nil]
1743
1545
  optional :amount_upper_bound, Integer, nil?: true
@@ -1774,7 +1576,7 @@ module ModernTreasury
1774
1576
 
1775
1577
  # @!attribute direction
1776
1578
  # One of credit or debit. When you are receiving money, use credit. When you are
1777
- # being charged, use debit.
1579
+ # being charged, use debit.
1778
1580
  #
1779
1581
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::Direction, nil]
1780
1582
  optional :direction,
@@ -1789,9 +1591,9 @@ module ModernTreasury
1789
1591
 
1790
1592
  # @!attribute [r] ledger_transaction
1791
1593
  # Specifies a ledger transaction object that will be created with the expected
1792
- # payment. If the ledger transaction cannot be created, then the expected payment
1793
- # creation will fail. The resulting ledger transaction will mirror the status of
1794
- # the expected payment.
1594
+ # payment. If the ledger transaction cannot be created, then the expected payment
1595
+ # creation will fail. The resulting ledger transaction will mirror the status of
1596
+ # the expected payment.
1795
1597
  #
1796
1598
  # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction, nil]
1797
1599
  optional :ledger_transaction,
@@ -1803,9 +1605,9 @@ module ModernTreasury
1803
1605
 
1804
1606
  # @!attribute [r] ledger_transaction_id
1805
1607
  # Either ledger_transaction or ledger_transaction_id can be provided. Only a
1806
- # pending ledger transaction can be attached upon expected payment creation. Once
1807
- # the expected payment is created, the status of the ledger transaction tracks the
1808
- # expected payment automatically.
1608
+ # pending ledger transaction can be attached upon expected payment creation. Once
1609
+ # the expected payment is created, the status of the ledger transaction tracks the
1610
+ # expected payment automatically.
1809
1611
  #
1810
1612
  # @return [String, nil]
1811
1613
  optional :ledger_transaction_id, String
@@ -1818,7 +1620,7 @@ module ModernTreasury
1818
1620
  #
1819
1621
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem>, nil]
1820
1622
  optional :line_items,
1821
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem] }
1623
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem] }
1822
1624
 
1823
1625
  # @!parse
1824
1626
  # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LineItem>]
@@ -1826,10 +1628,10 @@ module ModernTreasury
1826
1628
 
1827
1629
  # @!attribute [r] metadata
1828
1630
  # Additional data represented as key-value pairs. Both the key and value must be
1829
- # strings.
1631
+ # strings.
1830
1632
  #
1831
1633
  # @return [Hash{Symbol=>String}, nil]
1832
- optional :metadata, ModernTreasury::HashOf[String]
1634
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
1833
1635
 
1834
1636
  # @!parse
1835
1637
  # # @return [Hash{Symbol=>String}]
@@ -1839,42 +1641,42 @@ module ModernTreasury
1839
1641
  # The reconciliation filters you have for this payment.
1840
1642
  #
1841
1643
  # @return [Object, nil]
1842
- optional :reconciliation_filters, ModernTreasury::Unknown, nil?: true
1644
+ optional :reconciliation_filters, ModernTreasury::Internal::Type::Unknown, nil?: true
1843
1645
 
1844
1646
  # @!attribute reconciliation_groups
1845
1647
  # The reconciliation groups you have for this payment.
1846
1648
  #
1847
1649
  # @return [Object, nil]
1848
- optional :reconciliation_groups, ModernTreasury::Unknown, nil?: true
1650
+ optional :reconciliation_groups, ModernTreasury::Internal::Type::Unknown, nil?: true
1849
1651
 
1850
1652
  # @!attribute reconciliation_rule_variables
1851
1653
  # An array of reconciliation rule variables for this payment.
1852
1654
  #
1853
1655
  # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
1854
1656
  optional :reconciliation_rule_variables,
1855
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::ReconciliationRule] },
1657
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::ReconciliationRule] },
1856
1658
  nil?: true
1857
1659
 
1858
1660
  # @!attribute remittance_information
1859
1661
  # For `ach`, this field will be passed through on an addenda record. For `wire`
1860
- # payments the field will be passed through as the "Originator to Beneficiary
1861
- # Information", also known as OBI or Fedwire tag 6000.
1662
+ # payments the field will be passed through as the "Originator to Beneficiary
1663
+ # Information", also known as OBI or Fedwire tag 6000.
1862
1664
  #
1863
1665
  # @return [String, nil]
1864
1666
  optional :remittance_information, String, nil?: true
1865
1667
 
1866
1668
  # @!attribute statement_descriptor
1867
1669
  # The statement description you expect to see on the transaction. For ACH
1868
- # payments, this will be the full line item passed from the bank. For wire
1869
- # payments, this will be the OBI field on the wire. For check payments, this will
1870
- # be the memo field.
1670
+ # payments, this will be the full line item passed from the bank. For wire
1671
+ # payments, this will be the OBI field on the wire. For check payments, this will
1672
+ # be the memo field.
1871
1673
  #
1872
1674
  # @return [String, nil]
1873
1675
  optional :statement_descriptor, String, nil?: true
1874
1676
 
1875
1677
  # @!attribute type
1876
1678
  # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
1877
- # sepa, signet, wire.
1679
+ # sepa, signet, wire.
1878
1680
  #
1879
1681
  # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
1880
1682
  optional :type, enum: -> { ModernTreasury::Models::ExpectedPaymentType }, nil?: true
@@ -1925,23 +1727,15 @@ module ModernTreasury
1925
1727
  # super
1926
1728
  # end
1927
1729
 
1928
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1730
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
1929
1731
 
1930
- # @abstract
1931
- #
1932
1732
  # One of credit or debit. When you are receiving money, use credit. When you are
1933
- # being charged, use debit.
1733
+ # being charged, use debit.
1934
1734
  #
1935
- # @example
1936
- # ```ruby
1937
- # case direction
1938
- # in :credit
1939
- # # ...
1940
- # in :debit
1941
- # # ...
1942
- # end
1943
- # ```
1944
- class Direction < ModernTreasury::Enum
1735
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#direction
1736
+ module Direction
1737
+ extend ModernTreasury::Internal::Type::Enum
1738
+
1945
1739
  CREDIT = :credit
1946
1740
  DEBIT = :debit
1947
1741
 
@@ -1949,19 +1743,19 @@ module ModernTreasury
1949
1743
 
1950
1744
  # @!parse
1951
1745
  # # @return [Array<Symbol>]
1952
- # #
1953
1746
  # def self.values; end
1954
1747
  end
1955
1748
 
1956
- class LedgerTransaction < ModernTreasury::BaseModel
1749
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest#ledger_transaction
1750
+ class LedgerTransaction < ModernTreasury::Internal::Type::BaseModel
1957
1751
  # @!attribute ledger_entries
1958
1752
  # An array of ledger entry objects.
1959
1753
  #
1960
1754
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry>]
1961
1755
  required :ledger_entries,
1962
1756
  -> do
1963
- ModernTreasury::ArrayOf[
1964
- ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry
1757
+ ModernTreasury::Internal::Type::ArrayOf[
1758
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry
1965
1759
  ]
1966
1760
  end
1967
1761
 
@@ -1973,7 +1767,7 @@ module ModernTreasury
1973
1767
 
1974
1768
  # @!attribute [r] effective_at
1975
1769
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
1976
- # reporting purposes.
1770
+ # reporting purposes.
1977
1771
  #
1978
1772
  # @return [Time, nil]
1979
1773
  optional :effective_at, Time
@@ -1984,7 +1778,7 @@ module ModernTreasury
1984
1778
 
1985
1779
  # @!attribute [r] effective_date
1986
1780
  # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
1987
- # purposes.
1781
+ # purposes.
1988
1782
  #
1989
1783
  # @return [Date, nil]
1990
1784
  optional :effective_date, Date
@@ -1995,7 +1789,7 @@ module ModernTreasury
1995
1789
 
1996
1790
  # @!attribute [r] external_id
1997
1791
  # A unique string to represent the ledger transaction. Only one pending or posted
1998
- # ledger transaction may have this ID in the ledger.
1792
+ # ledger transaction may have this ID in the ledger.
1999
1793
  #
2000
1794
  # @return [String, nil]
2001
1795
  optional :external_id, String
@@ -2006,7 +1800,7 @@ module ModernTreasury
2006
1800
 
2007
1801
  # @!attribute [r] ledgerable_id
2008
1802
  # If the ledger transaction can be reconciled to another object in Modern
2009
- # Treasury, the id will be populated here, otherwise null.
1803
+ # Treasury, the id will be populated here, otherwise null.
2010
1804
  #
2011
1805
  # @return [String, nil]
2012
1806
  optional :ledgerable_id, String
@@ -2017,9 +1811,9 @@ module ModernTreasury
2017
1811
 
2018
1812
  # @!attribute [r] ledgerable_type
2019
1813
  # If the ledger transaction can be reconciled to another object in Modern
2020
- # Treasury, the type will be populated here, otherwise null. This can be one of
2021
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2022
- # reversal.
1814
+ # Treasury, the type will be populated here, otherwise null. This can be one of
1815
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
1816
+ # reversal.
2023
1817
  #
2024
1818
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerableType, nil]
2025
1819
  optional :ledgerable_type,
@@ -2031,10 +1825,10 @@ module ModernTreasury
2031
1825
 
2032
1826
  # @!attribute [r] metadata
2033
1827
  # Additional data represented as key-value pairs. Both the key and value must be
2034
- # strings.
1828
+ # strings.
2035
1829
  #
2036
1830
  # @return [Hash{Symbol=>String}, nil]
2037
- optional :metadata, ModernTreasury::HashOf[String]
1831
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2038
1832
 
2039
1833
  # @!parse
2040
1834
  # # @return [Hash{Symbol=>String}]
@@ -2053,9 +1847,9 @@ module ModernTreasury
2053
1847
 
2054
1848
  # @!parse
2055
1849
  # # Specifies a ledger transaction object that will be created with the expected
2056
- # # payment. If the ledger transaction cannot be created, then the expected payment
2057
- # # creation will fail. The resulting ledger transaction will mirror the status of
2058
- # # the expected payment.
1850
+ # # payment. If the ledger transaction cannot be created, then the expected payment
1851
+ # # creation will fail. The resulting ledger transaction will mirror the status of
1852
+ # # the expected payment.
2059
1853
  # #
2060
1854
  # # @param ledger_entries [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction::LedgerEntry>]
2061
1855
  # # @param description [String, nil]
@@ -2082,21 +1876,21 @@ module ModernTreasury
2082
1876
  # super
2083
1877
  # end
2084
1878
 
2085
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1879
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2086
1880
 
2087
- class LedgerEntry < ModernTreasury::BaseModel
1881
+ class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
2088
1882
  # @!attribute amount
2089
1883
  # Value in specified currency's smallest unit. e.g. $10 would be represented
2090
- # as 1000. Can be any integer up to 36 digits.
1884
+ # as 1000. Can be any integer up to 36 digits.
2091
1885
  #
2092
1886
  # @return [Integer]
2093
1887
  required :amount, Integer
2094
1888
 
2095
1889
  # @!attribute direction
2096
1890
  # One of `credit`, `debit`. Describes the direction money is flowing in the
2097
- # transaction. A `credit` moves money from your account to someone else's. A
2098
- # `debit` pulls money from someone else's account to your own. Note that wire,
2099
- # rtp, and check payments will always be `credit`.
1891
+ # transaction. A `credit` moves money from your account to someone else's. A
1892
+ # `debit` pulls money from someone else's account to your own. Note that wire,
1893
+ # rtp, and check payments will always be `credit`.
2100
1894
  #
2101
1895
  # @return [Symbol, ModernTreasury::Models::TransactionDirection]
2102
1896
  required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
@@ -2109,27 +1903,27 @@ module ModernTreasury
2109
1903
 
2110
1904
  # @!attribute available_balance_amount
2111
1905
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
2112
- # account’s available balance. If any of these conditions would be false after the
2113
- # transaction is created, the entire call will fail with error code 422.
1906
+ # account’s available balance. If any of these conditions would be false after the
1907
+ # transaction is created, the entire call will fail with error code 422.
2114
1908
  #
2115
1909
  # @return [Hash{Symbol=>Integer}, nil]
2116
- optional :available_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
1910
+ optional :available_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
2117
1911
 
2118
1912
  # @!attribute lock_version
2119
1913
  # Lock version of the ledger account. This can be passed when creating a ledger
2120
- # transaction to only succeed if no ledger transactions have posted since the
2121
- # given version. See our post about Designing the Ledgers API with Optimistic
2122
- # Locking for more details.
1914
+ # transaction to only succeed if no ledger transactions have posted since the
1915
+ # given version. See our post about Designing the Ledgers API with Optimistic
1916
+ # Locking for more details.
2123
1917
  #
2124
1918
  # @return [Integer, nil]
2125
1919
  optional :lock_version, Integer, nil?: true
2126
1920
 
2127
1921
  # @!attribute [r] metadata
2128
1922
  # Additional data represented as key-value pairs. Both the key and value must be
2129
- # strings.
1923
+ # strings.
2130
1924
  #
2131
1925
  # @return [Hash{Symbol=>String}, nil]
2132
- optional :metadata, ModernTreasury::HashOf[String]
1926
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2133
1927
 
2134
1928
  # @!parse
2135
1929
  # # @return [Hash{Symbol=>String}]
@@ -2137,26 +1931,28 @@ module ModernTreasury
2137
1931
 
2138
1932
  # @!attribute pending_balance_amount
2139
1933
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
2140
- # account’s pending balance. If any of these conditions would be false after the
2141
- # transaction is created, the entire call will fail with error code 422.
1934
+ # account’s pending balance. If any of these conditions would be false after the
1935
+ # transaction is created, the entire call will fail with error code 422.
2142
1936
  #
2143
1937
  # @return [Hash{Symbol=>Integer}, nil]
2144
- optional :pending_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
1938
+ optional :pending_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
2145
1939
 
2146
1940
  # @!attribute posted_balance_amount
2147
1941
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
2148
- # account’s posted balance. If any of these conditions would be false after the
2149
- # transaction is created, the entire call will fail with error code 422.
1942
+ # account’s posted balance. If any of these conditions would be false after the
1943
+ # transaction is created, the entire call will fail with error code 422.
2150
1944
  #
2151
1945
  # @return [Hash{Symbol=>Integer}, nil]
2152
- optional :posted_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
1946
+ optional :posted_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
2153
1947
 
2154
1948
  # @!attribute show_resulting_ledger_account_balances
2155
1949
  # If true, response will include the balance of the associated ledger account for
2156
- # the entry.
1950
+ # the entry.
2157
1951
  #
2158
1952
  # @return [Boolean, nil]
2159
- optional :show_resulting_ledger_account_balances, ModernTreasury::BooleanModel, nil?: true
1953
+ optional :show_resulting_ledger_account_balances,
1954
+ ModernTreasury::Internal::Type::Boolean,
1955
+ nil?: true
2160
1956
 
2161
1957
  # @!parse
2162
1958
  # # @param amount [Integer]
@@ -2184,34 +1980,18 @@ module ModernTreasury
2184
1980
  # super
2185
1981
  # end
2186
1982
 
2187
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
1983
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2188
1984
  end
2189
1985
 
2190
- # @abstract
2191
- #
2192
1986
  # If the ledger transaction can be reconciled to another object in Modern
2193
- # Treasury, the type will be populated here, otherwise null. This can be one of
2194
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2195
- # reversal.
1987
+ # Treasury, the type will be populated here, otherwise null. This can be one of
1988
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
1989
+ # reversal.
2196
1990
  #
2197
- # @example
2198
- # ```ruby
2199
- # case ledgerable_type
2200
- # in :expected_payment
2201
- # # ...
2202
- # in :incoming_payment_detail
2203
- # # ...
2204
- # in :paper_item
2205
- # # ...
2206
- # in :payment_order
2207
- # # ...
2208
- # in :return
2209
- # # ...
2210
- # in ...
2211
- # #...
2212
- # end
2213
- # ```
2214
- class LedgerableType < ModernTreasury::Enum
1991
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction#ledgerable_type
1992
+ module LedgerableType
1993
+ extend ModernTreasury::Internal::Type::Enum
1994
+
2215
1995
  EXPECTED_PAYMENT = :expected_payment
2216
1996
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
2217
1997
  PAPER_ITEM = :paper_item
@@ -2223,26 +2003,15 @@ module ModernTreasury
2223
2003
 
2224
2004
  # @!parse
2225
2005
  # # @return [Array<Symbol>]
2226
- # #
2227
2006
  # def self.values; end
2228
2007
  end
2229
2008
 
2230
- # @abstract
2231
- #
2232
2009
  # To post a ledger transaction at creation, use `posted`.
2233
2010
  #
2234
- # @example
2235
- # ```ruby
2236
- # case status
2237
- # in :archived
2238
- # # ...
2239
- # in :pending
2240
- # # ...
2241
- # in :posted
2242
- # # ...
2243
- # end
2244
- # ```
2245
- class Status < ModernTreasury::Enum
2011
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest::LedgerTransaction#status
2012
+ module Status
2013
+ extend ModernTreasury::Internal::Type::Enum
2014
+
2246
2015
  ARCHIVED = :archived
2247
2016
  PENDING = :pending
2248
2017
  POSTED = :posted
@@ -2251,22 +2020,21 @@ module ModernTreasury
2251
2020
 
2252
2021
  # @!parse
2253
2022
  # # @return [Array<Symbol>]
2254
- # #
2255
2023
  # def self.values; end
2256
2024
  end
2257
2025
  end
2258
2026
 
2259
- class LineItem < ModernTreasury::BaseModel
2027
+ class LineItem < ModernTreasury::Internal::Type::BaseModel
2260
2028
  # @!attribute amount
2261
2029
  # Value in specified currency's smallest unit. e.g. $10 would be represented
2262
- # as 1000.
2030
+ # as 1000.
2263
2031
  #
2264
2032
  # @return [Integer]
2265
2033
  required :amount, Integer
2266
2034
 
2267
2035
  # @!attribute accounting_category_id
2268
2036
  # The ID of one of your accounting categories. Note that these will only be
2269
- # accessible if your accounting system has been connected.
2037
+ # accessible if your accounting system has been connected.
2270
2038
  #
2271
2039
  # @return [String, nil]
2272
2040
  optional :accounting_category_id, String, nil?: true
@@ -2279,10 +2047,10 @@ module ModernTreasury
2279
2047
 
2280
2048
  # @!attribute [r] metadata
2281
2049
  # Additional data represented as key-value pairs. Both the key and value must be
2282
- # strings.
2050
+ # strings.
2283
2051
  #
2284
2052
  # @return [Hash{Symbol=>String}, nil]
2285
- optional :metadata, ModernTreasury::HashOf[String]
2053
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2286
2054
 
2287
2055
  # @!parse
2288
2056
  # # @return [Hash{Symbol=>String}]
@@ -2296,17 +2064,17 @@ module ModernTreasury
2296
2064
  # #
2297
2065
  # def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
2298
2066
 
2299
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
2067
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2300
2068
  end
2301
2069
  end
2302
2070
 
2303
- class LedgerTransactionCreateRequest < ModernTreasury::BaseModel
2071
+ class LedgerTransactionCreateRequest < ModernTreasury::Internal::Type::BaseModel
2304
2072
  # @!attribute ledger_entries
2305
2073
  # An array of ledger entry objects.
2306
2074
  #
2307
2075
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry>]
2308
2076
  required :ledger_entries,
2309
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry] }
2077
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerEntry] }
2310
2078
 
2311
2079
  # @!attribute description
2312
2080
  # An optional description for internal use.
@@ -2316,7 +2084,7 @@ module ModernTreasury
2316
2084
 
2317
2085
  # @!attribute [r] effective_at
2318
2086
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
2319
- # reporting purposes.
2087
+ # reporting purposes.
2320
2088
  #
2321
2089
  # @return [Time, nil]
2322
2090
  optional :effective_at, Time
@@ -2327,7 +2095,7 @@ module ModernTreasury
2327
2095
 
2328
2096
  # @!attribute [r] effective_date
2329
2097
  # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
2330
- # purposes.
2098
+ # purposes.
2331
2099
  #
2332
2100
  # @return [Date, nil]
2333
2101
  optional :effective_date, Date
@@ -2338,7 +2106,7 @@ module ModernTreasury
2338
2106
 
2339
2107
  # @!attribute [r] external_id
2340
2108
  # A unique string to represent the ledger transaction. Only one pending or posted
2341
- # ledger transaction may have this ID in the ledger.
2109
+ # ledger transaction may have this ID in the ledger.
2342
2110
  #
2343
2111
  # @return [String, nil]
2344
2112
  optional :external_id, String
@@ -2349,7 +2117,7 @@ module ModernTreasury
2349
2117
 
2350
2118
  # @!attribute [r] ledgerable_id
2351
2119
  # If the ledger transaction can be reconciled to another object in Modern
2352
- # Treasury, the id will be populated here, otherwise null.
2120
+ # Treasury, the id will be populated here, otherwise null.
2353
2121
  #
2354
2122
  # @return [String, nil]
2355
2123
  optional :ledgerable_id, String
@@ -2360,9 +2128,9 @@ module ModernTreasury
2360
2128
 
2361
2129
  # @!attribute [r] ledgerable_type
2362
2130
  # If the ledger transaction can be reconciled to another object in Modern
2363
- # Treasury, the type will be populated here, otherwise null. This can be one of
2364
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2365
- # reversal.
2131
+ # Treasury, the type will be populated here, otherwise null. This can be one of
2132
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2133
+ # reversal.
2366
2134
  #
2367
2135
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest::LedgerableType, nil]
2368
2136
  optional :ledgerable_type,
@@ -2374,10 +2142,10 @@ module ModernTreasury
2374
2142
 
2375
2143
  # @!attribute [r] metadata
2376
2144
  # Additional data represented as key-value pairs. Both the key and value must be
2377
- # strings.
2145
+ # strings.
2378
2146
  #
2379
2147
  # @return [Hash{Symbol=>String}, nil]
2380
- optional :metadata, ModernTreasury::HashOf[String]
2148
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2381
2149
 
2382
2150
  # @!parse
2383
2151
  # # @return [Hash{Symbol=>String}]
@@ -2420,21 +2188,21 @@ module ModernTreasury
2420
2188
  # super
2421
2189
  # end
2422
2190
 
2423
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
2191
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2424
2192
 
2425
- class LedgerEntry < ModernTreasury::BaseModel
2193
+ class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
2426
2194
  # @!attribute amount
2427
2195
  # Value in specified currency's smallest unit. e.g. $10 would be represented
2428
- # as 1000. Can be any integer up to 36 digits.
2196
+ # as 1000. Can be any integer up to 36 digits.
2429
2197
  #
2430
2198
  # @return [Integer]
2431
2199
  required :amount, Integer
2432
2200
 
2433
2201
  # @!attribute direction
2434
2202
  # One of `credit`, `debit`. Describes the direction money is flowing in the
2435
- # transaction. A `credit` moves money from your account to someone else's. A
2436
- # `debit` pulls money from someone else's account to your own. Note that wire,
2437
- # rtp, and check payments will always be `credit`.
2203
+ # transaction. A `credit` moves money from your account to someone else's. A
2204
+ # `debit` pulls money from someone else's account to your own. Note that wire,
2205
+ # rtp, and check payments will always be `credit`.
2438
2206
  #
2439
2207
  # @return [Symbol, ModernTreasury::Models::TransactionDirection]
2440
2208
  required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
@@ -2447,27 +2215,27 @@ module ModernTreasury
2447
2215
 
2448
2216
  # @!attribute available_balance_amount
2449
2217
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
2450
- # account’s available balance. If any of these conditions would be false after the
2451
- # transaction is created, the entire call will fail with error code 422.
2218
+ # account’s available balance. If any of these conditions would be false after the
2219
+ # transaction is created, the entire call will fail with error code 422.
2452
2220
  #
2453
2221
  # @return [Hash{Symbol=>Integer}, nil]
2454
- optional :available_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
2222
+ optional :available_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
2455
2223
 
2456
2224
  # @!attribute lock_version
2457
2225
  # Lock version of the ledger account. This can be passed when creating a ledger
2458
- # transaction to only succeed if no ledger transactions have posted since the
2459
- # given version. See our post about Designing the Ledgers API with Optimistic
2460
- # Locking for more details.
2226
+ # transaction to only succeed if no ledger transactions have posted since the
2227
+ # given version. See our post about Designing the Ledgers API with Optimistic
2228
+ # Locking for more details.
2461
2229
  #
2462
2230
  # @return [Integer, nil]
2463
2231
  optional :lock_version, Integer, nil?: true
2464
2232
 
2465
2233
  # @!attribute [r] metadata
2466
2234
  # Additional data represented as key-value pairs. Both the key and value must be
2467
- # strings.
2235
+ # strings.
2468
2236
  #
2469
2237
  # @return [Hash{Symbol=>String}, nil]
2470
- optional :metadata, ModernTreasury::HashOf[String]
2238
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2471
2239
 
2472
2240
  # @!parse
2473
2241
  # # @return [Hash{Symbol=>String}]
@@ -2475,26 +2243,28 @@ module ModernTreasury
2475
2243
 
2476
2244
  # @!attribute pending_balance_amount
2477
2245
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
2478
- # account’s pending balance. If any of these conditions would be false after the
2479
- # transaction is created, the entire call will fail with error code 422.
2246
+ # account’s pending balance. If any of these conditions would be false after the
2247
+ # transaction is created, the entire call will fail with error code 422.
2480
2248
  #
2481
2249
  # @return [Hash{Symbol=>Integer}, nil]
2482
- optional :pending_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
2250
+ optional :pending_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
2483
2251
 
2484
2252
  # @!attribute posted_balance_amount
2485
2253
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
2486
- # account’s posted balance. If any of these conditions would be false after the
2487
- # transaction is created, the entire call will fail with error code 422.
2254
+ # account’s posted balance. If any of these conditions would be false after the
2255
+ # transaction is created, the entire call will fail with error code 422.
2488
2256
  #
2489
2257
  # @return [Hash{Symbol=>Integer}, nil]
2490
- optional :posted_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
2258
+ optional :posted_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
2491
2259
 
2492
2260
  # @!attribute show_resulting_ledger_account_balances
2493
2261
  # If true, response will include the balance of the associated ledger account for
2494
- # the entry.
2262
+ # the entry.
2495
2263
  #
2496
2264
  # @return [Boolean, nil]
2497
- optional :show_resulting_ledger_account_balances, ModernTreasury::BooleanModel, nil?: true
2265
+ optional :show_resulting_ledger_account_balances,
2266
+ ModernTreasury::Internal::Type::Boolean,
2267
+ nil?: true
2498
2268
 
2499
2269
  # @!parse
2500
2270
  # # @param amount [Integer]
@@ -2522,34 +2292,18 @@ module ModernTreasury
2522
2292
  # super
2523
2293
  # end
2524
2294
 
2525
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
2295
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2526
2296
  end
2527
2297
 
2528
- # @abstract
2529
- #
2530
2298
  # If the ledger transaction can be reconciled to another object in Modern
2531
- # Treasury, the type will be populated here, otherwise null. This can be one of
2532
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2533
- # reversal.
2299
+ # Treasury, the type will be populated here, otherwise null. This can be one of
2300
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
2301
+ # reversal.
2534
2302
  #
2535
- # @example
2536
- # ```ruby
2537
- # case ledgerable_type
2538
- # in :expected_payment
2539
- # # ...
2540
- # in :incoming_payment_detail
2541
- # # ...
2542
- # in :paper_item
2543
- # # ...
2544
- # in :payment_order
2545
- # # ...
2546
- # in :return
2547
- # # ...
2548
- # in ...
2549
- # #...
2550
- # end
2551
- # ```
2552
- class LedgerableType < ModernTreasury::Enum
2303
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest#ledgerable_type
2304
+ module LedgerableType
2305
+ extend ModernTreasury::Internal::Type::Enum
2306
+
2553
2307
  EXPECTED_PAYMENT = :expected_payment
2554
2308
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
2555
2309
  PAPER_ITEM = :paper_item
@@ -2561,26 +2315,15 @@ module ModernTreasury
2561
2315
 
2562
2316
  # @!parse
2563
2317
  # # @return [Array<Symbol>]
2564
- # #
2565
2318
  # def self.values; end
2566
2319
  end
2567
2320
 
2568
- # @abstract
2569
- #
2570
2321
  # To post a ledger transaction at creation, use `posted`.
2571
2322
  #
2572
- # @example
2573
- # ```ruby
2574
- # case status
2575
- # in :archived
2576
- # # ...
2577
- # in :pending
2578
- # # ...
2579
- # in :posted
2580
- # # ...
2581
- # end
2582
- # ```
2583
- class Status < ModernTreasury::Enum
2323
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest#status
2324
+ module Status
2325
+ extend ModernTreasury::Internal::Type::Enum
2326
+
2584
2327
  ARCHIVED = :archived
2585
2328
  PENDING = :pending
2586
2329
  POSTED = :posted
@@ -2589,15 +2332,14 @@ module ModernTreasury
2589
2332
 
2590
2333
  # @!parse
2591
2334
  # # @return [Array<Symbol>]
2592
- # #
2593
2335
  # def self.values; end
2594
2336
  end
2595
2337
  end
2596
2338
 
2597
- class TransactionCreateRequest < ModernTreasury::BaseModel
2339
+ class TransactionCreateRequest < ModernTreasury::Internal::Type::BaseModel
2598
2340
  # @!attribute amount
2599
2341
  # Value in specified currency's smallest unit. e.g. $10 would be represented
2600
- # as 1000.
2342
+ # as 1000.
2601
2343
  #
2602
2344
  # @return [Integer]
2603
2345
  required :amount, Integer
@@ -2622,26 +2364,26 @@ module ModernTreasury
2622
2364
 
2623
2365
  # @!attribute vendor_code
2624
2366
  # When applicable, the bank-given code that determines the transaction's category.
2625
- # For most banks this is the BAI2/BTRS transaction code.
2367
+ # For most banks this is the BAI2/BTRS transaction code.
2626
2368
  #
2627
2369
  # @return [String, nil]
2628
2370
  required :vendor_code, String, nil?: true
2629
2371
 
2630
2372
  # @!attribute vendor_code_type
2631
2373
  # The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`,
2632
- # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dc_bank`, `dwolla`,
2633
- # `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `signet`, `silvergate`,
2634
- # `swift`, `us_bank`, or others.
2374
+ # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dc_bank`, `dwolla`,
2375
+ # `evolve`, `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `signet`, `silvergate`,
2376
+ # `swift`, `us_bank`, or others.
2635
2377
  #
2636
2378
  # @return [String, nil]
2637
2379
  required :vendor_code_type, String, nil?: true
2638
2380
 
2639
2381
  # @!attribute [r] metadata
2640
2382
  # Additional data represented as key-value pairs. Both the key and value must be
2641
- # strings.
2383
+ # strings.
2642
2384
  #
2643
2385
  # @return [Hash{Symbol=>String}, nil]
2644
- optional :metadata, ModernTreasury::HashOf[String]
2386
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2645
2387
 
2646
2388
  # @!parse
2647
2389
  # # @return [Hash{Symbol=>String}]
@@ -2651,7 +2393,7 @@ module ModernTreasury
2651
2393
  # This field will be `true` if the transaction has posted to the account.
2652
2394
  #
2653
2395
  # @return [Boolean, nil]
2654
- optional :posted, ModernTreasury::BooleanModel
2396
+ optional :posted, ModernTreasury::Internal::Type::Boolean
2655
2397
 
2656
2398
  # @!parse
2657
2399
  # # @return [Boolean]
@@ -2659,7 +2401,7 @@ module ModernTreasury
2659
2401
 
2660
2402
  # @!attribute type
2661
2403
  # The type of the transaction. Examples could be
2662
- # `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
2404
+ # `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
2663
2405
  #
2664
2406
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest::Type, nil]
2665
2407
  optional :type,
@@ -2668,7 +2410,7 @@ module ModernTreasury
2668
2410
 
2669
2411
  # @!attribute vendor_description
2670
2412
  # The transaction detail text that often appears in on your bank statement and in
2671
- # your banking portal.
2413
+ # your banking portal.
2672
2414
  #
2673
2415
  # @return [String, nil]
2674
2416
  optional :vendor_description, String, nil?: true
@@ -2701,31 +2443,15 @@ module ModernTreasury
2701
2443
  # super
2702
2444
  # end
2703
2445
 
2704
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
2446
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2705
2447
 
2706
- # @abstract
2707
- #
2708
2448
  # The type of the transaction. Examples could be
2709
- # `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
2449
+ # `card, `ach`, `wire`, `check`, `rtp`, `book`, or `sen`.
2710
2450
  #
2711
- # @example
2712
- # ```ruby
2713
- # case type
2714
- # in :ach
2715
- # # ...
2716
- # in :au_becs
2717
- # # ...
2718
- # in :bacs
2719
- # # ...
2720
- # in :book
2721
- # # ...
2722
- # in :card
2723
- # # ...
2724
- # in ...
2725
- # #...
2726
- # end
2727
- # ```
2728
- class Type < ModernTreasury::Enum
2451
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest#type
2452
+ module Type
2453
+ extend ModernTreasury::Internal::Type::Enum
2454
+
2729
2455
  ACH = :ach
2730
2456
  AU_BECS = :au_becs
2731
2457
  BACS = :bacs
@@ -2762,12 +2488,11 @@ module ModernTreasury
2762
2488
 
2763
2489
  # @!parse
2764
2490
  # # @return [Array<Symbol>]
2765
- # #
2766
2491
  # def self.values; end
2767
2492
  end
2768
2493
  end
2769
2494
 
2770
- class ID < ModernTreasury::BaseModel
2495
+ class ID < ModernTreasury::Internal::Type::BaseModel
2771
2496
  # @!attribute [r] id
2772
2497
  #
2773
2498
  # @return [String, nil]
@@ -2782,10 +2507,10 @@ module ModernTreasury
2782
2507
  # #
2783
2508
  # def initialize(id: nil, **) = super
2784
2509
 
2785
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
2510
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
2786
2511
  end
2787
2512
 
2788
- class PaymentOrderUpdateRequestWithID < ModernTreasury::BaseModel
2513
+ class PaymentOrderUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
2789
2514
  # @!attribute [r] id
2790
2515
  #
2791
2516
  # @return [String, nil]
@@ -2807,21 +2532,21 @@ module ModernTreasury
2807
2532
 
2808
2533
  # @!attribute accounting_category_id
2809
2534
  # The ID of one of your accounting categories. Note that these will only be
2810
- # accessible if your accounting system has been connected.
2535
+ # accessible if your accounting system has been connected.
2811
2536
  #
2812
2537
  # @return [String, nil]
2813
2538
  optional :accounting_category_id, String, nil?: true
2814
2539
 
2815
2540
  # @!attribute accounting_ledger_class_id
2816
2541
  # The ID of one of your accounting ledger classes. Note that these will only be
2817
- # accessible if your accounting system has been connected.
2542
+ # accessible if your accounting system has been connected.
2818
2543
  #
2819
2544
  # @return [String, nil]
2820
2545
  optional :accounting_ledger_class_id, String, nil?: true
2821
2546
 
2822
2547
  # @!attribute [r] amount
2823
2548
  # Value in specified currency's smallest unit. e.g. $10 would be represented as
2824
- # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
2549
+ # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
2825
2550
  #
2826
2551
  # @return [Integer, nil]
2827
2552
  optional :amount, Integer
@@ -2832,8 +2557,8 @@ module ModernTreasury
2832
2557
 
2833
2558
  # @!attribute charge_bearer
2834
2559
  # The party that will pay the fees for the payment order. Only applies to wire
2835
- # payment orders. Can be one of shared, sender, or receiver, which correspond
2836
- # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
2560
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
2561
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
2837
2562
  #
2838
2563
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ChargeBearer, nil]
2839
2564
  optional :charge_bearer,
@@ -2864,9 +2589,9 @@ module ModernTreasury
2864
2589
 
2865
2590
  # @!attribute [r] direction
2866
2591
  # One of `credit`, `debit`. Describes the direction money is flowing in the
2867
- # transaction. A `credit` moves money from your account to someone else's. A
2868
- # `debit` pulls money from someone else's account to your own. Note that wire,
2869
- # rtp, and check payments will always be `credit`.
2592
+ # transaction. A `credit` moves money from your account to someone else's. A
2593
+ # `debit` pulls money from someone else's account to your own. Note that wire,
2594
+ # rtp, and check payments will always be `credit`.
2870
2595
  #
2871
2596
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Direction, nil]
2872
2597
  optional :direction,
@@ -2878,8 +2603,8 @@ module ModernTreasury
2878
2603
 
2879
2604
  # @!attribute [r] effective_date
2880
2605
  # Date transactions are to be posted to the participants' account. Defaults to the
2881
- # current business day or the next business day if the current day is a bank
2882
- # holiday or weekend. Format: yyyy-mm-dd.
2606
+ # current business day or the next business day if the current day is a bank
2607
+ # holiday or weekend. Format: yyyy-mm-dd.
2883
2608
  #
2884
2609
  # @return [Date, nil]
2885
2610
  optional :effective_date, Date
@@ -2896,8 +2621,8 @@ module ModernTreasury
2896
2621
 
2897
2622
  # @!attribute [r] fallback_type
2898
2623
  # A payment type to fallback to if the original type is not valid for the
2899
- # receiving account. Currently, this only supports falling back from RTP to ACH
2900
- # (type=rtp and fallback_type=ach)
2624
+ # receiving account. Currently, this only supports falling back from RTP to ACH
2625
+ # (type=rtp and fallback_type=ach)
2901
2626
  #
2902
2627
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::FallbackType, nil]
2903
2628
  optional :fallback_type,
@@ -2909,15 +2634,15 @@ module ModernTreasury
2909
2634
 
2910
2635
  # @!attribute foreign_exchange_contract
2911
2636
  # If present, indicates a specific foreign exchange contract number that has been
2912
- # generated by your financial institution.
2637
+ # generated by your financial institution.
2913
2638
  #
2914
2639
  # @return [String, nil]
2915
2640
  optional :foreign_exchange_contract, String, nil?: true
2916
2641
 
2917
2642
  # @!attribute foreign_exchange_indicator
2918
2643
  # Indicates the type of FX transfer to initiate, can be either
2919
- # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
2920
- # currency matches the originating account currency.
2644
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
2645
+ # currency matches the originating account currency.
2921
2646
  #
2922
2647
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ForeignExchangeIndicator, nil]
2923
2648
  optional :foreign_exchange_indicator,
@@ -2929,7 +2654,7 @@ module ModernTreasury
2929
2654
  #
2930
2655
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem>, nil]
2931
2656
  optional :line_items,
2932
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem] }
2657
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem] }
2933
2658
 
2934
2659
  # @!parse
2935
2660
  # # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::LineItem>]
@@ -2937,10 +2662,10 @@ module ModernTreasury
2937
2662
 
2938
2663
  # @!attribute [r] metadata
2939
2664
  # Additional data represented as key-value pairs. Both the key and value must be
2940
- # strings.
2665
+ # strings.
2941
2666
  #
2942
2667
  # @return [Hash{Symbol=>String}, nil]
2943
- optional :metadata, ModernTreasury::HashOf[String]
2668
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
2944
2669
 
2945
2670
  # @!parse
2946
2671
  # # @return [Hash{Symbol=>String}]
@@ -2948,10 +2673,10 @@ module ModernTreasury
2948
2673
 
2949
2674
  # @!attribute [r] nsf_protected
2950
2675
  # A boolean to determine if NSF Protection is enabled for this payment order. Note
2951
- # that this setting must also be turned on in your organization settings page.
2676
+ # that this setting must also be turned on in your organization settings page.
2952
2677
  #
2953
2678
  # @return [Boolean, nil]
2954
- optional :nsf_protected, ModernTreasury::BooleanModel
2679
+ optional :nsf_protected, ModernTreasury::Internal::Type::Boolean
2955
2680
 
2956
2681
  # @!parse
2957
2682
  # # @return [Boolean]
@@ -2969,17 +2694,17 @@ module ModernTreasury
2969
2694
 
2970
2695
  # @!attribute originating_party_name
2971
2696
  # If present, this will replace your default company name on receiver's bank
2972
- # statement. This field can only be used for ACH payments currently. For ACH, only
2973
- # the first 16 characters of this string will be used. Any additional characters
2974
- # will be truncated.
2697
+ # statement. This field can only be used for ACH payments currently. For ACH, only
2698
+ # the first 16 characters of this string will be used. Any additional characters
2699
+ # will be truncated.
2975
2700
  #
2976
2701
  # @return [String, nil]
2977
2702
  optional :originating_party_name, String, nil?: true
2978
2703
 
2979
2704
  # @!attribute [r] priority
2980
2705
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
2981
- # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
2982
- # an overnight check rather than standard mail.
2706
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
2707
+ # an overnight check rather than standard mail.
2983
2708
  #
2984
2709
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Priority, nil]
2985
2710
  optional :priority,
@@ -2991,26 +2716,26 @@ module ModernTreasury
2991
2716
 
2992
2717
  # @!attribute process_after
2993
2718
  # If present, Modern Treasury will not process the payment until after this time.
2994
- # If `process_after` is past the cutoff for `effective_date`, `process_after` will
2995
- # take precedence and `effective_date` will automatically update to reflect the
2996
- # earliest possible sending date after `process_after`. Format is ISO8601
2997
- # timestamp.
2719
+ # If `process_after` is past the cutoff for `effective_date`, `process_after` will
2720
+ # take precedence and `effective_date` will automatically update to reflect the
2721
+ # earliest possible sending date after `process_after`. Format is ISO8601
2722
+ # timestamp.
2998
2723
  #
2999
2724
  # @return [Time, nil]
3000
2725
  optional :process_after, Time, nil?: true
3001
2726
 
3002
2727
  # @!attribute purpose
3003
2728
  # For `wire`, this is usually the purpose which is transmitted via the
3004
- # "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
3005
- # digit CPA Code that will be attached to the payment.
2729
+ # "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
2730
+ # digit CPA Code that will be attached to the payment.
3006
2731
  #
3007
2732
  # @return [String, nil]
3008
2733
  optional :purpose, String, nil?: true
3009
2734
 
3010
2735
  # @!attribute [r] receiving_account
3011
2736
  # Either `receiving_account` or `receiving_account_id` must be present. When using
3012
- # `receiving_account_id`, you may pass the id of an external account or an
3013
- # internal account.
2737
+ # `receiving_account_id`, you may pass the id of an external account or an
2738
+ # internal account.
3014
2739
  #
3015
2740
  # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount, nil]
3016
2741
  optional :receiving_account,
@@ -3022,8 +2747,8 @@ module ModernTreasury
3022
2747
 
3023
2748
  # @!attribute [r] receiving_account_id
3024
2749
  # Either `receiving_account` or `receiving_account_id` must be present. When using
3025
- # `receiving_account_id`, you may pass the id of an external account or an
3026
- # internal account.
2750
+ # `receiving_account_id`, you may pass the id of an external account or an
2751
+ # internal account.
3027
2752
  #
3028
2753
  # @return [String, nil]
3029
2754
  optional :receiving_account_id, String
@@ -3034,34 +2759,34 @@ module ModernTreasury
3034
2759
 
3035
2760
  # @!attribute remittance_information
3036
2761
  # For `ach`, this field will be passed through on an addenda record. For `wire`
3037
- # payments the field will be passed through as the "Originator to Beneficiary
3038
- # Information", also known as OBI or Fedwire tag 6000.
2762
+ # payments the field will be passed through as the "Originator to Beneficiary
2763
+ # Information", also known as OBI or Fedwire tag 6000.
3039
2764
  #
3040
2765
  # @return [String, nil]
3041
2766
  optional :remittance_information, String, nil?: true
3042
2767
 
3043
2768
  # @!attribute send_remittance_advice
3044
2769
  # Send an email to the counterparty when the payment order is sent to the bank. If
3045
- # `null`, `send_remittance_advice` on the Counterparty is used.
2770
+ # `null`, `send_remittance_advice` on the Counterparty is used.
3046
2771
  #
3047
2772
  # @return [Boolean, nil]
3048
- optional :send_remittance_advice, ModernTreasury::BooleanModel, nil?: true
2773
+ optional :send_remittance_advice, ModernTreasury::Internal::Type::Boolean, nil?: true
3049
2774
 
3050
2775
  # @!attribute statement_descriptor
3051
2776
  # An optional descriptor which will appear in the receiver's statement. For
3052
- # `check` payments this field will be used as the memo line. For `ach` the maximum
3053
- # length is 10 characters. Note that for ACH payments, the name on your bank
3054
- # account will be included automatically by the bank, so you can use the
3055
- # characters for other useful information. For `eft` the maximum length is 15
3056
- # characters.
2777
+ # `check` payments this field will be used as the memo line. For `ach` the maximum
2778
+ # length is 10 characters. Note that for ACH payments, the name on your bank
2779
+ # account will be included automatically by the bank, so you can use the
2780
+ # characters for other useful information. For `eft` the maximum length is 15
2781
+ # characters.
3057
2782
  #
3058
2783
  # @return [String, nil]
3059
2784
  optional :statement_descriptor, String, nil?: true
3060
2785
 
3061
2786
  # @!attribute [r] status
3062
2787
  # To cancel a payment order, use `cancelled`. To redraft a returned payment order,
3063
- # use `approved`. To undo approval on a denied or approved payment order, use
3064
- # `needs_approval`.
2788
+ # use `approved`. To undo approval on a denied or approved payment order, use
2789
+ # `needs_approval`.
3065
2790
  #
3066
2791
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::Status, nil]
3067
2792
  optional :status,
@@ -3073,17 +2798,17 @@ module ModernTreasury
3073
2798
 
3074
2799
  # @!attribute subtype
3075
2800
  # An additional layer of classification for the type of payment order you are
3076
- # doing. This field is only used for `ach` payment orders currently. For `ach`
3077
- # payment orders, the `subtype` represents the SEC code. We currently support
3078
- # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
2801
+ # doing. This field is only used for `ach` payment orders currently. For `ach`
2802
+ # payment orders, the `subtype` represents the SEC code. We currently support
2803
+ # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
3079
2804
  #
3080
2805
  # @return [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil]
3081
2806
  optional :subtype, enum: -> { ModernTreasury::Models::PaymentOrderSubtype }, nil?: true
3082
2807
 
3083
2808
  # @!attribute [r] type
3084
2809
  # One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
3085
- # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
3086
- # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
2810
+ # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
2811
+ # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
3087
2812
  #
3088
2813
  # @return [Symbol, ModernTreasury::Models::PaymentOrderType, nil]
3089
2814
  optional :type, enum: -> { ModernTreasury::Models::PaymentOrderType }
@@ -3094,32 +2819,32 @@ module ModernTreasury
3094
2819
 
3095
2820
  # @!attribute ultimate_originating_party_identifier
3096
2821
  # This represents the identifier by which the person is known to the receiver when
3097
- # using the CIE subtype for ACH payments. Only the first 22 characters of this
3098
- # string will be used. Any additional characters will be truncated.
2822
+ # using the CIE subtype for ACH payments. Only the first 22 characters of this
2823
+ # string will be used. Any additional characters will be truncated.
3099
2824
  #
3100
2825
  # @return [String, nil]
3101
2826
  optional :ultimate_originating_party_identifier, String, nil?: true
3102
2827
 
3103
2828
  # @!attribute ultimate_originating_party_name
3104
2829
  # This represents the name of the person that the payment is on behalf of when
3105
- # using the CIE subtype for ACH payments. Only the first 15 characters of this
3106
- # string will be used. Any additional characters will be truncated.
2830
+ # using the CIE subtype for ACH payments. Only the first 15 characters of this
2831
+ # string will be used. Any additional characters will be truncated.
3107
2832
  #
3108
2833
  # @return [String, nil]
3109
2834
  optional :ultimate_originating_party_name, String, nil?: true
3110
2835
 
3111
2836
  # @!attribute ultimate_receiving_party_identifier
3112
2837
  # This represents the name of the merchant that the payment is being sent to when
3113
- # using the CIE subtype for ACH payments. Only the first 22 characters of this
3114
- # string will be used. Any additional characters will be truncated.
2838
+ # using the CIE subtype for ACH payments. Only the first 22 characters of this
2839
+ # string will be used. Any additional characters will be truncated.
3115
2840
  #
3116
2841
  # @return [String, nil]
3117
2842
  optional :ultimate_receiving_party_identifier, String, nil?: true
3118
2843
 
3119
2844
  # @!attribute ultimate_receiving_party_name
3120
2845
  # This represents the identifier by which the merchant is known to the person
3121
- # initiating an ACH payment with CIE subtype. Only the first 15 characters of this
3122
- # string will be used. Any additional characters will be truncated.
2846
+ # initiating an ACH payment with CIE subtype. Only the first 15 characters of this
2847
+ # string will be used. Any additional characters will be truncated.
3123
2848
  #
3124
2849
  # @return [String, nil]
3125
2850
  optional :ultimate_receiving_party_name, String, nil?: true
@@ -3202,20 +2927,21 @@ module ModernTreasury
3202
2927
  # super
3203
2928
  # end
3204
2929
 
3205
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
2930
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3206
2931
 
3207
- class Accounting < ModernTreasury::BaseModel
2932
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#accounting
2933
+ class Accounting < ModernTreasury::Internal::Type::BaseModel
3208
2934
  # @!attribute account_id
3209
2935
  # The ID of one of your accounting categories. Note that these will only be
3210
- # accessible if your accounting system has been connected.
2936
+ # accessible if your accounting system has been connected.
3211
2937
  #
3212
2938
  # @return [String, nil]
3213
2939
  optional :account_id, String, nil?: true
3214
2940
 
3215
2941
  # @!attribute class_id
3216
2942
  # The ID of one of the class objects in your accounting system. Class objects
3217
- # track segments of your business independent of client or project. Note that
3218
- # these will only be accessible if your accounting system has been connected.
2943
+ # track segments of your business independent of client or project. Note that
2944
+ # these will only be accessible if your accounting system has been connected.
3219
2945
  #
3220
2946
  # @return [String, nil]
3221
2947
  optional :class_id, String, nil?: true
@@ -3226,27 +2952,17 @@ module ModernTreasury
3226
2952
  # #
3227
2953
  # def initialize(account_id: nil, class_id: nil, **) = super
3228
2954
 
3229
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
2955
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3230
2956
  end
3231
2957
 
3232
- # @abstract
3233
- #
3234
2958
  # The party that will pay the fees for the payment order. Only applies to wire
3235
- # payment orders. Can be one of shared, sender, or receiver, which correspond
3236
- # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
2959
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
2960
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
3237
2961
  #
3238
- # @example
3239
- # ```ruby
3240
- # case charge_bearer
3241
- # in :shared
3242
- # # ...
3243
- # in :sender
3244
- # # ...
3245
- # in :receiver
3246
- # # ...
3247
- # end
3248
- # ```
3249
- class ChargeBearer < ModernTreasury::Enum
2962
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#charge_bearer
2963
+ module ChargeBearer
2964
+ extend ModernTreasury::Internal::Type::Enum
2965
+
3250
2966
  SHARED = :shared
3251
2967
  SENDER = :sender
3252
2968
  RECEIVER = :receiver
@@ -3255,27 +2971,18 @@ module ModernTreasury
3255
2971
 
3256
2972
  # @!parse
3257
2973
  # # @return [Array<Symbol>]
3258
- # #
3259
2974
  # def self.values; end
3260
2975
  end
3261
2976
 
3262
- # @abstract
3263
- #
3264
2977
  # One of `credit`, `debit`. Describes the direction money is flowing in the
3265
- # transaction. A `credit` moves money from your account to someone else's. A
3266
- # `debit` pulls money from someone else's account to your own. Note that wire,
3267
- # rtp, and check payments will always be `credit`.
2978
+ # transaction. A `credit` moves money from your account to someone else's. A
2979
+ # `debit` pulls money from someone else's account to your own. Note that wire,
2980
+ # rtp, and check payments will always be `credit`.
3268
2981
  #
3269
- # @example
3270
- # ```ruby
3271
- # case direction
3272
- # in :credit
3273
- # # ...
3274
- # in :debit
3275
- # # ...
3276
- # end
3277
- # ```
3278
- class Direction < ModernTreasury::Enum
2982
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#direction
2983
+ module Direction
2984
+ extend ModernTreasury::Internal::Type::Enum
2985
+
3279
2986
  CREDIT = :credit
3280
2987
  DEBIT = :debit
3281
2988
 
@@ -3283,50 +2990,34 @@ module ModernTreasury
3283
2990
 
3284
2991
  # @!parse
3285
2992
  # # @return [Array<Symbol>]
3286
- # #
3287
2993
  # def self.values; end
3288
2994
  end
3289
2995
 
3290
- # @abstract
3291
- #
3292
2996
  # A payment type to fallback to if the original type is not valid for the
3293
- # receiving account. Currently, this only supports falling back from RTP to ACH
3294
- # (type=rtp and fallback_type=ach)
2997
+ # receiving account. Currently, this only supports falling back from RTP to ACH
2998
+ # (type=rtp and fallback_type=ach)
3295
2999
  #
3296
- # @example
3297
- # ```ruby
3298
- # case fallback_type
3299
- # in :ach
3300
- # # ...
3301
- # end
3302
- # ```
3303
- class FallbackType < ModernTreasury::Enum
3000
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#fallback_type
3001
+ module FallbackType
3002
+ extend ModernTreasury::Internal::Type::Enum
3003
+
3304
3004
  ACH = :ach
3305
3005
 
3306
3006
  finalize!
3307
3007
 
3308
3008
  # @!parse
3309
3009
  # # @return [Array<Symbol>]
3310
- # #
3311
3010
  # def self.values; end
3312
3011
  end
3313
3012
 
3314
- # @abstract
3315
- #
3316
3013
  # Indicates the type of FX transfer to initiate, can be either
3317
- # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
3318
- # currency matches the originating account currency.
3014
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
3015
+ # currency matches the originating account currency.
3319
3016
  #
3320
- # @example
3321
- # ```ruby
3322
- # case foreign_exchange_indicator
3323
- # in :fixed_to_variable
3324
- # # ...
3325
- # in :variable_to_fixed
3326
- # # ...
3327
- # end
3328
- # ```
3329
- class ForeignExchangeIndicator < ModernTreasury::Enum
3017
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#foreign_exchange_indicator
3018
+ module ForeignExchangeIndicator
3019
+ extend ModernTreasury::Internal::Type::Enum
3020
+
3330
3021
  FIXED_TO_VARIABLE = :fixed_to_variable
3331
3022
  VARIABLE_TO_FIXED = :variable_to_fixed
3332
3023
 
@@ -3334,21 +3025,20 @@ module ModernTreasury
3334
3025
 
3335
3026
  # @!parse
3336
3027
  # # @return [Array<Symbol>]
3337
- # #
3338
3028
  # def self.values; end
3339
3029
  end
3340
3030
 
3341
- class LineItem < ModernTreasury::BaseModel
3031
+ class LineItem < ModernTreasury::Internal::Type::BaseModel
3342
3032
  # @!attribute amount
3343
3033
  # Value in specified currency's smallest unit. e.g. $10 would be represented
3344
- # as 1000.
3034
+ # as 1000.
3345
3035
  #
3346
3036
  # @return [Integer]
3347
3037
  required :amount, Integer
3348
3038
 
3349
3039
  # @!attribute accounting_category_id
3350
3040
  # The ID of one of your accounting categories. Note that these will only be
3351
- # accessible if your accounting system has been connected.
3041
+ # accessible if your accounting system has been connected.
3352
3042
  #
3353
3043
  # @return [String, nil]
3354
3044
  optional :accounting_category_id, String, nil?: true
@@ -3361,10 +3051,10 @@ module ModernTreasury
3361
3051
 
3362
3052
  # @!attribute [r] metadata
3363
3053
  # Additional data represented as key-value pairs. Both the key and value must be
3364
- # strings.
3054
+ # strings.
3365
3055
  #
3366
3056
  # @return [Hash{Symbol=>String}, nil]
3367
- optional :metadata, ModernTreasury::HashOf[String]
3057
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3368
3058
 
3369
3059
  # @!parse
3370
3060
  # # @return [Hash{Symbol=>String}]
@@ -3378,25 +3068,17 @@ module ModernTreasury
3378
3068
  # #
3379
3069
  # def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil, **) = super
3380
3070
 
3381
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3071
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3382
3072
  end
3383
3073
 
3384
- # @abstract
3385
- #
3386
3074
  # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
3387
- # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
3388
- # an overnight check rather than standard mail.
3075
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
3076
+ # an overnight check rather than standard mail.
3389
3077
  #
3390
- # @example
3391
- # ```ruby
3392
- # case priority
3393
- # in :high
3394
- # # ...
3395
- # in :normal
3396
- # # ...
3397
- # end
3398
- # ```
3399
- class Priority < ModernTreasury::Enum
3078
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#priority
3079
+ module Priority
3080
+ extend ModernTreasury::Internal::Type::Enum
3081
+
3400
3082
  HIGH = :high
3401
3083
  NORMAL = :normal
3402
3084
 
@@ -3404,18 +3086,18 @@ module ModernTreasury
3404
3086
 
3405
3087
  # @!parse
3406
3088
  # # @return [Array<Symbol>]
3407
- # #
3408
3089
  # def self.values; end
3409
3090
  end
3410
3091
 
3411
- class ReceivingAccount < ModernTreasury::BaseModel
3092
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#receiving_account
3093
+ class ReceivingAccount < ModernTreasury::Internal::Type::BaseModel
3412
3094
  # @!attribute [r] account_details
3413
3095
  #
3414
3096
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail>, nil]
3415
3097
  optional :account_details,
3416
3098
  -> do
3417
- ModernTreasury::ArrayOf[
3418
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail
3099
+ ModernTreasury::Internal::Type::ArrayOf[
3100
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail
3419
3101
  ]
3420
3102
  end
3421
3103
 
@@ -3438,8 +3120,8 @@ module ModernTreasury
3438
3120
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail>, nil]
3439
3121
  optional :contact_details,
3440
3122
  -> do
3441
- ModernTreasury::ArrayOf[
3442
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail
3123
+ ModernTreasury::Internal::Type::ArrayOf[
3124
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail
3443
3125
  ]
3444
3126
  end
3445
3127
 
@@ -3449,10 +3131,10 @@ module ModernTreasury
3449
3131
 
3450
3132
  # @!attribute [r] ledger_account
3451
3133
  # Specifies a ledger account object that will be created with the external
3452
- # account. The resulting ledger account is linked to the external account for
3453
- # auto-ledgering Payment objects. See
3454
- # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
3455
- # for more details.
3134
+ # account. The resulting ledger account is linked to the external account for
3135
+ # auto-ledgering Payment objects. See
3136
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
3137
+ # for more details.
3456
3138
  #
3457
3139
  # @return [ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount, nil]
3458
3140
  optional :ledger_account,
@@ -3464,10 +3146,10 @@ module ModernTreasury
3464
3146
 
3465
3147
  # @!attribute [r] metadata
3466
3148
  # Additional data represented as key-value pairs. Both the key and value must be
3467
- # strings.
3149
+ # strings.
3468
3150
  #
3469
3151
  # @return [Hash{Symbol=>String}, nil]
3470
- optional :metadata, ModernTreasury::HashOf[String]
3152
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3471
3153
 
3472
3154
  # @!parse
3473
3155
  # # @return [Hash{Symbol=>String}]
@@ -3475,7 +3157,7 @@ module ModernTreasury
3475
3157
 
3476
3158
  # @!attribute name
3477
3159
  # A nickname for the external account. This is only for internal usage and won't
3478
- # affect any payments
3160
+ # affect any payments
3479
3161
  #
3480
3162
  # @return [String, nil]
3481
3163
  optional :name, String, nil?: true
@@ -3520,7 +3202,7 @@ module ModernTreasury
3520
3202
 
3521
3203
  # @!attribute [r] plaid_processor_token
3522
3204
  # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
3523
- # you can pass the processor token in this field.
3205
+ # you can pass the processor token in this field.
3524
3206
  #
3525
3207
  # @return [String, nil]
3526
3208
  optional :plaid_processor_token, String
@@ -3534,8 +3216,8 @@ module ModernTreasury
3534
3216
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail>, nil]
3535
3217
  optional :routing_details,
3536
3218
  -> do
3537
- ModernTreasury::ArrayOf[
3538
- ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail
3219
+ ModernTreasury::Internal::Type::ArrayOf[
3220
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail
3539
3221
  ]
3540
3222
  end
3541
3223
 
@@ -3545,8 +3227,8 @@ module ModernTreasury
3545
3227
 
3546
3228
  # @!parse
3547
3229
  # # Either `receiving_account` or `receiving_account_id` must be present. When using
3548
- # # `receiving_account_id`, you may pass the id of an external account or an
3549
- # # internal account.
3230
+ # # `receiving_account_id`, you may pass the id of an external account or an
3231
+ # # internal account.
3550
3232
  # #
3551
3233
  # # @param account_details [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail>]
3552
3234
  # # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
@@ -3579,9 +3261,9 @@ module ModernTreasury
3579
3261
  # super
3580
3262
  # end
3581
3263
 
3582
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3264
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3583
3265
 
3584
- class AccountDetail < ModernTreasury::BaseModel
3266
+ class AccountDetail < ModernTreasury::Internal::Type::BaseModel
3585
3267
  # @!attribute account_number
3586
3268
  #
3587
3269
  # @return [String]
@@ -3603,28 +3285,12 @@ module ModernTreasury
3603
3285
  # #
3604
3286
  # def initialize(account_number:, account_number_type: nil, **) = super
3605
3287
 
3606
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3288
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3289
+
3290
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::AccountDetail#account_number_type
3291
+ module AccountNumberType
3292
+ extend ModernTreasury::Internal::Type::Enum
3607
3293
 
3608
- # @abstract
3609
- #
3610
- # @example
3611
- # ```ruby
3612
- # case account_number_type
3613
- # in :au_number
3614
- # # ...
3615
- # in :clabe
3616
- # # ...
3617
- # in :hk_number
3618
- # # ...
3619
- # in :iban
3620
- # # ...
3621
- # in :id_number
3622
- # # ...
3623
- # in ...
3624
- # #...
3625
- # end
3626
- # ```
3627
- class AccountNumberType < ModernTreasury::Enum
3628
3294
  AU_NUMBER = :au_number
3629
3295
  CLABE = :clabe
3630
3296
  HK_NUMBER = :hk_number
@@ -3640,12 +3306,11 @@ module ModernTreasury
3640
3306
 
3641
3307
  # @!parse
3642
3308
  # # @return [Array<Symbol>]
3643
- # #
3644
3309
  # def self.values; end
3645
3310
  end
3646
3311
  end
3647
3312
 
3648
- class ContactDetail < ModernTreasury::BaseModel
3313
+ class ContactDetail < ModernTreasury::Internal::Type::BaseModel
3649
3314
  # @!attribute [r] contact_identifier
3650
3315
  #
3651
3316
  # @return [String, nil]
@@ -3671,22 +3336,12 @@ module ModernTreasury
3671
3336
  # #
3672
3337
  # def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
3673
3338
 
3674
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3339
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3340
+
3341
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::ContactDetail#contact_identifier_type
3342
+ module ContactIdentifierType
3343
+ extend ModernTreasury::Internal::Type::Enum
3675
3344
 
3676
- # @abstract
3677
- #
3678
- # @example
3679
- # ```ruby
3680
- # case contact_identifier_type
3681
- # in :email
3682
- # # ...
3683
- # in :phone_number
3684
- # # ...
3685
- # in :website
3686
- # # ...
3687
- # end
3688
- # ```
3689
- class ContactIdentifierType < ModernTreasury::Enum
3690
3345
  EMAIL = :email
3691
3346
  PHONE_NUMBER = :phone_number
3692
3347
  WEBSITE = :website
@@ -3695,12 +3350,12 @@ module ModernTreasury
3695
3350
 
3696
3351
  # @!parse
3697
3352
  # # @return [Array<Symbol>]
3698
- # #
3699
3353
  # def self.values; end
3700
3354
  end
3701
3355
  end
3702
3356
 
3703
- class LedgerAccount < ModernTreasury::BaseModel
3357
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#ledger_account
3358
+ class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
3704
3359
  # @!attribute currency
3705
3360
  # The currency of the ledger account.
3706
3361
  #
@@ -3739,10 +3394,10 @@ module ModernTreasury
3739
3394
 
3740
3395
  # @!attribute [r] ledger_account_category_ids
3741
3396
  # The array of ledger account category ids that this ledger account should be a
3742
- # child of.
3397
+ # child of.
3743
3398
  #
3744
3399
  # @return [Array<String>, nil]
3745
- optional :ledger_account_category_ids, ModernTreasury::ArrayOf[String]
3400
+ optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]
3746
3401
 
3747
3402
  # @!parse
3748
3403
  # # @return [Array<String>]
@@ -3750,7 +3405,7 @@ module ModernTreasury
3750
3405
 
3751
3406
  # @!attribute [r] ledgerable_id
3752
3407
  # If the ledger account links to another object in Modern Treasury, the id will be
3753
- # populated here, otherwise null.
3408
+ # populated here, otherwise null.
3754
3409
  #
3755
3410
  # @return [String, nil]
3756
3411
  optional :ledgerable_id, String
@@ -3761,8 +3416,8 @@ module ModernTreasury
3761
3416
 
3762
3417
  # @!attribute [r] ledgerable_type
3763
3418
  # If the ledger account links to another object in Modern Treasury, the type will
3764
- # be populated here, otherwise null. The value is one of internal_account or
3765
- # external_account.
3419
+ # be populated here, otherwise null. The value is one of internal_account or
3420
+ # external_account.
3766
3421
  #
3767
3422
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount::LedgerableType, nil]
3768
3423
  optional :ledgerable_type,
@@ -3774,10 +3429,10 @@ module ModernTreasury
3774
3429
 
3775
3430
  # @!attribute [r] metadata
3776
3431
  # Additional data represented as key-value pairs. Both the key and value must be
3777
- # strings.
3432
+ # strings.
3778
3433
  #
3779
3434
  # @return [Hash{Symbol=>String}, nil]
3780
- optional :metadata, ModernTreasury::HashOf[String]
3435
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
3781
3436
 
3782
3437
  # @!parse
3783
3438
  # # @return [Hash{Symbol=>String}]
@@ -3785,10 +3440,10 @@ module ModernTreasury
3785
3440
 
3786
3441
  # @!parse
3787
3442
  # # Specifies a ledger account object that will be created with the external
3788
- # # account. The resulting ledger account is linked to the external account for
3789
- # # auto-ledgering Payment objects. See
3790
- # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
3791
- # # for more details.
3443
+ # # account. The resulting ledger account is linked to the external account for
3444
+ # # auto-ledgering Payment objects. See
3445
+ # # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
3446
+ # # for more details.
3792
3447
  # #
3793
3448
  # # @param currency [String]
3794
3449
  # # @param ledger_id [String]
@@ -3817,28 +3472,16 @@ module ModernTreasury
3817
3472
  # super
3818
3473
  # end
3819
3474
 
3820
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3475
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3821
3476
 
3822
- # @abstract
3823
- #
3824
3477
  # If the ledger account links to another object in Modern Treasury, the type will
3825
- # be populated here, otherwise null. The value is one of internal_account or
3826
- # external_account.
3478
+ # be populated here, otherwise null. The value is one of internal_account or
3479
+ # external_account.
3827
3480
  #
3828
- # @example
3829
- # ```ruby
3830
- # case ledgerable_type
3831
- # in :counterparty
3832
- # # ...
3833
- # in :external_account
3834
- # # ...
3835
- # in :internal_account
3836
- # # ...
3837
- # in :virtual_account
3838
- # # ...
3839
- # end
3840
- # ```
3841
- class LedgerableType < ModernTreasury::Enum
3481
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::LedgerAccount#ledgerable_type
3482
+ module LedgerableType
3483
+ extend ModernTreasury::Internal::Type::Enum
3484
+
3842
3485
  COUNTERPARTY = :counterparty
3843
3486
  EXTERNAL_ACCOUNT = :external_account
3844
3487
  INTERNAL_ACCOUNT = :internal_account
@@ -3848,12 +3491,12 @@ module ModernTreasury
3848
3491
 
3849
3492
  # @!parse
3850
3493
  # # @return [Array<Symbol>]
3851
- # #
3852
3494
  # def self.values; end
3853
3495
  end
3854
3496
  end
3855
3497
 
3856
- class PartyAddress < ModernTreasury::BaseModel
3498
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#party_address
3499
+ class PartyAddress < ModernTreasury::Internal::Type::BaseModel
3857
3500
  # @!attribute country
3858
3501
  # Country code conforms to [ISO 3166-1 alpha-2]
3859
3502
  #
@@ -3900,23 +3543,15 @@ module ModernTreasury
3900
3543
  # #
3901
3544
  # def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
3902
3545
 
3903
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3546
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3904
3547
  end
3905
3548
 
3906
- # @abstract
3907
- #
3908
3549
  # Either `individual` or `business`.
3909
3550
  #
3910
- # @example
3911
- # ```ruby
3912
- # case party_type
3913
- # in :business
3914
- # # ...
3915
- # in :individual
3916
- # # ...
3917
- # end
3918
- # ```
3919
- class PartyType < ModernTreasury::Enum
3551
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount#party_type
3552
+ module PartyType
3553
+ extend ModernTreasury::Internal::Type::Enum
3554
+
3920
3555
  BUSINESS = :business
3921
3556
  INDIVIDUAL = :individual
3922
3557
 
@@ -3924,11 +3559,10 @@ module ModernTreasury
3924
3559
 
3925
3560
  # @!parse
3926
3561
  # # @return [Array<Symbol>]
3927
- # #
3928
3562
  # def self.values; end
3929
3563
  end
3930
3564
 
3931
- class RoutingDetail < ModernTreasury::BaseModel
3565
+ class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
3932
3566
  # @!attribute routing_number
3933
3567
  #
3934
3568
  # @return [String]
@@ -3957,28 +3591,12 @@ module ModernTreasury
3957
3591
  # #
3958
3592
  # def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
3959
3593
 
3960
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3594
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
3595
+
3596
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail#routing_number_type
3597
+ module RoutingNumberType
3598
+ extend ModernTreasury::Internal::Type::Enum
3961
3599
 
3962
- # @abstract
3963
- #
3964
- # @example
3965
- # ```ruby
3966
- # case routing_number_type
3967
- # in :aba
3968
- # # ...
3969
- # in :au_bsb
3970
- # # ...
3971
- # in :br_codigo
3972
- # # ...
3973
- # in :ca_cpa
3974
- # # ...
3975
- # in :chips
3976
- # # ...
3977
- # in ...
3978
- # #...
3979
- # end
3980
- # ```
3981
- class RoutingNumberType < ModernTreasury::Enum
3982
3600
  ABA = :aba
3983
3601
  AU_BSB = :au_bsb
3984
3602
  BR_CODIGO = :br_codigo
@@ -4005,30 +3623,13 @@ module ModernTreasury
4005
3623
 
4006
3624
  # @!parse
4007
3625
  # # @return [Array<Symbol>]
4008
- # #
4009
3626
  # def self.values; end
4010
3627
  end
4011
3628
 
4012
- # @abstract
4013
- #
4014
- # @example
4015
- # ```ruby
4016
- # case payment_type
4017
- # in :ach
4018
- # # ...
4019
- # in :au_becs
4020
- # # ...
4021
- # in :bacs
4022
- # # ...
4023
- # in :book
4024
- # # ...
4025
- # in :card
4026
- # # ...
4027
- # in ...
4028
- # #...
4029
- # end
4030
- # ```
4031
- class PaymentType < ModernTreasury::Enum
3629
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID::ReceivingAccount::RoutingDetail#payment_type
3630
+ module PaymentType
3631
+ extend ModernTreasury::Internal::Type::Enum
3632
+
4032
3633
  ACH = :ach
4033
3634
  AU_BECS = :au_becs
4034
3635
  BACS = :bacs
@@ -4064,36 +3665,19 @@ module ModernTreasury
4064
3665
 
4065
3666
  # @!parse
4066
3667
  # # @return [Array<Symbol>]
4067
- # #
4068
3668
  # def self.values; end
4069
3669
  end
4070
3670
  end
4071
3671
  end
4072
3672
 
4073
- # @abstract
4074
- #
4075
3673
  # To cancel a payment order, use `cancelled`. To redraft a returned payment order,
4076
- # use `approved`. To undo approval on a denied or approved payment order, use
4077
- # `needs_approval`.
3674
+ # use `approved`. To undo approval on a denied or approved payment order, use
3675
+ # `needs_approval`.
4078
3676
  #
4079
- # @example
4080
- # ```ruby
4081
- # case status
4082
- # in :approved
4083
- # # ...
4084
- # in :cancelled
4085
- # # ...
4086
- # in :completed
4087
- # # ...
4088
- # in :denied
4089
- # # ...
4090
- # in :failed
4091
- # # ...
4092
- # in ...
4093
- # #...
4094
- # end
4095
- # ```
4096
- class Status < ModernTreasury::Enum
3677
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID#status
3678
+ module Status
3679
+ extend ModernTreasury::Internal::Type::Enum
3680
+
4097
3681
  APPROVED = :approved
4098
3682
  CANCELLED = :cancelled
4099
3683
  COMPLETED = :completed
@@ -4110,12 +3694,11 @@ module ModernTreasury
4110
3694
 
4111
3695
  # @!parse
4112
3696
  # # @return [Array<Symbol>]
4113
- # #
4114
3697
  # def self.values; end
4115
3698
  end
4116
3699
  end
4117
3700
 
4118
- class ExpectedPaymentUpdateRequestWithID < ModernTreasury::BaseModel
3701
+ class ExpectedPaymentUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
4119
3702
  # @!attribute [r] id
4120
3703
  #
4121
3704
  # @return [String, nil]
@@ -4127,14 +3710,14 @@ module ModernTreasury
4127
3710
 
4128
3711
  # @!attribute amount_lower_bound
4129
3712
  # The lowest amount this expected payment may be equal to. Value in specified
4130
- # currency's smallest unit. e.g. $10 would be represented as 1000.
3713
+ # currency's smallest unit. e.g. $10 would be represented as 1000.
4131
3714
  #
4132
3715
  # @return [Integer, nil]
4133
3716
  optional :amount_lower_bound, Integer, nil?: true
4134
3717
 
4135
3718
  # @!attribute amount_upper_bound
4136
3719
  # The highest amount this expected payment may be equal to. Value in specified
4137
- # currency's smallest unit. e.g. $10 would be represented as 1000.
3720
+ # currency's smallest unit. e.g. $10 would be represented as 1000.
4138
3721
  #
4139
3722
  # @return [Integer, nil]
4140
3723
  optional :amount_upper_bound, Integer, nil?: true
@@ -4171,7 +3754,7 @@ module ModernTreasury
4171
3754
 
4172
3755
  # @!attribute direction
4173
3756
  # One of credit or debit. When you are receiving money, use credit. When you are
4174
- # being charged, use debit.
3757
+ # being charged, use debit.
4175
3758
  #
4176
3759
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Direction, nil]
4177
3760
  optional :direction,
@@ -4186,10 +3769,10 @@ module ModernTreasury
4186
3769
 
4187
3770
  # @!attribute [r] metadata
4188
3771
  # Additional data represented as key-value pairs. Both the key and value must be
4189
- # strings.
3772
+ # strings.
4190
3773
  #
4191
3774
  # @return [Hash{Symbol=>String}, nil]
4192
- optional :metadata, ModernTreasury::HashOf[String]
3775
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
4193
3776
 
4194
3777
  # @!parse
4195
3778
  # # @return [Hash{Symbol=>String}]
@@ -4199,42 +3782,42 @@ module ModernTreasury
4199
3782
  # The reconciliation filters you have for this payment.
4200
3783
  #
4201
3784
  # @return [Object, nil]
4202
- optional :reconciliation_filters, ModernTreasury::Unknown, nil?: true
3785
+ optional :reconciliation_filters, ModernTreasury::Internal::Type::Unknown, nil?: true
4203
3786
 
4204
3787
  # @!attribute reconciliation_groups
4205
3788
  # The reconciliation groups you have for this payment.
4206
3789
  #
4207
3790
  # @return [Object, nil]
4208
- optional :reconciliation_groups, ModernTreasury::Unknown, nil?: true
3791
+ optional :reconciliation_groups, ModernTreasury::Internal::Type::Unknown, nil?: true
4209
3792
 
4210
3793
  # @!attribute reconciliation_rule_variables
4211
3794
  # An array of reconciliation rule variables for this payment.
4212
3795
  #
4213
3796
  # @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
4214
3797
  optional :reconciliation_rule_variables,
4215
- -> { ModernTreasury::ArrayOf[ModernTreasury::Models::ReconciliationRule] },
3798
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::Models::ReconciliationRule] },
4216
3799
  nil?: true
4217
3800
 
4218
3801
  # @!attribute remittance_information
4219
3802
  # For `ach`, this field will be passed through on an addenda record. For `wire`
4220
- # payments the field will be passed through as the "Originator to Beneficiary
4221
- # Information", also known as OBI or Fedwire tag 6000.
3803
+ # payments the field will be passed through as the "Originator to Beneficiary
3804
+ # Information", also known as OBI or Fedwire tag 6000.
4222
3805
  #
4223
3806
  # @return [String, nil]
4224
3807
  optional :remittance_information, String, nil?: true
4225
3808
 
4226
3809
  # @!attribute statement_descriptor
4227
3810
  # The statement description you expect to see on the transaction. For ACH
4228
- # payments, this will be the full line item passed from the bank. For wire
4229
- # payments, this will be the OBI field on the wire. For check payments, this will
4230
- # be the memo field.
3811
+ # payments, this will be the full line item passed from the bank. For wire
3812
+ # payments, this will be the OBI field on the wire. For check payments, this will
3813
+ # be the memo field.
4231
3814
  #
4232
3815
  # @return [String, nil]
4233
3816
  optional :statement_descriptor, String, nil?: true
4234
3817
 
4235
3818
  # @!attribute status
4236
3819
  # The Expected Payment's status can be updated from partially_reconciled to
4237
- # reconciled.
3820
+ # reconciled.
4238
3821
  #
4239
3822
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID::Status, nil]
4240
3823
  optional :status,
@@ -4243,7 +3826,7 @@ module ModernTreasury
4243
3826
 
4244
3827
  # @!attribute type
4245
3828
  # One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
4246
- # sepa, signet, wire.
3829
+ # sepa, signet, wire.
4247
3830
  #
4248
3831
  # @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
4249
3832
  optional :type, enum: -> { ModernTreasury::Models::ExpectedPaymentType }, nil?: true
@@ -4292,23 +3875,15 @@ module ModernTreasury
4292
3875
  # super
4293
3876
  # end
4294
3877
 
4295
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3878
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
4296
3879
 
4297
- # @abstract
4298
- #
4299
3880
  # One of credit or debit. When you are receiving money, use credit. When you are
4300
- # being charged, use debit.
3881
+ # being charged, use debit.
4301
3882
  #
4302
- # @example
4303
- # ```ruby
4304
- # case direction
4305
- # in :credit
4306
- # # ...
4307
- # in :debit
4308
- # # ...
4309
- # end
4310
- # ```
4311
- class Direction < ModernTreasury::Enum
3883
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#direction
3884
+ module Direction
3885
+ extend ModernTreasury::Internal::Type::Enum
3886
+
4312
3887
  CREDIT = :credit
4313
3888
  DEBIT = :debit
4314
3889
 
@@ -4316,35 +3891,27 @@ module ModernTreasury
4316
3891
 
4317
3892
  # @!parse
4318
3893
  # # @return [Array<Symbol>]
4319
- # #
4320
3894
  # def self.values; end
4321
3895
  end
4322
3896
 
4323
- # @abstract
4324
- #
4325
3897
  # The Expected Payment's status can be updated from partially_reconciled to
4326
- # reconciled.
3898
+ # reconciled.
4327
3899
  #
4328
- # @example
4329
- # ```ruby
4330
- # case status
4331
- # in :reconciled
4332
- # # ...
4333
- # end
4334
- # ```
4335
- class Status < ModernTreasury::Enum
3900
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID#status
3901
+ module Status
3902
+ extend ModernTreasury::Internal::Type::Enum
3903
+
4336
3904
  RECONCILED = :reconciled
4337
3905
 
4338
3906
  finalize!
4339
3907
 
4340
3908
  # @!parse
4341
3909
  # # @return [Array<Symbol>]
4342
- # #
4343
3910
  # def self.values; end
4344
3911
  end
4345
3912
  end
4346
3913
 
4347
- class TransactionUpdateRequestWithID < ModernTreasury::BaseModel
3914
+ class TransactionUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
4348
3915
  # @!attribute [r] id
4349
3916
  #
4350
3917
  # @return [String, nil]
@@ -4356,10 +3923,10 @@ module ModernTreasury
4356
3923
 
4357
3924
  # @!attribute [r] metadata
4358
3925
  # Additional data in the form of key-value pairs. Pairs can be removed by passing
4359
- # an empty string or `null` as the value.
3926
+ # an empty string or `null` as the value.
4360
3927
  #
4361
3928
  # @return [Hash{Symbol=>String}, nil]
4362
- optional :metadata, ModernTreasury::HashOf[String]
3929
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
4363
3930
 
4364
3931
  # @!parse
4365
3932
  # # @return [Hash{Symbol=>String}]
@@ -4371,10 +3938,10 @@ module ModernTreasury
4371
3938
  # #
4372
3939
  # def initialize(id: nil, metadata: nil, **) = super
4373
3940
 
4374
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
3941
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
4375
3942
  end
4376
3943
 
4377
- class LedgerTransactionUpdateRequestWithID < ModernTreasury::BaseModel
3944
+ class LedgerTransactionUpdateRequestWithID < ModernTreasury::Internal::Type::BaseModel
4378
3945
  # @!attribute [r] id
4379
3946
  #
4380
3947
  # @return [String, nil]
@@ -4392,7 +3959,7 @@ module ModernTreasury
4392
3959
 
4393
3960
  # @!attribute [r] effective_at
4394
3961
  # The timestamp (ISO8601 format) at which the ledger transaction happened for
4395
- # reporting purposes.
3962
+ # reporting purposes.
4396
3963
  #
4397
3964
  # @return [Time, nil]
4398
3965
  optional :effective_at, Time
@@ -4407,8 +3974,8 @@ module ModernTreasury
4407
3974
  # @return [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry>, nil]
4408
3975
  optional :ledger_entries,
4409
3976
  -> do
4410
- ModernTreasury::ArrayOf[
4411
- ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry
3977
+ ModernTreasury::Internal::Type::ArrayOf[
3978
+ ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerEntry
4412
3979
  ]
4413
3980
  end
4414
3981
 
@@ -4418,7 +3985,7 @@ module ModernTreasury
4418
3985
 
4419
3986
  # @!attribute [r] ledgerable_id
4420
3987
  # If the ledger transaction can be reconciled to another object in Modern
4421
- # Treasury, the id will be populated here, otherwise null.
3988
+ # Treasury, the id will be populated here, otherwise null.
4422
3989
  #
4423
3990
  # @return [String, nil]
4424
3991
  optional :ledgerable_id, String
@@ -4429,9 +3996,9 @@ module ModernTreasury
4429
3996
 
4430
3997
  # @!attribute [r] ledgerable_type
4431
3998
  # If the ledger transaction can be reconciled to another object in Modern
4432
- # Treasury, the type will be populated here, otherwise null. This can be one of
4433
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
4434
- # reversal.
3999
+ # Treasury, the type will be populated here, otherwise null. This can be one of
4000
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
4001
+ # reversal.
4435
4002
  #
4436
4003
  # @return [Symbol, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID::LedgerableType, nil]
4437
4004
  optional :ledgerable_type,
@@ -4443,10 +4010,10 @@ module ModernTreasury
4443
4010
 
4444
4011
  # @!attribute [r] metadata
4445
4012
  # Additional data represented as key-value pairs. Both the key and value must be
4446
- # strings.
4013
+ # strings.
4447
4014
  #
4448
4015
  # @return [Hash{Symbol=>String}, nil]
4449
- optional :metadata, ModernTreasury::HashOf[String]
4016
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
4450
4017
 
4451
4018
  # @!parse
4452
4019
  # # @return [Hash{Symbol=>String}]
@@ -4487,21 +4054,21 @@ module ModernTreasury
4487
4054
  # super
4488
4055
  # end
4489
4056
 
4490
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
4057
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
4491
4058
 
4492
- class LedgerEntry < ModernTreasury::BaseModel
4059
+ class LedgerEntry < ModernTreasury::Internal::Type::BaseModel
4493
4060
  # @!attribute amount
4494
4061
  # Value in specified currency's smallest unit. e.g. $10 would be represented
4495
- # as 1000. Can be any integer up to 36 digits.
4062
+ # as 1000. Can be any integer up to 36 digits.
4496
4063
  #
4497
4064
  # @return [Integer]
4498
4065
  required :amount, Integer
4499
4066
 
4500
4067
  # @!attribute direction
4501
4068
  # One of `credit`, `debit`. Describes the direction money is flowing in the
4502
- # transaction. A `credit` moves money from your account to someone else's. A
4503
- # `debit` pulls money from someone else's account to your own. Note that wire,
4504
- # rtp, and check payments will always be `credit`.
4069
+ # transaction. A `credit` moves money from your account to someone else's. A
4070
+ # `debit` pulls money from someone else's account to your own. Note that wire,
4071
+ # rtp, and check payments will always be `credit`.
4505
4072
  #
4506
4073
  # @return [Symbol, ModernTreasury::Models::TransactionDirection]
4507
4074
  required :direction, enum: -> { ModernTreasury::Models::TransactionDirection }
@@ -4514,27 +4081,27 @@ module ModernTreasury
4514
4081
 
4515
4082
  # @!attribute available_balance_amount
4516
4083
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
4517
- # account’s available balance. If any of these conditions would be false after the
4518
- # transaction is created, the entire call will fail with error code 422.
4084
+ # account’s available balance. If any of these conditions would be false after the
4085
+ # transaction is created, the entire call will fail with error code 422.
4519
4086
  #
4520
4087
  # @return [Hash{Symbol=>Integer}, nil]
4521
- optional :available_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
4088
+ optional :available_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
4522
4089
 
4523
4090
  # @!attribute lock_version
4524
4091
  # Lock version of the ledger account. This can be passed when creating a ledger
4525
- # transaction to only succeed if no ledger transactions have posted since the
4526
- # given version. See our post about Designing the Ledgers API with Optimistic
4527
- # Locking for more details.
4092
+ # transaction to only succeed if no ledger transactions have posted since the
4093
+ # given version. See our post about Designing the Ledgers API with Optimistic
4094
+ # Locking for more details.
4528
4095
  #
4529
4096
  # @return [Integer, nil]
4530
4097
  optional :lock_version, Integer, nil?: true
4531
4098
 
4532
4099
  # @!attribute [r] metadata
4533
4100
  # Additional data represented as key-value pairs. Both the key and value must be
4534
- # strings.
4101
+ # strings.
4535
4102
  #
4536
4103
  # @return [Hash{Symbol=>String}, nil]
4537
- optional :metadata, ModernTreasury::HashOf[String]
4104
+ optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
4538
4105
 
4539
4106
  # @!parse
4540
4107
  # # @return [Hash{Symbol=>String}]
@@ -4542,26 +4109,28 @@ module ModernTreasury
4542
4109
 
4543
4110
  # @!attribute pending_balance_amount
4544
4111
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
4545
- # account’s pending balance. If any of these conditions would be false after the
4546
- # transaction is created, the entire call will fail with error code 422.
4112
+ # account’s pending balance. If any of these conditions would be false after the
4113
+ # transaction is created, the entire call will fail with error code 422.
4547
4114
  #
4548
4115
  # @return [Hash{Symbol=>Integer}, nil]
4549
- optional :pending_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
4116
+ optional :pending_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
4550
4117
 
4551
4118
  # @!attribute posted_balance_amount
4552
4119
  # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
4553
- # account’s posted balance. If any of these conditions would be false after the
4554
- # transaction is created, the entire call will fail with error code 422.
4120
+ # account’s posted balance. If any of these conditions would be false after the
4121
+ # transaction is created, the entire call will fail with error code 422.
4555
4122
  #
4556
4123
  # @return [Hash{Symbol=>Integer}, nil]
4557
- optional :posted_balance_amount, ModernTreasury::HashOf[Integer], nil?: true
4124
+ optional :posted_balance_amount, ModernTreasury::Internal::Type::HashOf[Integer], nil?: true
4558
4125
 
4559
4126
  # @!attribute show_resulting_ledger_account_balances
4560
4127
  # If true, response will include the balance of the associated ledger account for
4561
- # the entry.
4128
+ # the entry.
4562
4129
  #
4563
4130
  # @return [Boolean, nil]
4564
- optional :show_resulting_ledger_account_balances, ModernTreasury::BooleanModel, nil?: true
4131
+ optional :show_resulting_ledger_account_balances,
4132
+ ModernTreasury::Internal::Type::Boolean,
4133
+ nil?: true
4565
4134
 
4566
4135
  # @!parse
4567
4136
  # # @param amount [Integer]
@@ -4589,34 +4158,18 @@ module ModernTreasury
4589
4158
  # super
4590
4159
  # end
4591
4160
 
4592
- # def initialize: (Hash | ModernTreasury::BaseModel) -> void
4161
+ # def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
4593
4162
  end
4594
4163
 
4595
- # @abstract
4596
- #
4597
4164
  # If the ledger transaction can be reconciled to another object in Modern
4598
- # Treasury, the type will be populated here, otherwise null. This can be one of
4599
- # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
4600
- # reversal.
4165
+ # Treasury, the type will be populated here, otherwise null. This can be one of
4166
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
4167
+ # reversal.
4601
4168
  #
4602
- # @example
4603
- # ```ruby
4604
- # case ledgerable_type
4605
- # in :expected_payment
4606
- # # ...
4607
- # in :incoming_payment_detail
4608
- # # ...
4609
- # in :paper_item
4610
- # # ...
4611
- # in :payment_order
4612
- # # ...
4613
- # in :return
4614
- # # ...
4615
- # in ...
4616
- # #...
4617
- # end
4618
- # ```
4619
- class LedgerableType < ModernTreasury::Enum
4169
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID#ledgerable_type
4170
+ module LedgerableType
4171
+ extend ModernTreasury::Internal::Type::Enum
4172
+
4620
4173
  EXPECTED_PAYMENT = :expected_payment
4621
4174
  INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
4622
4175
  PAPER_ITEM = :paper_item
@@ -4628,26 +4181,15 @@ module ModernTreasury
4628
4181
 
4629
4182
  # @!parse
4630
4183
  # # @return [Array<Symbol>]
4631
- # #
4632
4184
  # def self.values; end
4633
4185
  end
4634
4186
 
4635
- # @abstract
4636
- #
4637
4187
  # To post a ledger transaction at creation, use `posted`.
4638
4188
  #
4639
- # @example
4640
- # ```ruby
4641
- # case status
4642
- # in :archived
4643
- # # ...
4644
- # in :pending
4645
- # # ...
4646
- # in :posted
4647
- # # ...
4648
- # end
4649
- # ```
4650
- class Status < ModernTreasury::Enum
4189
+ # @see ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID#status
4190
+ module Status
4191
+ extend ModernTreasury::Internal::Type::Enum
4192
+
4651
4193
  ARCHIVED = :archived
4652
4194
  PENDING = :pending
4653
4195
  POSTED = :posted
@@ -4656,10 +4198,13 @@ module ModernTreasury
4656
4198
 
4657
4199
  # @!parse
4658
4200
  # # @return [Array<Symbol>]
4659
- # #
4660
4201
  # def self.values; end
4661
4202
  end
4662
4203
  end
4204
+
4205
+ # @!parse
4206
+ # # @return [Array(ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID)]
4207
+ # def self.variants; end
4663
4208
  end
4664
4209
  end
4665
4210
  end