modern_treasury 0.1.0.pre.alpha.15 → 0.1.0.pre.alpha.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (711) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +63 -20
  3. data/lib/modern_treasury/base_client.rb +93 -111
  4. data/lib/modern_treasury/base_model.rb +442 -422
  5. data/lib/modern_treasury/base_page.rb +34 -15
  6. data/lib/modern_treasury/client.rb +21 -7
  7. data/lib/modern_treasury/errors.rb +15 -19
  8. data/lib/modern_treasury/extern.rb +1 -4
  9. data/lib/modern_treasury/models/account_collection_flow.rb +9 -54
  10. data/lib/modern_treasury/models/account_collection_flow_create_params.rb +3 -22
  11. data/lib/modern_treasury/models/account_collection_flow_update_params.rb +3 -12
  12. data/lib/modern_treasury/models/account_detail.rb +3 -22
  13. data/lib/modern_treasury/models/account_detail_create_params.rb +6 -33
  14. data/lib/modern_treasury/models/account_detail_delete_params.rb +3 -11
  15. data/lib/modern_treasury/models/accounts_type.rb +3 -13
  16. data/lib/modern_treasury/models/bulk_request.rb +9 -50
  17. data/lib/modern_treasury/models/bulk_request_create_params.rb +118 -656
  18. data/lib/modern_treasury/models/bulk_request_list_params.rb +9 -50
  19. data/lib/modern_treasury/models/bulk_result.rb +16 -67
  20. data/lib/modern_treasury/models/bulk_result_list_params.rb +9 -48
  21. data/lib/modern_treasury/models/connection_legal_entity.rb +3 -18
  22. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +33 -200
  23. data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +3 -17
  24. data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +3 -12
  25. data/lib/modern_treasury/models/counterparty.rb +15 -77
  26. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +3 -21
  27. data/lib/modern_treasury/models/counterparty_create_params.rb +61 -357
  28. data/lib/modern_treasury/models/currency.rb +3 -22
  29. data/lib/modern_treasury/models/document.rb +3 -22
  30. data/lib/modern_treasury/models/document_create_params.rb +3 -21
  31. data/lib/modern_treasury/models/document_list_params.rb +3 -22
  32. data/lib/modern_treasury/models/expected_payment.rb +9 -46
  33. data/lib/modern_treasury/models/expected_payment_create_params.rb +9 -52
  34. data/lib/modern_treasury/models/expected_payment_list_params.rb +6 -40
  35. data/lib/modern_treasury/models/expected_payment_type.rb +3 -22
  36. data/lib/modern_treasury/models/expected_payment_update_params.rb +6 -26
  37. data/lib/modern_treasury/models/external_account.rb +12 -59
  38. data/lib/modern_treasury/models/external_account_create_params.rb +18 -110
  39. data/lib/modern_treasury/models/external_account_type.rb +3 -22
  40. data/lib/modern_treasury/models/external_account_update_params.rb +3 -14
  41. data/lib/modern_treasury/models/external_account_verify_params.rb +9 -48
  42. data/lib/modern_treasury/models/external_account_verify_response.rb +16 -66
  43. data/lib/modern_treasury/models/incoming_payment_detail.rb +12 -82
  44. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -36
  45. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -38
  46. data/lib/modern_treasury/models/internal_account.rb +6 -36
  47. data/lib/modern_treasury/models/internal_account_create_params.rb +3 -14
  48. data/lib/modern_treasury/models/internal_account_list_params.rb +3 -22
  49. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +12 -46
  50. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +6 -40
  51. data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +3 -18
  52. data/lib/modern_treasury/models/invoice.rb +12 -67
  53. data/lib/modern_treasury/models/invoice_create_params.rb +6 -31
  54. data/lib/modern_treasury/models/invoice_list_params.rb +3 -21
  55. data/lib/modern_treasury/models/invoice_update_params.rb +6 -31
  56. data/lib/modern_treasury/models/ledger_account.rb +3 -18
  57. data/lib/modern_treasury/models/ledger_account_create_params.rb +3 -18
  58. data/lib/modern_treasury/models/ledger_account_settlement.rb +3 -22
  59. data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +3 -14
  60. data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +3 -14
  61. data/lib/modern_treasury/models/ledger_entry.rb +3 -16
  62. data/lib/modern_treasury/models/ledger_entry_list_params.rb +9 -42
  63. data/lib/modern_treasury/models/ledger_event_handler.rb +4 -0
  64. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +3 -0
  65. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +2 -0
  66. data/lib/modern_treasury/models/ledger_transaction.rb +6 -38
  67. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +6 -38
  68. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +3 -14
  69. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +6 -38
  70. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -62
  71. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +6 -38
  72. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +9 -54
  73. data/lib/modern_treasury/models/ledgerable_event.rb +1 -0
  74. data/lib/modern_treasury/models/legal_entity.rb +15 -95
  75. data/lib/modern_treasury/models/legal_entity_association.rb +18 -109
  76. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +18 -107
  77. data/lib/modern_treasury/models/legal_entity_create_params.rb +33 -200
  78. data/lib/modern_treasury/models/legal_entity_list_params.rb +3 -13
  79. data/lib/modern_treasury/models/legal_entity_update_params.rb +12 -79
  80. data/lib/modern_treasury/models/line_item.rb +3 -14
  81. data/lib/modern_treasury/models/line_item_list_params.rb +3 -13
  82. data/lib/modern_treasury/models/line_item_retrieve_params.rb +3 -13
  83. data/lib/modern_treasury/models/line_item_update_params.rb +3 -13
  84. data/lib/modern_treasury/models/paper_item.rb +3 -16
  85. data/lib/modern_treasury/models/payment_flow.rb +12 -58
  86. data/lib/modern_treasury/models/payment_flow_create_params.rb +3 -14
  87. data/lib/modern_treasury/models/payment_flow_update_params.rb +3 -12
  88. data/lib/modern_treasury/models/payment_order.rb +33 -142
  89. data/lib/modern_treasury/models/payment_order_create_async_params.rb +39 -218
  90. data/lib/modern_treasury/models/payment_order_create_params.rb +42 -239
  91. data/lib/modern_treasury/models/payment_order_list_params.rb +9 -56
  92. data/lib/modern_treasury/models/payment_order_subtype.rb +3 -22
  93. data/lib/modern_treasury/models/payment_order_type.rb +3 -22
  94. data/lib/modern_treasury/models/payment_order_update_params.rb +36 -202
  95. data/lib/modern_treasury/models/payment_orders/reversal.rb +6 -42
  96. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +9 -58
  97. data/lib/modern_treasury/models/payment_reference.rb +8 -39
  98. data/lib/modern_treasury/models/payment_reference_list_params.rb +3 -16
  99. data/lib/modern_treasury/models/reconciliation_rule.rb +6 -36
  100. data/lib/modern_treasury/models/return_create_params.rb +6 -34
  101. data/lib/modern_treasury/models/return_list_params.rb +3 -20
  102. data/lib/modern_treasury/models/return_object.rb +20 -123
  103. data/lib/modern_treasury/models/routing_detail.rb +6 -44
  104. data/lib/modern_treasury/models/routing_detail_create_params.rb +9 -55
  105. data/lib/modern_treasury/models/routing_detail_delete_params.rb +3 -11
  106. data/lib/modern_treasury/models/routing_number_lookup_request.rb +6 -43
  107. data/lib/modern_treasury/models/transaction.rb +9 -47
  108. data/lib/modern_treasury/models/transaction_create_params.rb +3 -22
  109. data/lib/modern_treasury/models/transaction_direction.rb +3 -13
  110. data/lib/modern_treasury/models/transactions/line_item_list_params.rb +3 -13
  111. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +6 -36
  112. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +3 -22
  113. data/lib/modern_treasury/models/virtual_account_create_params.rb +12 -84
  114. data/lib/modern_treasury/models/wealth_and_employment_details.rb +18 -130
  115. data/lib/modern_treasury/page.rb +26 -28
  116. data/lib/modern_treasury/pooled_net_requester.rb +103 -86
  117. data/lib/modern_treasury/request_options.rb +5 -12
  118. data/lib/modern_treasury/resources/account_collection_flows.rb +0 -5
  119. data/lib/modern_treasury/resources/account_details.rb +26 -25
  120. data/lib/modern_treasury/resources/bulk_requests.rb +0 -4
  121. data/lib/modern_treasury/resources/bulk_results.rb +0 -3
  122. data/lib/modern_treasury/resources/connection_legal_entities.rb +0 -5
  123. data/lib/modern_treasury/resources/connections.rb +0 -2
  124. data/lib/modern_treasury/resources/counterparties.rb +0 -7
  125. data/lib/modern_treasury/resources/documents.rb +1 -5
  126. data/lib/modern_treasury/resources/events.rb +0 -3
  127. data/lib/modern_treasury/resources/expected_payments.rb +0 -6
  128. data/lib/modern_treasury/resources/external_accounts.rb +0 -8
  129. data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +0 -4
  130. data/lib/modern_treasury/resources/incoming_payment_details.rb +0 -5
  131. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +14 -14
  132. data/lib/modern_treasury/resources/internal_accounts.rb +0 -5
  133. data/lib/modern_treasury/resources/invoices/line_items.rb +13 -16
  134. data/lib/modern_treasury/resources/invoices.rb +4 -9
  135. data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +0 -6
  136. data/lib/modern_treasury/resources/ledger_account_categories.rb +24 -26
  137. data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +4 -5
  138. data/lib/modern_treasury/resources/ledger_account_settlements.rb +2 -6
  139. data/lib/modern_treasury/resources/ledger_account_statements.rb +0 -3
  140. data/lib/modern_treasury/resources/ledger_accounts.rb +0 -6
  141. data/lib/modern_treasury/resources/ledger_entries.rb +0 -4
  142. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -5
  143. data/lib/modern_treasury/resources/ledger_transactions/versions.rb +0 -2
  144. data/lib/modern_treasury/resources/ledger_transactions.rb +0 -7
  145. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -3
  146. data/lib/modern_treasury/resources/ledgers.rb +0 -6
  147. data/lib/modern_treasury/resources/legal_entities.rb +0 -5
  148. data/lib/modern_treasury/resources/legal_entity_associations.rb +0 -2
  149. data/lib/modern_treasury/resources/line_items.rb +22 -21
  150. data/lib/modern_treasury/resources/paper_items.rb +0 -3
  151. data/lib/modern_treasury/resources/payment_flows.rb +0 -5
  152. data/lib/modern_treasury/resources/payment_orders/reversals.rb +4 -7
  153. data/lib/modern_treasury/resources/payment_orders.rb +0 -6
  154. data/lib/modern_treasury/resources/payment_references.rb +1 -20
  155. data/lib/modern_treasury/resources/returns.rb +0 -4
  156. data/lib/modern_treasury/resources/routing_details.rb +26 -25
  157. data/lib/modern_treasury/resources/transactions/line_items.rb +0 -5
  158. data/lib/modern_treasury/resources/transactions.rb +0 -6
  159. data/lib/modern_treasury/resources/validations.rb +0 -2
  160. data/lib/modern_treasury/resources/virtual_accounts.rb +0 -6
  161. data/lib/modern_treasury/util.rb +645 -385
  162. data/lib/modern_treasury/version.rb +1 -1
  163. data/lib/modern_treasury.rb +17 -0
  164. data/manifest.yaml +2 -0
  165. data/rbi/lib/modern_treasury/base_client.rbi +108 -72
  166. data/rbi/lib/modern_treasury/base_model.rbi +404 -239
  167. data/rbi/lib/modern_treasury/base_page.rbi +3 -6
  168. data/rbi/lib/modern_treasury/client.rbi +55 -79
  169. data/rbi/lib/modern_treasury/errors.rbi +23 -24
  170. data/rbi/lib/modern_treasury/extern.rbi +1 -1
  171. data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +107 -102
  172. data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +69 -42
  173. data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +19 -34
  174. data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +5 -2
  175. data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +31 -16
  176. data/rbi/lib/modern_treasury/models/account_detail.rbi +44 -73
  177. data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +60 -42
  178. data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +24 -26
  179. data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +11 -23
  180. data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +14 -22
  181. data/rbi/lib/modern_treasury/models/accounts_type.rbi +8 -5
  182. data/rbi/lib/modern_treasury/models/async_response.rbi +4 -14
  183. data/rbi/lib/modern_treasury/models/bank_settings.rbi +22 -62
  184. data/rbi/lib/modern_treasury/models/bulk_request.rbi +69 -102
  185. data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +4011 -2385
  186. data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +73 -62
  187. data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +5 -2
  188. data/rbi/lib/modern_treasury/models/bulk_result.rbi +104 -183
  189. data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +78 -66
  190. data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +5 -2
  191. data/rbi/lib/modern_treasury/models/client_ping_params.rbi +5 -2
  192. data/rbi/lib/modern_treasury/models/connection.rbi +16 -56
  193. data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +33 -72
  194. data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1090 -645
  195. data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +33 -39
  196. data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +5 -2
  197. data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +31 -15
  198. data/rbi/lib/modern_treasury/models/connection_list_params.rbi +15 -30
  199. data/rbi/lib/modern_treasury/models/counterparty.rbi +247 -354
  200. data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +115 -62
  201. data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +12 -20
  202. data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +1877 -1038
  203. data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +5 -2
  204. data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +35 -44
  205. data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +5 -2
  206. data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +27 -34
  207. data/rbi/lib/modern_treasury/models/currency.rbi +196 -192
  208. data/rbi/lib/modern_treasury/models/document.rbi +83 -165
  209. data/rbi/lib/modern_treasury/models/document_create_params.rbi +48 -44
  210. data/rbi/lib/modern_treasury/models/document_list_params.rbi +56 -48
  211. data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +5 -2
  212. data/rbi/lib/modern_treasury/models/event.rbi +19 -73
  213. data/rbi/lib/modern_treasury/models/event_list_params.rbi +24 -39
  214. data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +5 -2
  215. data/rbi/lib/modern_treasury/models/expected_payment.rbi +116 -194
  216. data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +313 -288
  217. data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +5 -2
  218. data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +108 -105
  219. data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +5 -2
  220. data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +38 -33
  221. data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +87 -129
  222. data/rbi/lib/modern_treasury/models/external_account.rbi +150 -285
  223. data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +6 -8
  224. data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +670 -322
  225. data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +5 -2
  226. data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +20 -29
  227. data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +5 -2
  228. data/rbi/lib/modern_treasury/models/external_account_type.rbi +15 -11
  229. data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +59 -92
  230. data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +106 -86
  231. data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +304 -121
  232. data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +61 -132
  233. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +31 -41
  234. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +37 -49
  235. data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +5 -2
  236. data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +272 -228
  237. data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +79 -75
  238. data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +85 -76
  239. data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +5 -2
  240. data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +8 -8
  241. data/rbi/lib/modern_treasury/models/internal_account.rbi +106 -218
  242. data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +67 -99
  243. data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +87 -88
  244. data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +5 -2
  245. data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +24 -28
  246. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +156 -181
  247. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +159 -88
  248. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +4 -9
  249. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +66 -38
  250. data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +4 -9
  251. data/rbi/lib/modern_treasury/models/invoice.rbi +239 -441
  252. data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +4 -9
  253. data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +292 -378
  254. data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +57 -71
  255. data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +5 -2
  256. data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +300 -374
  257. data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +35 -82
  258. data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +34 -40
  259. data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +4 -9
  260. data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +7 -14
  261. data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +4 -9
  262. data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +39 -44
  263. data/rbi/lib/modern_treasury/models/ledger.rbi +17 -66
  264. data/rbi/lib/modern_treasury/models/ledger_account.rbi +136 -237
  265. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +150 -236
  266. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +42 -52
  267. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +5 -2
  268. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +22 -36
  269. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +5 -2
  270. data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +12 -13
  271. data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +121 -197
  272. data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +4 -9
  273. data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +4 -9
  274. data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +28 -52
  275. data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +5 -2
  276. data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +54 -63
  277. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +4 -9
  278. data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +4 -9
  279. data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +30 -22
  280. data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +14 -19
  281. data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +65 -74
  282. data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +5 -2
  283. data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +183 -205
  284. data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +39 -37
  285. data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +57 -116
  286. data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +50 -58
  287. data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +42 -54
  288. data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +5 -2
  289. data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +35 -27
  290. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +6 -9
  291. data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +6 -9
  292. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +19 -32
  293. data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +238 -335
  294. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +5 -2
  295. data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +236 -335
  296. data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +14 -19
  297. data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +12 -20
  298. data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +5 -2
  299. data/rbi/lib/modern_treasury/models/ledger_entry.rbi +161 -232
  300. data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +170 -143
  301. data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +8 -8
  302. data/rbi/lib/modern_treasury/models/ledger_entry_update_params.rbi +8 -8
  303. data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +77 -155
  304. data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +76 -123
  305. data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +5 -2
  306. data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +22 -36
  307. data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +5 -2
  308. data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +24 -33
  309. data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +24 -36
  310. data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +5 -2
  311. data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +86 -143
  312. data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +138 -133
  313. data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +88 -67
  314. data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +113 -58
  315. data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +188 -147
  316. data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +5 -2
  317. data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +133 -120
  318. data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +328 -378
  319. data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +28 -34
  320. data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +14 -19
  321. data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +20 -62
  322. data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +14 -26
  323. data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +5 -2
  324. data/rbi/lib/modern_treasury/models/legal_entity.rbi +211 -416
  325. data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +468 -479
  326. data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +567 -324
  327. data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +854 -608
  328. data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +33 -37
  329. data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +5 -2
  330. data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +252 -267
  331. data/rbi/lib/modern_treasury/models/line_item.rbi +54 -105
  332. data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +22 -28
  333. data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +26 -27
  334. data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +25 -28
  335. data/rbi/lib/modern_treasury/models/paper_item.rbi +53 -122
  336. data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +20 -29
  337. data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +5 -2
  338. data/rbi/lib/modern_treasury/models/payment_flow.rbi +141 -136
  339. data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +36 -46
  340. data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +25 -44
  341. data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +5 -2
  342. data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +27 -16
  343. data/rbi/lib/modern_treasury/models/payment_order.rbi +732 -614
  344. data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +1297 -744
  345. data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +1346 -801
  346. data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +150 -157
  347. data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +5 -2
  348. data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +39 -32
  349. data/rbi/lib/modern_treasury/models/payment_order_type.rbi +39 -33
  350. data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1104 -632
  351. data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +58 -91
  352. data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +274 -172
  353. data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +7 -14
  354. data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +4 -9
  355. data/rbi/lib/modern_treasury/models/payment_reference.rbi +298 -144
  356. data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +49 -39
  357. data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +5 -2
  358. data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +5 -2
  359. data/rbi/lib/modern_treasury/models/ping_response.rbi +3 -8
  360. data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +88 -110
  361. data/rbi/lib/modern_treasury/models/return_create_params.rbi +98 -107
  362. data/rbi/lib/modern_treasury/models/return_list_params.rbi +45 -45
  363. data/rbi/lib/modern_treasury/models/return_object.rbi +575 -393
  364. data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +5 -2
  365. data/rbi/lib/modern_treasury/models/routing_detail.rbi +140 -204
  366. data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +159 -107
  367. data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +24 -26
  368. data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +11 -23
  369. data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +14 -22
  370. data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +182 -122
  371. data/rbi/lib/modern_treasury/models/transaction.rbi +193 -287
  372. data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +80 -100
  373. data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +5 -2
  374. data/rbi/lib/modern_treasury/models/transaction_direction.rbi +8 -5
  375. data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +56 -74
  376. data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +5 -2
  377. data/rbi/lib/modern_treasury/models/transaction_update_params.rbi +8 -8
  378. data/rbi/lib/modern_treasury/models/transactions/line_item_create_params.rbi +10 -21
  379. data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +3 -2
  380. data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +29 -45
  381. data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +3 -2
  382. data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +104 -113
  383. data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +140 -42
  384. data/rbi/lib/modern_treasury/models/virtual_account.rbi +39 -106
  385. data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +547 -247
  386. data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +5 -2
  387. data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +19 -29
  388. data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +5 -2
  389. data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +14 -30
  390. data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +288 -241
  391. data/rbi/lib/modern_treasury/page.rbi +6 -24
  392. data/rbi/lib/modern_treasury/pooled_net_requester.rbi +42 -39
  393. data/rbi/lib/modern_treasury/request_options.rbi +33 -54
  394. data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +32 -11
  395. data/rbi/lib/modern_treasury/resources/account_details.rbi +54 -15
  396. data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +38 -12
  397. data/rbi/lib/modern_treasury/resources/bulk_results.rbi +22 -8
  398. data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +37 -12
  399. data/rbi/lib/modern_treasury/resources/connections.rbi +13 -4
  400. data/rbi/lib/modern_treasury/resources/counterparties.rbi +78 -17
  401. data/rbi/lib/modern_treasury/resources/documents.rbi +28 -9
  402. data/rbi/lib/modern_treasury/resources/events.rbi +13 -5
  403. data/rbi/lib/modern_treasury/resources/expected_payments.rbi +113 -23
  404. data/rbi/lib/modern_treasury/resources/external_accounts.rbi +83 -26
  405. data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +32 -8
  406. data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +53 -14
  407. data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +40 -11
  408. data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +47 -14
  409. data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +64 -10
  410. data/rbi/lib/modern_treasury/resources/invoices.rbi +173 -28
  411. data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +54 -12
  412. data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +101 -21
  413. data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +22 -6
  414. data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +59 -12
  415. data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +20 -5
  416. data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +93 -17
  417. data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +61 -10
  418. data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +41 -11
  419. data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +13 -3
  420. data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +113 -23
  421. data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +23 -6
  422. data/rbi/lib/modern_treasury/resources/ledgers.rbi +60 -12
  423. data/rbi/lib/modern_treasury/resources/legal_entities.rbi +83 -24
  424. data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +15 -5
  425. data/rbi/lib/modern_treasury/resources/line_items.rbi +43 -11
  426. data/rbi/lib/modern_treasury/resources/paper_items.rbi +15 -5
  427. data/rbi/lib/modern_treasury/resources/payment_flows.rbi +36 -10
  428. data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +43 -10
  429. data/rbi/lib/modern_treasury/resources/payment_orders.rbi +336 -50
  430. data/rbi/lib/modern_treasury/resources/payment_references.rbi +17 -16
  431. data/rbi/lib/modern_treasury/resources/returns.rbi +33 -9
  432. data/rbi/lib/modern_treasury/resources/routing_details.rbi +51 -15
  433. data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +31 -10
  434. data/rbi/lib/modern_treasury/resources/transactions.rbi +63 -13
  435. data/rbi/lib/modern_treasury/resources/validations.rbi +16 -5
  436. data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +47 -12
  437. data/rbi/lib/modern_treasury/util.rbi +238 -92
  438. data/rbi/lib/modern_treasury/version.rbi +1 -1
  439. data/sig/modern_treasury/base_client.rbs +31 -23
  440. data/sig/modern_treasury/base_model.rbs +36 -20
  441. data/sig/modern_treasury/base_page.rbs +1 -1
  442. data/sig/modern_treasury/client.rbs +12 -8
  443. data/sig/modern_treasury/errors.rbs +22 -21
  444. data/sig/modern_treasury/models/account_collection_flow.rbs +25 -24
  445. data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +10 -13
  446. data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +9 -14
  447. data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +1 -6
  448. data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +8 -11
  449. data/sig/modern_treasury/models/account_detail.rbs +15 -18
  450. data/sig/modern_treasury/models/account_detail_create_params.rbs +14 -15
  451. data/sig/modern_treasury/models/account_detail_delete_params.rbs +9 -12
  452. data/sig/modern_treasury/models/account_detail_list_params.rbs +6 -11
  453. data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +5 -10
  454. data/sig/modern_treasury/models/accounts_type.rbs +4 -2
  455. data/sig/modern_treasury/models/async_response.rbs +1 -6
  456. data/sig/modern_treasury/models/bank_settings.rbs +12 -17
  457. data/sig/modern_treasury/models/bulk_request.rbs +26 -24
  458. data/sig/modern_treasury/models/bulk_request_create_params.rbs +492 -578
  459. data/sig/modern_treasury/models/bulk_request_list_params.rbs +21 -20
  460. data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +1 -6
  461. data/sig/modern_treasury/models/bulk_result.rbs +43 -45
  462. data/sig/modern_treasury/models/bulk_result_list_params.rbs +22 -21
  463. data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +1 -6
  464. data/sig/modern_treasury/models/client_ping_params.rbs +1 -6
  465. data/sig/modern_treasury/models/connection.rbs +11 -15
  466. data/sig/modern_treasury/models/connection_legal_entity.rbs +16 -19
  467. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +138 -166
  468. data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +12 -15
  469. data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +1 -6
  470. data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +8 -11
  471. data/sig/modern_treasury/models/connection_list_params.rbs +7 -12
  472. data/sig/modern_treasury/models/counterparty.rbs +78 -87
  473. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +11 -14
  474. data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +1 -6
  475. data/sig/modern_treasury/models/counterparty_create_params.rbs +232 -277
  476. data/sig/modern_treasury/models/counterparty_delete_params.rbs +1 -6
  477. data/sig/modern_treasury/models/counterparty_list_params.rbs +11 -16
  478. data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +1 -6
  479. data/sig/modern_treasury/models/counterparty_update_params.rbs +9 -14
  480. data/sig/modern_treasury/models/currency.rbs +4 -2
  481. data/sig/modern_treasury/models/document.rbs +33 -41
  482. data/sig/modern_treasury/models/document_create_params.rbs +11 -14
  483. data/sig/modern_treasury/models/document_list_params.rbs +11 -14
  484. data/sig/modern_treasury/models/document_retrieve_params.rbs +1 -6
  485. data/sig/modern_treasury/models/event.rbs +12 -16
  486. data/sig/modern_treasury/models/event_list_params.rbs +10 -15
  487. data/sig/modern_treasury/models/event_retrieve_params.rbs +1 -6
  488. data/sig/modern_treasury/models/expected_payment.rbs +40 -39
  489. data/sig/modern_treasury/models/expected_payment_create_params.rbs +62 -76
  490. data/sig/modern_treasury/models/expected_payment_delete_params.rbs +1 -6
  491. data/sig/modern_treasury/models/expected_payment_list_params.rbs +21 -22
  492. data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +1 -6
  493. data/sig/modern_treasury/models/expected_payment_type.rbs +4 -2
  494. data/sig/modern_treasury/models/expected_payment_update_params.rbs +28 -29
  495. data/sig/modern_treasury/models/external_account.rbs +60 -67
  496. data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +4 -9
  497. data/sig/modern_treasury/models/external_account_create_params.rbs +73 -91
  498. data/sig/modern_treasury/models/external_account_delete_params.rbs +1 -6
  499. data/sig/modern_treasury/models/external_account_list_params.rbs +8 -13
  500. data/sig/modern_treasury/models/external_account_retrieve_params.rbs +1 -6
  501. data/sig/modern_treasury/models/external_account_type.rbs +4 -2
  502. data/sig/modern_treasury/models/external_account_update_params.rbs +22 -30
  503. data/sig/modern_treasury/models/external_account_verify_params.rbs +20 -19
  504. data/sig/modern_treasury/models/external_account_verify_response.rbs +28 -25
  505. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +23 -33
  506. data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +9 -14
  507. data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +12 -17
  508. data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +1 -6
  509. data/sig/modern_treasury/models/incoming_payment_detail.rbs +43 -40
  510. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +19 -20
  511. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +20 -21
  512. data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +1 -6
  513. data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +4 -9
  514. data/sig/modern_treasury/models/internal_account.rbs +42 -48
  515. data/sig/modern_treasury/models/internal_account_create_params.rbs +24 -32
  516. data/sig/modern_treasury/models/internal_account_list_params.rbs +15 -18
  517. data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +1 -6
  518. data/sig/modern_treasury/models/internal_account_update_params.rbs +8 -13
  519. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +39 -45
  520. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +21 -27
  521. data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +4 -9
  522. data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +11 -14
  523. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +4 -9
  524. data/sig/modern_treasury/models/invoice.rbs +89 -105
  525. data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +4 -6
  526. data/sig/modern_treasury/models/invoice_create_params.rbs +79 -105
  527. data/sig/modern_treasury/models/invoice_list_params.rbs +18 -21
  528. data/sig/modern_treasury/models/invoice_retrieve_params.rbs +1 -6
  529. data/sig/modern_treasury/models/invoice_update_params.rbs +79 -105
  530. data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +15 -21
  531. data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +10 -15
  532. data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +4 -9
  533. data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +5 -10
  534. data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +4 -9
  535. data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +11 -16
  536. data/sig/modern_treasury/models/ledger.rbs +11 -15
  537. data/sig/modern_treasury/models/ledger_account.rbs +49 -72
  538. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +49 -80
  539. data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +12 -18
  540. data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +1 -6
  541. data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +8 -13
  542. data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +1 -6
  543. data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +5 -10
  544. data/sig/modern_treasury/models/ledger_account_category.rbs +40 -65
  545. data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +4 -6
  546. data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +4 -6
  547. data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +11 -16
  548. data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +1 -6
  549. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +14 -24
  550. data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +4 -6
  551. data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +4 -6
  552. data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +5 -15
  553. data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +6 -11
  554. data/sig/modern_treasury/models/ledger_account_create_params.rbs +17 -20
  555. data/sig/modern_treasury/models/ledger_account_delete_params.rbs +1 -6
  556. data/sig/modern_treasury/models/ledger_account_list_params.rbs +47 -72
  557. data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +11 -21
  558. data/sig/modern_treasury/models/ledger_account_settlement.rbs +23 -26
  559. data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +15 -18
  560. data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +13 -18
  561. data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +1 -6
  562. data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +10 -13
  563. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +4 -9
  564. data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +4 -9
  565. data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +8 -13
  566. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +69 -114
  567. data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +1 -6
  568. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +69 -114
  569. data/sig/modern_treasury/models/ledger_account_update_params.rbs +6 -11
  570. data/sig/modern_treasury/models/ledger_create_params.rbs +6 -11
  571. data/sig/modern_treasury/models/ledger_delete_params.rbs +1 -6
  572. data/sig/modern_treasury/models/ledger_entry.rbs +48 -70
  573. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +39 -43
  574. data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +4 -9
  575. data/sig/modern_treasury/models/ledger_entry_update_params.rbs +4 -9
  576. data/sig/modern_treasury/models/ledger_event_handler.rbs +27 -47
  577. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +22 -42
  578. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +1 -6
  579. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +8 -13
  580. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +1 -6
  581. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +5 -15
  582. data/sig/modern_treasury/models/ledger_list_params.rbs +8 -13
  583. data/sig/modern_treasury/models/ledger_retrieve_params.rbs +1 -6
  584. data/sig/modern_treasury/models/ledger_transaction.rbs +29 -30
  585. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +31 -37
  586. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +17 -25
  587. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +18 -19
  588. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +42 -44
  589. data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +1 -6
  590. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +29 -35
  591. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +76 -101
  592. data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +9 -14
  593. data/sig/modern_treasury/models/ledger_update_params.rbs +6 -11
  594. data/sig/modern_treasury/models/ledgerable_event.rbs +12 -17
  595. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +7 -12
  596. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +1 -6
  597. data/sig/modern_treasury/models/legal_entity.rbs +78 -87
  598. data/sig/modern_treasury/models/legal_entity_association.rbs +94 -107
  599. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +73 -86
  600. data/sig/modern_treasury/models/legal_entity_create_params.rbs +133 -156
  601. data/sig/modern_treasury/models/legal_entity_list_params.rbs +12 -15
  602. data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +1 -6
  603. data/sig/modern_treasury/models/legal_entity_update_params.rbs +56 -68
  604. data/sig/modern_treasury/models/line_item.rbs +20 -27
  605. data/sig/modern_treasury/models/line_item_list_params.rbs +10 -13
  606. data/sig/modern_treasury/models/line_item_retrieve_params.rbs +9 -12
  607. data/sig/modern_treasury/models/line_item_update_params.rbs +10 -13
  608. data/sig/modern_treasury/models/paper_item.rbs +24 -26
  609. data/sig/modern_treasury/models/paper_item_list_params.rbs +8 -13
  610. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +1 -6
  611. data/sig/modern_treasury/models/payment_flow.rbs +37 -33
  612. data/sig/modern_treasury/models/payment_flow_create_params.rbs +13 -16
  613. data/sig/modern_treasury/models/payment_flow_list_params.rbs +11 -16
  614. data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +1 -6
  615. data/sig/modern_treasury/models/payment_flow_update_params.rbs +8 -11
  616. data/sig/modern_treasury/models/payment_order.rbs +107 -109
  617. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +166 -195
  618. data/sig/modern_treasury/models/payment_order_create_params.rbs +177 -209
  619. data/sig/modern_treasury/models/payment_order_list_params.rbs +32 -31
  620. data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +1 -6
  621. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -2
  622. data/sig/modern_treasury/models/payment_order_type.rbs +4 -2
  623. data/sig/modern_treasury/models/payment_order_update_params.rbs +139 -160
  624. data/sig/modern_treasury/models/payment_orders/reversal.rbs +21 -22
  625. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +40 -49
  626. data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +5 -10
  627. data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +4 -9
  628. data/sig/modern_treasury/models/payment_reference.rbs +19 -20
  629. data/sig/modern_treasury/models/payment_reference_list_params.rbs +12 -15
  630. data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +1 -6
  631. data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +1 -6
  632. data/sig/modern_treasury/models/ping_response.rbs +1 -6
  633. data/sig/modern_treasury/models/reconciliation_rule.rbs +20 -21
  634. data/sig/modern_treasury/models/return_create_params.rbs +17 -18
  635. data/sig/modern_treasury/models/return_list_params.rbs +13 -16
  636. data/sig/modern_treasury/models/return_object.rbs +58 -56
  637. data/sig/modern_treasury/models/return_retrieve_params.rbs +1 -6
  638. data/sig/modern_treasury/models/routing_detail.rbs +34 -40
  639. data/sig/modern_treasury/models/routing_detail_create_params.rbs +19 -18
  640. data/sig/modern_treasury/models/routing_detail_delete_params.rbs +9 -12
  641. data/sig/modern_treasury/models/routing_detail_list_params.rbs +6 -11
  642. data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +5 -10
  643. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +24 -30
  644. data/sig/modern_treasury/models/transaction.rbs +46 -51
  645. data/sig/modern_treasury/models/transaction_create_params.rbs +17 -20
  646. data/sig/modern_treasury/models/transaction_delete_params.rbs +1 -6
  647. data/sig/modern_treasury/models/transaction_direction.rbs +4 -2
  648. data/sig/modern_treasury/models/transaction_list_params.rbs +17 -22
  649. data/sig/modern_treasury/models/transaction_retrieve_params.rbs +1 -6
  650. data/sig/modern_treasury/models/transaction_update_params.rbs +4 -9
  651. data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +6 -11
  652. data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +1 -6
  653. data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +12 -15
  654. data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +1 -6
  655. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +25 -27
  656. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +9 -12
  657. data/sig/modern_treasury/models/virtual_account.rbs +18 -23
  658. data/sig/modern_treasury/models/virtual_account_create_params.rbs +50 -62
  659. data/sig/modern_treasury/models/virtual_account_delete_params.rbs +1 -6
  660. data/sig/modern_treasury/models/virtual_account_list_params.rbs +8 -13
  661. data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +1 -6
  662. data/sig/modern_treasury/models/virtual_account_update_params.rbs +7 -12
  663. data/sig/modern_treasury/models/wealth_and_employment_details.rbs +44 -37
  664. data/sig/modern_treasury/page.rbs +2 -7
  665. data/sig/modern_treasury/pooled_net_requester.rbs +11 -16
  666. data/sig/modern_treasury/request_options.rbs +6 -2
  667. data/sig/modern_treasury/resources/account_collection_flows.rbs +24 -46
  668. data/sig/modern_treasury/resources/account_details.rbs +26 -50
  669. data/sig/modern_treasury/resources/bulk_requests.rbs +20 -36
  670. data/sig/modern_treasury/resources/bulk_results.rbs +14 -25
  671. data/sig/modern_treasury/resources/connection_legal_entities.rbs +23 -45
  672. data/sig/modern_treasury/resources/connections.rbs +7 -12
  673. data/sig/modern_treasury/resources/counterparties.rbs +51 -82
  674. data/sig/modern_treasury/resources/documents.rbs +18 -34
  675. data/sig/modern_treasury/resources/events.rbs +14 -24
  676. data/sig/modern_treasury/resources/expected_payments.rbs +64 -92
  677. data/sig/modern_treasury/resources/external_accounts.rbs +57 -94
  678. data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +25 -41
  679. data/sig/modern_treasury/resources/incoming_payment_details.rbs +32 -54
  680. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +26 -50
  681. data/sig/modern_treasury/resources/internal_accounts.rbs +36 -58
  682. data/sig/modern_treasury/resources/invoices/line_items.rbs +39 -69
  683. data/sig/modern_treasury/resources/invoices.rbs +80 -108
  684. data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +29 -57
  685. data/sig/modern_treasury/resources/ledger_account_categories.rbs +60 -112
  686. data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +10 -22
  687. data/sig/modern_treasury/resources/ledger_account_settlements.rbs +35 -57
  688. data/sig/modern_treasury/resources/ledger_account_statements.rbs +12 -23
  689. data/sig/modern_treasury/resources/ledger_accounts.rbs +46 -74
  690. data/sig/modern_treasury/resources/ledger_entries.rbs +33 -50
  691. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +26 -48
  692. data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +9 -14
  693. data/sig/modern_treasury/resources/ledger_transactions.rbs +68 -102
  694. data/sig/modern_treasury/resources/ledgerable_events.rbs +11 -22
  695. data/sig/modern_treasury/resources/ledgers.rbs +29 -56
  696. data/sig/modern_treasury/resources/legal_entities.rbs +65 -87
  697. data/sig/modern_treasury/resources/legal_entity_associations.rbs +9 -14
  698. data/sig/modern_treasury/resources/line_items.rbs +20 -38
  699. data/sig/modern_treasury/resources/paper_items.rbs +12 -23
  700. data/sig/modern_treasury/resources/payment_flows.rbs +29 -51
  701. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +18 -36
  702. data/sig/modern_treasury/resources/payment_orders.rbs +139 -166
  703. data/sig/modern_treasury/resources/payment_references.rbs +13 -33
  704. data/sig/modern_treasury/resources/returns.rbs +22 -37
  705. data/sig/modern_treasury/resources/routing_details.rbs +27 -51
  706. data/sig/modern_treasury/resources/transactions/line_items.rbs +22 -41
  707. data/sig/modern_treasury/resources/transactions.rbs +43 -68
  708. data/sig/modern_treasury/resources/validations.rbs +5 -10
  709. data/sig/modern_treasury/resources/virtual_accounts.rbs +37 -65
  710. data/sig/modern_treasury/util.rbs +71 -26
  711. metadata +4 -4
@@ -6,340 +6,314 @@ module ModernTreasury
6
6
  extend ModernTreasury::RequestParameters::Converter
7
7
  include ModernTreasury::RequestParameters
8
8
 
9
+ # Value in specified currency's smallest unit. e.g. $10 would be represented as
10
+ # 1000 (cents). For RTP, the maximum amount allowed by the network is $100,000.
9
11
  sig { returns(Integer) }
10
- def amount
11
- end
12
-
13
- sig { params(_: Integer).returns(Integer) }
14
- def amount=(_)
15
- end
16
-
17
- sig { returns(Symbol) }
18
- def direction
19
- end
12
+ attr_accessor :amount
20
13
 
21
- sig { params(_: Symbol).returns(Symbol) }
22
- def direction=(_)
23
- end
14
+ # One of `credit`, `debit`. Describes the direction money is flowing in the
15
+ # transaction. A `credit` moves money from your account to someone else's. A
16
+ # `debit` pulls money from someone else's account to your own. Note that wire,
17
+ # rtp, and check payments will always be `credit`.
18
+ sig { returns(ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction::OrSymbol) }
19
+ attr_accessor :direction
24
20
 
21
+ # The ID of one of your organization's internal accounts.
25
22
  sig { returns(String) }
26
- def originating_account_id
27
- end
28
-
29
- sig { params(_: String).returns(String) }
30
- def originating_account_id=(_)
31
- end
32
-
33
- sig { returns(Symbol) }
34
- def type
35
- end
23
+ attr_accessor :originating_account_id
36
24
 
37
- sig { params(_: Symbol).returns(Symbol) }
38
- def type=(_)
39
- end
25
+ # One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`,
26
+ # `sepa`, `bacs`, `au_becs`, `interac`, `neft`, `nics`,
27
+ # `nz_national_clearing_code`, `sic`, `signet`, `provexchange`, `zengin`.
28
+ sig { returns(ModernTreasury::Models::PaymentOrderType::OrSymbol) }
29
+ attr_accessor :type
40
30
 
41
31
  sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting)) }
42
- def accounting
43
- end
32
+ attr_reader :accounting
44
33
 
45
34
  sig do
46
- params(_: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting)
47
- .returns(ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting)
48
- end
49
- def accounting=(_)
35
+ params(
36
+ accounting: T.any(ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting, ModernTreasury::Util::AnyHash)
37
+ )
38
+ .void
50
39
  end
40
+ attr_writer :accounting
51
41
 
42
+ # The ID of one of your accounting categories. Note that these will only be
43
+ # accessible if your accounting system has been connected.
52
44
  sig { returns(T.nilable(String)) }
53
- def accounting_category_id
54
- end
55
-
56
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
57
- def accounting_category_id=(_)
58
- end
45
+ attr_accessor :accounting_category_id
59
46
 
47
+ # The ID of one of your accounting ledger classes. Note that these will only be
48
+ # accessible if your accounting system has been connected.
60
49
  sig { returns(T.nilable(String)) }
61
- def accounting_ledger_class_id
62
- end
50
+ attr_accessor :accounting_ledger_class_id
63
51
 
64
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
65
- def accounting_ledger_class_id=(_)
66
- end
52
+ # The party that will pay the fees for the payment order. Only applies to wire
53
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
54
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
55
+ sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol)) }
56
+ attr_accessor :charge_bearer
67
57
 
68
- sig { returns(T.nilable(Symbol)) }
69
- def charge_bearer
70
- end
58
+ # Defaults to the currency of the originating account.
59
+ sig { returns(T.nilable(ModernTreasury::Models::Currency::OrSymbol)) }
60
+ attr_reader :currency
71
61
 
72
- sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) }
73
- def charge_bearer=(_)
74
- end
75
-
76
- sig { returns(T.nilable(Symbol)) }
77
- def currency
78
- end
79
-
80
- sig { params(_: Symbol).returns(Symbol) }
81
- def currency=(_)
82
- end
62
+ sig { params(currency: ModernTreasury::Models::Currency::OrSymbol).void }
63
+ attr_writer :currency
83
64
 
65
+ # An optional description for internal use.
84
66
  sig { returns(T.nilable(String)) }
85
- def description
86
- end
87
-
88
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
89
- def description=(_)
90
- end
67
+ attr_accessor :description
91
68
 
69
+ # Date transactions are to be posted to the participants' account. Defaults to the
70
+ # current business day or the next business day if the current day is a bank
71
+ # holiday or weekend. Format: yyyy-mm-dd.
92
72
  sig { returns(T.nilable(Date)) }
93
- def effective_date
94
- end
73
+ attr_reader :effective_date
95
74
 
96
- sig { params(_: Date).returns(Date) }
97
- def effective_date=(_)
98
- end
75
+ sig { params(effective_date: Date).void }
76
+ attr_writer :effective_date
99
77
 
78
+ # RFP payments require an expires_at. This value must be past the effective_date.
100
79
  sig { returns(T.nilable(Time)) }
101
- def expires_at
102
- end
103
-
104
- sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) }
105
- def expires_at=(_)
106
- end
80
+ attr_accessor :expires_at
107
81
 
108
- sig { returns(T.nilable(Symbol)) }
109
- def fallback_type
110
- end
82
+ # A payment type to fallback to if the original type is not valid for the
83
+ # receiving account. Currently, this only supports falling back from RTP to ACH
84
+ # (type=rtp and fallback_type=ach)
85
+ sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol)) }
86
+ attr_reader :fallback_type
111
87
 
112
- sig { params(_: Symbol).returns(Symbol) }
113
- def fallback_type=(_)
114
- end
88
+ sig { params(fallback_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol).void }
89
+ attr_writer :fallback_type
115
90
 
91
+ # If present, indicates a specific foreign exchange contract number that has been
92
+ # generated by your financial institution.
116
93
  sig { returns(T.nilable(String)) }
117
- def foreign_exchange_contract
118
- end
94
+ attr_accessor :foreign_exchange_contract
119
95
 
120
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
121
- def foreign_exchange_contract=(_)
122
- end
123
-
124
- sig { returns(T.nilable(Symbol)) }
125
- def foreign_exchange_indicator
126
- end
127
-
128
- sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) }
129
- def foreign_exchange_indicator=(_)
96
+ # Indicates the type of FX transfer to initiate, can be either
97
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
98
+ # currency matches the originating account currency.
99
+ sig do
100
+ returns(
101
+ T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::OrSymbol)
102
+ )
130
103
  end
104
+ attr_accessor :foreign_exchange_indicator
131
105
 
106
+ # Specifies a ledger transaction object that will be created with the payment
107
+ # order. If the ledger transaction cannot be created, then the payment order
108
+ # creation will fail. The resulting ledger transaction will mirror the status of
109
+ # the payment order.
132
110
  sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction)) }
133
- def ledger_transaction
134
- end
111
+ attr_reader :ledger_transaction
135
112
 
136
113
  sig do
137
- params(_: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction)
138
- .returns(ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction)
139
- end
140
- def ledger_transaction=(_)
114
+ params(
115
+ ledger_transaction: T.any(
116
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction,
117
+ ModernTreasury::Util::AnyHash
118
+ )
119
+ )
120
+ .void
141
121
  end
122
+ attr_writer :ledger_transaction
142
123
 
124
+ # Either ledger_transaction or ledger_transaction_id can be provided. Only a
125
+ # pending ledger transaction can be attached upon payment order creation. Once the
126
+ # payment order is created, the status of the ledger transaction tracks the
127
+ # payment order automatically.
143
128
  sig { returns(T.nilable(String)) }
144
- def ledger_transaction_id
145
- end
129
+ attr_reader :ledger_transaction_id
146
130
 
147
- sig { params(_: String).returns(String) }
148
- def ledger_transaction_id=(_)
149
- end
131
+ sig { params(ledger_transaction_id: String).void }
132
+ attr_writer :ledger_transaction_id
150
133
 
134
+ # An array of line items that must sum up to the amount of the payment order.
151
135
  sig { returns(T.nilable(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem])) }
152
- def line_items
153
- end
136
+ attr_reader :line_items
154
137
 
155
138
  sig do
156
- params(_: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem])
157
- .returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem])
158
- end
159
- def line_items=(_)
139
+ params(
140
+ line_items: T::Array[T.any(ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem, ModernTreasury::Util::AnyHash)]
141
+ )
142
+ .void
160
143
  end
144
+ attr_writer :line_items
161
145
 
146
+ # Additional data represented as key-value pairs. Both the key and value must be
147
+ # strings.
162
148
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
163
- def metadata
164
- end
149
+ attr_reader :metadata
165
150
 
166
- sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) }
167
- def metadata=(_)
168
- end
151
+ sig { params(metadata: T::Hash[Symbol, String]).void }
152
+ attr_writer :metadata
169
153
 
154
+ # A boolean to determine if NSF Protection is enabled for this payment order. Note
155
+ # that this setting must also be turned on in your organization settings page.
170
156
  sig { returns(T.nilable(T::Boolean)) }
171
- def nsf_protected
172
- end
157
+ attr_reader :nsf_protected
173
158
 
174
- sig { params(_: T::Boolean).returns(T::Boolean) }
175
- def nsf_protected=(_)
176
- end
159
+ sig { params(nsf_protected: T::Boolean).void }
160
+ attr_writer :nsf_protected
177
161
 
162
+ # If present, this will replace your default company name on receiver's bank
163
+ # statement. This field can only be used for ACH payments currently. For ACH, only
164
+ # the first 16 characters of this string will be used. Any additional characters
165
+ # will be truncated.
178
166
  sig { returns(T.nilable(String)) }
179
- def originating_party_name
180
- end
181
-
182
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
183
- def originating_party_name=(_)
184
- end
185
-
186
- sig { returns(T.nilable(Symbol)) }
187
- def priority
188
- end
189
-
190
- sig { params(_: Symbol).returns(Symbol) }
191
- def priority=(_)
192
- end
193
-
167
+ attr_accessor :originating_party_name
168
+
169
+ # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
170
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
171
+ # an overnight check rather than standard mail.
172
+ sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::OrSymbol)) }
173
+ attr_reader :priority
174
+
175
+ sig { params(priority: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::OrSymbol).void }
176
+ attr_writer :priority
177
+
178
+ # If present, Modern Treasury will not process the payment until after this time.
179
+ # If `process_after` is past the cutoff for `effective_date`, `process_after` will
180
+ # take precedence and `effective_date` will automatically update to reflect the
181
+ # earliest possible sending date after `process_after`. Format is ISO8601
182
+ # timestamp.
194
183
  sig { returns(T.nilable(Time)) }
195
- def process_after
196
- end
197
-
198
- sig { params(_: T.nilable(Time)).returns(T.nilable(Time)) }
199
- def process_after=(_)
200
- end
184
+ attr_accessor :process_after
201
185
 
186
+ # For `wire`, this is usually the purpose which is transmitted via the
187
+ # "InstrForDbtrAgt" field in the ISO20022 file. For `eft`, this field is the 3
188
+ # digit CPA Code that will be attached to the payment.
202
189
  sig { returns(T.nilable(String)) }
203
- def purpose
204
- end
205
-
206
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
207
- def purpose=(_)
208
- end
190
+ attr_accessor :purpose
209
191
 
192
+ # Either `receiving_account` or `receiving_account_id` must be present. When using
193
+ # `receiving_account_id`, you may pass the id of an external account or an
194
+ # internal account.
210
195
  sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount)) }
211
- def receiving_account
212
- end
196
+ attr_reader :receiving_account
213
197
 
214
198
  sig do
215
- params(_: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount)
216
- .returns(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount)
217
- end
218
- def receiving_account=(_)
199
+ params(
200
+ receiving_account: T.any(
201
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount,
202
+ ModernTreasury::Util::AnyHash
203
+ )
204
+ )
205
+ .void
219
206
  end
207
+ attr_writer :receiving_account
220
208
 
209
+ # Either `receiving_account` or `receiving_account_id` must be present. When using
210
+ # `receiving_account_id`, you may pass the id of an external account or an
211
+ # internal account.
221
212
  sig { returns(T.nilable(String)) }
222
- def receiving_account_id
223
- end
213
+ attr_reader :receiving_account_id
224
214
 
225
- sig { params(_: String).returns(String) }
226
- def receiving_account_id=(_)
227
- end
215
+ sig { params(receiving_account_id: String).void }
216
+ attr_writer :receiving_account_id
228
217
 
218
+ # For `ach`, this field will be passed through on an addenda record. For `wire`
219
+ # payments the field will be passed through as the "Originator to Beneficiary
220
+ # Information", also known as OBI or Fedwire tag 6000.
229
221
  sig { returns(T.nilable(String)) }
230
- def remittance_information
231
- end
232
-
233
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
234
- def remittance_information=(_)
235
- end
222
+ attr_accessor :remittance_information
236
223
 
224
+ # Send an email to the counterparty when the payment order is sent to the bank. If
225
+ # `null`, `send_remittance_advice` on the Counterparty is used.
237
226
  sig { returns(T.nilable(T::Boolean)) }
238
- def send_remittance_advice
239
- end
240
-
241
- sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
242
- def send_remittance_advice=(_)
243
- end
244
-
227
+ attr_accessor :send_remittance_advice
228
+
229
+ # An optional descriptor which will appear in the receiver's statement. For
230
+ # `check` payments this field will be used as the memo line. For `ach` the maximum
231
+ # length is 10 characters. Note that for ACH payments, the name on your bank
232
+ # account will be included automatically by the bank, so you can use the
233
+ # characters for other useful information. For `eft` the maximum length is 15
234
+ # characters.
245
235
  sig { returns(T.nilable(String)) }
246
- def statement_descriptor
247
- end
248
-
249
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
250
- def statement_descriptor=(_)
251
- end
252
-
253
- sig { returns(T.nilable(Symbol)) }
254
- def subtype
255
- end
236
+ attr_accessor :statement_descriptor
256
237
 
257
- sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) }
258
- def subtype=(_)
259
- end
238
+ # An additional layer of classification for the type of payment order you are
239
+ # doing. This field is only used for `ach` payment orders currently. For `ach`
240
+ # payment orders, the `subtype` represents the SEC code. We currently support
241
+ # `CCD`, `PPD`, `IAT`, `CTX`, `WEB`, `CIE`, and `TEL`.
242
+ sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderSubtype::OrSymbol)) }
243
+ attr_accessor :subtype
260
244
 
245
+ # A flag that determines whether a payment order should go through transaction
246
+ # monitoring.
261
247
  sig { returns(T.nilable(T::Boolean)) }
262
- def transaction_monitoring_enabled
263
- end
248
+ attr_reader :transaction_monitoring_enabled
264
249
 
265
- sig { params(_: T::Boolean).returns(T::Boolean) }
266
- def transaction_monitoring_enabled=(_)
267
- end
250
+ sig { params(transaction_monitoring_enabled: T::Boolean).void }
251
+ attr_writer :transaction_monitoring_enabled
268
252
 
253
+ # Identifier of the ultimate originator of the payment order.
269
254
  sig { returns(T.nilable(String)) }
270
- def ultimate_originating_party_identifier
271
- end
272
-
273
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
274
- def ultimate_originating_party_identifier=(_)
275
- end
255
+ attr_accessor :ultimate_originating_party_identifier
276
256
 
257
+ # Name of the ultimate originator of the payment order.
277
258
  sig { returns(T.nilable(String)) }
278
- def ultimate_originating_party_name
279
- end
280
-
281
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
282
- def ultimate_originating_party_name=(_)
283
- end
259
+ attr_accessor :ultimate_originating_party_name
284
260
 
261
+ # Identifier of the ultimate funds recipient.
285
262
  sig { returns(T.nilable(String)) }
286
- def ultimate_receiving_party_identifier
287
- end
288
-
289
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
290
- def ultimate_receiving_party_identifier=(_)
291
- end
263
+ attr_accessor :ultimate_receiving_party_identifier
292
264
 
265
+ # Name of the ultimate funds recipient.
293
266
  sig { returns(T.nilable(String)) }
294
- def ultimate_receiving_party_name
295
- end
296
-
297
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
298
- def ultimate_receiving_party_name=(_)
299
- end
267
+ attr_accessor :ultimate_receiving_party_name
300
268
 
301
269
  sig do
302
270
  params(
303
271
  amount: Integer,
304
- direction: Symbol,
272
+ direction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
305
273
  originating_account_id: String,
306
- type: Symbol,
307
- accounting: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting,
274
+ type: ModernTreasury::Models::PaymentOrderType::OrSymbol,
275
+ accounting: T.any(ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting, ModernTreasury::Util::AnyHash),
308
276
  accounting_category_id: T.nilable(String),
309
277
  accounting_ledger_class_id: T.nilable(String),
310
- charge_bearer: T.nilable(Symbol),
311
- currency: Symbol,
278
+ charge_bearer: T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol),
279
+ currency: ModernTreasury::Models::Currency::OrSymbol,
312
280
  description: T.nilable(String),
313
281
  effective_date: Date,
314
282
  expires_at: T.nilable(Time),
315
- fallback_type: Symbol,
283
+ fallback_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol,
316
284
  foreign_exchange_contract: T.nilable(String),
317
- foreign_exchange_indicator: T.nilable(Symbol),
318
- ledger_transaction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction,
285
+ foreign_exchange_indicator: T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::OrSymbol),
286
+ ledger_transaction: T.any(
287
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction,
288
+ ModernTreasury::Util::AnyHash
289
+ ),
319
290
  ledger_transaction_id: String,
320
- line_items: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem],
291
+ line_items: T::Array[T.any(ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem, ModernTreasury::Util::AnyHash)],
321
292
  metadata: T::Hash[Symbol, String],
322
293
  nsf_protected: T::Boolean,
323
294
  originating_party_name: T.nilable(String),
324
- priority: Symbol,
295
+ priority: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::OrSymbol,
325
296
  process_after: T.nilable(Time),
326
297
  purpose: T.nilable(String),
327
- receiving_account: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount,
298
+ receiving_account: T.any(
299
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount,
300
+ ModernTreasury::Util::AnyHash
301
+ ),
328
302
  receiving_account_id: String,
329
303
  remittance_information: T.nilable(String),
330
304
  send_remittance_advice: T.nilable(T::Boolean),
331
305
  statement_descriptor: T.nilable(String),
332
- subtype: T.nilable(Symbol),
306
+ subtype: T.nilable(ModernTreasury::Models::PaymentOrderSubtype::OrSymbol),
333
307
  transaction_monitoring_enabled: T::Boolean,
334
308
  ultimate_originating_party_identifier: T.nilable(String),
335
309
  ultimate_originating_party_name: T.nilable(String),
336
310
  ultimate_receiving_party_identifier: T.nilable(String),
337
311
  ultimate_receiving_party_name: T.nilable(String),
338
- request_options: T.any(ModernTreasury::RequestOptions, T::Hash[Symbol, T.anything])
312
+ request_options: T.any(ModernTreasury::RequestOptions, ModernTreasury::Util::AnyHash)
339
313
  )
340
- .void
314
+ .returns(T.attached_class)
341
315
  end
342
- def initialize(
316
+ def self.new(
343
317
  amount:,
344
318
  direction:,
345
319
  originating_account_id:,
@@ -384,27 +358,27 @@ module ModernTreasury
384
358
  .returns(
385
359
  {
386
360
  amount: Integer,
387
- direction: Symbol,
361
+ direction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction::OrSymbol,
388
362
  originating_account_id: String,
389
- type: Symbol,
363
+ type: ModernTreasury::Models::PaymentOrderType::OrSymbol,
390
364
  accounting: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting,
391
365
  accounting_category_id: T.nilable(String),
392
366
  accounting_ledger_class_id: T.nilable(String),
393
- charge_bearer: T.nilable(Symbol),
394
- currency: Symbol,
367
+ charge_bearer: T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::OrSymbol),
368
+ currency: ModernTreasury::Models::Currency::OrSymbol,
395
369
  description: T.nilable(String),
396
370
  effective_date: Date,
397
371
  expires_at: T.nilable(Time),
398
- fallback_type: Symbol,
372
+ fallback_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType::OrSymbol,
399
373
  foreign_exchange_contract: T.nilable(String),
400
- foreign_exchange_indicator: T.nilable(Symbol),
374
+ foreign_exchange_indicator: T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::OrSymbol),
401
375
  ledger_transaction: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction,
402
376
  ledger_transaction_id: String,
403
377
  line_items: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LineItem],
404
378
  metadata: T::Hash[Symbol, String],
405
379
  nsf_protected: T::Boolean,
406
380
  originating_party_name: T.nilable(String),
407
- priority: Symbol,
381
+ priority: ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::OrSymbol,
408
382
  process_after: T.nilable(Time),
409
383
  purpose: T.nilable(String),
410
384
  receiving_account: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount,
@@ -412,7 +386,7 @@ module ModernTreasury
412
386
  remittance_information: T.nilable(String),
413
387
  send_remittance_advice: T.nilable(T::Boolean),
414
388
  statement_descriptor: T.nilable(String),
415
- subtype: T.nilable(Symbol),
389
+ subtype: T.nilable(ModernTreasury::Models::PaymentOrderSubtype::OrSymbol),
416
390
  transaction_monitoring_enabled: T::Boolean,
417
391
  ultimate_originating_party_identifier: T.nilable(String),
418
392
  ultimate_originating_party_name: T.nilable(String),
@@ -425,36 +399,40 @@ module ModernTreasury
425
399
  def to_hash
426
400
  end
427
401
 
428
- class Direction < ModernTreasury::Enum
429
- abstract!
402
+ # One of `credit`, `debit`. Describes the direction money is flowing in the
403
+ # transaction. A `credit` moves money from your account to someone else's. A
404
+ # `debit` pulls money from someone else's account to your own. Note that wire,
405
+ # rtp, and check payments will always be `credit`.
406
+ module Direction
407
+ extend ModernTreasury::Enum
430
408
 
431
- CREDIT = :credit
432
- DEBIT = :debit
409
+ TaggedSymbol =
410
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction) }
411
+ OrSymbol =
412
+ T.type_alias { T.any(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction::TaggedSymbol) }
433
413
 
434
- sig { override.returns(T::Array[Symbol]) }
414
+ CREDIT = T.let(:credit, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction::TaggedSymbol)
415
+ DEBIT = T.let(:debit, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction::TaggedSymbol)
416
+
417
+ sig { override.returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::Direction::TaggedSymbol]) }
435
418
  def self.values
436
419
  end
437
420
  end
438
421
 
439
422
  class Accounting < ModernTreasury::BaseModel
423
+ # The ID of one of your accounting categories. Note that these will only be
424
+ # accessible if your accounting system has been connected.
440
425
  sig { returns(T.nilable(String)) }
441
- def account_id
442
- end
443
-
444
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
445
- def account_id=(_)
446
- end
426
+ attr_accessor :account_id
447
427
 
428
+ # The ID of one of the class objects in your accounting system. Class objects
429
+ # track segments of your business independent of client or project. Note that
430
+ # these will only be accessible if your accounting system has been connected.
448
431
  sig { returns(T.nilable(String)) }
449
- def class_id
450
- end
432
+ attr_accessor :class_id
451
433
 
452
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
453
- def class_id=(_)
454
- end
455
-
456
- sig { params(account_id: T.nilable(String), class_id: T.nilable(String)).void }
457
- def initialize(account_id: nil, class_id: nil)
434
+ sig { params(account_id: T.nilable(String), class_id: T.nilable(String)).returns(T.attached_class) }
435
+ def self.new(account_id: nil, class_id: nil)
458
436
  end
459
437
 
460
438
  sig { override.returns({account_id: T.nilable(String), class_id: T.nilable(String)}) }
@@ -462,130 +440,198 @@ module ModernTreasury
462
440
  end
463
441
  end
464
442
 
465
- class ChargeBearer < ModernTreasury::Enum
466
- abstract!
443
+ # The party that will pay the fees for the payment order. Only applies to wire
444
+ # payment orders. Can be one of shared, sender, or receiver, which correspond
445
+ # respectively with the SWIFT 71A values `SHA`, `OUR`, `BEN`.
446
+ module ChargeBearer
447
+ extend ModernTreasury::Enum
448
+
449
+ TaggedSymbol =
450
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer) }
451
+ OrSymbol =
452
+ T.type_alias { T.any(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol) }
467
453
 
468
- SHARED = T.let(:shared, T.nilable(Symbol))
469
- SENDER = T.let(:sender, T.nilable(Symbol))
470
- RECEIVER = T.let(:receiver, T.nilable(Symbol))
454
+ SHARED =
455
+ T.let(:shared, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol)
456
+ SENDER =
457
+ T.let(:sender, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol)
458
+ RECEIVER =
459
+ T.let(:receiver, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol)
471
460
 
472
- sig { override.returns(T::Array[Symbol]) }
461
+ sig do
462
+ override
463
+ .returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ChargeBearer::TaggedSymbol])
464
+ end
473
465
  def self.values
474
466
  end
475
467
  end
476
468
 
477
- class FallbackType < ModernTreasury::Enum
478
- abstract!
469
+ # A payment type to fallback to if the original type is not valid for the
470
+ # receiving account. Currently, this only supports falling back from RTP to ACH
471
+ # (type=rtp and fallback_type=ach)
472
+ module FallbackType
473
+ extend ModernTreasury::Enum
479
474
 
480
- ACH = :ach
475
+ TaggedSymbol =
476
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType) }
477
+ OrSymbol =
478
+ T.type_alias { T.any(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType::TaggedSymbol) }
481
479
 
482
- sig { override.returns(T::Array[Symbol]) }
480
+ ACH = T.let(:ach, ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType::TaggedSymbol)
481
+
482
+ sig do
483
+ override
484
+ .returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::FallbackType::TaggedSymbol])
485
+ end
483
486
  def self.values
484
487
  end
485
488
  end
486
489
 
487
- class ForeignExchangeIndicator < ModernTreasury::Enum
488
- abstract!
490
+ # Indicates the type of FX transfer to initiate, can be either
491
+ # `variable_to_fixed`, `fixed_to_variable`, or `null` if the payment order
492
+ # currency matches the originating account currency.
493
+ module ForeignExchangeIndicator
494
+ extend ModernTreasury::Enum
489
495
 
490
- FIXED_TO_VARIABLE = T.let(:fixed_to_variable, T.nilable(Symbol))
491
- VARIABLE_TO_FIXED = T.let(:variable_to_fixed, T.nilable(Symbol))
496
+ TaggedSymbol =
497
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator) }
498
+ OrSymbol =
499
+ T.type_alias do
500
+ T.any(
501
+ Symbol,
502
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::TaggedSymbol
503
+ )
504
+ end
492
505
 
493
- sig { override.returns(T::Array[Symbol]) }
506
+ FIXED_TO_VARIABLE =
507
+ T.let(
508
+ :fixed_to_variable,
509
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::TaggedSymbol
510
+ )
511
+ VARIABLE_TO_FIXED =
512
+ T.let(
513
+ :variable_to_fixed,
514
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::TaggedSymbol
515
+ )
516
+
517
+ sig do
518
+ override
519
+ .returns(
520
+ T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ForeignExchangeIndicator::TaggedSymbol]
521
+ )
522
+ end
494
523
  def self.values
495
524
  end
496
525
  end
497
526
 
498
527
  class LedgerTransaction < ModernTreasury::BaseModel
528
+ # An array of ledger entry objects.
499
529
  sig { returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry]) }
500
- def ledger_entries
501
- end
502
-
503
- sig do
504
- params(_: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry])
505
- .returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry])
506
- end
507
- def ledger_entries=(_)
508
- end
530
+ attr_accessor :ledger_entries
509
531
 
532
+ # An optional description for internal use.
510
533
  sig { returns(T.nilable(String)) }
511
- def description
512
- end
513
-
514
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
515
- def description=(_)
516
- end
534
+ attr_accessor :description
517
535
 
536
+ # The timestamp (ISO8601 format) at which the ledger transaction happened for
537
+ # reporting purposes.
518
538
  sig { returns(T.nilable(Time)) }
519
- def effective_at
520
- end
539
+ attr_reader :effective_at
521
540
 
522
- sig { params(_: Time).returns(Time) }
523
- def effective_at=(_)
524
- end
541
+ sig { params(effective_at: Time).void }
542
+ attr_writer :effective_at
525
543
 
544
+ # The date (YYYY-MM-DD) on which the ledger transaction happened for reporting
545
+ # purposes.
526
546
  sig { returns(T.nilable(Date)) }
527
- def effective_date
528
- end
547
+ attr_reader :effective_date
529
548
 
530
- sig { params(_: Date).returns(Date) }
531
- def effective_date=(_)
532
- end
549
+ sig { params(effective_date: Date).void }
550
+ attr_writer :effective_date
533
551
 
552
+ # A unique string to represent the ledger transaction. Only one pending or posted
553
+ # ledger transaction may have this ID in the ledger.
534
554
  sig { returns(T.nilable(String)) }
535
- def external_id
536
- end
555
+ attr_reader :external_id
537
556
 
538
- sig { params(_: String).returns(String) }
539
- def external_id=(_)
540
- end
557
+ sig { params(external_id: String).void }
558
+ attr_writer :external_id
541
559
 
560
+ # If the ledger transaction can be reconciled to another object in Modern
561
+ # Treasury, the id will be populated here, otherwise null.
542
562
  sig { returns(T.nilable(String)) }
543
- def ledgerable_id
544
- end
563
+ attr_reader :ledgerable_id
545
564
 
546
- sig { params(_: String).returns(String) }
547
- def ledgerable_id=(_)
548
- end
565
+ sig { params(ledgerable_id: String).void }
566
+ attr_writer :ledgerable_id
549
567
 
550
- sig { returns(T.nilable(Symbol)) }
551
- def ledgerable_type
568
+ # If the ledger transaction can be reconciled to another object in Modern
569
+ # Treasury, the type will be populated here, otherwise null. This can be one of
570
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
571
+ # reversal.
572
+ sig do
573
+ returns(
574
+ T.nilable(
575
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol
576
+ )
577
+ )
552
578
  end
579
+ attr_reader :ledgerable_type
553
580
 
554
- sig { params(_: Symbol).returns(Symbol) }
555
- def ledgerable_type=(_)
581
+ sig do
582
+ params(
583
+ ledgerable_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol
584
+ )
585
+ .void
556
586
  end
587
+ attr_writer :ledgerable_type
557
588
 
589
+ # Additional data represented as key-value pairs. Both the key and value must be
590
+ # strings.
558
591
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
559
- def metadata
560
- end
592
+ attr_reader :metadata
561
593
 
562
- sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) }
563
- def metadata=(_)
564
- end
594
+ sig { params(metadata: T::Hash[Symbol, String]).void }
595
+ attr_writer :metadata
565
596
 
566
- sig { returns(T.nilable(Symbol)) }
567
- def status
597
+ # To post a ledger transaction at creation, use `posted`.
598
+ sig do
599
+ returns(
600
+ T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol)
601
+ )
568
602
  end
603
+ attr_reader :status
569
604
 
570
- sig { params(_: Symbol).returns(Symbol) }
571
- def status=(_)
605
+ sig do
606
+ params(status: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol)
607
+ .void
572
608
  end
609
+ attr_writer :status
573
610
 
611
+ # Specifies a ledger transaction object that will be created with the payment
612
+ # order. If the ledger transaction cannot be created, then the payment order
613
+ # creation will fail. The resulting ledger transaction will mirror the status of
614
+ # the payment order.
574
615
  sig do
575
616
  params(
576
- ledger_entries: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry],
617
+ ledger_entries: T::Array[
618
+ T.any(
619
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerEntry,
620
+ ModernTreasury::Util::AnyHash
621
+ )
622
+ ],
577
623
  description: T.nilable(String),
578
624
  effective_at: Time,
579
625
  effective_date: Date,
580
626
  external_id: String,
581
627
  ledgerable_id: String,
582
- ledgerable_type: Symbol,
628
+ ledgerable_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol,
583
629
  metadata: T::Hash[Symbol, String],
584
- status: Symbol
630
+ status: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol
585
631
  )
586
- .void
632
+ .returns(T.attached_class)
587
633
  end
588
- def initialize(
634
+ def self.new(
589
635
  ledger_entries:,
590
636
  description: nil,
591
637
  effective_at: nil,
@@ -608,9 +654,9 @@ module ModernTreasury
608
654
  effective_date: Date,
609
655
  external_id: String,
610
656
  ledgerable_id: String,
611
- ledgerable_type: Symbol,
657
+ ledgerable_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::OrSymbol,
612
658
  metadata: T::Hash[Symbol, String],
613
- status: Symbol
659
+ status: ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::OrSymbol
614
660
  }
615
661
  )
616
662
  end
@@ -618,82 +664,64 @@ module ModernTreasury
618
664
  end
619
665
 
620
666
  class LedgerEntry < ModernTreasury::BaseModel
667
+ # Value in specified currency's smallest unit. e.g. $10 would be represented
668
+ # as 1000. Can be any integer up to 36 digits.
621
669
  sig { returns(Integer) }
622
- def amount
623
- end
670
+ attr_accessor :amount
624
671
 
625
- sig { params(_: Integer).returns(Integer) }
626
- def amount=(_)
627
- end
628
-
629
- sig { returns(Symbol) }
630
- def direction
631
- end
632
-
633
- sig { params(_: Symbol).returns(Symbol) }
634
- def direction=(_)
635
- end
672
+ # One of `credit`, `debit`. Describes the direction money is flowing in the
673
+ # transaction. A `credit` moves money from your account to someone else's. A
674
+ # `debit` pulls money from someone else's account to your own. Note that wire,
675
+ # rtp, and check payments will always be `credit`.
676
+ sig { returns(ModernTreasury::Models::TransactionDirection::OrSymbol) }
677
+ attr_accessor :direction
636
678
 
679
+ # The ledger account that this ledger entry is associated with.
637
680
  sig { returns(String) }
638
- def ledger_account_id
639
- end
640
-
641
- sig { params(_: String).returns(String) }
642
- def ledger_account_id=(_)
643
- end
681
+ attr_accessor :ledger_account_id
644
682
 
683
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
684
+ # account’s available balance. If any of these conditions would be false after the
685
+ # transaction is created, the entire call will fail with error code 422.
645
686
  sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
646
- def available_balance_amount
647
- end
648
-
649
- sig { params(_: T.nilable(T::Hash[Symbol, Integer])).returns(T.nilable(T::Hash[Symbol, Integer])) }
650
- def available_balance_amount=(_)
651
- end
687
+ attr_accessor :available_balance_amount
652
688
 
689
+ # Lock version of the ledger account. This can be passed when creating a ledger
690
+ # transaction to only succeed if no ledger transactions have posted since the
691
+ # given version. See our post about Designing the Ledgers API with Optimistic
692
+ # Locking for more details.
653
693
  sig { returns(T.nilable(Integer)) }
654
- def lock_version
655
- end
656
-
657
- sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) }
658
- def lock_version=(_)
659
- end
694
+ attr_accessor :lock_version
660
695
 
696
+ # Additional data represented as key-value pairs. Both the key and value must be
697
+ # strings.
661
698
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
662
- def metadata
663
- end
699
+ attr_reader :metadata
664
700
 
665
- sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) }
666
- def metadata=(_)
667
- end
701
+ sig { params(metadata: T::Hash[Symbol, String]).void }
702
+ attr_writer :metadata
668
703
 
704
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
705
+ # account’s pending balance. If any of these conditions would be false after the
706
+ # transaction is created, the entire call will fail with error code 422.
669
707
  sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
670
- def pending_balance_amount
671
- end
672
-
673
- sig { params(_: T.nilable(T::Hash[Symbol, Integer])).returns(T.nilable(T::Hash[Symbol, Integer])) }
674
- def pending_balance_amount=(_)
675
- end
708
+ attr_accessor :pending_balance_amount
676
709
 
710
+ # Use `gt` (>), `gte` (>=), `lt` (<), `lte` (<=), or `eq` (=) to lock on the
711
+ # account’s posted balance. If any of these conditions would be false after the
712
+ # transaction is created, the entire call will fail with error code 422.
677
713
  sig { returns(T.nilable(T::Hash[Symbol, Integer])) }
678
- def posted_balance_amount
679
- end
680
-
681
- sig { params(_: T.nilable(T::Hash[Symbol, Integer])).returns(T.nilable(T::Hash[Symbol, Integer])) }
682
- def posted_balance_amount=(_)
683
- end
714
+ attr_accessor :posted_balance_amount
684
715
 
716
+ # If true, response will include the balance of the associated ledger account for
717
+ # the entry.
685
718
  sig { returns(T.nilable(T::Boolean)) }
686
- def show_resulting_ledger_account_balances
687
- end
688
-
689
- sig { params(_: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
690
- def show_resulting_ledger_account_balances=(_)
691
- end
719
+ attr_accessor :show_resulting_ledger_account_balances
692
720
 
693
721
  sig do
694
722
  params(
695
723
  amount: Integer,
696
- direction: Symbol,
724
+ direction: ModernTreasury::Models::TransactionDirection::OrSymbol,
697
725
  ledger_account_id: String,
698
726
  available_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
699
727
  lock_version: T.nilable(Integer),
@@ -702,9 +730,9 @@ module ModernTreasury
702
730
  posted_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
703
731
  show_resulting_ledger_account_balances: T.nilable(T::Boolean)
704
732
  )
705
- .void
733
+ .returns(T.attached_class)
706
734
  end
707
- def initialize(
735
+ def self.new(
708
736
  amount:,
709
737
  direction:,
710
738
  ledger_account_id:,
@@ -722,7 +750,7 @@ module ModernTreasury
722
750
  .returns(
723
751
  {
724
752
  amount: Integer,
725
- direction: Symbol,
753
+ direction: ModernTreasury::Models::TransactionDirection::OrSymbol,
726
754
  ledger_account_id: String,
727
755
  available_balance_amount: T.nilable(T::Hash[Symbol, Integer]),
728
756
  lock_version: T.nilable(Integer),
@@ -737,66 +765,127 @@ module ModernTreasury
737
765
  end
738
766
  end
739
767
 
740
- class LedgerableType < ModernTreasury::Enum
741
- abstract!
768
+ # If the ledger transaction can be reconciled to another object in Modern
769
+ # Treasury, the type will be populated here, otherwise null. This can be one of
770
+ # payment_order, incoming_payment_detail, expected_payment, return, paper_item, or
771
+ # reversal.
772
+ module LedgerableType
773
+ extend ModernTreasury::Enum
742
774
 
743
- EXPECTED_PAYMENT = :expected_payment
744
- INCOMING_PAYMENT_DETAIL = :incoming_payment_detail
745
- PAPER_ITEM = :paper_item
746
- PAYMENT_ORDER = :payment_order
747
- RETURN = :return
748
- REVERSAL = :reversal
775
+ TaggedSymbol =
776
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType) }
777
+ OrSymbol =
778
+ T.type_alias do
779
+ T.any(
780
+ Symbol,
781
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
782
+ )
783
+ end
749
784
 
750
- sig { override.returns(T::Array[Symbol]) }
785
+ EXPECTED_PAYMENT =
786
+ T.let(
787
+ :expected_payment,
788
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
789
+ )
790
+ INCOMING_PAYMENT_DETAIL =
791
+ T.let(
792
+ :incoming_payment_detail,
793
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
794
+ )
795
+ PAPER_ITEM =
796
+ T.let(
797
+ :paper_item,
798
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
799
+ )
800
+ PAYMENT_ORDER =
801
+ T.let(
802
+ :payment_order,
803
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
804
+ )
805
+ RETURN =
806
+ T.let(
807
+ :return,
808
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
809
+ )
810
+ REVERSAL =
811
+ T.let(
812
+ :reversal,
813
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol
814
+ )
815
+
816
+ sig do
817
+ override
818
+ .returns(
819
+ T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::LedgerableType::TaggedSymbol]
820
+ )
821
+ end
751
822
  def self.values
752
823
  end
753
824
  end
754
825
 
755
- class Status < ModernTreasury::Enum
756
- abstract!
826
+ # To post a ledger transaction at creation, use `posted`.
827
+ module Status
828
+ extend ModernTreasury::Enum
829
+
830
+ TaggedSymbol =
831
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status) }
832
+ OrSymbol =
833
+ T.type_alias do
834
+ T.any(
835
+ Symbol,
836
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
837
+ )
838
+ end
757
839
 
758
- ARCHIVED = :archived
759
- PENDING = :pending
760
- POSTED = :posted
840
+ ARCHIVED =
841
+ T.let(
842
+ :archived,
843
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
844
+ )
845
+ PENDING =
846
+ T.let(
847
+ :pending,
848
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
849
+ )
850
+ POSTED =
851
+ T.let(
852
+ :posted,
853
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol
854
+ )
761
855
 
762
- sig { override.returns(T::Array[Symbol]) }
856
+ sig do
857
+ override
858
+ .returns(
859
+ T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::LedgerTransaction::Status::TaggedSymbol]
860
+ )
861
+ end
763
862
  def self.values
764
863
  end
765
864
  end
766
865
  end
767
866
 
768
867
  class LineItem < ModernTreasury::BaseModel
868
+ # Value in specified currency's smallest unit. e.g. $10 would be represented
869
+ # as 1000.
769
870
  sig { returns(Integer) }
770
- def amount
771
- end
772
-
773
- sig { params(_: Integer).returns(Integer) }
774
- def amount=(_)
775
- end
871
+ attr_accessor :amount
776
872
 
873
+ # The ID of one of your accounting categories. Note that these will only be
874
+ # accessible if your accounting system has been connected.
777
875
  sig { returns(T.nilable(String)) }
778
- def accounting_category_id
779
- end
780
-
781
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
782
- def accounting_category_id=(_)
783
- end
876
+ attr_accessor :accounting_category_id
784
877
 
878
+ # A free-form description of the line item.
785
879
  sig { returns(T.nilable(String)) }
786
- def description
787
- end
788
-
789
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
790
- def description=(_)
791
- end
880
+ attr_accessor :description
792
881
 
882
+ # Additional data represented as key-value pairs. Both the key and value must be
883
+ # strings.
793
884
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
794
- def metadata
795
- end
885
+ attr_reader :metadata
796
886
 
797
- sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) }
798
- def metadata=(_)
799
- end
887
+ sig { params(metadata: T::Hash[Symbol, String]).void }
888
+ attr_writer :metadata
800
889
 
801
890
  sig do
802
891
  params(
@@ -805,9 +894,9 @@ module ModernTreasury
805
894
  description: T.nilable(String),
806
895
  metadata: T::Hash[Symbol, String]
807
896
  )
808
- .void
897
+ .returns(T.attached_class)
809
898
  end
810
- def initialize(amount:, accounting_category_id: nil, description: nil, metadata: nil)
899
+ def self.new(amount:, accounting_category_id: nil, description: nil, metadata: nil)
811
900
  end
812
901
 
813
902
  sig do
@@ -825,13 +914,21 @@ module ModernTreasury
825
914
  end
826
915
  end
827
916
 
828
- class Priority < ModernTreasury::Enum
829
- abstract!
917
+ # Either `normal` or `high`. For ACH and EFT payments, `high` represents a
918
+ # same-day ACH or EFT transfer, respectively. For check payments, `high` can mean
919
+ # an overnight check rather than standard mail.
920
+ module Priority
921
+ extend ModernTreasury::Enum
922
+
923
+ TaggedSymbol =
924
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority) }
925
+ OrSymbol =
926
+ T.type_alias { T.any(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::TaggedSymbol) }
830
927
 
831
- HIGH = :high
832
- NORMAL = :normal
928
+ HIGH = T.let(:high, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::TaggedSymbol)
929
+ NORMAL = T.let(:normal, ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::TaggedSymbol)
833
930
 
834
- sig { override.returns(T::Array[Symbol]) }
931
+ sig { override.returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::Priority::TaggedSymbol]) }
835
932
  def self.values
836
933
  end
837
934
  end
@@ -844,25 +941,27 @@ module ModernTreasury
844
941
  )
845
942
  )
846
943
  end
847
- def account_details
848
- end
944
+ attr_reader :account_details
849
945
 
850
946
  sig do
851
947
  params(
852
- _: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail]
948
+ account_details: T::Array[
949
+ T.any(
950
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail,
951
+ ModernTreasury::Util::AnyHash
952
+ )
953
+ ]
853
954
  )
854
- .returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail])
855
- end
856
- def account_details=(_)
955
+ .void
857
956
  end
957
+ attr_writer :account_details
858
958
 
859
- sig { returns(T.nilable(Symbol)) }
860
- def account_type
861
- end
959
+ # Can be `checking`, `savings` or `other`.
960
+ sig { returns(T.nilable(ModernTreasury::Models::ExternalAccountType::OrSymbol)) }
961
+ attr_reader :account_type
862
962
 
863
- sig { params(_: Symbol).returns(Symbol) }
864
- def account_type=(_)
865
- end
963
+ sig { params(account_type: ModernTreasury::Models::ExternalAccountType::OrSymbol).void }
964
+ attr_writer :account_type
866
965
 
867
966
  sig do
868
967
  returns(
@@ -871,87 +970,96 @@ module ModernTreasury
871
970
  )
872
971
  )
873
972
  end
874
- def contact_details
875
- end
973
+ attr_reader :contact_details
876
974
 
877
975
  sig do
878
976
  params(
879
- _: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail]
977
+ contact_details: T::Array[
978
+ T.any(
979
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail,
980
+ ModernTreasury::Util::AnyHash
981
+ )
982
+ ]
880
983
  )
881
- .returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail])
882
- end
883
- def contact_details=(_)
984
+ .void
884
985
  end
986
+ attr_writer :contact_details
885
987
 
988
+ # Specifies a ledger account object that will be created with the external
989
+ # account. The resulting ledger account is linked to the external account for
990
+ # auto-ledgering Payment objects. See
991
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
992
+ # for more details.
886
993
  sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount)) }
887
- def ledger_account
888
- end
994
+ attr_reader :ledger_account
889
995
 
890
996
  sig do
891
- params(_: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount)
892
- .returns(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount)
893
- end
894
- def ledger_account=(_)
997
+ params(
998
+ ledger_account: T.any(
999
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount,
1000
+ ModernTreasury::Util::AnyHash
1001
+ )
1002
+ )
1003
+ .void
895
1004
  end
1005
+ attr_writer :ledger_account
896
1006
 
1007
+ # Additional data represented as key-value pairs. Both the key and value must be
1008
+ # strings.
897
1009
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
898
- def metadata
899
- end
1010
+ attr_reader :metadata
900
1011
 
901
- sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) }
902
- def metadata=(_)
903
- end
1012
+ sig { params(metadata: T::Hash[Symbol, String]).void }
1013
+ attr_writer :metadata
904
1014
 
1015
+ # A nickname for the external account. This is only for internal usage and won't
1016
+ # affect any payments
905
1017
  sig { returns(T.nilable(String)) }
906
- def name
907
- end
908
-
909
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
910
- def name=(_)
911
- end
1018
+ attr_accessor :name
912
1019
 
1020
+ # Required if receiving wire payments.
913
1021
  sig { returns(T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress)) }
914
- def party_address
915
- end
1022
+ attr_reader :party_address
916
1023
 
917
1024
  sig do
918
- params(_: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress)
919
- .returns(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress)
920
- end
921
- def party_address=(_)
1025
+ params(
1026
+ party_address: T.any(
1027
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress,
1028
+ ModernTreasury::Util::AnyHash
1029
+ )
1030
+ )
1031
+ .void
922
1032
  end
1033
+ attr_writer :party_address
923
1034
 
924
1035
  sig { returns(T.nilable(String)) }
925
- def party_identifier
926
- end
1036
+ attr_reader :party_identifier
927
1037
 
928
- sig { params(_: String).returns(String) }
929
- def party_identifier=(_)
930
- end
1038
+ sig { params(party_identifier: String).void }
1039
+ attr_writer :party_identifier
931
1040
 
1041
+ # If this value isn't provided, it will be inherited from the counterparty's name.
932
1042
  sig { returns(T.nilable(String)) }
933
- def party_name
934
- end
1043
+ attr_reader :party_name
935
1044
 
936
- sig { params(_: String).returns(String) }
937
- def party_name=(_)
938
- end
1045
+ sig { params(party_name: String).void }
1046
+ attr_writer :party_name
939
1047
 
940
- sig { returns(T.nilable(Symbol)) }
941
- def party_type
942
- end
943
-
944
- sig { params(_: T.nilable(Symbol)).returns(T.nilable(Symbol)) }
945
- def party_type=(_)
1048
+ # Either `individual` or `business`.
1049
+ sig do
1050
+ returns(
1051
+ T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::OrSymbol)
1052
+ )
946
1053
  end
1054
+ attr_accessor :party_type
947
1055
 
1056
+ # If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
1057
+ # you can pass the processor token in this field.
948
1058
  sig { returns(T.nilable(String)) }
949
- def plaid_processor_token
950
- end
1059
+ attr_reader :plaid_processor_token
951
1060
 
952
- sig { params(_: String).returns(String) }
953
- def plaid_processor_token=(_)
954
- end
1061
+ sig { params(plaid_processor_token: String).void }
1062
+ attr_writer :plaid_processor_token
955
1063
 
956
1064
  sig do
957
1065
  returns(
@@ -960,36 +1068,63 @@ module ModernTreasury
960
1068
  )
961
1069
  )
962
1070
  end
963
- def routing_details
964
- end
1071
+ attr_reader :routing_details
965
1072
 
966
1073
  sig do
967
1074
  params(
968
- _: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail]
1075
+ routing_details: T::Array[
1076
+ T.any(
1077
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail,
1078
+ ModernTreasury::Util::AnyHash
1079
+ )
1080
+ ]
969
1081
  )
970
- .returns(T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail])
971
- end
972
- def routing_details=(_)
1082
+ .void
973
1083
  end
1084
+ attr_writer :routing_details
974
1085
 
1086
+ # Either `receiving_account` or `receiving_account_id` must be present. When using
1087
+ # `receiving_account_id`, you may pass the id of an external account or an
1088
+ # internal account.
975
1089
  sig do
976
1090
  params(
977
- account_details: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail],
978
- account_type: Symbol,
979
- contact_details: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail],
980
- ledger_account: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount,
1091
+ account_details: T::Array[
1092
+ T.any(
1093
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail,
1094
+ ModernTreasury::Util::AnyHash
1095
+ )
1096
+ ],
1097
+ account_type: ModernTreasury::Models::ExternalAccountType::OrSymbol,
1098
+ contact_details: T::Array[
1099
+ T.any(
1100
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail,
1101
+ ModernTreasury::Util::AnyHash
1102
+ )
1103
+ ],
1104
+ ledger_account: T.any(
1105
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount,
1106
+ ModernTreasury::Util::AnyHash
1107
+ ),
981
1108
  metadata: T::Hash[Symbol, String],
982
1109
  name: T.nilable(String),
983
- party_address: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress,
1110
+ party_address: T.any(
1111
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress,
1112
+ ModernTreasury::Util::AnyHash
1113
+ ),
984
1114
  party_identifier: String,
985
1115
  party_name: String,
986
- party_type: T.nilable(Symbol),
1116
+ party_type: T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::OrSymbol),
987
1117
  plaid_processor_token: String,
988
- routing_details: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail]
1118
+ routing_details: T::Array[
1119
+ T.any(
1120
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail,
1121
+ ModernTreasury::Util::AnyHash
1122
+ )
1123
+ ]
989
1124
  )
990
- .void
1125
+ .returns(T.attached_class)
991
1126
  end
992
- def initialize(
1127
+ def self.new(
993
1128
  account_details: nil,
994
1129
  account_type: nil,
995
1130
  contact_details: nil,
@@ -1010,7 +1145,7 @@ module ModernTreasury
1010
1145
  .returns(
1011
1146
  {
1012
1147
  account_details: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail],
1013
- account_type: Symbol,
1148
+ account_type: ModernTreasury::Models::ExternalAccountType::OrSymbol,
1014
1149
  contact_details: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail],
1015
1150
  ledger_account: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount,
1016
1151
  metadata: T::Hash[Symbol, String],
@@ -1018,7 +1153,7 @@ module ModernTreasury
1018
1153
  party_address: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyAddress,
1019
1154
  party_identifier: String,
1020
1155
  party_name: String,
1021
- party_type: T.nilable(Symbol),
1156
+ party_type: T.nilable(ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::OrSymbol),
1022
1157
  plaid_processor_token: String,
1023
1158
  routing_details: T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail]
1024
1159
  }
@@ -1029,44 +1164,121 @@ module ModernTreasury
1029
1164
 
1030
1165
  class AccountDetail < ModernTreasury::BaseModel
1031
1166
  sig { returns(String) }
1032
- def account_number
1033
- end
1167
+ attr_accessor :account_number
1034
1168
 
1035
- sig { params(_: String).returns(String) }
1036
- def account_number=(_)
1169
+ sig do
1170
+ returns(
1171
+ T.nilable(
1172
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
1173
+ )
1174
+ )
1037
1175
  end
1176
+ attr_reader :account_number_type
1038
1177
 
1039
- sig { returns(T.nilable(Symbol)) }
1040
- def account_number_type
1178
+ sig do
1179
+ params(
1180
+ account_number_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
1181
+ )
1182
+ .void
1041
1183
  end
1184
+ attr_writer :account_number_type
1042
1185
 
1043
- sig { params(_: Symbol).returns(Symbol) }
1044
- def account_number_type=(_)
1186
+ sig do
1187
+ params(
1188
+ account_number: String,
1189
+ account_number_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
1190
+ )
1191
+ .returns(T.attached_class)
1045
1192
  end
1046
-
1047
- sig { params(account_number: String, account_number_type: Symbol).void }
1048
- def initialize(account_number:, account_number_type: nil)
1193
+ def self.new(account_number:, account_number_type: nil)
1049
1194
  end
1050
1195
 
1051
- sig { override.returns({account_number: String, account_number_type: Symbol}) }
1196
+ sig do
1197
+ override
1198
+ .returns(
1199
+ {
1200
+ account_number: String,
1201
+ account_number_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::OrSymbol
1202
+ }
1203
+ )
1204
+ end
1052
1205
  def to_hash
1053
1206
  end
1054
1207
 
1055
- class AccountNumberType < ModernTreasury::Enum
1056
- abstract!
1057
-
1058
- AU_NUMBER = :au_number
1059
- CLABE = :clabe
1060
- HK_NUMBER = :hk_number
1061
- IBAN = :iban
1062
- ID_NUMBER = :id_number
1063
- NZ_NUMBER = :nz_number
1064
- OTHER = :other
1065
- PAN = :pan
1066
- SG_NUMBER = :sg_number
1067
- WALLET_ADDRESS = :wallet_address
1068
-
1069
- sig { override.returns(T::Array[Symbol]) }
1208
+ module AccountNumberType
1209
+ extend ModernTreasury::Enum
1210
+
1211
+ TaggedSymbol =
1212
+ T.type_alias do
1213
+ T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType)
1214
+ end
1215
+ OrSymbol =
1216
+ T.type_alias do
1217
+ T.any(
1218
+ Symbol,
1219
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1220
+ )
1221
+ end
1222
+
1223
+ AU_NUMBER =
1224
+ T.let(
1225
+ :au_number,
1226
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1227
+ )
1228
+ CLABE =
1229
+ T.let(
1230
+ :clabe,
1231
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1232
+ )
1233
+ HK_NUMBER =
1234
+ T.let(
1235
+ :hk_number,
1236
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1237
+ )
1238
+ IBAN =
1239
+ T.let(
1240
+ :iban,
1241
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1242
+ )
1243
+ ID_NUMBER =
1244
+ T.let(
1245
+ :id_number,
1246
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1247
+ )
1248
+ NZ_NUMBER =
1249
+ T.let(
1250
+ :nz_number,
1251
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1252
+ )
1253
+ OTHER =
1254
+ T.let(
1255
+ :other,
1256
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1257
+ )
1258
+ PAN =
1259
+ T.let(
1260
+ :pan,
1261
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1262
+ )
1263
+ SG_NUMBER =
1264
+ T.let(
1265
+ :sg_number,
1266
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1267
+ )
1268
+ WALLET_ADDRESS =
1269
+ T.let(
1270
+ :wallet_address,
1271
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1272
+ )
1273
+
1274
+ sig do
1275
+ override
1276
+ .returns(
1277
+ T::Array[
1278
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::AccountDetail::AccountNumberType::TaggedSymbol
1279
+ ]
1280
+ )
1281
+ end
1070
1282
  def self.values
1071
1283
  end
1072
1284
  end
@@ -1074,139 +1286,184 @@ module ModernTreasury
1074
1286
 
1075
1287
  class ContactDetail < ModernTreasury::BaseModel
1076
1288
  sig { returns(T.nilable(String)) }
1077
- def contact_identifier
1078
- end
1289
+ attr_reader :contact_identifier
1079
1290
 
1080
- sig { params(_: String).returns(String) }
1081
- def contact_identifier=(_)
1082
- end
1291
+ sig { params(contact_identifier: String).void }
1292
+ attr_writer :contact_identifier
1083
1293
 
1084
- sig { returns(T.nilable(Symbol)) }
1085
- def contact_identifier_type
1294
+ sig do
1295
+ returns(
1296
+ T.nilable(
1297
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
1298
+ )
1299
+ )
1086
1300
  end
1301
+ attr_reader :contact_identifier_type
1087
1302
 
1088
- sig { params(_: Symbol).returns(Symbol) }
1089
- def contact_identifier_type=(_)
1303
+ sig do
1304
+ params(
1305
+ contact_identifier_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
1306
+ )
1307
+ .void
1090
1308
  end
1309
+ attr_writer :contact_identifier_type
1091
1310
 
1092
- sig { params(contact_identifier: String, contact_identifier_type: Symbol).void }
1093
- def initialize(contact_identifier: nil, contact_identifier_type: nil)
1311
+ sig do
1312
+ params(
1313
+ contact_identifier: String,
1314
+ contact_identifier_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
1315
+ )
1316
+ .returns(T.attached_class)
1317
+ end
1318
+ def self.new(contact_identifier: nil, contact_identifier_type: nil)
1094
1319
  end
1095
1320
 
1096
- sig { override.returns({contact_identifier: String, contact_identifier_type: Symbol}) }
1321
+ sig do
1322
+ override
1323
+ .returns(
1324
+ {
1325
+ contact_identifier: String,
1326
+ contact_identifier_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::OrSymbol
1327
+ }
1328
+ )
1329
+ end
1097
1330
  def to_hash
1098
1331
  end
1099
1332
 
1100
- class ContactIdentifierType < ModernTreasury::Enum
1101
- abstract!
1102
-
1103
- EMAIL = :email
1104
- PHONE_NUMBER = :phone_number
1105
- WEBSITE = :website
1333
+ module ContactIdentifierType
1334
+ extend ModernTreasury::Enum
1335
+
1336
+ TaggedSymbol =
1337
+ T.type_alias do
1338
+ T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType)
1339
+ end
1340
+ OrSymbol =
1341
+ T.type_alias do
1342
+ T.any(
1343
+ Symbol,
1344
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
1345
+ )
1346
+ end
1347
+
1348
+ EMAIL =
1349
+ T.let(
1350
+ :email,
1351
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
1352
+ )
1353
+ PHONE_NUMBER =
1354
+ T.let(
1355
+ :phone_number,
1356
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
1357
+ )
1358
+ WEBSITE =
1359
+ T.let(
1360
+ :website,
1361
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
1362
+ )
1106
1363
 
1107
- sig { override.returns(T::Array[Symbol]) }
1364
+ sig do
1365
+ override
1366
+ .returns(
1367
+ T::Array[
1368
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::ContactDetail::ContactIdentifierType::TaggedSymbol
1369
+ ]
1370
+ )
1371
+ end
1108
1372
  def self.values
1109
1373
  end
1110
1374
  end
1111
1375
  end
1112
1376
 
1113
1377
  class LedgerAccount < ModernTreasury::BaseModel
1378
+ # The currency of the ledger account.
1114
1379
  sig { returns(String) }
1115
- def currency
1116
- end
1117
-
1118
- sig { params(_: String).returns(String) }
1119
- def currency=(_)
1120
- end
1380
+ attr_accessor :currency
1121
1381
 
1382
+ # The id of the ledger that this account belongs to.
1122
1383
  sig { returns(String) }
1123
- def ledger_id
1124
- end
1125
-
1126
- sig { params(_: String).returns(String) }
1127
- def ledger_id=(_)
1128
- end
1384
+ attr_accessor :ledger_id
1129
1385
 
1386
+ # The name of the ledger account.
1130
1387
  sig { returns(String) }
1131
- def name
1132
- end
1133
-
1134
- sig { params(_: String).returns(String) }
1135
- def name=(_)
1136
- end
1137
-
1138
- sig { returns(Symbol) }
1139
- def normal_balance
1140
- end
1388
+ attr_accessor :name
1141
1389
 
1142
- sig { params(_: Symbol).returns(Symbol) }
1143
- def normal_balance=(_)
1144
- end
1390
+ # The normal balance of the ledger account.
1391
+ sig { returns(ModernTreasury::Models::TransactionDirection::OrSymbol) }
1392
+ attr_accessor :normal_balance
1145
1393
 
1394
+ # The currency exponent of the ledger account.
1146
1395
  sig { returns(T.nilable(Integer)) }
1147
- def currency_exponent
1148
- end
1149
-
1150
- sig { params(_: T.nilable(Integer)).returns(T.nilable(Integer)) }
1151
- def currency_exponent=(_)
1152
- end
1396
+ attr_accessor :currency_exponent
1153
1397
 
1398
+ # The description of the ledger account.
1154
1399
  sig { returns(T.nilable(String)) }
1155
- def description
1156
- end
1157
-
1158
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
1159
- def description=(_)
1160
- end
1400
+ attr_accessor :description
1161
1401
 
1402
+ # The array of ledger account category ids that this ledger account should be a
1403
+ # child of.
1162
1404
  sig { returns(T.nilable(T::Array[String])) }
1163
- def ledger_account_category_ids
1164
- end
1405
+ attr_reader :ledger_account_category_ids
1165
1406
 
1166
- sig { params(_: T::Array[String]).returns(T::Array[String]) }
1167
- def ledger_account_category_ids=(_)
1168
- end
1407
+ sig { params(ledger_account_category_ids: T::Array[String]).void }
1408
+ attr_writer :ledger_account_category_ids
1169
1409
 
1410
+ # If the ledger account links to another object in Modern Treasury, the id will be
1411
+ # populated here, otherwise null.
1170
1412
  sig { returns(T.nilable(String)) }
1171
- def ledgerable_id
1172
- end
1413
+ attr_reader :ledgerable_id
1173
1414
 
1174
- sig { params(_: String).returns(String) }
1175
- def ledgerable_id=(_)
1176
- end
1415
+ sig { params(ledgerable_id: String).void }
1416
+ attr_writer :ledgerable_id
1177
1417
 
1178
- sig { returns(T.nilable(Symbol)) }
1179
- def ledgerable_type
1418
+ # If the ledger account links to another object in Modern Treasury, the type will
1419
+ # be populated here, otherwise null. The value is one of internal_account or
1420
+ # external_account.
1421
+ sig do
1422
+ returns(
1423
+ T.nilable(
1424
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol
1425
+ )
1426
+ )
1180
1427
  end
1428
+ attr_reader :ledgerable_type
1181
1429
 
1182
- sig { params(_: Symbol).returns(Symbol) }
1183
- def ledgerable_type=(_)
1430
+ sig do
1431
+ params(
1432
+ ledgerable_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol
1433
+ )
1434
+ .void
1184
1435
  end
1436
+ attr_writer :ledgerable_type
1185
1437
 
1438
+ # Additional data represented as key-value pairs. Both the key and value must be
1439
+ # strings.
1186
1440
  sig { returns(T.nilable(T::Hash[Symbol, String])) }
1187
- def metadata
1188
- end
1441
+ attr_reader :metadata
1189
1442
 
1190
- sig { params(_: T::Hash[Symbol, String]).returns(T::Hash[Symbol, String]) }
1191
- def metadata=(_)
1192
- end
1443
+ sig { params(metadata: T::Hash[Symbol, String]).void }
1444
+ attr_writer :metadata
1193
1445
 
1446
+ # Specifies a ledger account object that will be created with the external
1447
+ # account. The resulting ledger account is linked to the external account for
1448
+ # auto-ledgering Payment objects. See
1449
+ # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
1450
+ # for more details.
1194
1451
  sig do
1195
1452
  params(
1196
1453
  currency: String,
1197
1454
  ledger_id: String,
1198
1455
  name: String,
1199
- normal_balance: Symbol,
1456
+ normal_balance: ModernTreasury::Models::TransactionDirection::OrSymbol,
1200
1457
  currency_exponent: T.nilable(Integer),
1201
1458
  description: T.nilable(String),
1202
1459
  ledger_account_category_ids: T::Array[String],
1203
1460
  ledgerable_id: String,
1204
- ledgerable_type: Symbol,
1461
+ ledgerable_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol,
1205
1462
  metadata: T::Hash[Symbol, String]
1206
1463
  )
1207
- .void
1464
+ .returns(T.attached_class)
1208
1465
  end
1209
- def initialize(
1466
+ def self.new(
1210
1467
  currency:,
1211
1468
  ledger_id:,
1212
1469
  name:,
@@ -1227,12 +1484,12 @@ module ModernTreasury
1227
1484
  currency: String,
1228
1485
  ledger_id: String,
1229
1486
  name: String,
1230
- normal_balance: Symbol,
1487
+ normal_balance: ModernTreasury::Models::TransactionDirection::OrSymbol,
1231
1488
  currency_exponent: T.nilable(Integer),
1232
1489
  description: T.nilable(String),
1233
1490
  ledger_account_category_ids: T::Array[String],
1234
1491
  ledgerable_id: String,
1235
- ledgerable_type: Symbol,
1492
+ ledgerable_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::OrSymbol,
1236
1493
  metadata: T::Hash[Symbol, String]
1237
1494
  }
1238
1495
  )
@@ -1240,69 +1497,82 @@ module ModernTreasury
1240
1497
  def to_hash
1241
1498
  end
1242
1499
 
1243
- class LedgerableType < ModernTreasury::Enum
1244
- abstract!
1245
-
1246
- COUNTERPARTY = :counterparty
1247
- EXTERNAL_ACCOUNT = :external_account
1248
- INTERNAL_ACCOUNT = :internal_account
1249
- VIRTUAL_ACCOUNT = :virtual_account
1500
+ # If the ledger account links to another object in Modern Treasury, the type will
1501
+ # be populated here, otherwise null. The value is one of internal_account or
1502
+ # external_account.
1503
+ module LedgerableType
1504
+ extend ModernTreasury::Enum
1505
+
1506
+ TaggedSymbol =
1507
+ T.type_alias do
1508
+ T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType)
1509
+ end
1510
+ OrSymbol =
1511
+ T.type_alias do
1512
+ T.any(
1513
+ Symbol,
1514
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
1515
+ )
1516
+ end
1517
+
1518
+ COUNTERPARTY =
1519
+ T.let(
1520
+ :counterparty,
1521
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
1522
+ )
1523
+ EXTERNAL_ACCOUNT =
1524
+ T.let(
1525
+ :external_account,
1526
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
1527
+ )
1528
+ INTERNAL_ACCOUNT =
1529
+ T.let(
1530
+ :internal_account,
1531
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
1532
+ )
1533
+ VIRTUAL_ACCOUNT =
1534
+ T.let(
1535
+ :virtual_account,
1536
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
1537
+ )
1250
1538
 
1251
- sig { override.returns(T::Array[Symbol]) }
1539
+ sig do
1540
+ override
1541
+ .returns(
1542
+ T::Array[
1543
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::LedgerAccount::LedgerableType::TaggedSymbol
1544
+ ]
1545
+ )
1546
+ end
1252
1547
  def self.values
1253
1548
  end
1254
1549
  end
1255
1550
  end
1256
1551
 
1257
1552
  class PartyAddress < ModernTreasury::BaseModel
1553
+ # Country code conforms to [ISO 3166-1 alpha-2]
1258
1554
  sig { returns(T.nilable(String)) }
1259
- def country
1260
- end
1261
-
1262
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
1263
- def country=(_)
1264
- end
1555
+ attr_accessor :country
1265
1556
 
1266
1557
  sig { returns(T.nilable(String)) }
1267
- def line1
1268
- end
1269
-
1270
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
1271
- def line1=(_)
1272
- end
1558
+ attr_accessor :line1
1273
1559
 
1274
1560
  sig { returns(T.nilable(String)) }
1275
- def line2
1276
- end
1277
-
1278
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
1279
- def line2=(_)
1280
- end
1561
+ attr_accessor :line2
1281
1562
 
1563
+ # Locality or City.
1282
1564
  sig { returns(T.nilable(String)) }
1283
- def locality
1284
- end
1285
-
1286
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
1287
- def locality=(_)
1288
- end
1565
+ attr_accessor :locality
1289
1566
 
1567
+ # The postal code of the address.
1290
1568
  sig { returns(T.nilable(String)) }
1291
- def postal_code
1292
- end
1293
-
1294
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
1295
- def postal_code=(_)
1296
- end
1569
+ attr_accessor :postal_code
1297
1570
 
1571
+ # Region or State.
1298
1572
  sig { returns(T.nilable(String)) }
1299
- def region
1300
- end
1301
-
1302
- sig { params(_: T.nilable(String)).returns(T.nilable(String)) }
1303
- def region=(_)
1304
- end
1573
+ attr_accessor :region
1305
1574
 
1575
+ # Required if receiving wire payments.
1306
1576
  sig do
1307
1577
  params(
1308
1578
  country: T.nilable(String),
@@ -1312,9 +1582,9 @@ module ModernTreasury
1312
1582
  postal_code: T.nilable(String),
1313
1583
  region: T.nilable(String)
1314
1584
  )
1315
- .void
1585
+ .returns(T.attached_class)
1316
1586
  end
1317
- def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
1587
+ def self.new(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
1318
1588
  end
1319
1589
 
1320
1590
  sig do
@@ -1334,117 +1604,400 @@ module ModernTreasury
1334
1604
  end
1335
1605
  end
1336
1606
 
1337
- class PartyType < ModernTreasury::Enum
1338
- abstract!
1607
+ # Either `individual` or `business`.
1608
+ module PartyType
1609
+ extend ModernTreasury::Enum
1339
1610
 
1340
- BUSINESS = T.let(:business, T.nilable(Symbol))
1341
- INDIVIDUAL = T.let(:individual, T.nilable(Symbol))
1611
+ TaggedSymbol =
1612
+ T.type_alias { T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType) }
1613
+ OrSymbol =
1614
+ T.type_alias do
1615
+ T.any(
1616
+ Symbol,
1617
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::TaggedSymbol
1618
+ )
1619
+ end
1342
1620
 
1343
- sig { override.returns(T::Array[Symbol]) }
1621
+ BUSINESS =
1622
+ T.let(
1623
+ :business,
1624
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::TaggedSymbol
1625
+ )
1626
+ INDIVIDUAL =
1627
+ T.let(
1628
+ :individual,
1629
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::TaggedSymbol
1630
+ )
1631
+
1632
+ sig do
1633
+ override
1634
+ .returns(
1635
+ T::Array[ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::PartyType::TaggedSymbol]
1636
+ )
1637
+ end
1344
1638
  def self.values
1345
1639
  end
1346
1640
  end
1347
1641
 
1348
1642
  class RoutingDetail < ModernTreasury::BaseModel
1349
1643
  sig { returns(String) }
1350
- def routing_number
1351
- end
1644
+ attr_accessor :routing_number
1352
1645
 
1353
- sig { params(_: String).returns(String) }
1354
- def routing_number=(_)
1355
- end
1356
-
1357
- sig { returns(Symbol) }
1358
- def routing_number_type
1646
+ sig do
1647
+ returns(
1648
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::OrSymbol
1649
+ )
1359
1650
  end
1651
+ attr_accessor :routing_number_type
1360
1652
 
1361
- sig { params(_: Symbol).returns(Symbol) }
1362
- def routing_number_type=(_)
1653
+ sig do
1654
+ returns(
1655
+ T.nilable(
1656
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
1657
+ )
1658
+ )
1363
1659
  end
1660
+ attr_reader :payment_type
1364
1661
 
1365
- sig { returns(T.nilable(Symbol)) }
1366
- def payment_type
1662
+ sig do
1663
+ params(
1664
+ payment_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
1665
+ )
1666
+ .void
1367
1667
  end
1668
+ attr_writer :payment_type
1368
1669
 
1369
- sig { params(_: Symbol).returns(Symbol) }
1370
- def payment_type=(_)
1670
+ sig do
1671
+ params(
1672
+ routing_number: String,
1673
+ routing_number_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::OrSymbol,
1674
+ payment_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
1675
+ )
1676
+ .returns(T.attached_class)
1371
1677
  end
1372
-
1373
- sig { params(routing_number: String, routing_number_type: Symbol, payment_type: Symbol).void }
1374
- def initialize(routing_number:, routing_number_type:, payment_type: nil)
1678
+ def self.new(routing_number:, routing_number_type:, payment_type: nil)
1375
1679
  end
1376
1680
 
1377
1681
  sig do
1378
- override.returns({routing_number: String, routing_number_type: Symbol, payment_type: Symbol})
1682
+ override
1683
+ .returns(
1684
+ {
1685
+ routing_number: String,
1686
+ routing_number_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::OrSymbol,
1687
+ payment_type: ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::OrSymbol
1688
+ }
1689
+ )
1379
1690
  end
1380
1691
  def to_hash
1381
1692
  end
1382
1693
 
1383
- class RoutingNumberType < ModernTreasury::Enum
1384
- abstract!
1385
-
1386
- ABA = :aba
1387
- AU_BSB = :au_bsb
1388
- BR_CODIGO = :br_codigo
1389
- CA_CPA = :ca_cpa
1390
- CHIPS = :chips
1391
- CNAPS = :cnaps
1392
- DK_INTERBANK_CLEARING_CODE = :dk_interbank_clearing_code
1393
- GB_SORT_CODE = :gb_sort_code
1394
- HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
1395
- HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
1396
- ID_SKNBI_CODE = :id_sknbi_code
1397
- IN_IFSC = :in_ifsc
1398
- JP_ZENGIN_CODE = :jp_zengin_code
1399
- MY_BRANCH_CODE = :my_branch_code
1400
- MX_BANK_IDENTIFIER = :mx_bank_identifier
1401
- NZ_NATIONAL_CLEARING_CODE = :nz_national_clearing_code
1402
- PL_NATIONAL_CLEARING_CODE = :pl_national_clearing_code
1403
- SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
1404
- SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
1405
- SWIFT = :swift
1406
- ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
1407
-
1408
- sig { override.returns(T::Array[Symbol]) }
1694
+ module RoutingNumberType
1695
+ extend ModernTreasury::Enum
1696
+
1697
+ TaggedSymbol =
1698
+ T.type_alias do
1699
+ T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType)
1700
+ end
1701
+ OrSymbol =
1702
+ T.type_alias do
1703
+ T.any(
1704
+ Symbol,
1705
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1706
+ )
1707
+ end
1708
+
1709
+ ABA =
1710
+ T.let(
1711
+ :aba,
1712
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1713
+ )
1714
+ AU_BSB =
1715
+ T.let(
1716
+ :au_bsb,
1717
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1718
+ )
1719
+ BR_CODIGO =
1720
+ T.let(
1721
+ :br_codigo,
1722
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1723
+ )
1724
+ CA_CPA =
1725
+ T.let(
1726
+ :ca_cpa,
1727
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1728
+ )
1729
+ CHIPS =
1730
+ T.let(
1731
+ :chips,
1732
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1733
+ )
1734
+ CNAPS =
1735
+ T.let(
1736
+ :cnaps,
1737
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1738
+ )
1739
+ DK_INTERBANK_CLEARING_CODE =
1740
+ T.let(
1741
+ :dk_interbank_clearing_code,
1742
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1743
+ )
1744
+ GB_SORT_CODE =
1745
+ T.let(
1746
+ :gb_sort_code,
1747
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1748
+ )
1749
+ HK_INTERBANK_CLEARING_CODE =
1750
+ T.let(
1751
+ :hk_interbank_clearing_code,
1752
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1753
+ )
1754
+ HU_INTERBANK_CLEARING_CODE =
1755
+ T.let(
1756
+ :hu_interbank_clearing_code,
1757
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1758
+ )
1759
+ ID_SKNBI_CODE =
1760
+ T.let(
1761
+ :id_sknbi_code,
1762
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1763
+ )
1764
+ IN_IFSC =
1765
+ T.let(
1766
+ :in_ifsc,
1767
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1768
+ )
1769
+ JP_ZENGIN_CODE =
1770
+ T.let(
1771
+ :jp_zengin_code,
1772
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1773
+ )
1774
+ MY_BRANCH_CODE =
1775
+ T.let(
1776
+ :my_branch_code,
1777
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1778
+ )
1779
+ MX_BANK_IDENTIFIER =
1780
+ T.let(
1781
+ :mx_bank_identifier,
1782
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1783
+ )
1784
+ NZ_NATIONAL_CLEARING_CODE =
1785
+ T.let(
1786
+ :nz_national_clearing_code,
1787
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1788
+ )
1789
+ PL_NATIONAL_CLEARING_CODE =
1790
+ T.let(
1791
+ :pl_national_clearing_code,
1792
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1793
+ )
1794
+ SE_BANKGIRO_CLEARING_CODE =
1795
+ T.let(
1796
+ :se_bankgiro_clearing_code,
1797
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1798
+ )
1799
+ SG_INTERBANK_CLEARING_CODE =
1800
+ T.let(
1801
+ :sg_interbank_clearing_code,
1802
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1803
+ )
1804
+ SWIFT =
1805
+ T.let(
1806
+ :swift,
1807
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1808
+ )
1809
+ ZA_NATIONAL_CLEARING_CODE =
1810
+ T.let(
1811
+ :za_national_clearing_code,
1812
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1813
+ )
1814
+
1815
+ sig do
1816
+ override
1817
+ .returns(
1818
+ T::Array[
1819
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::RoutingNumberType::TaggedSymbol
1820
+ ]
1821
+ )
1822
+ end
1409
1823
  def self.values
1410
1824
  end
1411
1825
  end
1412
1826
 
1413
- class PaymentType < ModernTreasury::Enum
1414
- abstract!
1415
-
1416
- ACH = :ach
1417
- AU_BECS = :au_becs
1418
- BACS = :bacs
1419
- BOOK = :book
1420
- CARD = :card
1421
- CHATS = :chats
1422
- CHECK = :check
1423
- CROSS_BORDER = :cross_border
1424
- DK_NETS = :dk_nets
1425
- EFT = :eft
1426
- HU_ICS = :hu_ics
1427
- INTERAC = :interac
1428
- MASAV = :masav
1429
- MX_CCEN = :mx_ccen
1430
- NEFT = :neft
1431
- NICS = :nics
1432
- NZ_BECS = :nz_becs
1433
- PL_ELIXIR = :pl_elixir
1434
- PROVXCHANGE = :provxchange
1435
- RO_SENT = :ro_sent
1436
- RTP = :rtp
1437
- SE_BANKGIROT = :se_bankgirot
1438
- SEN = :sen
1439
- SEPA = :sepa
1440
- SG_GIRO = :sg_giro
1441
- SIC = :sic
1442
- SIGNET = :signet
1443
- SKNBI = :sknbi
1444
- WIRE = :wire
1445
- ZENGIN = :zengin
1446
-
1447
- sig { override.returns(T::Array[Symbol]) }
1827
+ module PaymentType
1828
+ extend ModernTreasury::Enum
1829
+
1830
+ TaggedSymbol =
1831
+ T.type_alias do
1832
+ T.all(Symbol, ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType)
1833
+ end
1834
+ OrSymbol =
1835
+ T.type_alias do
1836
+ T.any(
1837
+ Symbol,
1838
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1839
+ )
1840
+ end
1841
+
1842
+ ACH =
1843
+ T.let(
1844
+ :ach,
1845
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1846
+ )
1847
+ AU_BECS =
1848
+ T.let(
1849
+ :au_becs,
1850
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1851
+ )
1852
+ BACS =
1853
+ T.let(
1854
+ :bacs,
1855
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1856
+ )
1857
+ BOOK =
1858
+ T.let(
1859
+ :book,
1860
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1861
+ )
1862
+ CARD =
1863
+ T.let(
1864
+ :card,
1865
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1866
+ )
1867
+ CHATS =
1868
+ T.let(
1869
+ :chats,
1870
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1871
+ )
1872
+ CHECK =
1873
+ T.let(
1874
+ :check,
1875
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1876
+ )
1877
+ CROSS_BORDER =
1878
+ T.let(
1879
+ :cross_border,
1880
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1881
+ )
1882
+ DK_NETS =
1883
+ T.let(
1884
+ :dk_nets,
1885
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1886
+ )
1887
+ EFT =
1888
+ T.let(
1889
+ :eft,
1890
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1891
+ )
1892
+ HU_ICS =
1893
+ T.let(
1894
+ :hu_ics,
1895
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1896
+ )
1897
+ INTERAC =
1898
+ T.let(
1899
+ :interac,
1900
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1901
+ )
1902
+ MASAV =
1903
+ T.let(
1904
+ :masav,
1905
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1906
+ )
1907
+ MX_CCEN =
1908
+ T.let(
1909
+ :mx_ccen,
1910
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1911
+ )
1912
+ NEFT =
1913
+ T.let(
1914
+ :neft,
1915
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1916
+ )
1917
+ NICS =
1918
+ T.let(
1919
+ :nics,
1920
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1921
+ )
1922
+ NZ_BECS =
1923
+ T.let(
1924
+ :nz_becs,
1925
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1926
+ )
1927
+ PL_ELIXIR =
1928
+ T.let(
1929
+ :pl_elixir,
1930
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1931
+ )
1932
+ PROVXCHANGE =
1933
+ T.let(
1934
+ :provxchange,
1935
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1936
+ )
1937
+ RO_SENT =
1938
+ T.let(
1939
+ :ro_sent,
1940
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1941
+ )
1942
+ RTP =
1943
+ T.let(
1944
+ :rtp,
1945
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1946
+ )
1947
+ SE_BANKGIROT =
1948
+ T.let(
1949
+ :se_bankgirot,
1950
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1951
+ )
1952
+ SEN =
1953
+ T.let(
1954
+ :sen,
1955
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1956
+ )
1957
+ SEPA =
1958
+ T.let(
1959
+ :sepa,
1960
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1961
+ )
1962
+ SG_GIRO =
1963
+ T.let(
1964
+ :sg_giro,
1965
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1966
+ )
1967
+ SIC =
1968
+ T.let(
1969
+ :sic,
1970
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1971
+ )
1972
+ SIGNET =
1973
+ T.let(
1974
+ :signet,
1975
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1976
+ )
1977
+ SKNBI =
1978
+ T.let(
1979
+ :sknbi,
1980
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1981
+ )
1982
+ WIRE =
1983
+ T.let(
1984
+ :wire,
1985
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1986
+ )
1987
+ ZENGIN =
1988
+ T.let(
1989
+ :zengin,
1990
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1991
+ )
1992
+
1993
+ sig do
1994
+ override
1995
+ .returns(
1996
+ T::Array[
1997
+ ModernTreasury::Models::PaymentOrderCreateAsyncParams::ReceivingAccount::RoutingDetail::PaymentType::TaggedSymbol
1998
+ ]
1999
+ )
2000
+ end
1448
2001
  def self.values
1449
2002
  end
1450
2003
  end