modern_treasury 0.1.0.pre.alpha.21 → 0.1.0

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 (375) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +65 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +0 -12
  5. data/lib/modern_treasury/errors.rb +22 -0
  6. data/lib/modern_treasury/internal/transport/base_client.rb +11 -3
  7. data/lib/modern_treasury/internal/type/array_of.rb +6 -1
  8. data/lib/modern_treasury/internal/type/base_model.rb +81 -27
  9. data/lib/modern_treasury/internal/type/boolean.rb +7 -1
  10. data/lib/modern_treasury/internal/type/converter.rb +42 -34
  11. data/lib/modern_treasury/internal/type/enum.rb +10 -2
  12. data/lib/modern_treasury/internal/type/file_input.rb +6 -1
  13. data/lib/modern_treasury/internal/type/hash_of.rb +6 -1
  14. data/lib/modern_treasury/internal/type/union.rb +12 -7
  15. data/lib/modern_treasury/internal/type/unknown.rb +7 -1
  16. data/lib/modern_treasury/models/accounting.rb +30 -0
  17. data/lib/modern_treasury/models/address.rb +94 -0
  18. data/lib/modern_treasury/models/address_request.rb +54 -0
  19. data/lib/modern_treasury/models/bulk_request_create_params.rb +147 -1383
  20. data/lib/modern_treasury/models/bulk_result.rb +5 -3
  21. data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
  22. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
  23. data/lib/modern_treasury/models/contact_detail.rb +81 -0
  24. data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
  25. data/lib/modern_treasury/models/counterparty.rb +24 -177
  26. data/lib/modern_treasury/models/counterparty_create_params.rb +38 -838
  27. data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
  28. data/lib/modern_treasury/models/document.rb +4 -6
  29. data/lib/modern_treasury/models/document_create_params.rb +0 -2
  30. data/lib/modern_treasury/models/document_list_params.rb +4 -6
  31. data/lib/modern_treasury/models/expected_payment.rb +9 -1
  32. data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
  33. data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
  34. data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
  35. data/lib/modern_treasury/models/external_account.rb +15 -177
  36. data/lib/modern_treasury/models/external_account_create_params.rb +19 -210
  37. data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
  38. data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
  39. data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
  40. data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
  41. data/lib/modern_treasury/models/identification_create_request.rb +86 -0
  42. data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
  43. data/lib/modern_treasury/models/internal_account.rb +122 -71
  44. data/lib/modern_treasury/models/internal_account_create_params.rb +138 -1
  45. data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
  46. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
  47. data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +23 -0
  48. data/lib/modern_treasury/models/invoice.rb +13 -82
  49. data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
  50. data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
  51. data/lib/modern_treasury/models/ledger_account.rb +18 -142
  52. data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
  53. data/lib/modern_treasury/models/ledger_account_category.rb +12 -176
  54. data/lib/modern_treasury/models/ledger_account_category_list_params.rb +17 -6
  55. data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
  56. data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
  57. data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
  58. data/lib/modern_treasury/models/ledger_account_list_params.rb +15 -1
  59. data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
  60. data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
  61. data/lib/modern_treasury/models/ledger_balance.rb +45 -0
  62. data/lib/modern_treasury/models/ledger_balances.rb +38 -0
  63. data/lib/modern_treasury/models/ledger_entry.rb +3 -183
  64. data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
  65. data/lib/modern_treasury/models/ledger_entry_list_params.rb +48 -8
  66. data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
  67. data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
  68. data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
  69. data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
  70. data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
  71. data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
  72. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
  73. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
  74. data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
  75. data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
  76. data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
  77. data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
  78. data/lib/modern_treasury/models/line_item.rb +3 -29
  79. data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
  80. data/lib/modern_treasury/models/payment_order.rb +34 -111
  81. data/lib/modern_treasury/models/payment_order_create_async_params.rb +32 -484
  82. data/lib/modern_treasury/models/payment_order_create_params.rb +32 -486
  83. data/lib/modern_treasury/models/payment_order_list_params.rb +9 -1
  84. data/lib/modern_treasury/models/payment_order_update_params.rb +30 -255
  85. data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
  86. data/lib/modern_treasury/models/payment_reference.rb +11 -2
  87. data/lib/modern_treasury/models/return_create_params.rb +75 -1
  88. data/lib/modern_treasury/models/return_list_params.rb +5 -6
  89. data/lib/modern_treasury/models/return_object.rb +87 -5
  90. data/lib/modern_treasury/models/routing_detail.rb +4 -93
  91. data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
  92. data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
  93. data/lib/modern_treasury/models/transaction.rb +6 -73
  94. data/lib/modern_treasury/models/transaction_create_params.rb +9 -1
  95. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +9 -2
  96. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
  97. data/lib/modern_treasury/models/virtual_account_create_params.rb +4 -117
  98. data/lib/modern_treasury/models.rb +31 -24
  99. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  100. data/lib/modern_treasury/resources/counterparties.rb +20 -14
  101. data/lib/modern_treasury/resources/expected_payments.rb +10 -4
  102. data/lib/modern_treasury/resources/external_accounts.rb +23 -17
  103. data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +2 -2
  104. data/lib/modern_treasury/resources/internal_accounts.rb +37 -1
  105. data/lib/modern_treasury/resources/invoices.rb +2 -2
  106. data/lib/modern_treasury/resources/ledger_account_categories.rb +4 -2
  107. data/lib/modern_treasury/resources/ledger_accounts.rb +6 -2
  108. data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
  109. data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
  110. data/lib/modern_treasury/resources/legal_entities.rb +4 -4
  111. data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
  112. data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
  113. data/lib/modern_treasury/resources/payment_orders.rb +11 -9
  114. data/lib/modern_treasury/resources/returns.rb +4 -2
  115. data/lib/modern_treasury/resources/transactions.rb +3 -1
  116. data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
  117. data/lib/modern_treasury/version.rb +1 -1
  118. data/lib/modern_treasury.rb +16 -15
  119. data/rbi/modern_treasury/client.rbi +0 -9
  120. data/rbi/modern_treasury/errors.rbi +16 -0
  121. data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
  122. data/rbi/modern_treasury/internal/type/boolean.rbi +2 -0
  123. data/rbi/modern_treasury/internal/type/converter.rbi +15 -15
  124. data/rbi/modern_treasury/internal/type/union.rbi +5 -0
  125. data/rbi/modern_treasury/internal/type/unknown.rbi +2 -0
  126. data/rbi/modern_treasury/models/accounting.rbi +48 -0
  127. data/rbi/modern_treasury/models/address.rbi +107 -0
  128. data/rbi/modern_treasury/models/address_request.rbi +76 -0
  129. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +802 -3025
  130. data/rbi/modern_treasury/models/bulk_result.rbi +2 -0
  131. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
  132. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
  133. data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
  134. data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
  135. data/rbi/modern_treasury/models/counterparty.rbi +24 -264
  136. data/rbi/modern_treasury/models/counterparty_create_params.rbi +60 -1726
  137. data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
  138. data/rbi/modern_treasury/models/document.rbi +6 -16
  139. data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
  140. data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
  141. data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
  142. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
  143. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
  144. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
  145. data/rbi/modern_treasury/models/external_account.rbi +15 -244
  146. data/rbi/modern_treasury/models/external_account_create_params.rbi +25 -400
  147. data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
  148. data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
  149. data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
  150. data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
  151. data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
  152. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
  153. data/rbi/modern_treasury/models/internal_account.rbi +332 -120
  154. data/rbi/modern_treasury/models/internal_account_create_params.rbi +333 -0
  155. data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
  156. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
  157. data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +37 -0
  158. data/rbi/modern_treasury/models/invoice.rbi +13 -128
  159. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
  160. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
  161. data/rbi/modern_treasury/models/ledger_account.rbi +20 -218
  162. data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
  163. data/rbi/modern_treasury/models/ledger_account_category.rbi +12 -301
  164. data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +23 -7
  165. data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
  166. data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
  167. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
  168. data/rbi/modern_treasury/models/ledger_account_list_params.rbi +22 -0
  169. data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
  170. data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
  171. data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
  172. data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
  173. data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
  174. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
  175. data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +99 -16
  176. data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
  177. data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
  178. data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
  179. data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
  180. data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
  181. data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
  182. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
  183. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
  184. data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
  185. data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
  186. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
  187. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
  188. data/rbi/modern_treasury/models/line_item.rbi +4 -52
  189. data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
  190. data/rbi/modern_treasury/models/payment_order.rbi +81 -172
  191. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +42 -891
  192. data/rbi/modern_treasury/models/payment_order_create_params.rbi +42 -896
  193. data/rbi/modern_treasury/models/payment_order_list_params.rbi +14 -0
  194. data/rbi/modern_treasury/models/payment_order_update_params.rbi +43 -469
  195. data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
  196. data/rbi/modern_treasury/models/payment_reference.rbi +54 -9
  197. data/rbi/modern_treasury/models/return_create_params.rbi +114 -0
  198. data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
  199. data/rbi/modern_treasury/models/return_object.rbi +165 -16
  200. data/rbi/modern_treasury/models/routing_detail.rbi +9 -113
  201. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
  202. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
  203. data/rbi/modern_treasury/models/transaction.rbi +19 -103
  204. data/rbi/modern_treasury/models/transaction_create_params.rbi +8 -0
  205. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +8 -5
  206. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
  207. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +9 -203
  208. data/rbi/modern_treasury/models.rbi +36 -31
  209. data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -1
  210. data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
  211. data/rbi/modern_treasury/resources/documents.rbi +2 -2
  212. data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
  213. data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
  214. data/rbi/modern_treasury/resources/internal_accounts/balance_reports.rbi +7 -3
  215. data/rbi/modern_treasury/resources/internal_accounts.rbi +31 -0
  216. data/rbi/modern_treasury/resources/invoices.rbi +2 -8
  217. data/rbi/modern_treasury/resources/ledger_account_categories.rbi +9 -3
  218. data/rbi/modern_treasury/resources/ledger_accounts.rbi +5 -1
  219. data/rbi/modern_treasury/resources/ledger_entries.rbi +9 -2
  220. data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
  221. data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
  222. data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
  223. data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
  224. data/rbi/modern_treasury/resources/payment_orders.rbi +16 -17
  225. data/rbi/modern_treasury/resources/returns.rbi +8 -2
  226. data/rbi/modern_treasury/resources/transactions.rbi +3 -0
  227. data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
  228. data/sig/modern_treasury/client.rbs +0 -6
  229. data/sig/modern_treasury/errors.rbs +9 -0
  230. data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
  231. data/sig/modern_treasury/internal/type/converter.rbs +7 -1
  232. data/sig/modern_treasury/models/accounting.rbs +15 -0
  233. data/sig/modern_treasury/models/address.rbs +70 -0
  234. data/sig/modern_treasury/models/address_request.rbs +45 -0
  235. data/sig/modern_treasury/models/bulk_request_create_params.rbs +99 -999
  236. data/sig/modern_treasury/models/bulk_result.rbs +1 -0
  237. data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
  238. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
  239. data/sig/modern_treasury/models/contact_detail.rbs +67 -0
  240. data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
  241. data/sig/modern_treasury/models/counterparty.rbs +20 -141
  242. data/sig/modern_treasury/models/counterparty_create_params.rbs +51 -737
  243. data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
  244. data/sig/modern_treasury/models/document.rbs +0 -4
  245. data/sig/modern_treasury/models/document_create_params.rbs +0 -4
  246. data/sig/modern_treasury/models/document_list_params.rbs +0 -4
  247. data/sig/modern_treasury/models/expected_payment.rbs +5 -0
  248. data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
  249. data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
  250. data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
  251. data/sig/modern_treasury/models/external_account.rbs +13 -139
  252. data/sig/modern_treasury/models/external_account_create_params.rbs +25 -189
  253. data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
  254. data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
  255. data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
  256. data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
  257. data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
  258. data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
  259. data/sig/modern_treasury/models/internal_account.rbs +148 -71
  260. data/sig/modern_treasury/models/internal_account_create_params.rbs +143 -0
  261. data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
  262. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
  263. data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +10 -0
  264. data/sig/modern_treasury/models/invoice.rbs +9 -68
  265. data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
  266. data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
  267. data/sig/modern_treasury/models/ledger_account.rbs +17 -123
  268. data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
  269. data/sig/modern_treasury/models/ledger_account_category.rbs +9 -142
  270. data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +12 -5
  271. data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
  272. data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
  273. data/sig/modern_treasury/models/ledger_account_list_params.rbs +16 -0
  274. data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
  275. data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
  276. data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
  277. data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
  278. data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
  279. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
  280. data/sig/modern_treasury/models/ledger_entry_list_params.rbs +21 -3
  281. data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
  282. data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
  283. data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
  284. data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
  285. data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
  286. data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
  287. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
  288. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
  289. data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
  290. data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
  291. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
  292. data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
  293. data/sig/modern_treasury/models/line_item.rbs +4 -16
  294. data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
  295. data/sig/modern_treasury/models/payment_order.rbs +37 -71
  296. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +37 -380
  297. data/sig/modern_treasury/models/payment_order_create_params.rbs +37 -384
  298. data/sig/modern_treasury/models/payment_order_list_params.rbs +9 -0
  299. data/sig/modern_treasury/models/payment_order_update_params.rbs +33 -207
  300. data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
  301. data/sig/modern_treasury/models/payment_reference.rbs +22 -4
  302. data/sig/modern_treasury/models/return_create_params.rbs +47 -0
  303. data/sig/modern_treasury/models/return_list_params.rbs +1 -6
  304. data/sig/modern_treasury/models/return_object.rbs +70 -12
  305. data/sig/modern_treasury/models/routing_detail.rbs +6 -71
  306. data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
  307. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
  308. data/sig/modern_treasury/models/transaction.rbs +10 -53
  309. data/sig/modern_treasury/models/transaction_create_params.rbs +5 -0
  310. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +5 -2
  311. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
  312. data/sig/modern_treasury/models/virtual_account_create_params.rbs +8 -95
  313. data/sig/modern_treasury/models.rbs +30 -24
  314. data/sig/modern_treasury/resources/counterparties.rbs +2 -0
  315. data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
  316. data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
  317. data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +1 -1
  318. data/sig/modern_treasury/resources/internal_accounts.rbs +8 -0
  319. data/sig/modern_treasury/resources/invoices.rbs +2 -2
  320. data/sig/modern_treasury/resources/ledger_account_categories.rbs +2 -1
  321. data/sig/modern_treasury/resources/ledger_accounts.rbs +3 -1
  322. data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
  323. data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
  324. data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
  325. data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
  326. data/sig/modern_treasury/resources/payment_orders.rbs +6 -5
  327. data/sig/modern_treasury/resources/returns.rbs +1 -0
  328. data/sig/modern_treasury/resources/transactions.rbs +1 -0
  329. data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
  330. metadata +52 -49
  331. data/lib/modern_treasury/models/ledger_event_handler.rb +0 -222
  332. data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +0 -177
  333. data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +0 -14
  334. data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +0 -58
  335. data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +0 -14
  336. data/lib/modern_treasury/models/ledger_event_handler_variable.rb +0 -59
  337. data/lib/modern_treasury/models/ledgerable_event.rb +0 -92
  338. data/lib/modern_treasury/models/ledgerable_event_create_params.rb +0 -50
  339. data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +0 -14
  340. data/lib/modern_treasury/models/paper_item.rb +0 -178
  341. data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
  342. data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
  343. data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -125
  344. data/lib/modern_treasury/resources/ledgerable_events.rb +0 -65
  345. data/lib/modern_treasury/resources/paper_items.rb +0 -68
  346. data/rbi/modern_treasury/models/ledger_event_handler.rbi +0 -322
  347. data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -303
  348. data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -32
  349. data/rbi/modern_treasury/models/ledger_event_handler_list_params.rbi +0 -92
  350. data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -32
  351. data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +0 -98
  352. data/rbi/modern_treasury/models/ledgerable_event.rbi +0 -108
  353. data/rbi/modern_treasury/models/ledgerable_event_create_params.rbi +0 -75
  354. data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -32
  355. data/rbi/modern_treasury/models/paper_item.rbi +0 -204
  356. data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
  357. data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
  358. data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -109
  359. data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -50
  360. data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
  361. data/sig/modern_treasury/models/ledger_event_handler.rbs +0 -149
  362. data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +0 -127
  363. data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -15
  364. data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -54
  365. data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -15
  366. data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +0 -36
  367. data/sig/modern_treasury/models/ledgerable_event.rbs +0 -65
  368. data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -43
  369. data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -15
  370. data/sig/modern_treasury/models/paper_item.rbs +0 -122
  371. data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
  372. data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
  373. data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -37
  374. data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -20
  375. data/sig/modern_treasury/resources/paper_items.rbs +0 -21
@@ -37,8 +37,8 @@ module ModernTreasury
37
37
  # @!attribute foreign_exchange_rate
38
38
  # The serialized rate information represented by this quote.
39
39
  #
40
- # @return [ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate]
41
- required :foreign_exchange_rate, -> { ModernTreasury::ForeignExchangeQuote::ForeignExchangeRate }
40
+ # @return [ModernTreasury::Models::ForeignExchangeRate]
41
+ required :foreign_exchange_rate, -> { ModernTreasury::ForeignExchangeRate }
42
42
 
43
43
  # @!attribute internal_account_id
44
44
  # The ID for the `InternalAccount` this quote is associated with.
@@ -90,7 +90,7 @@ module ModernTreasury
90
90
  #
91
91
  # @param foreign_exchange_indicator [String] Either `fixed_to_variable` if the `base_amount` was specified, or `variable_to_f
92
92
  #
93
- # @param foreign_exchange_rate [ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate] The serialized rate information represented by this quote.
93
+ # @param foreign_exchange_rate [ModernTreasury::Models::ForeignExchangeRate] The serialized rate information represented by this quote.
94
94
  #
95
95
  # @param internal_account_id [String] The ID for the `InternalAccount` this quote is associated with.
96
96
  #
@@ -103,76 +103,6 @@ module ModernTreasury
103
103
  # @param updated_at [Time]
104
104
  #
105
105
  # @param vendor_id [String] This vendor assigned ID for this quote.
106
-
107
- # @see ModernTreasury::Models::ForeignExchangeQuote#foreign_exchange_rate
108
- class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
109
- # @!attribute base_amount
110
- # Amount in the lowest denomination of the `base_currency` to convert, often
111
- # called the "sell" amount.
112
- #
113
- # @return [Integer]
114
- required :base_amount, Integer
115
-
116
- # @!attribute base_currency
117
- # Currency to convert, often called the "sell" currency.
118
- #
119
- # @return [Symbol, ModernTreasury::Models::Currency]
120
- required :base_currency, enum: -> { ModernTreasury::Currency }
121
-
122
- # @!attribute exponent
123
- # The exponent component of the rate. The decimal is calculated as `value` / (10 ^
124
- # `exponent`).
125
- #
126
- # @return [Integer]
127
- required :exponent, Integer
128
-
129
- # @!attribute rate_string
130
- # A string representation of the rate.
131
- #
132
- # @return [String]
133
- required :rate_string, String
134
-
135
- # @!attribute target_amount
136
- # Amount in the lowest denomination of the `target_currency`, often called the
137
- # "buy" amount.
138
- #
139
- # @return [Integer]
140
- required :target_amount, Integer
141
-
142
- # @!attribute target_currency
143
- # Currency to convert the `base_currency` to, often called the "buy" currency.
144
- #
145
- # @return [Symbol, ModernTreasury::Models::Currency]
146
- required :target_currency, enum: -> { ModernTreasury::Currency }
147
-
148
- # @!attribute value
149
- # The whole number component of the rate. The decimal is calculated as `value` /
150
- # (10 ^ `exponent`).
151
- #
152
- # @return [Integer]
153
- required :value, Integer
154
-
155
- # @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
156
- # Some parameter documentations has been truncated, see
157
- # {ModernTreasury::Models::ForeignExchangeQuote::ForeignExchangeRate} for more
158
- # details.
159
- #
160
- # The serialized rate information represented by this quote.
161
- #
162
- # @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
163
- #
164
- # @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
165
- #
166
- # @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
167
- #
168
- # @param rate_string [String] A string representation of the rate.
169
- #
170
- # @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
171
- #
172
- # @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
173
- #
174
- # @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
175
- end
176
106
  end
177
107
  end
178
108
  end
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class ForeignExchangeRate < ModernTreasury::Internal::Type::BaseModel
6
+ # @!attribute base_amount
7
+ # Amount in the lowest denomination of the `base_currency` to convert, often
8
+ # called the "sell" amount.
9
+ #
10
+ # @return [Integer]
11
+ required :base_amount, Integer
12
+
13
+ # @!attribute base_currency
14
+ # Currency to convert, often called the "sell" currency.
15
+ #
16
+ # @return [Symbol, ModernTreasury::Models::Currency]
17
+ required :base_currency, enum: -> { ModernTreasury::Currency }
18
+
19
+ # @!attribute exponent
20
+ # The exponent component of the rate. The decimal is calculated as `value` / (10 ^
21
+ # `exponent`).
22
+ #
23
+ # @return [Integer]
24
+ required :exponent, Integer
25
+
26
+ # @!attribute rate_string
27
+ # A string representation of the rate.
28
+ #
29
+ # @return [String]
30
+ required :rate_string, String
31
+
32
+ # @!attribute target_amount
33
+ # Amount in the lowest denomination of the `target_currency`, often called the
34
+ # "buy" amount.
35
+ #
36
+ # @return [Integer]
37
+ required :target_amount, Integer
38
+
39
+ # @!attribute target_currency
40
+ # Currency to convert the `base_currency` to, often called the "buy" currency.
41
+ #
42
+ # @return [Symbol, ModernTreasury::Models::Currency]
43
+ required :target_currency, enum: -> { ModernTreasury::Currency }
44
+
45
+ # @!attribute value
46
+ # The whole number component of the rate. The decimal is calculated as `value` /
47
+ # (10 ^ `exponent`).
48
+ #
49
+ # @return [Integer]
50
+ required :value, Integer
51
+
52
+ # @!method initialize(base_amount:, base_currency:, exponent:, rate_string:, target_amount:, target_currency:, value:)
53
+ # Some parameter documentations has been truncated, see
54
+ # {ModernTreasury::Models::ForeignExchangeRate} for more details.
55
+ #
56
+ # @param base_amount [Integer] Amount in the lowest denomination of the `base_currency` to convert, often calle
57
+ #
58
+ # @param base_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert, often called the "sell" currency.
59
+ #
60
+ # @param exponent [Integer] The exponent component of the rate. The decimal is calculated as `value` / (10 ^
61
+ #
62
+ # @param rate_string [String] A string representation of the rate.
63
+ #
64
+ # @param target_amount [Integer] Amount in the lowest denomination of the `target_currency`, often called the "bu
65
+ #
66
+ # @param target_currency [Symbol, ModernTreasury::Models::Currency] Currency to convert the `base_currency` to, often called the "buy" currency.
67
+ #
68
+ # @param value [Integer] The whole number component of the rate. The decimal is calculated as `value` / (
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,86 @@
1
+ # frozen_string_literal: true
2
+
3
+ module ModernTreasury
4
+ module Models
5
+ class IdentificationCreateRequest < ModernTreasury::Internal::Type::BaseModel
6
+ # @!attribute id_number
7
+ # The ID number of identification document.
8
+ #
9
+ # @return [String]
10
+ required :id_number, String
11
+
12
+ # @!attribute id_type
13
+ # The type of ID number.
14
+ #
15
+ # @return [Symbol, ModernTreasury::Models::IdentificationCreateRequest::IDType]
16
+ required :id_type, enum: -> { ModernTreasury::IdentificationCreateRequest::IDType }
17
+
18
+ # @!attribute expiration_date
19
+ # The date when the Identification is no longer considered valid by the issuing
20
+ # authority.
21
+ #
22
+ # @return [Date, nil]
23
+ optional :expiration_date, Date, nil?: true
24
+
25
+ # @!attribute issuing_country
26
+ # The ISO 3166-1 alpha-2 country code of the country that issued the
27
+ # identification
28
+ #
29
+ # @return [String, nil]
30
+ optional :issuing_country, String, nil?: true
31
+
32
+ # @!attribute issuing_region
33
+ # The region in which the identifcation was issued.
34
+ #
35
+ # @return [String, nil]
36
+ optional :issuing_region, String, nil?: true
37
+
38
+ # @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
39
+ # Some parameter documentations has been truncated, see
40
+ # {ModernTreasury::Models::IdentificationCreateRequest} for more details.
41
+ #
42
+ # @param id_number [String] The ID number of identification document.
43
+ #
44
+ # @param id_type [Symbol, ModernTreasury::Models::IdentificationCreateRequest::IDType] The type of ID number.
45
+ #
46
+ # @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
47
+ #
48
+ # @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
49
+ #
50
+ # @param issuing_region [String, nil] The region in which the identifcation was issued.
51
+
52
+ # The type of ID number.
53
+ #
54
+ # @see ModernTreasury::Models::IdentificationCreateRequest#id_type
55
+ module IDType
56
+ extend ModernTreasury::Internal::Type::Enum
57
+
58
+ AR_CUIL = :ar_cuil
59
+ AR_CUIT = :ar_cuit
60
+ BR_CNPJ = :br_cnpj
61
+ BR_CPF = :br_cpf
62
+ CL_RUN = :cl_run
63
+ CL_RUT = :cl_rut
64
+ CO_CEDULAS = :co_cedulas
65
+ CO_NIT = :co_nit
66
+ DRIVERS_LICENSE = :drivers_license
67
+ HN_ID = :hn_id
68
+ HN_RTN = :hn_rtn
69
+ IN_LEI = :in_lei
70
+ KR_BRN = :kr_brn
71
+ KR_CRN = :kr_crn
72
+ KR_RRN = :kr_rrn
73
+ PASSPORT = :passport
74
+ SA_TIN = :sa_tin
75
+ SA_VAT = :sa_vat
76
+ US_EIN = :us_ein
77
+ US_ITIN = :us_itin
78
+ US_SSN = :us_ssn
79
+ VN_TIN = :vn_tin
80
+
81
+ # @!method self.values
82
+ # @return [Array<Symbol>]
83
+ end
84
+ end
85
+ end
86
+ end
@@ -260,6 +260,7 @@ module ModernTreasury
260
260
  HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
261
261
  HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
262
262
  ID_SKNBI_CODE = :id_sknbi_code
263
+ IL_BANK_CODE = :il_bank_code
263
264
  IN_IFSC = :in_ifsc
264
265
  JP_ZENGIN_CODE = :jp_zengin_code
265
266
  MX_BANK_IDENTIFIER = :mx_bank_identifier
@@ -9,6 +9,16 @@ module ModernTreasury
9
9
  # @return [String]
10
10
  required :id, String
11
11
 
12
+ # @!attribute account_capabilities
13
+ # An array of AccountCapability objects that list the originating abilities of the
14
+ # internal account and any relevant information for them.
15
+ #
16
+ # @return [Array<ModernTreasury::Models::InternalAccount::AccountCapability>]
17
+ required :account_capabilities,
18
+ -> {
19
+ ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccount::AccountCapability]
20
+ }
21
+
12
22
  # @!attribute account_details
13
23
  # An array of account detail objects.
14
24
  #
@@ -52,7 +62,7 @@ module ModernTreasury
52
62
  required :ledger_account_id, String, nil?: true
53
63
 
54
64
  # @!attribute legal_entity_id
55
- # The Legal Entity associated to this account
65
+ # The Legal Entity associated to this account.
56
66
  #
57
67
  # @return [String, nil]
58
68
  required :legal_entity_id, String, nil?: true
@@ -91,8 +101,8 @@ module ModernTreasury
91
101
  # @!attribute party_address
92
102
  # The address associated with the owner or null.
93
103
  #
94
- # @return [ModernTreasury::Models::InternalAccount::PartyAddress, nil]
95
- required :party_address, -> { ModernTreasury::InternalAccount::PartyAddress }, nil?: true
104
+ # @return [ModernTreasury::Models::Address, nil]
105
+ required :party_address, -> { ModernTreasury::Address }, nil?: true
96
106
 
97
107
  # @!attribute party_name
98
108
  # The legal name of the entity which owns the account.
@@ -117,12 +127,20 @@ module ModernTreasury
117
127
  # @return [Time]
118
128
  required :updated_at, Time
119
129
 
120
- # @!method initialize(id:, account_details:, account_type:, connection:, counterparty_id:, created_at:, currency:, ledger_account_id:, legal_entity_id:, live_mode:, metadata:, name:, object:, parent_account_id:, party_address:, party_name:, party_type:, routing_details:, updated_at:)
130
+ # @!attribute vendor_id
131
+ # The vendor ID associated with this account.
132
+ #
133
+ # @return [String, nil]
134
+ required :vendor_id, String, nil?: true
135
+
136
+ # @!method initialize(id:, account_capabilities:, account_details:, account_type:, connection:, counterparty_id:, created_at:, currency:, ledger_account_id:, legal_entity_id:, live_mode:, metadata:, name:, object:, parent_account_id:, party_address:, party_name:, party_type:, routing_details:, updated_at:, vendor_id:)
121
137
  # Some parameter documentations has been truncated, see
122
138
  # {ModernTreasury::Models::InternalAccount} for more details.
123
139
  #
124
140
  # @param id [String]
125
141
  #
142
+ # @param account_capabilities [Array<ModernTreasury::Models::InternalAccount::AccountCapability>] An array of AccountCapability objects that list the originating abilities of the
143
+ #
126
144
  # @param account_details [Array<ModernTreasury::Models::AccountDetail>] An array of account detail objects.
127
145
  #
128
146
  # @param account_type [Symbol, ModernTreasury::Models::InternalAccount::AccountType, nil] Can be checking, savings or other.
@@ -137,7 +155,7 @@ module ModernTreasury
137
155
  #
138
156
  # @param ledger_account_id [String, nil] If the internal account links to a ledger account in Modern Treasury, the id of
139
157
  #
140
- # @param legal_entity_id [String, nil] The Legal Entity associated to this account
158
+ # @param legal_entity_id [String, nil] The Legal Entity associated to this account.
141
159
  #
142
160
  # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
143
161
  #
@@ -149,7 +167,7 @@ module ModernTreasury
149
167
  #
150
168
  # @param parent_account_id [String, nil] The parent InternalAccount of this account.
151
169
  #
152
- # @param party_address [ModernTreasury::Models::InternalAccount::PartyAddress, nil] The address associated with the owner or null.
170
+ # @param party_address [ModernTreasury::Models::Address, nil] The address associated with the owner or null.
153
171
  #
154
172
  # @param party_name [String] The legal name of the entity which owns the account.
155
173
  #
@@ -158,58 +176,38 @@ module ModernTreasury
158
176
  # @param routing_details [Array<ModernTreasury::Models::RoutingDetail>] An array of routing detail objects.
159
177
  #
160
178
  # @param updated_at [Time]
161
-
162
- # Can be checking, savings or other.
163
179
  #
164
- # @see ModernTreasury::Models::InternalAccount#account_type
165
- module AccountType
166
- extend ModernTreasury::Internal::Type::Enum
180
+ # @param vendor_id [String, nil] The vendor ID associated with this account.
167
181
 
168
- BASE_WALLET = :base_wallet
169
- CASH = :cash
170
- CHECKING = :checking
171
- CRYPTO_WALLET = :crypto_wallet
172
- ETHEREUM_WALLET = :ethereum_wallet
173
- GENERAL_LEDGER = :general_ledger
174
- LOAN = :loan
175
- NON_RESIDENT = :non_resident
176
- OTHER = :other
177
- OVERDRAFT = :overdraft
178
- POLYGON_WALLET = :polygon_wallet
179
- SAVINGS = :savings
180
- SOLANA_WALLET = :solana_wallet
181
-
182
- # @!method self.values
183
- # @return [Array<Symbol>]
184
- end
185
-
186
- # @see ModernTreasury::Models::InternalAccount#party_address
187
- class PartyAddress < ModernTreasury::Internal::Type::BaseModel
182
+ class AccountCapability < ModernTreasury::Internal::Type::BaseModel
188
183
  # @!attribute id
189
184
  #
190
185
  # @return [String]
191
186
  required :id, String
192
187
 
193
- # @!attribute country
194
- # Country code conforms to [ISO 3166-1 alpha-2]
195
- #
196
- # @return [String, nil]
197
- required :country, String, nil?: true
198
-
199
188
  # @!attribute created_at
200
189
  #
201
190
  # @return [Time]
202
191
  required :created_at, Time
203
192
 
204
- # @!attribute line1
193
+ # @!attribute direction
194
+ # One of `debit` or `credit`. Indicates the direction of money movement this
195
+ # capability is responsible for.
205
196
  #
206
- # @return [String, nil]
207
- required :line1, String, nil?: true
197
+ # @return [Symbol, ModernTreasury::Models::TransactionDirection]
198
+ required :direction, enum: -> { ModernTreasury::TransactionDirection }
208
199
 
209
- # @!attribute line2
200
+ # @!attribute discarded_at
201
+ #
202
+ # @return [Time, nil]
203
+ required :discarded_at, Time, nil?: true
204
+
205
+ # @!attribute identifier
206
+ # A unique reference assigned by your bank for tracking and recognizing payment
207
+ # files. It is important this is formatted exactly how the bank assigned it.
210
208
  #
211
209
  # @return [String, nil]
212
- required :line2, String, nil?: true
210
+ required :identifier, String, nil?: true
213
211
 
214
212
  # @!attribute live_mode
215
213
  # This field will be true if this object exists in the live environment or false
@@ -218,61 +216,114 @@ module ModernTreasury
218
216
  # @return [Boolean]
219
217
  required :live_mode, ModernTreasury::Internal::Type::Boolean
220
218
 
221
- # @!attribute locality
222
- # Locality or City.
223
- #
224
- # @return [String, nil]
225
- required :locality, String, nil?: true
226
-
227
219
  # @!attribute object
228
220
  #
229
221
  # @return [String]
230
222
  required :object, String
231
223
 
232
- # @!attribute postal_code
233
- # The postal code of the address.
224
+ # @!attribute payment_type
225
+ # Indicates the the type of payment this capability is responsible for
226
+ # originating.
234
227
  #
235
- # @return [String, nil]
236
- required :postal_code, String, nil?: true
237
-
238
- # @!attribute region
239
- # Region or State.
240
- #
241
- # @return [String, nil]
242
- required :region, String, nil?: true
228
+ # @return [Symbol, ModernTreasury::Models::InternalAccount::AccountCapability::PaymentType]
229
+ required :payment_type, enum: -> { ModernTreasury::InternalAccount::AccountCapability::PaymentType }
243
230
 
244
231
  # @!attribute updated_at
245
232
  #
246
233
  # @return [Time]
247
234
  required :updated_at, Time
248
235
 
249
- # @!method initialize(id:, country:, created_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
236
+ # @!method initialize(id:, created_at:, direction:, discarded_at:, identifier:, live_mode:, object:, payment_type:, updated_at:)
250
237
  # Some parameter documentations has been truncated, see
251
- # {ModernTreasury::Models::InternalAccount::PartyAddress} for more details.
252
- #
253
- # The address associated with the owner or null.
238
+ # {ModernTreasury::Models::InternalAccount::AccountCapability} for more details.
254
239
  #
255
240
  # @param id [String]
256
241
  #
257
- # @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
258
- #
259
242
  # @param created_at [Time]
260
243
  #
261
- # @param line1 [String, nil]
244
+ # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `debit` or `credit`. Indicates the direction of money movement this capab
262
245
  #
263
- # @param line2 [String, nil]
246
+ # @param discarded_at [Time, nil]
264
247
  #
265
- # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
248
+ # @param identifier [String, nil] A unique reference assigned by your bank for tracking and recognizing payment fi
266
249
  #
267
- # @param locality [String, nil] Locality or City.
250
+ # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
268
251
  #
269
252
  # @param object [String]
270
253
  #
271
- # @param postal_code [String, nil] The postal code of the address.
272
- #
273
- # @param region [String, nil] Region or State.
254
+ # @param payment_type [Symbol, ModernTreasury::Models::InternalAccount::AccountCapability::PaymentType] Indicates the the type of payment this capability is responsible for originating
274
255
  #
275
256
  # @param updated_at [Time]
257
+
258
+ # Indicates the the type of payment this capability is responsible for
259
+ # originating.
260
+ #
261
+ # @see ModernTreasury::Models::InternalAccount::AccountCapability#payment_type
262
+ module PaymentType
263
+ extend ModernTreasury::Internal::Type::Enum
264
+
265
+ ACH = :ach
266
+ AU_BECS = :au_becs
267
+ BACS = :bacs
268
+ BASE = :base
269
+ BOOK = :book
270
+ CARD = :card
271
+ CHATS = :chats
272
+ CHECK = :check
273
+ CROSS_BORDER = :cross_border
274
+ DK_NETS = :dk_nets
275
+ EFT = :eft
276
+ ETHEREUM = :ethereum
277
+ HU_ICS = :hu_ics
278
+ INTERAC = :interac
279
+ MASAV = :masav
280
+ MX_CCEN = :mx_ccen
281
+ NEFT = :neft
282
+ NICS = :nics
283
+ NZ_BECS = :nz_becs
284
+ PL_ELIXIR = :pl_elixir
285
+ POLYGON = :polygon
286
+ PROVXCHANGE = :provxchange
287
+ RO_SENT = :ro_sent
288
+ RTP = :rtp
289
+ SE_BANKGIROT = :se_bankgirot
290
+ SEN = :sen
291
+ SEPA = :sepa
292
+ SG_GIRO = :sg_giro
293
+ SIC = :sic
294
+ SIGNET = :signet
295
+ SKNBI = :sknbi
296
+ SOLANA = :solana
297
+ WIRE = :wire
298
+ ZENGIN = :zengin
299
+
300
+ # @!method self.values
301
+ # @return [Array<Symbol>]
302
+ end
303
+ end
304
+
305
+ # Can be checking, savings or other.
306
+ #
307
+ # @see ModernTreasury::Models::InternalAccount#account_type
308
+ module AccountType
309
+ extend ModernTreasury::Internal::Type::Enum
310
+
311
+ BASE_WALLET = :base_wallet
312
+ CASH = :cash
313
+ CHECKING = :checking
314
+ CRYPTO_WALLET = :crypto_wallet
315
+ ETHEREUM_WALLET = :ethereum_wallet
316
+ GENERAL_LEDGER = :general_ledger
317
+ LOAN = :loan
318
+ NON_RESIDENT = :non_resident
319
+ OTHER = :other
320
+ OVERDRAFT = :overdraft
321
+ POLYGON_WALLET = :polygon_wallet
322
+ SAVINGS = :savings
323
+ SOLANA_WALLET = :solana_wallet
324
+
325
+ # @!method self.values
326
+ # @return [Array<Symbol>]
276
327
  end
277
328
 
278
329
  # Either individual or business.