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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +45 -0
- data/README.md +4 -4
- data/lib/modern_treasury/client.rb +14 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +5 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +65 -190
- data/lib/modern_treasury/models/child_legal_entity.rb +121 -3
- data/lib/modern_treasury/models/child_legal_entity_create.rb +35 -1
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +38 -1
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
- data/lib/modern_treasury/models/counterparty_create_params.rb +38 -10
- data/lib/modern_treasury/models/currency.rb +0 -2
- data/lib/modern_treasury/models/document.rb +1 -73
- data/lib/modern_treasury/models/document_create_params.rb +11 -11
- data/lib/modern_treasury/models/document_list_params.rb +11 -11
- data/lib/modern_treasury/models/expected_payment.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -12
- data/lib/modern_treasury/models/expected_payment_type.rb +1 -9
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +0 -9
- data/lib/modern_treasury/models/external_account_verify_params.rb +0 -7
- data/lib/modern_treasury/models/external_account_verify_response.rb +0 -7
- data/lib/modern_treasury/models/hold_list_params.rb +8 -11
- data/lib/modern_treasury/models/identification_create_request.rb +75 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +3 -9
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +0 -2
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +3 -7
- data/lib/modern_treasury/models/internal_account.rb +12 -8
- data/lib/modern_treasury/models/internal_account_create_params.rb +35 -30
- data/lib/modern_treasury/models/internal_account_list_params.rb +0 -7
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -7
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +20 -11
- data/lib/modern_treasury/models/invoice.rb +6 -6
- data/lib/modern_treasury/models/invoice_create_params.rb +3 -4
- data/lib/modern_treasury/models/invoice_update_params.rb +3 -4
- data/lib/modern_treasury/models/ledger_balance.rb +22 -1
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +19 -10
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +69 -10
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +121 -3
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +14 -1
- data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
- data/lib/modern_treasury/models/legal_entity_create_params.rb +34 -1
- data/lib/modern_treasury/models/legal_entity_update_params.rb +34 -1
- data/lib/modern_treasury/models/legal_entity_update_status_params.rb +46 -0
- data/lib/modern_treasury/models/payment_order.rb +6 -9
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +4 -14
- data/lib/modern_treasury/models/payment_order_create_params.rb +15 -25
- data/lib/modern_treasury/models/payment_order_list_params.rb +0 -7
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
- data/lib/modern_treasury/models/payment_order_type.rb +2 -10
- data/lib/modern_treasury/models/payment_order_update_params.rb +4 -14
- data/lib/modern_treasury/models/payment_reference.rb +2 -4
- data/lib/modern_treasury/models/reconciliation_rule.rb +3 -12
- data/lib/modern_treasury/models/return_object.rb +8 -7
- data/lib/modern_treasury/models/routing_detail.rb +0 -9
- data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -9
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -7
- data/lib/modern_treasury/models/third_party_verification.rb +2 -0
- data/lib/modern_treasury/models/transaction.rb +17 -15
- data/lib/modern_treasury/models/transaction_create_params.rb +23 -21
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
- data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -9
- data/lib/modern_treasury/models.rb +2 -0
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/expected_payments.rb +3 -3
- data/lib/modern_treasury/resources/holds.rb +3 -3
- data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +8 -6
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/legal_entities.rb +33 -2
- data/lib/modern_treasury/resources/payment_orders.rb +3 -3
- data/lib/modern_treasury/resources/transactions.rb +5 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +1 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +104 -462
- data/rbi/modern_treasury/models/child_legal_entity.rbi +452 -5
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +68 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +74 -0
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +74 -45
- data/rbi/modern_treasury/models/currency.rbi +0 -2
- data/rbi/modern_treasury/models/document.rbi +0 -87
- data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
- data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
- data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -41
- data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -12
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
- data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -35
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -35
- data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
- data/rbi/modern_treasury/models/identification_create_request.rbi +375 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +3 -26
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -10
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +3 -16
- data/rbi/modern_treasury/models/internal_account.rbi +14 -35
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +47 -59
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -35
- data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +31 -15
- data/rbi/modern_treasury/models/invoice.rbi +6 -6
- data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -6
- data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -6
- data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +26 -10
- data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +89 -13
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +451 -5
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +18 -3
- data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +68 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +68 -0
- data/rbi/modern_treasury/models/legal_entity_update_status_params.rbi +96 -0
- data/rbi/modern_treasury/models/payment_order.rbi +16 -28
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +6 -53
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -75
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
- data/rbi/modern_treasury/models/payment_order_type.rbi +2 -11
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -53
- data/rbi/modern_treasury/models/payment_reference.rbi +10 -20
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -29
- data/rbi/modern_treasury/models/return_object.rbi +19 -25
- data/rbi/modern_treasury/models/routing_detail.rbi +0 -42
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -35
- data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
- data/rbi/modern_treasury/models/transaction.rbi +24 -24
- data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -52
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models.rbi +3 -0
- data/rbi/modern_treasury/resources/bulk_requests.rbi +3 -2
- data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
- data/rbi/modern_treasury/resources/holds.rbi +3 -5
- data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +15 -8
- data/rbi/modern_treasury/resources/invoices.rbi +4 -6
- data/rbi/modern_treasury/resources/legal_entities.rbi +31 -0
- data/rbi/modern_treasury/resources/payment_orders.rbi +9 -12
- data/rbi/modern_treasury/resources/transactions.rbi +11 -7
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +45 -183
- data/sig/modern_treasury/models/child_legal_entity.rbs +179 -2
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
- data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -18
- data/sig/modern_treasury/models/currency.rbs +0 -4
- data/sig/modern_treasury/models/document.rbs +0 -57
- data/sig/modern_treasury/models/document_create_params.rbs +22 -22
- data/sig/modern_treasury/models/document_list_params.rbs +22 -22
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -14
- data/sig/modern_treasury/models/expected_payment_type.rbs +0 -14
- data/sig/modern_treasury/models/external_account_create_params.rbs +0 -18
- data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -14
- data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -14
- data/sig/modern_treasury/models/identification_create_request.rbs +150 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +0 -8
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -4
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -4
- data/sig/modern_treasury/models/internal_account.rbs +5 -14
- data/sig/modern_treasury/models/internal_account_create_params.rbs +20 -26
- data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -14
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -14
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
- data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +179 -2
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
- data/sig/modern_treasury/models/legal_entity_update_status_params.rbs +43 -0
- data/sig/modern_treasury/models/payment_order.rbs +4 -8
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +0 -18
- data/sig/modern_treasury/models/payment_order_create_params.rbs +22 -40
- data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
- data/sig/modern_treasury/models/payment_order_type.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -18
- data/sig/modern_treasury/models/payment_reference.rbs +4 -8
- data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -14
- data/sig/modern_treasury/models/return_object.rbs +12 -10
- data/sig/modern_treasury/models/routing_detail.rbs +0 -18
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -18
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -14
- data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
- data/sig/modern_treasury/models/transaction.rbs +7 -16
- data/sig/modern_treasury/models/transaction_create_params.rbs +14 -19
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -18
- data/sig/modern_treasury/models.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +3 -2
- data/sig/modern_treasury/resources/legal_entities.rbs +8 -0
- data/sig/modern_treasury/resources/transactions.rbs +2 -1
- 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::
|
|
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,
|
|
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,
|
|
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,
|
|
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]
|
|
95
|
+
# @param status [Symbol, ModernTreasury::Models::HoldListParams::Status, nil] Only return holds for a specific status.
|
|
96
96
|
#
|
|
97
|
-
# @param target_id [String, nil]
|
|
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]
|
|
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`, `
|
|
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(
|
|
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
|
|
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`, `
|
|
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`, `
|
|
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`, `
|
|
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`, `
|
|
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`, `
|
|
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(
|
|
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.
|
data/lib/modern_treasury.rb
CHANGED
|
@@ -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"
|