modern_treasury 0.27.0 → 0.28.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 (207) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +45 -0
  3. data/README.md +4 -4
  4. data/lib/modern_treasury/client.rb +14 -0
  5. data/lib/modern_treasury/internal/transport/base_client.rb +5 -0
  6. data/lib/modern_treasury/models/bulk_request_create_params.rb +65 -190
  7. data/lib/modern_treasury/models/child_legal_entity.rb +121 -3
  8. data/lib/modern_treasury/models/child_legal_entity_create.rb +35 -1
  9. data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +38 -1
  10. data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
  11. data/lib/modern_treasury/models/counterparty_create_params.rb +38 -10
  12. data/lib/modern_treasury/models/currency.rb +0 -2
  13. data/lib/modern_treasury/models/document.rb +1 -73
  14. data/lib/modern_treasury/models/document_create_params.rb +11 -11
  15. data/lib/modern_treasury/models/document_list_params.rb +11 -11
  16. data/lib/modern_treasury/models/expected_payment.rb +2 -3
  17. data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
  18. data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -12
  19. data/lib/modern_treasury/models/expected_payment_type.rb +1 -9
  20. data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
  21. data/lib/modern_treasury/models/external_account_create_params.rb +0 -9
  22. data/lib/modern_treasury/models/external_account_verify_params.rb +0 -7
  23. data/lib/modern_treasury/models/external_account_verify_response.rb +0 -7
  24. data/lib/modern_treasury/models/hold_list_params.rb +8 -11
  25. data/lib/modern_treasury/models/identification_create_request.rb +75 -0
  26. data/lib/modern_treasury/models/incoming_payment_detail.rb +3 -9
  27. data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +0 -2
  28. data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +3 -7
  29. data/lib/modern_treasury/models/internal_account.rb +12 -8
  30. data/lib/modern_treasury/models/internal_account_create_params.rb +35 -30
  31. data/lib/modern_treasury/models/internal_account_list_params.rb +0 -7
  32. data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -7
  33. data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
  34. data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +20 -11
  35. data/lib/modern_treasury/models/invoice.rb +6 -6
  36. data/lib/modern_treasury/models/invoice_create_params.rb +3 -4
  37. data/lib/modern_treasury/models/invoice_update_params.rb +3 -4
  38. data/lib/modern_treasury/models/ledger_balance.rb +22 -1
  39. data/lib/modern_treasury/models/ledger_entry.rb +10 -1
  40. data/lib/modern_treasury/models/ledger_entry_create_request.rb +19 -10
  41. data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +69 -10
  42. data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
  43. data/lib/modern_treasury/models/legal_entity.rb +121 -3
  44. data/lib/modern_treasury/models/legal_entity_address_create_request.rb +14 -1
  45. data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
  46. data/lib/modern_treasury/models/legal_entity_create_params.rb +34 -1
  47. data/lib/modern_treasury/models/legal_entity_update_params.rb +34 -1
  48. data/lib/modern_treasury/models/legal_entity_update_status_params.rb +46 -0
  49. data/lib/modern_treasury/models/payment_order.rb +6 -9
  50. data/lib/modern_treasury/models/payment_order_create_async_params.rb +4 -14
  51. data/lib/modern_treasury/models/payment_order_create_params.rb +15 -25
  52. data/lib/modern_treasury/models/payment_order_list_params.rb +0 -7
  53. data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
  54. data/lib/modern_treasury/models/payment_order_type.rb +2 -10
  55. data/lib/modern_treasury/models/payment_order_update_params.rb +4 -14
  56. data/lib/modern_treasury/models/payment_reference.rb +2 -4
  57. data/lib/modern_treasury/models/reconciliation_rule.rb +3 -12
  58. data/lib/modern_treasury/models/return_object.rb +8 -7
  59. data/lib/modern_treasury/models/routing_detail.rb +0 -9
  60. data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -9
  61. data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -7
  62. data/lib/modern_treasury/models/third_party_verification.rb +2 -0
  63. data/lib/modern_treasury/models/transaction.rb +17 -15
  64. data/lib/modern_treasury/models/transaction_create_params.rb +23 -21
  65. data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
  66. data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -9
  67. data/lib/modern_treasury/models.rb +2 -0
  68. data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
  69. data/lib/modern_treasury/resources/expected_payments.rb +3 -3
  70. data/lib/modern_treasury/resources/holds.rb +3 -3
  71. data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
  72. data/lib/modern_treasury/resources/internal_accounts.rb +8 -6
  73. data/lib/modern_treasury/resources/invoices.rb +2 -2
  74. data/lib/modern_treasury/resources/legal_entities.rb +33 -2
  75. data/lib/modern_treasury/resources/payment_orders.rb +3 -3
  76. data/lib/modern_treasury/resources/transactions.rb +5 -3
  77. data/lib/modern_treasury/version.rb +1 -1
  78. data/lib/modern_treasury.rb +1 -0
  79. data/rbi/modern_treasury/models/bulk_request_create_params.rbi +104 -462
  80. data/rbi/modern_treasury/models/child_legal_entity.rbi +452 -5
  81. data/rbi/modern_treasury/models/child_legal_entity_create.rbi +68 -0
  82. data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +74 -0
  83. data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
  84. data/rbi/modern_treasury/models/counterparty_create_params.rbi +74 -45
  85. data/rbi/modern_treasury/models/currency.rbi +0 -2
  86. data/rbi/modern_treasury/models/document.rbi +0 -87
  87. data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
  88. data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
  89. data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
  90. data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
  91. data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -41
  92. data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -12
  93. data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
  94. data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -45
  95. data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -35
  96. data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -35
  97. data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
  98. data/rbi/modern_treasury/models/identification_create_request.rbi +375 -0
  99. data/rbi/modern_treasury/models/incoming_payment_detail.rbi +3 -26
  100. data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -10
  101. data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +3 -16
  102. data/rbi/modern_treasury/models/internal_account.rbi +14 -35
  103. data/rbi/modern_treasury/models/internal_account_create_params.rbi +47 -59
  104. data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -35
  105. data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -35
  106. data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
  107. data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +31 -15
  108. data/rbi/modern_treasury/models/invoice.rbi +6 -6
  109. data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -6
  110. data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -6
  111. data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
  112. data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
  113. data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +26 -10
  114. data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +89 -13
  115. data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
  116. data/rbi/modern_treasury/models/legal_entity.rbi +451 -5
  117. data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +18 -3
  118. data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
  119. data/rbi/modern_treasury/models/legal_entity_create_params.rbi +68 -0
  120. data/rbi/modern_treasury/models/legal_entity_update_params.rbi +68 -0
  121. data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +96 -0
  122. data/rbi/modern_treasury/models/payment_order.rbi +16 -28
  123. data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +6 -53
  124. data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -75
  125. data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -35
  126. data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
  127. data/rbi/modern_treasury/models/payment_order_type.rbi +2 -11
  128. data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -53
  129. data/rbi/modern_treasury/models/payment_reference.rbi +10 -20
  130. data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -29
  131. data/rbi/modern_treasury/models/return_object.rbi +19 -25
  132. data/rbi/modern_treasury/models/routing_detail.rbi +0 -42
  133. data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -45
  134. data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -35
  135. data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
  136. data/rbi/modern_treasury/models/transaction.rbi +24 -24
  137. data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -52
  138. data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
  139. data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -45
  140. data/rbi/modern_treasury/models.rbi +3 -0
  141. data/rbi/modern_treasury/resources/bulk_requests.rbi +3 -2
  142. data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
  143. data/rbi/modern_treasury/resources/holds.rbi +3 -5
  144. data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
  145. data/rbi/modern_treasury/resources/internal_accounts.rbi +15 -8
  146. data/rbi/modern_treasury/resources/invoices.rbi +4 -6
  147. data/rbi/modern_treasury/resources/legal_entities.rbi +31 -0
  148. data/rbi/modern_treasury/resources/payment_orders.rbi +9 -12
  149. data/rbi/modern_treasury/resources/transactions.rbi +11 -7
  150. data/sig/modern_treasury/models/bulk_request_create_params.rbs +45 -183
  151. data/sig/modern_treasury/models/child_legal_entity.rbs +179 -2
  152. data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
  153. data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
  154. data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
  155. data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -18
  156. data/sig/modern_treasury/models/currency.rbs +0 -4
  157. data/sig/modern_treasury/models/document.rbs +0 -57
  158. data/sig/modern_treasury/models/document_create_params.rbs +22 -22
  159. data/sig/modern_treasury/models/document_list_params.rbs +22 -22
  160. data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -14
  161. data/sig/modern_treasury/models/expected_payment_type.rbs +0 -14
  162. data/sig/modern_treasury/models/external_account_create_params.rbs +0 -18
  163. data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -14
  164. data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -14
  165. data/sig/modern_treasury/models/identification_create_request.rbs +150 -0
  166. data/sig/modern_treasury/models/incoming_payment_detail.rbs +0 -8
  167. data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -4
  168. data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -4
  169. data/sig/modern_treasury/models/internal_account.rbs +5 -14
  170. data/sig/modern_treasury/models/internal_account_create_params.rbs +20 -26
  171. data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -14
  172. data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -14
  173. data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
  174. data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
  175. data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
  176. data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
  177. data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
  178. data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
  179. data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
  180. data/sig/modern_treasury/models/legal_entity.rbs +179 -2
  181. data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
  182. data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
  183. data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
  184. data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +43 -0
  185. data/sig/modern_treasury/models/payment_order.rbs +4 -8
  186. data/sig/modern_treasury/models/payment_order_create_async_params.rbs +0 -18
  187. data/sig/modern_treasury/models/payment_order_create_params.rbs +22 -40
  188. data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -14
  189. data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
  190. data/sig/modern_treasury/models/payment_order_type.rbs +0 -14
  191. data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -18
  192. data/sig/modern_treasury/models/payment_reference.rbs +4 -8
  193. data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -14
  194. data/sig/modern_treasury/models/return_object.rbs +12 -10
  195. data/sig/modern_treasury/models/routing_detail.rbs +0 -18
  196. data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -18
  197. data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -14
  198. data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
  199. data/sig/modern_treasury/models/transaction.rbs +7 -16
  200. data/sig/modern_treasury/models/transaction_create_params.rbs +14 -19
  201. data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
  202. data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -18
  203. data/sig/modern_treasury/models.rbs +2 -0
  204. data/sig/modern_treasury/resources/internal_accounts.rbs +3 -2
  205. data/sig/modern_treasury/resources/legal_entities.rbs +8 -0
  206. data/sig/modern_treasury/resources/transactions.rbs +2 -1
  207. metadata +5 -2
@@ -14,7 +14,7 @@ module ModernTreasury
14
14
  #
15
15
  # @param resource_type [Symbol, ModernTreasury::Models::BulkRequestCreateParams::ResourceType] One of payment_order, expected_payment, or ledger_transaction.
16
16
  #
17
- # @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
17
+ # @param resources [Array<ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderAsyncCreateRequest, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentCreateRequest, ModernTreasury::Models::LedgerTransactionCreateRequest, ModernTreasury::Models::LedgerAccountCreateRequest, Object, ModernTreasury::Models::BulkRequestCreateParams::Resource::ID, ModernTreasury::Models::BulkRequestCreateParams::Resource::PaymentOrderUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::ExpectedPaymentUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::TransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerTransactionUpdateRequestWithID, ModernTreasury::Models::BulkRequestCreateParams::Resource::LedgerAccountUpdateRequestWithID>] An array of objects where each object contains the input params for a single `ac
18
18
  #
19
19
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
20
20
  #
@@ -56,7 +56,7 @@ module ModernTreasury
56
56
  #
57
57
  # @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
58
58
  #
59
- # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
59
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
60
60
  #
61
61
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
62
62
  #
@@ -145,7 +145,7 @@ module ModernTreasury
145
145
  #
146
146
  # @param status [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Status, nil] The Expected Payment's status can be updated from partially_reconciled to reconc
147
147
  #
148
- # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
148
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire.
149
149
  #
150
150
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
151
151
  #
@@ -190,7 +190,7 @@ module ModernTreasury
190
190
  #
191
191
  # @param status [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Status] One of unreconciled, reconciled, or archived.
192
192
  #
193
- # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp,sen, sep
193
+ # @param type [Symbol, ModernTreasury::Models::ExpectedPaymentListParams::Type] One of: ach, au_becs, bacs, book, check, eft, rtp, sepa, wire
194
194
  #
195
195
  # @param updated_at_lower_bound [Time] Used to return expected payments updated after some datetime
196
196
  #
@@ -92,11 +92,11 @@ module ModernTreasury
92
92
  #
93
93
  # @param per_page [Integer]
94
94
  #
95
- # @param status [Symbol, ModernTreasury::Models::HoldListParams::Status, nil] Translation missing: en.openapi.descriptions.payment_order.query_params.status
95
+ # @param status [Symbol, ModernTreasury::Models::HoldListParams::Status, nil] Only return holds for a specific status.
96
96
  #
97
- # @param target_id [String, nil] Translation missing: en.openapi.descriptions.payment_order.query_params.target_i
97
+ # @param target_id [String, nil] Only return holds for a specific target ID.
98
98
  #
99
- # @param target_type [Symbol, ModernTreasury::Models::HoldListParams::TargetType, nil] Translation missing: en.openapi.descriptions.payment_order.query_params.target_t
99
+ # @param target_type [Symbol, ModernTreasury::Models::HoldListParams::TargetType, nil] Only return holds for a specific target type.
100
100
  #
101
101
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
102
102
  #
@@ -73,7 +73,7 @@ module ModernTreasury
73
73
  #
74
74
  # @param subtype [String] An additional layer of classification for the type of incoming payment detail. F
75
75
  #
76
- # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Type] One of: `ach`, `book`, `check`, `eft`, `interac`, `rtp`, `sepa`, `signet`, or `w
76
+ # @param type [Symbol, ModernTreasury::Models::IncomingPaymentDetailListParams::Type] One of: `ach`, `book`, `check`, `eft`, `rtp`, `sepa`, or `wire`.
77
77
  #
78
78
  # @param virtual_account_id [String] If the incoming payment detail is in a virtual account, the ID of the Virtual Ac
79
79
  #
@@ -11,22 +11,22 @@ module ModernTreasury
11
11
  #
12
12
  # create internal account
13
13
  #
14
- # @overload create(connection_id:, currency:, name:, party_name:, account_capabilities: nil, account_type: nil, counterparty_id: nil, external_id: nil, legal_entity_id: nil, metadata: nil, parent_account_id: nil, party_address: nil, vendor_attributes: nil, request_options: {})
14
+ # @overload create(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, vendor_attributes: nil, request_options: {})
15
15
  #
16
- # @param connection_id [String] The identifier of the financial institution the account belongs to.
17
- #
18
- # @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] The currency of the internal account. Supports "USD" and "CAD" for fiat, and "US
16
+ # @param currency [Symbol, ModernTreasury::Models::InternalAccountCreateParams::Currency] The currency of the internal account. Supports fiat and stablecoin currencies.
19
17
  #
20
18
  # @param name [String] The nickname of the account.
21
19
  #
22
- # @param party_name [String] The legal name of the entity which owns the account.
23
- #
24
20
  # @param account_capabilities [Array<ModernTreasury::Models::InternalAccountCreateParams::AccountCapability>] An array of AccountCapability objects that list the originating abilities of the
25
21
  #
26
22
  # @param account_type [Symbol, ModernTreasury::Models::InternalAccountCreateParams::AccountType] The account type, used to provision the appropriate account at the financial ins
27
23
  #
24
+ # @param connection_id [String] The identifier of the financial institution the account belongs to. If not provi
25
+ #
28
26
  # @param counterparty_id [String] The Counterparty associated to this account.
29
27
  #
28
+ # @param debitable [Boolean, nil] Whether this account can receive ACH debits. Only applicable to accounts created
29
+ #
30
30
  # @param external_id [String, nil] An optional user-defined 180 character unique identifier.
31
31
  #
32
32
  # @param legal_entity_id [String] The LegalEntity associated to this account.
@@ -37,6 +37,8 @@ module ModernTreasury
37
37
  #
38
38
  # @param party_address [ModernTreasury::Models::InternalAccountCreateParams::PartyAddress] The address associated with the owner or null.
39
39
  #
40
+ # @param party_name [String, nil] The legal name of the entity which owns the account.
41
+ #
40
42
  # @param vendor_attributes [Hash{Symbol=>String}] A hash of vendor specific attributes that will be used when creating the account
41
43
  #
42
44
  # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
@@ -49,7 +49,7 @@ module ModernTreasury
49
49
  #
50
50
  # @param payment_method [Symbol, ModernTreasury::Models::InvoiceCreateParams::PaymentMethod] The method by which the invoice can be paid. `ui` will show the embedded payment
51
51
  #
52
- # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
52
+ # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `book`, `rtp`, `sepa`, `ba
53
53
  #
54
54
  # @param receiving_account_id [String] The receiving account ID. Can be an `external_account`.
55
55
  #
@@ -140,7 +140,7 @@ module ModernTreasury
140
140
  #
141
141
  # @param payment_method [Symbol, ModernTreasury::Models::InvoiceUpdateParams::PaymentMethod] The method by which the invoice can be paid. `ui` will show the embedded payment
142
142
  #
143
- # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
143
+ # @param payment_type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `book`, `rtp`, `sepa`, `ba
144
144
  #
145
145
  # @param receiving_account_id [String] The receiving account ID. Can be an `external_account`.
146
146
  #
@@ -8,7 +8,7 @@ module ModernTreasury
8
8
  #
9
9
  # create legal_entity
10
10
  #
11
- # @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
11
+ # @overload create(legal_entity_type:, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
12
12
  #
13
13
  # @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType] The type of legal entity.
14
14
  #
@@ -82,6 +82,8 @@ module ModernTreasury
82
82
  #
83
83
  # @param suffix [String, nil] An individual's suffix.
84
84
  #
85
+ # @param terms_of_use [ModernTreasury::Models::LegalEntityCreateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
86
+ #
85
87
  # @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
86
88
  #
87
89
  # @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
@@ -133,7 +135,7 @@ module ModernTreasury
133
135
  #
134
136
  # Update a legal entity.
135
137
  #
136
- # @overload update(id, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
138
+ # @overload update(id, addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
137
139
  #
138
140
  # @param id [String] id
139
141
  #
@@ -199,6 +201,8 @@ module ModernTreasury
199
201
  #
200
202
  # @param suffix [String, nil] An individual's suffix.
201
203
  #
204
+ # @param terms_of_use [ModernTreasury::Models::LegalEntityUpdateParams::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
205
+ #
202
206
  # @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
203
207
  #
204
208
  # @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
@@ -264,6 +268,33 @@ module ModernTreasury
264
268
  )
265
269
  end
266
270
 
271
+ # Some parameter documentations has been truncated, see
272
+ # {ModernTreasury::Models::LegalEntityUpdateStatusParams} for more details.
273
+ #
274
+ # Update Legal Entity Status (sandbox only)
275
+ #
276
+ # @overload update_status(id, status:, request_options: {})
277
+ #
278
+ # @param id [String] Legal entity ID
279
+ #
280
+ # @param status [Symbol, ModernTreasury::Models::LegalEntityUpdateStatusParams::Status] The target status for the legal entity. One of `active`, `suspended`, or `denied
281
+ #
282
+ # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}, nil]
283
+ #
284
+ # @return [ModernTreasury::Models::LegalEntity]
285
+ #
286
+ # @see ModernTreasury::Models::LegalEntityUpdateStatusParams
287
+ def update_status(id, params)
288
+ parsed, options = ModernTreasury::LegalEntityUpdateStatusParams.dump_request(params)
289
+ @client.request(
290
+ method: :patch,
291
+ path: ["api/simulations/legal_entities/%1$s/update_status", id],
292
+ body: parsed,
293
+ model: ModernTreasury::LegalEntity,
294
+ options: options
295
+ )
296
+ end
297
+
267
298
  # @api private
268
299
  #
269
300
  # @param client [ModernTreasury::Client]
@@ -19,7 +19,7 @@ module ModernTreasury
19
19
  #
20
20
  # @param originating_account_id [String] The ID of one of your organization's internal accounts.
21
21
  #
22
- # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
22
+ # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `book`, `rtp`, `sepa`, `ba
23
23
  #
24
24
  # @param accounting [ModernTreasury::Models::PaymentOrderCreateParams::Accounting]
25
25
  #
@@ -201,7 +201,7 @@ module ModernTreasury
201
201
  #
202
202
  # @param subtype [Symbol, ModernTreasury::Models::PaymentOrderSubtype, nil] An additional layer of classification for the type of payment order you are doin
203
203
  #
204
- # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
204
+ # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `book`, `rtp`, `sepa`, `ba
205
205
  #
206
206
  # @param ultimate_originating_party_identifier [String, nil] This represents the identifier by which the person is known to the receiver when
207
207
  #
@@ -301,7 +301,7 @@ module ModernTreasury
301
301
  #
302
302
  # @param originating_account_id [String] The ID of one of your organization's internal accounts.
303
303
  #
304
- # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `sen`, `book`, `rtp`, `sep
304
+ # @param type [Symbol, ModernTreasury::Models::PaymentOrderType] One of `ach`, `se_bankgirot`, `eft`, `wire`, `check`, `book`, `rtp`, `sepa`, `ba
305
305
  #
306
306
  # @param accounting [ModernTreasury::Models::PaymentOrderCreateAsyncParams::Accounting]
307
307
  #
@@ -11,9 +11,7 @@ module ModernTreasury
11
11
  #
12
12
  # create transaction
13
13
  #
14
- # @overload create(amount:, as_of_date:, direction:, internal_account_id:, vendor_code:, vendor_code_type:, metadata: nil, posted: nil, type: nil, vendor_customer_id: nil, vendor_description: nil, request_options: {})
15
- #
16
- # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
14
+ # @overload create(as_of_date:, direction:, internal_account_id:, vendor_code:, vendor_code_type:, amount: nil, amount_string: nil, metadata: nil, posted: nil, type: nil, vendor_customer_id: nil, vendor_description: nil, request_options: {})
17
15
  #
18
16
  # @param as_of_date [Date, nil] The date on which the transaction occurred.
19
17
  #
@@ -25,6 +23,10 @@ module ModernTreasury
25
23
  #
26
24
  # @param vendor_code_type [String, nil] The type of `vendor_code` being reported. Can be one of `bai2`, `bankprov`, `bnk
27
25
  #
26
+ # @param amount [Integer] Value in specified currency's smallest unit. e.g. $10 would be represented as 10
27
+ #
28
+ # @param amount_string [String] The transaction amount as a string, preserving full precision for values that ma
29
+ #
28
30
  # @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
29
31
  #
30
32
  # @param posted [Boolean] This field will be `true` if the transaction has posted to the account.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ModernTreasury
4
- VERSION = "0.27.0"
4
+ VERSION = "0.28.0"
5
5
  end
@@ -236,6 +236,7 @@ require_relative "modern_treasury/models/legal_entity_industry_classification"
236
236
  require_relative "modern_treasury/models/legal_entity_list_params"
237
237
  require_relative "modern_treasury/models/legal_entity_retrieve_params"
238
238
  require_relative "modern_treasury/models/legal_entity_update_params"
239
+ require_relative "modern_treasury/models/legal_entity_update_status_params"
239
240
  require_relative "modern_treasury/models/legal_entity_wealth_employment_detail"
240
241
  require_relative "modern_treasury/models/line_item"
241
242
  require_relative "modern_treasury/models/line_item_list_params"