modern_treasury 0.31.0 → 0.33.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 (247) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +54 -0
  3. data/README.md +1 -1
  4. data/lib/modern_treasury/client.rb +4 -0
  5. data/lib/modern_treasury/models/account_collection_flow.rb +2 -0
  6. data/lib/modern_treasury/models/account_detail.rb +1 -1
  7. data/lib/modern_treasury/models/account_detail_create_params.rb +1 -1
  8. data/lib/modern_treasury/models/bulk_request_create_params.rb +52 -11
  9. data/lib/modern_treasury/models/case_.rb +4 -2
  10. data/lib/modern_treasury/models/child_legal_entity.rb +8 -5
  11. data/lib/modern_treasury/models/child_legal_entity_create.rb +4 -0
  12. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +4 -0
  13. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -1
  14. data/lib/modern_treasury/models/counterparty_create_params.rb +30 -66
  15. data/lib/modern_treasury/models/currency.rb +1 -0
  16. data/lib/modern_treasury/models/embeddable_flow.rb +298 -0
  17. data/lib/modern_treasury/models/embeddable_flow_create_params.rb +219 -0
  18. data/lib/modern_treasury/models/embeddable_flow_list_params.rb +49 -0
  19. data/lib/modern_treasury/models/{hold_retrieve_params.rb → embeddable_flow_retrieve_params.rb} +2 -2
  20. data/lib/modern_treasury/models/embeddable_flow_update_params.rb +44 -0
  21. data/lib/modern_treasury/models/expected_payment.rb +3 -4
  22. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  23. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  24. data/lib/modern_treasury/models/external_account_create_params.rb +2 -1
  25. data/lib/modern_treasury/models/external_account_type.rb +2 -5
  26. data/lib/modern_treasury/models/external_account_update_params.rb +2 -2
  27. data/lib/modern_treasury/models/identification.rb +128 -0
  28. data/lib/modern_treasury/models/identification_create_params.rb +130 -0
  29. data/lib/modern_treasury/models/identification_create_request.rb +130 -0
  30. data/lib/modern_treasury/models/identification_update_params.rb +128 -0
  31. data/lib/modern_treasury/models/incoming_payment_detail.rb +15 -4
  32. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +14 -11
  33. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +4 -2
  34. data/lib/modern_treasury/models/internal_account.rb +190 -9
  35. data/lib/modern_treasury/models/internal_account_create_params.rb +45 -6
  36. data/lib/modern_treasury/models/internal_account_update_params.rb +35 -3
  37. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +12 -4
  38. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +12 -4
  39. data/lib/modern_treasury/models/ledger_account.rb +0 -1
  40. data/lib/modern_treasury/models/ledger_account_create_request.rb +0 -1
  41. data/lib/modern_treasury/models/legal_entity.rb +8 -5
  42. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +18 -18
  43. data/lib/modern_treasury/models/legal_entity_create_params.rb +25 -1
  44. data/lib/modern_treasury/models/legal_entity_list_params.rb +1 -0
  45. data/lib/modern_treasury/models/legal_entity_update_params.rb +25 -1
  46. data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
  47. data/lib/modern_treasury/models/payment_order.rb +18 -2
  48. data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -2
  49. data/lib/modern_treasury/models/payment_order_create_params.rb +32 -3
  50. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -0
  51. data/lib/modern_treasury/models/payment_order_update_params.rb +24 -2
  52. data/lib/modern_treasury/models/payment_reference.rb +7 -1
  53. data/lib/modern_treasury/models/return_object.rb +7 -1
  54. data/lib/modern_treasury/models/routing_detail.rb +1 -0
  55. data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
  56. data/lib/modern_treasury/models/routing_number_lookup_request.rb +1 -0
  57. data/lib/modern_treasury/models/third_party_verification.rb +2 -0
  58. data/lib/modern_treasury/models/transaction_list_params.rb +1 -8
  59. data/lib/modern_treasury/models/transactions/transaction_line_item.rb +4 -4
  60. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
  61. data/lib/modern_treasury/models/virtual_account.rb +9 -1
  62. data/lib/modern_treasury/models/virtual_account_create_params.rb +12 -2
  63. data/lib/modern_treasury/models/virtual_account_update_params.rb +14 -1
  64. data/lib/modern_treasury/models.rb +10 -10
  65. data/lib/modern_treasury/resources/account_collection_flows.rb +2 -0
  66. data/lib/modern_treasury/resources/counterparties.rb +1 -5
  67. data/lib/modern_treasury/resources/embeddable_flows.rb +111 -0
  68. data/lib/modern_treasury/resources/expected_payments.rb +2 -2
  69. data/lib/modern_treasury/resources/external_accounts.rb +1 -1
  70. data/lib/modern_treasury/resources/holds.rb +0 -113
  71. data/lib/modern_treasury/resources/incoming_payment_details.rb +4 -4
  72. data/lib/modern_treasury/resources/internal_accounts.rb +13 -23
  73. data/lib/modern_treasury/resources/legal_entities.rb +6 -2
  74. data/lib/modern_treasury/resources/payment_flows.rb +2 -0
  75. data/lib/modern_treasury/resources/payment_orders.rb +15 -3
  76. data/lib/modern_treasury/resources/transactions.rb +1 -3
  77. data/lib/modern_treasury/resources/virtual_accounts.rb +9 -2
  78. data/lib/modern_treasury/version.rb +1 -1
  79. data/lib/modern_treasury.rb +6 -9
  80. data/rbi/modern_treasury/client.rbi +3 -0
  81. data/rbi/modern_treasury/models/account_collection_flow.rbi +10 -0
  82. data/rbi/modern_treasury/models/account_detail.rbi +5 -5
  83. data/rbi/modern_treasury/models/account_detail_create_params.rbi +5 -5
  84. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +94 -21
  85. data/rbi/modern_treasury/models/case_.rbi +20 -10
  86. data/rbi/modern_treasury/models/child_legal_entity.rbi +18 -6
  87. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +20 -0
  88. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +20 -0
  89. data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -5
  90. data/rbi/modern_treasury/models/counterparty_create_params.rbi +87 -170
  91. data/rbi/modern_treasury/models/currency.rbi +1 -0
  92. data/rbi/modern_treasury/models/embeddable_flow.rbi +512 -0
  93. data/rbi/modern_treasury/models/embeddable_flow_create_params.rbi +531 -0
  94. data/rbi/modern_treasury/models/embeddable_flow_list_params.rbi +119 -0
  95. data/rbi/modern_treasury/models/{hold_retrieve_params.rbi → embeddable_flow_retrieve_params.rbi} +2 -2
  96. data/rbi/modern_treasury/models/{hold_update_params.rbi → embeddable_flow_update_params.rbi} +21 -21
  97. data/rbi/modern_treasury/models/expected_payment.rbi +3 -3
  98. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +11 -3
  99. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +11 -3
  100. data/rbi/modern_treasury/models/external_account_create_params.rbi +10 -5
  101. data/rbi/modern_treasury/models/external_account_type.rbi +6 -15
  102. data/rbi/modern_treasury/models/external_account_update_params.rbi +7 -3
  103. data/rbi/modern_treasury/models/identification.rbi +265 -0
  104. data/rbi/modern_treasury/models/identification_create_params.rbi +650 -0
  105. data/rbi/modern_treasury/models/identification_create_request.rbi +650 -0
  106. data/rbi/modern_treasury/models/identification_update_params.rbi +640 -0
  107. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +31 -8
  108. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +24 -28
  109. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +13 -3
  110. data/rbi/modern_treasury/models/internal_account.rbi +313 -27
  111. data/rbi/modern_treasury/models/internal_account_create_params.rbi +91 -25
  112. data/rbi/modern_treasury/models/internal_account_update_params.rbi +79 -3
  113. data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +32 -6
  114. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +32 -6
  115. data/rbi/modern_treasury/models/ledger_account.rbi +0 -5
  116. data/rbi/modern_treasury/models/ledger_account_create_request.rbi +0 -5
  117. data/rbi/modern_treasury/models/legal_entity.rbi +17 -6
  118. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +21 -21
  119. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +69 -0
  120. data/rbi/modern_treasury/models/legal_entity_list_params.rbi +5 -0
  121. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +62 -0
  122. data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
  123. data/rbi/modern_treasury/models/payment_order.rbi +47 -5
  124. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +36 -5
  125. data/rbi/modern_treasury/models/payment_order_create_params.rbi +42 -5
  126. data/rbi/modern_treasury/models/payment_order_subtype.rbi +7 -0
  127. data/rbi/modern_treasury/models/payment_order_update_params.rbi +36 -5
  128. data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
  129. data/rbi/modern_treasury/models/return_object.rbi +35 -5
  130. data/rbi/modern_treasury/models/routing_detail.rbi +5 -0
  131. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
  132. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +5 -0
  133. data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
  134. data/rbi/modern_treasury/models/transaction_list_params.rbi +0 -9
  135. data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +5 -5
  136. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
  137. data/rbi/modern_treasury/models/virtual_account.rbi +13 -0
  138. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +23 -5
  139. data/rbi/modern_treasury/models/virtual_account_update_params.rbi +19 -0
  140. data/rbi/modern_treasury/models.rbi +13 -11
  141. data/rbi/modern_treasury/resources/counterparties.rbi +0 -8
  142. data/rbi/modern_treasury/resources/embeddable_flows.rbi +88 -0
  143. data/rbi/modern_treasury/resources/expected_payments.rbi +2 -2
  144. data/rbi/modern_treasury/resources/external_accounts.rbi +1 -1
  145. data/rbi/modern_treasury/resources/holds.rbi +0 -94
  146. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +10 -7
  147. data/rbi/modern_treasury/resources/internal_accounts.rbi +33 -15
  148. data/rbi/modern_treasury/resources/legal_entities.rbi +9 -0
  149. data/rbi/modern_treasury/resources/payment_orders.rbi +33 -0
  150. data/rbi/modern_treasury/resources/transactions.rbi +0 -2
  151. data/rbi/modern_treasury/resources/virtual_accounts.rbi +9 -0
  152. data/sig/modern_treasury/client.rbs +2 -0
  153. data/sig/modern_treasury/models/account_collection_flow.rbs +3 -1
  154. data/sig/modern_treasury/models/account_detail.rbs +2 -2
  155. data/sig/modern_treasury/models/account_detail_create_params.rbs +2 -2
  156. data/sig/modern_treasury/models/bulk_request_create_params.rbs +44 -14
  157. data/sig/modern_treasury/models/case_.rbs +10 -6
  158. data/sig/modern_treasury/models/child_legal_entity.rbs +6 -1
  159. data/sig/modern_treasury/models/child_legal_entity_create.rbs +9 -1
  160. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +9 -1
  161. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -2
  162. data/sig/modern_treasury/models/counterparty_create_params.rbs +32 -64
  163. data/sig/modern_treasury/models/currency.rbs +2 -0
  164. data/sig/modern_treasury/models/embeddable_flow.rbs +270 -0
  165. data/sig/modern_treasury/models/embeddable_flow_create_params.rbs +219 -0
  166. data/sig/modern_treasury/models/embeddable_flow_list_params.rbs +61 -0
  167. data/sig/modern_treasury/models/{hold_retrieve_params.rbs → embeddable_flow_retrieve_params.rbs} +2 -2
  168. data/sig/modern_treasury/models/embeddable_flow_update_params.rbs +41 -0
  169. data/sig/modern_treasury/models/expected_payment.rbs +4 -4
  170. data/sig/modern_treasury/models/expected_payment_create_params.rbs +8 -4
  171. data/sig/modern_treasury/models/expected_payment_update_params.rbs +8 -4
  172. data/sig/modern_treasury/models/external_account_create_params.rbs +4 -2
  173. data/sig/modern_treasury/models/external_account_type.rbs +5 -11
  174. data/sig/modern_treasury/models/external_account_update_params.rbs +4 -8
  175. data/sig/modern_treasury/models/identification.rbs +257 -1
  176. data/sig/modern_treasury/models/identification_create_params.rbs +262 -2
  177. data/sig/modern_treasury/models/identification_create_request.rbs +262 -2
  178. data/sig/modern_treasury/models/identification_update_params.rbs +257 -1
  179. data/sig/modern_treasury/models/incoming_payment_detail.rbs +12 -3
  180. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +5 -9
  181. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +3 -1
  182. data/sig/modern_treasury/models/internal_account.rbs +144 -14
  183. data/sig/modern_treasury/models/internal_account_create_params.rbs +29 -11
  184. data/sig/modern_treasury/models/internal_account_update_params.rbs +24 -7
  185. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +8 -0
  186. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +8 -0
  187. data/sig/modern_treasury/models/ledger_account.rbs +1 -2
  188. data/sig/modern_treasury/models/ledger_account_create_request.rbs +1 -2
  189. data/sig/modern_treasury/models/legal_entity.rbs +6 -1
  190. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +13 -13
  191. data/sig/modern_treasury/models/legal_entity_create_params.rbs +28 -1
  192. data/sig/modern_treasury/models/legal_entity_list_params.rbs +2 -1
  193. data/sig/modern_treasury/models/legal_entity_update_params.rbs +23 -0
  194. data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
  195. data/sig/modern_treasury/models/payment_order.rbs +19 -2
  196. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +14 -2
  197. data/sig/modern_treasury/models/payment_order_create_params.rbs +19 -2
  198. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -0
  199. data/sig/modern_treasury/models/payment_order_update_params.rbs +14 -2
  200. data/sig/modern_treasury/models/payment_reference.rbs +14 -2
  201. data/sig/modern_treasury/models/return_object.rbs +14 -2
  202. data/sig/modern_treasury/models/routing_detail.rbs +2 -0
  203. data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
  204. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +2 -0
  205. data/sig/modern_treasury/models/third_party_verification.rbs +11 -1
  206. data/sig/modern_treasury/models/transaction_list_params.rbs +0 -7
  207. data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +4 -4
  208. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
  209. data/sig/modern_treasury/models/virtual_account.rbs +5 -0
  210. data/sig/modern_treasury/models/virtual_account_create_params.rbs +13 -2
  211. data/sig/modern_treasury/models/virtual_account_update_params.rbs +6 -1
  212. data/sig/modern_treasury/models.rbs +10 -10
  213. data/sig/modern_treasury/resources/counterparties.rbs +0 -2
  214. data/sig/modern_treasury/resources/embeddable_flows.rbs +32 -0
  215. data/sig/modern_treasury/resources/expected_payments.rbs +2 -2
  216. data/sig/modern_treasury/resources/external_accounts.rbs +1 -1
  217. data/sig/modern_treasury/resources/holds.rbs +0 -31
  218. data/sig/modern_treasury/resources/incoming_payment_details.rbs +1 -1
  219. data/sig/modern_treasury/resources/internal_accounts.rbs +6 -6
  220. data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
  221. data/sig/modern_treasury/resources/payment_orders.rbs +6 -0
  222. data/sig/modern_treasury/resources/transactions.rbs +0 -1
  223. data/sig/modern_treasury/resources/virtual_accounts.rbs +2 -0
  224. metadata +20 -29
  225. data/lib/modern_treasury/models/hold_create_params.rb +0 -74
  226. data/lib/modern_treasury/models/hold_create_response.rb +0 -143
  227. data/lib/modern_treasury/models/hold_list_params.rb +0 -86
  228. data/lib/modern_treasury/models/hold_list_response.rb +0 -143
  229. data/lib/modern_treasury/models/hold_retrieve_response.rb +0 -143
  230. data/lib/modern_treasury/models/hold_update_params.rb +0 -47
  231. data/lib/modern_treasury/models/hold_update_response.rb +0 -143
  232. data/lib/modern_treasury/models/internal_account_request_closure_params.rb +0 -20
  233. data/rbi/modern_treasury/models/hold_create_params.rbi +0 -125
  234. data/rbi/modern_treasury/models/hold_create_response.rbi +0 -232
  235. data/rbi/modern_treasury/models/hold_list_params.rbi +0 -145
  236. data/rbi/modern_treasury/models/hold_list_response.rbi +0 -225
  237. data/rbi/modern_treasury/models/hold_retrieve_response.rbi +0 -234
  238. data/rbi/modern_treasury/models/hold_update_response.rbi +0 -232
  239. data/rbi/modern_treasury/models/internal_account_request_closure_params.rbi +0 -38
  240. data/sig/modern_treasury/models/hold_create_params.rbs +0 -66
  241. data/sig/modern_treasury/models/hold_create_response.rbs +0 -108
  242. data/sig/modern_treasury/models/hold_list_params.rbs +0 -76
  243. data/sig/modern_treasury/models/hold_list_response.rbs +0 -108
  244. data/sig/modern_treasury/models/hold_retrieve_response.rbs +0 -108
  245. data/sig/modern_treasury/models/hold_update_params.rbs +0 -46
  246. data/sig/modern_treasury/models/hold_update_response.rbs +0 -108
  247. data/sig/modern_treasury/models/internal_account_request_closure_params.rbs +0 -23
@@ -45,6 +45,12 @@ module ModernTreasury
45
45
  # @return [Symbol, ModernTreasury::Models::TransactionDirection]
46
46
  required :direction, enum: -> { ModernTreasury::TransactionDirection }
47
47
 
48
+ # @!attribute failure_reason
49
+ # The reason the incoming payment detail failed, or `null`.
50
+ #
51
+ # @return [String, nil]
52
+ required :failure_reason, String, nil?: true
53
+
48
54
  # @!attribute internal_account_id
49
55
  # The ID of the Internal Account for the incoming payment detail. This is always
50
56
  # present.
@@ -115,7 +121,7 @@ module ModernTreasury
115
121
 
116
122
  # @!attribute status
117
123
  # The current status of the incoming payment order. One of `pending`, `completed`,
118
- # or `returned`.
124
+ # `returned`, `failed`, or `held`.
119
125
  #
120
126
  # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetail::Status]
121
127
  required :status, enum: -> { ModernTreasury::IncomingPaymentDetail::Status }
@@ -210,7 +216,7 @@ module ModernTreasury
210
216
  # @return [String, nil]
211
217
  optional :receiving_account_number_safe, String, nil?: true
212
218
 
213
- # @!method initialize(id:, amount:, as_of_date:, created_at:, currency:, data:, direction:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, originating_account_number_safe:, originating_account_number_type:, originating_routing_number:, originating_routing_number_type:, reconciliation_status:, status:, subtype:, transaction_id:, transaction_line_item_id:, type:, updated_at:, vendor_id:, virtual_account:, virtual_account_id:, originating_account_number: nil, originating_party_address: nil, originating_party_name: nil, originating_party_vendor_identifier: nil, receiving_account_number: nil, receiving_account_number_safe: nil)
219
+ # @!method initialize(id:, amount:, as_of_date:, created_at:, currency:, data:, direction:, failure_reason:, internal_account_id:, ledger_transaction_id:, live_mode:, metadata:, object:, originating_account_number_safe:, originating_account_number_type:, originating_routing_number:, originating_routing_number_type:, reconciliation_status:, status:, subtype:, transaction_id:, transaction_line_item_id:, type:, updated_at:, vendor_id:, virtual_account:, virtual_account_id:, originating_account_number: nil, originating_party_address: nil, originating_party_name: nil, originating_party_vendor_identifier: nil, receiving_account_number: nil, receiving_account_number_safe: nil)
214
220
  # Some parameter documentations has been truncated, see
215
221
  # {ModernTreasury::Models::IncomingPaymentDetail} for more details.
216
222
  #
@@ -228,6 +234,8 @@ module ModernTreasury
228
234
  #
229
235
  # @param direction [Symbol, ModernTreasury::Models::TransactionDirection] One of `credit` or `debit`.
230
236
  #
237
+ # @param failure_reason [String, nil] The reason the incoming payment detail failed, or `null`.
238
+ #
231
239
  # @param internal_account_id [String] The ID of the Internal Account for the incoming payment detail. This is always p
232
240
  #
233
241
  # @param ledger_transaction_id [String, nil] The ID of the ledger transaction linked to the incoming payment detail or `null`
@@ -286,6 +294,7 @@ module ModernTreasury
286
294
 
287
295
  ARBITRUM_ADDRESS = :arbitrum_address
288
296
  AU_NUMBER = :au_number
297
+ AVALANCHE_ADDRESS = :avalanche_address
289
298
  BASE_ADDRESS = :base_address
290
299
  CARD_TOKEN = :card_token
291
300
  CLABE = :clabe
@@ -295,7 +304,6 @@ module ModernTreasury
295
304
  ID_NUMBER = :id_number
296
305
  NZ_NUMBER = :nz_number
297
306
  OTHER = :other
298
- PAN = :pan
299
307
  POLYGON_ADDRESS = :polygon_address
300
308
  SG_NUMBER = :sg_number
301
309
  SOLANA_ADDRESS = :solana_address
@@ -329,6 +337,7 @@ module ModernTreasury
329
337
  SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
330
338
  SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
331
339
  SWIFT = :swift
340
+ VASP = :vasp
332
341
  ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
333
342
 
334
343
  # @!method self.values
@@ -350,13 +359,15 @@ module ModernTreasury
350
359
  end
351
360
 
352
361
  # The current status of the incoming payment order. One of `pending`, `completed`,
353
- # or `returned`.
362
+ # `returned`, `failed`, or `held`.
354
363
  #
355
364
  # @see ModernTreasury::Models::IncomingPaymentDetail#status
356
365
  module Status
357
366
  extend ModernTreasury::Internal::Type::Enum
358
367
 
359
368
  COMPLETED = :completed
369
+ FAILED = :failed
370
+ HELD = :held
360
371
  PENDING = :pending
361
372
  RETURNED = :returned
362
373
 
@@ -7,6 +7,12 @@ module ModernTreasury
7
7
  extend ModernTreasury::Internal::Type::RequestParameters::Converter
8
8
  include ModernTreasury::Internal::Type::RequestParameters
9
9
 
10
+ # @!attribute type
11
+ # One of `ach`, `wire`, `check`.
12
+ #
13
+ # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type]
14
+ required :type, enum: -> { ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Type }
15
+
10
16
  # @!attribute amount
11
17
  # Value in specified currency's smallest unit. e.g. $10 would be represented
12
18
  # as 1000.
@@ -28,7 +34,9 @@ module ModernTreasury
28
34
 
29
35
  # @!attribute data
30
36
  # An object passed through to the simulated IPD that could reflect what a vendor
31
- # would pass.
37
+ # would pass. For `type: check` with `subtype: lockbox` (sandbox Modern Treasury
38
+ # payment accounts only), `data` must include `payor_name`, otherwise the request
39
+ # returns 422.
32
40
  #
33
41
  # @return [Object, nil]
34
42
  optional :data, ModernTreasury::Internal::Type::Unknown, nil?: true
@@ -53,17 +61,12 @@ module ModernTreasury
53
61
 
54
62
  # @!attribute subtype
55
63
  # An additional layer of classification for the type of incoming payment detail,
56
- # e.g. `ethereum` for a `stablecoin` type.
64
+ # e.g. `ethereum` for a `stablecoin` type. For `type: check`, `subtype: lockbox`
65
+ # simulates a lockbox check deposit.
57
66
  #
58
67
  # @return [String, nil]
59
68
  optional :subtype, String, nil?: true
60
69
 
61
- # @!attribute type
62
- # One of `ach`, `wire`, `check`.
63
- #
64
- # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type, nil]
65
- optional :type, enum: -> { ModernTreasury::IncomingPaymentDetailCreateAsyncParams::Type }
66
-
67
70
  # @!attribute virtual_account_id
68
71
  # An optional parameter to associate the incoming payment detail to a virtual
69
72
  # account.
@@ -71,11 +74,13 @@ module ModernTreasury
71
74
  # @return [String, nil]
72
75
  optional :virtual_account_id, String, nil?: true
73
76
 
74
- # @!method initialize(amount: nil, as_of_date: nil, currency: nil, data: nil, description: nil, direction: nil, internal_account_id: nil, subtype: nil, type: nil, virtual_account_id: nil, request_options: {})
77
+ # @!method initialize(type:, amount: nil, as_of_date: nil, currency: nil, data: nil, description: nil, direction: nil, internal_account_id: nil, subtype: nil, virtual_account_id: nil, request_options: {})
75
78
  # Some parameter documentations has been truncated, see
76
79
  # {ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams} for more
77
80
  # details.
78
81
  #
82
+ # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type] One of `ach`, `wire`, `check`.
83
+ #
79
84
  # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
80
85
  #
81
86
  # @param as_of_date [Date, nil] Defaults to today.
@@ -92,8 +97,6 @@ module ModernTreasury
92
97
  #
93
98
  # @param subtype [String, nil] An additional layer of classification for the type of incoming payment detail, e
94
99
  #
95
- # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailCreateAsyncParams::Type] One of `ach`, `wire`, `check`.
96
- #
97
100
  # @param virtual_account_id [String, nil] An optional parameter to associate the incoming payment detail to a virtual acco
98
101
  #
99
102
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
@@ -47,7 +47,7 @@ module ModernTreasury
47
47
 
48
48
  # @!attribute status
49
49
  # The current status of the incoming payment order. One of `pending`, `completed`,
50
- # or `returned`.
50
+ # `returned`, `failed`, or `held`.
51
51
  #
52
52
  # @return [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Status, nil]
53
53
  optional :status, enum: -> { ModernTreasury::IncomingPaymentDetailListParams::Status }
@@ -100,11 +100,13 @@ module ModernTreasury
100
100
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
101
101
 
102
102
  # The current status of the incoming payment order. One of `pending`, `completed`,
103
- # or `returned`.
103
+ # `returned`, `failed`, or `held`.
104
104
  module Status
105
105
  extend ModernTreasury::Internal::Type::Enum
106
106
 
107
107
  COMPLETED = :completed
108
+ FAILED = :failed
109
+ HELD = :held
108
110
  PENDING = :pending
109
111
  RETURNED = :returned
110
112
 
@@ -29,6 +29,15 @@ module ModernTreasury
29
29
  # @return [Symbol, ModernTreasury::Models::InternalAccount::AccountType, nil]
30
30
  required :account_type, enum: -> { ModernTreasury::InternalAccount::AccountType }, nil?: true
31
31
 
32
+ # @!attribute allowed_ach_debit_company_ids
33
+ # The ACH Company IDs allowed to debit this account. `null` allows every company.
34
+ # An empty array allows none. Debits from any other company are returned with code
35
+ # R10. Only applicable to debitable accounts under a Modern Treasury PSP
36
+ # connection.
37
+ #
38
+ # @return [Array<String>, nil]
39
+ required :allowed_ach_debit_company_ids, ModernTreasury::Internal::Type::ArrayOf[String], nil?: true
40
+
32
41
  # @!attribute connection
33
42
  # Specifies which financial institution the accounts belong to.
34
43
  #
@@ -131,7 +140,8 @@ module ModernTreasury
131
140
  required :party_name, String
132
141
 
133
142
  # @!attribute party_type
134
- # Either individual or business.
143
+ # Either individual or business. Inherits from associated LegalEntity
144
+ # legal_entity_type, if one exists.
135
145
  #
136
146
  # @return [Symbol, ModernTreasury::Models::InternalAccount::PartyType, nil]
137
147
  required :party_type, enum: -> { ModernTreasury::InternalAccount::PartyType }, nil?: true
@@ -148,6 +158,14 @@ module ModernTreasury
148
158
  # @return [Symbol, ModernTreasury::Models::InternalAccount::Status, nil]
149
159
  required :status, enum: -> { ModernTreasury::InternalAccount::Status }, nil?: true
150
160
 
161
+ # @!attribute title
162
+ # The account title at the financial institution. Defaults to the party name
163
+ # unless a custom title was set on creation. Custom titles are only applicable to
164
+ # accounts created under supported connections.
165
+ #
166
+ # @return [String]
167
+ required :title, String
168
+
151
169
  # @!attribute updated_at
152
170
  #
153
171
  # @return [Time]
@@ -159,7 +177,14 @@ module ModernTreasury
159
177
  # @return [String, nil]
160
178
  required :vendor_id, String, nil?: true
161
179
 
162
- # @!method initialize(id:, account_capabilities:, account_details:, account_type:, connection:, contra_ledger_account_id:, counterparty_id:, created_at:, currency:, debitable:, external_id:, ledger_account_id:, legal_entity_id:, live_mode:, metadata:, name:, object:, parent_account_id:, party_address:, party_name:, party_type:, routing_details:, status:, updated_at:, vendor_id:)
180
+ # @!attribute latest_balances
181
+ # An array of `Balance` objects from the account's latest balance report.
182
+ #
183
+ # @return [Array<ModernTreasury::Models::InternalAccount::LatestBalance>, nil]
184
+ optional :latest_balances,
185
+ -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::InternalAccount::LatestBalance] }
186
+
187
+ # @!method initialize(id:, account_capabilities:, account_details:, account_type:, allowed_ach_debit_company_ids:, connection:, contra_ledger_account_id:, counterparty_id:, created_at:, currency:, debitable:, external_id:, ledger_account_id:, legal_entity_id:, live_mode:, metadata:, name:, object:, parent_account_id:, party_address:, party_name:, party_type:, routing_details:, status:, title:, updated_at:, vendor_id:, latest_balances: nil)
163
188
  # Some parameter documentations has been truncated, see
164
189
  # {ModernTreasury::Models::InternalAccount} for more details.
165
190
  #
@@ -171,6 +196,8 @@ module ModernTreasury
171
196
  #
172
197
  # @param account_type [Symbol, ModernTreasury::Models::InternalAccount::AccountType, nil] Can be checking, savings or other.
173
198
  #
199
+ # @param allowed_ach_debit_company_ids [Array<String>, nil] The ACH Company IDs allowed to debit this account. `null` allows every company.
200
+ #
174
201
  # @param connection [ModernTreasury::Models::Connection] Specifies which financial institution the accounts belong to.
175
202
  #
176
203
  # @param contra_ledger_account_id [String, nil] If the internal account links to a contra ledger account in Modern Treasury, the
@@ -203,15 +230,19 @@ module ModernTreasury
203
230
  #
204
231
  # @param party_name [String] The legal name of the entity which owns the account.
205
232
  #
206
- # @param party_type [Symbol, ModernTreasury::Models::InternalAccount::PartyType, nil] Either individual or business.
233
+ # @param party_type [Symbol, ModernTreasury::Models::InternalAccount::PartyType, nil] Either individual or business. Inherits from associated LegalEntity legal_entity
207
234
  #
208
235
  # @param routing_details [Array<ModernTreasury::Models::RoutingDetail>] An array of routing detail objects.
209
236
  #
210
237
  # @param status [Symbol, ModernTreasury::Models::InternalAccount::Status, nil] The internal account status.
211
238
  #
239
+ # @param title [String] The account title at the financial institution. Defaults to the party name unles
240
+ #
212
241
  # @param updated_at [Time]
213
242
  #
214
243
  # @param vendor_id [String, nil] The vendor ID associated with this account.
244
+ #
245
+ # @param latest_balances [Array<ModernTreasury::Models::InternalAccount::LatestBalance>] An array of `Balance` objects from the account's latest balance report.
215
246
 
216
247
  class AccountCapability < ModernTreasury::Internal::Type::BaseModel
217
248
  # @!attribute id
@@ -333,25 +364,23 @@ module ModernTreasury
333
364
  module AccountType
334
365
  extend ModernTreasury::Internal::Type::Enum
335
366
 
336
- BASE_WALLET = :base_wallet
337
367
  CASH = :cash
338
368
  CHECKING = :checking
339
- CRYPTO_WALLET = :crypto_wallet
340
- ETHEREUM_WALLET = :ethereum_wallet
341
369
  GENERAL_LEDGER = :general_ledger
370
+ HOSTED_WALLET = :hosted_wallet
342
371
  LOAN = :loan
343
372
  NON_RESIDENT = :non_resident
344
373
  OTHER = :other
345
374
  OVERDRAFT = :overdraft
346
- POLYGON_WALLET = :polygon_wallet
347
375
  SAVINGS = :savings
348
- SOLANA_WALLET = :solana_wallet
376
+ SELF_HOSTED_WALLET = :self_hosted_wallet
349
377
 
350
378
  # @!method self.values
351
379
  # @return [Array<Symbol>]
352
380
  end
353
381
 
354
- # Either individual or business.
382
+ # Either individual or business. Inherits from associated LegalEntity
383
+ # legal_entity_type, if one exists.
355
384
  #
356
385
  # @see ModernTreasury::Models::InternalAccount#party_type
357
386
  module PartyType
@@ -379,6 +408,158 @@ module ModernTreasury
379
408
  # @!method self.values
380
409
  # @return [Array<Symbol>]
381
410
  end
411
+
412
+ class LatestBalance < ModernTreasury::Internal::Type::BaseModel
413
+ # @!attribute id
414
+ #
415
+ # @return [String]
416
+ required :id, String
417
+
418
+ # @!attribute amount
419
+ # The balance amount.
420
+ #
421
+ # @return [Integer]
422
+ required :amount, Integer
423
+
424
+ # @!attribute amount_string
425
+ # The amount of the balance as a string, preserving full precision for values that
426
+ # may exceed safe integer limits in some languages.
427
+ #
428
+ # @return [String]
429
+ required :amount_string, String
430
+
431
+ # @!attribute as_of_date
432
+ # The date on which the balance became true for the account.
433
+ #
434
+ # @return [Date, nil]
435
+ required :as_of_date, Date, nil?: true
436
+
437
+ # @!attribute as_of_time
438
+ # The time on which the balance became true for the account.
439
+ #
440
+ # @return [Time, nil]
441
+ required :as_of_time, Time, nil?: true
442
+
443
+ # @!attribute balance_type
444
+ # The specific type of balance reported. One of `opening_ledger`,
445
+ # `closing_ledger`, `current_ledger`, `opening_available`,
446
+ # `opening_available_next_business_day`, `closing_available`,
447
+ # `closing_pending_inflows`, `closing_pending_outflows`, `current_available`,
448
+ # 'previously_closed_book', `current_pending_inflows`, `current_pending_outflows`,
449
+ # or `other`.
450
+ #
451
+ # @return [Symbol, ModernTreasury::Models::InternalAccount::LatestBalance::BalanceType]
452
+ required :balance_type, enum: -> { ModernTreasury::InternalAccount::LatestBalance::BalanceType }
453
+
454
+ # @!attribute created_at
455
+ #
456
+ # @return [Time]
457
+ required :created_at, Time
458
+
459
+ # @!attribute currency
460
+ # The currency of the balance.
461
+ #
462
+ # @return [Symbol, ModernTreasury::Models::Currency]
463
+ required :currency, enum: -> { ModernTreasury::Currency }
464
+
465
+ # @!attribute live_mode
466
+ # This field will be true if this object exists in the live environment or false
467
+ # if it exists in the test environment.
468
+ #
469
+ # @return [Boolean]
470
+ required :live_mode, ModernTreasury::Internal::Type::Boolean
471
+
472
+ # @!attribute object
473
+ #
474
+ # @return [String]
475
+ required :object, String
476
+
477
+ # @!attribute updated_at
478
+ #
479
+ # @return [Time]
480
+ required :updated_at, Time
481
+
482
+ # @!attribute value_date
483
+ # The date on which the balance becomes available.
484
+ #
485
+ # @return [Date, nil]
486
+ required :value_date, Date, nil?: true
487
+
488
+ # @!attribute vendor_code
489
+ # The code used by the bank when reporting this specific balance.
490
+ #
491
+ # @return [String]
492
+ required :vendor_code, String
493
+
494
+ # @!attribute vendor_code_type
495
+ # The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`,
496
+ # `bnk_dev`, `cleartouch`, `currencycloud`, `cross_river`, `dwolla`, `evolve`,
497
+ # `goldman_sachs`, `iso20022`, `jpmc`, `mx`, `silvergate`, `swift`, or `us_bank`.
498
+ #
499
+ # @return [String, nil]
500
+ required :vendor_code_type, String, nil?: true
501
+
502
+ # @!method initialize(id:, amount:, amount_string:, as_of_date:, as_of_time:, balance_type:, created_at:, currency:, live_mode:, object:, updated_at:, value_date:, vendor_code:, vendor_code_type:)
503
+ # Some parameter documentations has been truncated, see
504
+ # {ModernTreasury::Models::InternalAccount::LatestBalance} for more details.
505
+ #
506
+ # @param id [String]
507
+ #
508
+ # @param amount [Integer] The balance amount.
509
+ #
510
+ # @param amount_string [String] The amount of the balance as a string, preserving full precision for values that
511
+ #
512
+ # @param as_of_date [Date, nil] The date on which the balance became true for the account.
513
+ #
514
+ # @param as_of_time [Time, nil] The time on which the balance became true for the account.
515
+ #
516
+ # @param balance_type [Symbol, ModernTreasury::Models::InternalAccount::LatestBalance::BalanceType] The specific type of balance reported. One of `opening_ledger`, `closing_ledger`
517
+ #
518
+ # @param created_at [Time]
519
+ #
520
+ # @param currency [Symbol, ModernTreasury::Models::Currency] The currency of the balance.
521
+ #
522
+ # @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
523
+ #
524
+ # @param object [String]
525
+ #
526
+ # @param updated_at [Time]
527
+ #
528
+ # @param value_date [Date, nil] The date on which the balance becomes available.
529
+ #
530
+ # @param vendor_code [String] The code used by the bank when reporting this specific balance.
531
+ #
532
+ # @param vendor_code_type [String, nil] The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk
533
+
534
+ # The specific type of balance reported. One of `opening_ledger`,
535
+ # `closing_ledger`, `current_ledger`, `opening_available`,
536
+ # `opening_available_next_business_day`, `closing_available`,
537
+ # `closing_pending_inflows`, `closing_pending_outflows`, `current_available`,
538
+ # 'previously_closed_book', `current_pending_inflows`, `current_pending_outflows`,
539
+ # or `other`.
540
+ #
541
+ # @see ModernTreasury::Models::InternalAccount::LatestBalance#balance_type
542
+ module BalanceType
543
+ extend ModernTreasury::Internal::Type::Enum
544
+
545
+ CLOSING_AVAILABLE = :closing_available
546
+ CLOSING_LEDGER = :closing_ledger
547
+ CLOSING_PENDING_INFLOWS = :closing_pending_inflows
548
+ CLOSING_PENDING_OUTFLOWS = :closing_pending_outflows
549
+ CURRENT_AVAILABLE = :current_available
550
+ CURRENT_LEDGER = :current_ledger
551
+ CURRENT_PENDING_INFLOWS = :current_pending_inflows
552
+ CURRENT_PENDING_OUTFLOWS = :current_pending_outflows
553
+ OPENING_AVAILABLE = :opening_available
554
+ OPENING_AVAILABLE_NEXT_BUSINESS_DAY = :opening_available_next_business_day
555
+ OPENING_LEDGER = :opening_ledger
556
+ OTHER = :other
557
+ PREVIOUSLY_CLOSED_BOOK = :previously_closed_book
558
+
559
+ # @!method self.values
560
+ # @return [Array<Symbol>]
561
+ end
562
+ end
382
563
  end
383
564
  end
384
565
  end
@@ -34,6 +34,15 @@ module ModernTreasury
34
34
  # @return [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType, nil]
35
35
  optional :account_type, enum: -> { ModernTreasury::InternalAccountCreateParams::AccountType }
36
36
 
37
+ # @!attribute allowed_ach_debit_company_ids
38
+ # The ACH Company IDs allowed to debit this account. `null` allows every company.
39
+ # An empty array allows none. Debits from any other company are returned with code
40
+ # R10. Only applicable to debitable accounts under a Modern Treasury PSP
41
+ # connection.
42
+ #
43
+ # @return [Array<String>, nil]
44
+ optional :allowed_ach_debit_company_ids, ModernTreasury::Internal::Type::ArrayOf[String], nil?: true
45
+
37
46
  # @!attribute connection_id
38
47
  # The identifier of the financial institution the account belongs to. If not
39
48
  # provided, defaults to the default connection, or the sole connection if only one
@@ -94,6 +103,13 @@ module ModernTreasury
94
103
  # @return [String, nil]
95
104
  optional :party_name, String, nil?: true
96
105
 
106
+ # @!attribute party_type
107
+ # Either individual or business. Inherits from associated LegalEntity
108
+ # legal_entity_type, if one exists.
109
+ #
110
+ # @return [Symbol, ModernTreasury::Models::InternalAccountCreateParams::PartyType, nil]
111
+ optional :party_type, enum: -> { ModernTreasury::InternalAccountCreateParams::PartyType }, nil?: true
112
+
97
113
  # @!attribute requested_account_number_types
98
114
  # An array of account number types requested for provisioning.
99
115
  #
@@ -101,6 +117,15 @@ module ModernTreasury
101
117
  optional :requested_account_number_types,
102
118
  -> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::InternalAccountCreateParams::RequestedAccountNumberType] }
103
119
 
120
+ # @!attribute title
121
+ # The account title at the financial institution, used in place of the party name.
122
+ # Defaults to the party name if not set. Only applicable to accounts created under
123
+ # supported connections. Please reach out to your customer success manager to
124
+ # enable this capability for your program.
125
+ #
126
+ # @return [String, nil]
127
+ optional :title, String, nil?: true
128
+
104
129
  # @!attribute vendor_attributes
105
130
  # A hash of vendor specific attributes that will be used when creating the account
106
131
  # at the vendor specified by the given connection.
@@ -108,7 +133,7 @@ module ModernTreasury
108
133
  # @return [Hash{Symbol=>String}, nil]
109
134
  optional :vendor_attributes, ModernTreasury::Internal::Type::HashOf[String]
110
135
 
111
- # @!method initialize(currency:, name:, account_capabilities: nil, account_type: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, requested_account_number_types: nil, vendor_attributes: nil, request_options: {})
136
+ # @!method initialize(currency:, name:, account_capabilities: nil, account_type: nil, allowed_ach_debit_company_ids: nil, connection_id: nil, counterparty_id: nil, debitable: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, party_name: nil, party_type: nil, requested_account_number_types: nil, title: nil, vendor_attributes: nil, request_options: {})
112
137
  # Some parameter documentations has been truncated, see
113
138
  # {ModernTreasury::Models::InternalAccountCreateParams} for more details.
114
139
  #
@@ -120,6 +145,8 @@ module ModernTreasury
120
145
  #
121
146
  # @param account_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType] The account type, used to provision the appropriate account at the financial ins
122
147
  #
148
+ # @param allowed_ach_debit_company_ids [Array<String>, nil] The ACH Company IDs allowed to debit this account. `null` allows every company.
149
+ #
123
150
  # @param connection_id [String] The identifier of the financial institution the account belongs to. If not provi
124
151
  #
125
152
  # @param counterparty_id [String] The Counterparty associated to this account.
@@ -138,8 +165,12 @@ module ModernTreasury
138
165
  #
139
166
  # @param party_name [String, nil] The legal name of the entity which owns the account.
140
167
  #
168
+ # @param party_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::PartyType, nil] Either individual or business. Inherits from associated LegalEntity legal_entity
169
+ #
141
170
  # @param requested_account_number_types [Array<Symbol, ModernTreasury::Models::InternalAccountCreateParams::RequestedAccountNumberType>] An array of account number types requested for provisioning.
142
171
  #
172
+ # @param title [String, nil] The account title at the financial institution, used in place of the party name.
173
+ #
143
174
  # @param vendor_attributes [Hash{Symbol=>String}] A hash of vendor specific attributes that will be used when creating the account
144
175
  #
145
176
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
@@ -280,19 +311,14 @@ module ModernTreasury
280
311
  module AccountType
281
312
  extend ModernTreasury::Internal::Type::Enum
282
313
 
283
- BASE_WALLET = :base_wallet
284
314
  CASH = :cash
285
315
  CHECKING = :checking
286
- CRYPTO_WALLET = :crypto_wallet
287
- ETHEREUM_WALLET = :ethereum_wallet
288
316
  GENERAL_LEDGER = :general_ledger
289
317
  LOAN = :loan
290
318
  NON_RESIDENT = :non_resident
291
319
  OTHER = :other
292
320
  OVERDRAFT = :overdraft
293
- POLYGON_WALLET = :polygon_wallet
294
321
  SAVINGS = :savings
295
- SOLANA_WALLET = :solana_wallet
296
322
 
297
323
  # @!method self.values
298
324
  # @return [Array<Symbol>]
@@ -355,10 +381,23 @@ module ModernTreasury
355
381
  # @param line2 [String]
356
382
  end
357
383
 
384
+ # Either individual or business. Inherits from associated LegalEntity
385
+ # legal_entity_type, if one exists.
386
+ module PartyType
387
+ extend ModernTreasury::Internal::Type::Enum
388
+
389
+ INDIVIDUAL = :individual
390
+ BUSINESS = :business
391
+
392
+ # @!method self.values
393
+ # @return [Array<Symbol>]
394
+ end
395
+
358
396
  module RequestedAccountNumberType
359
397
  extend ModernTreasury::Internal::Type::Enum
360
398
 
361
399
  ARBITRUM_ADDRESS = :arbitrum_address
400
+ AVALANCHE_ADDRESS = :avalanche_address
362
401
  BASE_ADDRESS = :base_address
363
402
  ETHEREUM_ADDRESS = :ethereum_address
364
403
  POLYGON_ADDRESS = :polygon_address
@@ -12,6 +12,15 @@ module ModernTreasury
12
12
  # @return [String]
13
13
  required :id, String
14
14
 
15
+ # @!attribute allowed_ach_debit_company_ids
16
+ # The ACH Company IDs allowed to debit this account. `null` allows every company.
17
+ # An empty array allows none. Debits from any other company are returned with code
18
+ # R10. Only applicable to debitable accounts under a Modern Treasury PSP
19
+ # connection.
20
+ #
21
+ # @return [Array<String>, nil]
22
+ optional :allowed_ach_debit_company_ids, ModernTreasury::Internal::Type::ArrayOf[String], nil?: true
23
+
15
24
  # @!attribute contra_ledger_account_id
16
25
  # The Contra Ledger Account associated to this account.
17
26
  #
@@ -62,7 +71,14 @@ module ModernTreasury
62
71
  # accurate.
63
72
  #
64
73
  # @return [ModernTreasury::Models::AddressRequest, nil]
65
- optional :party_address, -> { ModernTreasury::AddressRequest }
74
+ optional :party_address, -> { ModernTreasury::AddressRequest }, nil?: true
75
+
76
+ # @!attribute party_type
77
+ # Either individual or business. Inherits from associated LegalEntity
78
+ # legal_entity_type, if one exists.
79
+ #
80
+ # @return [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::PartyType, nil]
81
+ optional :party_type, enum: -> { ModernTreasury::InternalAccountUpdateParams::PartyType }, nil?: true
66
82
 
67
83
  # @!attribute status
68
84
  # Requests closure of the internal account. The resulting status may be `closed`
@@ -71,12 +87,14 @@ module ModernTreasury
71
87
  # @return [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::Status, nil]
72
88
  optional :status, enum: -> { ModernTreasury::InternalAccountUpdateParams::Status }
73
89
 
74
- # @!method initialize(id:, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, party_address: nil, status: nil, request_options: {})
90
+ # @!method initialize(id:, allowed_ach_debit_company_ids: nil, contra_ledger_account_id: nil, counterparty_id: nil, external_id: nil, ledger_account_id: nil, metadata: nil, name: nil, parent_account_id: nil, party_address: nil, party_type: nil, status: nil, request_options: {})
75
91
  # Some parameter documentations has been truncated, see
76
92
  # {ModernTreasury::Models::InternalAccountUpdateParams} for more details.
77
93
  #
78
94
  # @param id [String]
79
95
  #
96
+ # @param allowed_ach_debit_company_ids [Array<String>, nil] The ACH Company IDs allowed to debit this account. `null` allows every company.
97
+ #
80
98
  # @param contra_ledger_account_id [String] The Contra Ledger Account associated to this account.
81
99
  #
82
100
  # @param counterparty_id [String] The Counterparty associated to this account.
@@ -91,12 +109,26 @@ module ModernTreasury
91
109
  #
92
110
  # @param parent_account_id [String] The parent internal account for this account.
93
111
  #
94
- # @param party_address [ModernTreasury::Models::AddressRequest] The address associated with the owner of the internal account. Updating this val
112
+ # @param party_address [ModernTreasury::Models::AddressRequest, nil] The address associated with the owner of the internal account. Updating this val
113
+ #
114
+ # @param party_type [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::PartyType, nil] Either individual or business. Inherits from associated LegalEntity legal_entity
95
115
  #
96
116
  # @param status [Symbol, ModernTreasury::Models::InternalAccountUpdateParams::Status] Requests closure of the internal account. The resulting status may be `closed` f
97
117
  #
98
118
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
99
119
 
120
+ # Either individual or business. Inherits from associated LegalEntity
121
+ # legal_entity_type, if one exists.
122
+ module PartyType
123
+ extend ModernTreasury::Internal::Type::Enum
124
+
125
+ INDIVIDUAL = :individual
126
+ BUSINESS = :business
127
+
128
+ # @!method self.values
129
+ # @return [Array<Symbol>]
130
+ end
131
+
100
132
  # Requests closure of the internal account. The resulting status may be `closed`
101
133
  # for vendors that close synchronously.
102
134
  module Status