modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.21
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 +46 -0
- data/README.md +110 -61
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +3 -1
- data/lib/modern_treasury/internal/type/array_of.rb +8 -0
- data/lib/modern_treasury/internal/type/base_model.rb +14 -0
- data/lib/modern_treasury/internal/type/boolean.rb +8 -0
- data/lib/modern_treasury/internal/type/enum.rb +15 -0
- data/lib/modern_treasury/internal/type/file_input.rb +7 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +8 -0
- data/lib/modern_treasury/internal/type/union.rb +17 -0
- data/lib/modern_treasury/internal/type/unknown.rb +8 -0
- data/lib/modern_treasury/internal/util.rb +62 -10
- data/lib/modern_treasury/internal.rb +3 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +8 -8
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail.rb +8 -4
- data/lib/modern_treasury/models/account_detail_create_params.rb +8 -4
- data/lib/modern_treasury/models/account_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/bank_settings.rb +1 -1
- data/lib/modern_treasury/models/bulk_request.rb +11 -10
- data/lib/modern_treasury/models/bulk_request_create_params.rb +252 -247
- data/lib/modern_treasury/models/bulk_request_list_params.rb +7 -6
- data/lib/modern_treasury/models/bulk_result.rb +18 -29
- data/lib/modern_treasury/models/bulk_result_list_params.rb +7 -6
- data/lib/modern_treasury/models/connection.rb +1 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +4 -4
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +108 -72
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +2 -2
- data/lib/modern_treasury/models/counterparty.rb +32 -32
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +4 -4
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +1 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +166 -121
- data/lib/modern_treasury/models/currency.rb +7 -0
- data/lib/modern_treasury/models/document.rb +13 -13
- data/lib/modern_treasury/models/document_create_params.rb +6 -6
- data/lib/modern_treasury/models/document_list_params.rb +4 -4
- data/lib/modern_treasury/models/event.rb +2 -2
- data/lib/modern_treasury/models/expected_payment.rb +16 -16
- data/lib/modern_treasury/models/expected_payment_create_params.rb +27 -26
- data/lib/modern_treasury/models/expected_payment_list_params.rb +27 -7
- data/lib/modern_treasury/models/expected_payment_type.rb +4 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +10 -10
- data/lib/modern_treasury/models/external_account.rb +26 -26
- data/lib/modern_treasury/models/external_account_create_params.rb +41 -32
- data/lib/modern_treasury/models/external_account_type.rb +5 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +6 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +12 -8
- data/lib/modern_treasury/models/external_account_verify_response.rb +5 -10
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +10 -9
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +4 -4
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -19
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -6
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -6
- data/lib/modern_treasury/models/internal_account.rb +24 -19
- data/lib/modern_treasury/models/internal_account_create_params.rb +37 -5
- data/lib/modern_treasury/models/internal_account_list_params.rb +10 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +13 -12
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +9 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice.rb +34 -34
- data/lib/modern_treasury/models/invoice_create_params.rb +21 -21
- data/lib/modern_treasury/models/invoice_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice_update_params.rb +21 -21
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +10 -2
- data/lib/modern_treasury/models/ledger.rb +2 -2
- data/lib/modern_treasury/models/ledger_account.rb +19 -19
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +23 -22
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_category.rb +16 -16
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +8 -8
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_entry.rb +20 -19
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +10 -10
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction.rb +9 -9
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +6 -6
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +30 -29
- data/lib/modern_treasury/models/ledgerable_event.rb +1 -1
- data/lib/modern_treasury/models/legal_entity.rb +52 -34
- data/lib/modern_treasury/models/legal_entity_association.rb +59 -40
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +54 -36
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +1 -1
- data/lib/modern_treasury/models/legal_entity_create_params.rb +102 -65
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +4 -4
- data/lib/modern_treasury/models/legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/legal_entity_update_params.rb +44 -25
- data/lib/modern_treasury/models/line_item.rb +9 -9
- data/lib/modern_treasury/models/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_update_params.rb +2 -2
- data/lib/modern_treasury/models/paper_item.rb +16 -7
- data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
- data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
- data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
- data/lib/modern_treasury/models/payment_flow.rb +13 -13
- data/lib/modern_treasury/models/payment_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/payment_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/payment_order.rb +57 -86
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +86 -76
- data/lib/modern_treasury/models/payment_order_create_params.rb +95 -85
- data/lib/modern_treasury/models/payment_order_list_params.rb +12 -8
- data/lib/modern_treasury/models/payment_order_type.rb +4 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +72 -63
- data/lib/modern_treasury/models/payment_orders/reversal.rb +7 -7
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +17 -17
- data/lib/modern_treasury/models/payment_reference.rb +11 -7
- data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -2
- data/lib/modern_treasury/models/reconciliation_rule.rb +13 -9
- data/lib/modern_treasury/models/return_create_params.rb +44 -4
- data/lib/modern_treasury/models/return_list_params.rb +2 -2
- data/lib/modern_treasury/models/return_object.rb +78 -27
- data/lib/modern_treasury/models/routing_detail.rb +15 -11
- data/lib/modern_treasury/models/routing_detail_create_params.rb +10 -6
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +13 -9
- data/lib/modern_treasury/models/transaction.rb +23 -17
- data/lib/modern_treasury/models/transaction_create_params.rb +6 -2
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +7 -7
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +2 -2
- data/lib/modern_treasury/models/virtual_account.rb +5 -5
- data/lib/modern_treasury/models/virtual_account_create_params.rb +34 -23
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +19 -19
- data/lib/modern_treasury/models.rb +38 -19
- data/lib/modern_treasury/resources/account_collection_flows.rb +6 -6
- data/lib/modern_treasury/resources/account_details.rb +8 -8
- data/lib/modern_treasury/resources/bulk_requests.rb +9 -9
- data/lib/modern_treasury/resources/bulk_results.rb +5 -5
- data/lib/modern_treasury/resources/connection_legal_entities.rb +7 -7
- data/lib/modern_treasury/resources/connections.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +12 -12
- data/lib/modern_treasury/resources/documents.rb +6 -6
- data/lib/modern_treasury/resources/events.rb +2 -2
- data/lib/modern_treasury/resources/expected_payments.rb +24 -20
- data/lib/modern_treasury/resources/external_accounts.rb +20 -20
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +5 -5
- data/lib/modern_treasury/resources/incoming_payment_details.rb +10 -10
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +6 -6
- data/lib/modern_treasury/resources/internal_accounts.rb +12 -10
- data/lib/modern_treasury/resources/invoices/line_items.rb +5 -5
- data/lib/modern_treasury/resources/invoices.rb +21 -21
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +6 -6
- data/lib/modern_treasury/resources/ledger_account_categories.rb +8 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +6 -6
- data/lib/modern_treasury/resources/ledger_accounts.rb +12 -12
- data/lib/modern_treasury/resources/ledger_entries.rb +6 -6
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +7 -7
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +18 -18
- data/lib/modern_treasury/resources/ledgerable_events.rb +2 -2
- data/lib/modern_treasury/resources/ledgers.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +25 -25
- data/lib/modern_treasury/resources/legal_entity_associations.rb +3 -3
- data/lib/modern_treasury/resources/line_items.rb +6 -6
- data/lib/modern_treasury/resources/paper_items.rb +2 -2
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +6 -6
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +5 -5
- data/lib/modern_treasury/resources/payment_orders.rb +46 -46
- data/lib/modern_treasury/resources/payment_references.rb +3 -3
- data/lib/modern_treasury/resources/returns.rb +6 -6
- data/lib/modern_treasury/resources/routing_details.rb +9 -9
- data/lib/modern_treasury/resources/transactions/line_items.rb +4 -4
- data/lib/modern_treasury/resources/transactions.rb +5 -5
- data/lib/modern_treasury/resources/validations.rb +2 -2
- data/lib/modern_treasury/resources/virtual_accounts.rb +8 -8
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +12 -1
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +5 -1
- data/rbi/modern_treasury/internal/type/array_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/base_model.rbi +5 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +6 -0
- data/rbi/modern_treasury/internal/type/enum.rbi +5 -0
- data/rbi/modern_treasury/internal/type/file_input.rbi +5 -0
- data/rbi/modern_treasury/internal/type/hash_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +6 -0
- data/rbi/modern_treasury/internal/util.rbi +36 -0
- data/rbi/modern_treasury/internal.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail.rbi +20 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/bulk_request.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +105 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +7 -19
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +92 -6
- data/rbi/modern_treasury/models/currency.rbi +7 -0
- data/rbi/modern_treasury/models/document.rbi +9 -6
- data/rbi/modern_treasury/models/document_create_params.rbi +12 -12
- data/rbi/modern_treasury/models/document_list_params.rbi +9 -9
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +42 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +6 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +16 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +20 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +20 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +20 -0
- data/rbi/modern_treasury/models/internal_account.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +117 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/invoice.rbi +2 -2
- data/rbi/modern_treasury/models/invoices/invoice_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -3
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +26 -3
- data/rbi/modern_treasury/models/paper_item.rbi +10 -0
- data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -38
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +52 -12
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +14 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +80 -0
- data/rbi/modern_treasury/models/return_object.rbi +66 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +17 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +20 -0
- data/rbi/modern_treasury/models/transaction.rbi +16 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models.rbi +9 -0
- data/rbi/modern_treasury/resources/documents.rbi +1 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +6 -0
- data/rbi/modern_treasury/resources/external_accounts.rbi +1 -4
- data/rbi/modern_treasury/resources/internal_accounts.rbi +5 -0
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +2 -0
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/enum.rbs +2 -0
- data/sig/modern_treasury/internal/type/file_input.rbs +2 -0
- data/sig/modern_treasury/internal/type/hash_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +12 -0
- data/sig/modern_treasury/internal.rbs +3 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +30 -16
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +13 -6
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +10 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/account_detail.rbs +24 -4
- data/sig/modern_treasury/models/account_detail_create_params.rbs +15 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/async_response.rbs +2 -0
- data/sig/modern_treasury/models/bank_settings.rbs +13 -0
- data/sig/modern_treasury/models/bulk_request.rbs +29 -12
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +600 -188
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +12 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_result.rbs +44 -16
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +13 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +2 -0
- data/sig/modern_treasury/models/connection.rbs +12 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -4
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +188 -56
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +5 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +8 -0
- data/sig/modern_treasury/models/counterparty.rbs +84 -22
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +14 -6
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +307 -92
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +12 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +10 -0
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +41 -9
- data/sig/modern_treasury/models/document_create_params.rbs +16 -8
- data/sig/modern_treasury/models/document_list_params.rbs +13 -5
- data/sig/modern_treasury/models/document_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/event.rbs +13 -0
- data/sig/modern_treasury/models/event_list_params.rbs +11 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment.rbs +41 -12
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -12
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +37 -1
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +21 -0
- data/sig/modern_treasury/models/external_account.rbs +63 -16
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +99 -28
- data/sig/modern_treasury/models/external_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +17 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +21 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +10 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +13 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +52 -16
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_account.rbs +55 -9
- data/sig/modern_treasury/models/internal_account_create_params.rbs +66 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +37 -8
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +19 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +8 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice.rbs +94 -16
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +81 -4
- data/sig/modern_treasury/models/invoice_list_params.rbs +15 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +81 -4
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +21 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +11 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +6 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account.rbs +54 -4
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +6 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +45 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +13 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -4
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +53 -4
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +41 -12
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +26 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +30 -8
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +25 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +19 -4
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +11 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +40 -12
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -12
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +13 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +8 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity.rbs +96 -20
- data/sig/modern_treasury/models/legal_entity_association.rbs +113 -24
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +98 -30
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +168 -42
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +15 -4
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +70 -12
- data/sig/modern_treasury/models/line_item.rbs +22 -4
- data/sig/modern_treasury/models/line_item_list_params.rbs +7 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +7 -0
- data/sig/modern_treasury/models/paper_item.rbs +30 -4
- data/sig/modern_treasury/models/paper_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
- data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
- data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
- data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow.rbs +44 -22
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +10 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +12 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_order.rbs +116 -48
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +185 -44
- data/sig/modern_treasury/models/payment_order_create_params.rbs +205 -56
- data/sig/modern_treasury/models/payment_order_list_params.rbs +29 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +148 -32
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -8
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +43 -12
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +6 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_reference.rbs +28 -8
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ping_response.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +29 -8
- data/sig/modern_treasury/models/return_create_params.rbs +91 -0
- data/sig/modern_treasury/models/return_list_params.rbs +10 -0
- data/sig/modern_treasury/models/return_object.rbs +154 -24
- data/sig/modern_treasury/models/return_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +44 -8
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +16 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +38 -12
- data/sig/modern_treasury/models/transaction.rbs +58 -8
- data/sig/modern_treasury/models/transaction_create_params.rbs +22 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +18 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +7 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -8
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +6 -0
- data/sig/modern_treasury/models/virtual_account.rbs +19 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +74 -20
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +8 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -24
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +1 -1
- data/sig/modern_treasury/resources/bulk_requests.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/documents.rbs +1 -1
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- metadata +29 -2
@@ -10,6 +10,7 @@ module ModernTreasury
|
|
10
10
|
ACH = :ach
|
11
11
|
AU_BECS = :au_becs
|
12
12
|
BACS = :bacs
|
13
|
+
BASE = :base
|
13
14
|
BOOK = :book
|
14
15
|
CARD = :card
|
15
16
|
CHATS = :chats
|
@@ -17,6 +18,7 @@ module ModernTreasury
|
|
17
18
|
CROSS_BORDER = :cross_border
|
18
19
|
DK_NETS = :dk_nets
|
19
20
|
EFT = :eft
|
21
|
+
ETHEREUM = :ethereum
|
20
22
|
HU_ICS = :hu_ics
|
21
23
|
INTERAC = :interac
|
22
24
|
MASAV = :masav
|
@@ -25,6 +27,7 @@ module ModernTreasury
|
|
25
27
|
NICS = :nics
|
26
28
|
NZ_BECS = :nz_becs
|
27
29
|
PL_ELIXIR = :pl_elixir
|
30
|
+
POLYGON = :polygon
|
28
31
|
PROVXCHANGE = :provxchange
|
29
32
|
RO_SENT = :ro_sent
|
30
33
|
RTP = :rtp
|
@@ -35,6 +38,7 @@ module ModernTreasury
|
|
35
38
|
SIC = :sic
|
36
39
|
SIGNET = :signet
|
37
40
|
SKNBI = :sknbi
|
41
|
+
SOLANA = :solana
|
38
42
|
WIRE = :wire
|
39
43
|
ZENGIN = :zengin
|
40
44
|
|
@@ -30,7 +30,7 @@ module ModernTreasury
|
|
30
30
|
# @!attribute currency
|
31
31
|
# Must conform to ISO 4217. Defaults to the currency of the internal account.
|
32
32
|
#
|
33
|
-
# @return [Symbol, ModernTreasury::Currency, nil]
|
33
|
+
# @return [Symbol, ModernTreasury::Models::Currency, nil]
|
34
34
|
optional :currency, enum: -> { ModernTreasury::Currency }, nil?: true
|
35
35
|
|
36
36
|
# @!attribute date_lower_bound
|
@@ -55,7 +55,7 @@ module ModernTreasury
|
|
55
55
|
# One of credit or debit. When you are receiving money, use credit. When you are
|
56
56
|
# being charged, use debit.
|
57
57
|
#
|
58
|
-
# @return [Symbol, ModernTreasury::ExpectedPaymentUpdateParams::Direction, nil]
|
58
|
+
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Direction, nil]
|
59
59
|
optional :direction, enum: -> { ModernTreasury::ExpectedPaymentUpdateParams::Direction }, nil?: true
|
60
60
|
|
61
61
|
# @!attribute internal_account_id
|
@@ -86,7 +86,7 @@ module ModernTreasury
|
|
86
86
|
# @!attribute reconciliation_rule_variables
|
87
87
|
# An array of reconciliation rule variables for this payment.
|
88
88
|
#
|
89
|
-
# @return [Array<ModernTreasury::ReconciliationRule>, nil]
|
89
|
+
# @return [Array<ModernTreasury::Models::ReconciliationRule>, nil]
|
90
90
|
optional :reconciliation_rule_variables,
|
91
91
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ReconciliationRule] },
|
92
92
|
nil?: true
|
@@ -112,14 +112,14 @@ module ModernTreasury
|
|
112
112
|
# The Expected Payment's status can be updated from partially_reconciled to
|
113
113
|
# reconciled.
|
114
114
|
#
|
115
|
-
# @return [Symbol, ModernTreasury::ExpectedPaymentUpdateParams::Status, nil]
|
115
|
+
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Status, nil]
|
116
116
|
optional :status, enum: -> { ModernTreasury::ExpectedPaymentUpdateParams::Status }, nil?: true
|
117
117
|
|
118
118
|
# @!attribute type
|
119
119
|
# One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen,
|
120
120
|
# sepa, signet, wire.
|
121
121
|
#
|
122
|
-
# @return [Symbol, ModernTreasury::ExpectedPaymentType, nil]
|
122
|
+
# @return [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil]
|
123
123
|
optional :type, enum: -> { ModernTreasury::ExpectedPaymentType }, nil?: true
|
124
124
|
|
125
125
|
# @!method initialize(amount_lower_bound: nil, amount_upper_bound: nil, counterparty_id: nil, currency: nil, date_lower_bound: nil, date_upper_bound: nil, description: nil, direction: nil, internal_account_id: nil, metadata: nil, reconciliation_filters: nil, reconciliation_groups: nil, reconciliation_rule_variables: nil, remittance_information: nil, statement_descriptor: nil, status: nil, type: nil, request_options: {})
|
@@ -132,7 +132,7 @@ module ModernTreasury
|
|
132
132
|
#
|
133
133
|
# @param counterparty_id [String, nil] The ID of the counterparty you expect for this payment.
|
134
134
|
#
|
135
|
-
# @param currency [Symbol, ModernTreasury::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
|
135
|
+
# @param currency [Symbol, ModernTreasury::Models::Currency, nil] Must conform to ISO 4217. Defaults to the currency of the internal account.
|
136
136
|
#
|
137
137
|
# @param date_lower_bound [Date, nil] The earliest date the payment may come in. Format: yyyy-mm-dd
|
138
138
|
#
|
@@ -140,7 +140,7 @@ module ModernTreasury
|
|
140
140
|
#
|
141
141
|
# @param description [String, nil] An optional description for internal use.
|
142
142
|
#
|
143
|
-
# @param direction [Symbol, ModernTreasury::ExpectedPaymentUpdateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
143
|
+
# @param direction [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Direction, nil] One of credit or debit. When you are receiving money, use credit. When you are b
|
144
144
|
#
|
145
145
|
# @param internal_account_id [String, nil] The ID of the Internal Account for the expected payment.
|
146
146
|
#
|
@@ -150,15 +150,15 @@ module ModernTreasury
|
|
150
150
|
#
|
151
151
|
# @param reconciliation_groups [Object, nil] The reconciliation groups you have for this payment.
|
152
152
|
#
|
153
|
-
# @param reconciliation_rule_variables [Array<ModernTreasury::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
|
153
|
+
# @param reconciliation_rule_variables [Array<ModernTreasury::Models::ReconciliationRule>, nil] An array of reconciliation rule variables for this payment.
|
154
154
|
#
|
155
155
|
# @param remittance_information [String, nil] For `ach`, this field will be passed through on an addenda record. For `wire` pa
|
156
156
|
#
|
157
157
|
# @param statement_descriptor [String, nil] The statement description you expect to see on the transaction. For ACH payments
|
158
158
|
#
|
159
|
-
# @param status [Symbol, ModernTreasury::ExpectedPaymentUpdateParams::Status, nil] The Expected Payment's status can be updated from partially_reconciled to reconc
|
159
|
+
# @param status [Symbol, ModernTreasury::Models::ExpectedPaymentUpdateParams::Status, nil] The Expected Payment's status can be updated from partially_reconciled to reconc
|
160
160
|
#
|
161
|
-
# @param type [Symbol, ModernTreasury::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
161
|
+
# @param type [Symbol, ModernTreasury::Models::ExpectedPaymentType, nil] One of: ach, au_becs, bacs, book, check, eft, interac, provxchange, rtp, sen, se
|
162
162
|
#
|
163
163
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
164
164
|
|
@@ -11,18 +11,18 @@ module ModernTreasury
|
|
11
11
|
|
12
12
|
# @!attribute account_details
|
13
13
|
#
|
14
|
-
# @return [Array<ModernTreasury::AccountDetail>]
|
14
|
+
# @return [Array<ModernTreasury::Models::AccountDetail>]
|
15
15
|
required :account_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::AccountDetail] }
|
16
16
|
|
17
17
|
# @!attribute account_type
|
18
18
|
# Can be `checking`, `savings` or `other`.
|
19
19
|
#
|
20
|
-
# @return [Symbol, ModernTreasury::ExternalAccountType]
|
20
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountType]
|
21
21
|
required :account_type, enum: -> { ModernTreasury::ExternalAccountType }
|
22
22
|
|
23
23
|
# @!attribute contact_details
|
24
24
|
#
|
25
|
-
# @return [Array<ModernTreasury::ExternalAccount::ContactDetail>]
|
25
|
+
# @return [Array<ModernTreasury::Models::ExternalAccount::ContactDetail>]
|
26
26
|
required :contact_details,
|
27
27
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccount::ContactDetail] }
|
28
28
|
|
@@ -77,7 +77,7 @@ module ModernTreasury
|
|
77
77
|
# @!attribute party_address
|
78
78
|
# The address associated with the owner or `null`.
|
79
79
|
#
|
80
|
-
# @return [ModernTreasury::ExternalAccount::PartyAddress, nil]
|
80
|
+
# @return [ModernTreasury::Models::ExternalAccount::PartyAddress, nil]
|
81
81
|
required :party_address, -> { ModernTreasury::ExternalAccount::PartyAddress }, nil?: true
|
82
82
|
|
83
83
|
# @!attribute party_name
|
@@ -89,12 +89,12 @@ module ModernTreasury
|
|
89
89
|
# @!attribute party_type
|
90
90
|
# Either `individual` or `business`.
|
91
91
|
#
|
92
|
-
# @return [Symbol, ModernTreasury::ExternalAccount::PartyType, nil]
|
92
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccount::PartyType, nil]
|
93
93
|
required :party_type, enum: -> { ModernTreasury::ExternalAccount::PartyType }, nil?: true
|
94
94
|
|
95
95
|
# @!attribute routing_details
|
96
96
|
#
|
97
|
-
# @return [Array<ModernTreasury::RoutingDetail>]
|
97
|
+
# @return [Array<ModernTreasury::Models::RoutingDetail>]
|
98
98
|
required :routing_details, -> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::RoutingDetail] }
|
99
99
|
|
100
100
|
# @!attribute updated_at
|
@@ -104,27 +104,27 @@ module ModernTreasury
|
|
104
104
|
|
105
105
|
# @!attribute verification_source
|
106
106
|
#
|
107
|
-
# @return [Symbol, ModernTreasury::ExternalAccount::VerificationSource, nil]
|
107
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccount::VerificationSource, nil]
|
108
108
|
required :verification_source,
|
109
109
|
enum: -> { ModernTreasury::ExternalAccount::VerificationSource },
|
110
110
|
nil?: true
|
111
111
|
|
112
112
|
# @!attribute verification_status
|
113
113
|
#
|
114
|
-
# @return [Symbol, ModernTreasury::ExternalAccount::VerificationStatus]
|
114
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccount::VerificationStatus]
|
115
115
|
required :verification_status, enum: -> { ModernTreasury::ExternalAccount::VerificationStatus }
|
116
116
|
|
117
117
|
# @!method initialize(id:, account_details:, account_type:, contact_details:, counterparty_id:, created_at:, discarded_at:, ledger_account_id:, live_mode:, metadata:, name:, object:, party_address:, party_name:, party_type:, routing_details:, updated_at:, verification_source:, verification_status:)
|
118
118
|
# Some parameter documentations has been truncated, see
|
119
|
-
# {ModernTreasury::ExternalAccount} for more details.
|
119
|
+
# {ModernTreasury::Models::ExternalAccount} for more details.
|
120
120
|
#
|
121
121
|
# @param id [String]
|
122
122
|
#
|
123
|
-
# @param account_details [Array<ModernTreasury::AccountDetail>]
|
123
|
+
# @param account_details [Array<ModernTreasury::Models::AccountDetail>]
|
124
124
|
#
|
125
|
-
# @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
125
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
126
126
|
#
|
127
|
-
# @param contact_details [Array<ModernTreasury::ExternalAccount::ContactDetail>]
|
127
|
+
# @param contact_details [Array<ModernTreasury::Models::ExternalAccount::ContactDetail>]
|
128
128
|
#
|
129
129
|
# @param counterparty_id [String, nil]
|
130
130
|
#
|
@@ -142,19 +142,19 @@ module ModernTreasury
|
|
142
142
|
#
|
143
143
|
# @param object [String]
|
144
144
|
#
|
145
|
-
# @param party_address [ModernTreasury::ExternalAccount::PartyAddress, nil] The address associated with the owner or `null`.
|
145
|
+
# @param party_address [ModernTreasury::Models::ExternalAccount::PartyAddress, nil] The address associated with the owner or `null`.
|
146
146
|
#
|
147
147
|
# @param party_name [String] The legal name of the entity which owns the account.
|
148
148
|
#
|
149
|
-
# @param party_type [Symbol, ModernTreasury::ExternalAccount::PartyType, nil] Either `individual` or `business`.
|
149
|
+
# @param party_type [Symbol, ModernTreasury::Models::ExternalAccount::PartyType, nil] Either `individual` or `business`.
|
150
150
|
#
|
151
|
-
# @param routing_details [Array<ModernTreasury::RoutingDetail>]
|
151
|
+
# @param routing_details [Array<ModernTreasury::Models::RoutingDetail>]
|
152
152
|
#
|
153
153
|
# @param updated_at [Time]
|
154
154
|
#
|
155
|
-
# @param verification_source [Symbol, ModernTreasury::ExternalAccount::VerificationSource, nil]
|
155
|
+
# @param verification_source [Symbol, ModernTreasury::Models::ExternalAccount::VerificationSource, nil]
|
156
156
|
#
|
157
|
-
# @param verification_status [Symbol, ModernTreasury::ExternalAccount::VerificationStatus]
|
157
|
+
# @param verification_status [Symbol, ModernTreasury::Models::ExternalAccount::VerificationStatus]
|
158
158
|
|
159
159
|
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
160
160
|
# @!attribute id
|
@@ -169,7 +169,7 @@ module ModernTreasury
|
|
169
169
|
|
170
170
|
# @!attribute contact_identifier_type
|
171
171
|
#
|
172
|
-
# @return [Symbol, ModernTreasury::ExternalAccount::ContactDetail::ContactIdentifierType]
|
172
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccount::ContactDetail::ContactIdentifierType]
|
173
173
|
required :contact_identifier_type,
|
174
174
|
enum: -> { ModernTreasury::ExternalAccount::ContactDetail::ContactIdentifierType }
|
175
175
|
|
@@ -202,13 +202,13 @@ module ModernTreasury
|
|
202
202
|
|
203
203
|
# @!method initialize(id:, contact_identifier:, contact_identifier_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
|
204
204
|
# Some parameter documentations has been truncated, see
|
205
|
-
# {ModernTreasury::ExternalAccount::ContactDetail} for more details.
|
205
|
+
# {ModernTreasury::Models::ExternalAccount::ContactDetail} for more details.
|
206
206
|
#
|
207
207
|
# @param id [String]
|
208
208
|
#
|
209
209
|
# @param contact_identifier [String]
|
210
210
|
#
|
211
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::ExternalAccount::ContactDetail::ContactIdentifierType]
|
211
|
+
# @param contact_identifier_type [Symbol, ModernTreasury::Models::ExternalAccount::ContactDetail::ContactIdentifierType]
|
212
212
|
#
|
213
213
|
# @param created_at [Time]
|
214
214
|
#
|
@@ -220,7 +220,7 @@ module ModernTreasury
|
|
220
220
|
#
|
221
221
|
# @param updated_at [Time]
|
222
222
|
|
223
|
-
# @see ModernTreasury::ExternalAccount::ContactDetail#contact_identifier_type
|
223
|
+
# @see ModernTreasury::Models::ExternalAccount::ContactDetail#contact_identifier_type
|
224
224
|
module ContactIdentifierType
|
225
225
|
extend ModernTreasury::Internal::Type::Enum
|
226
226
|
|
@@ -233,7 +233,7 @@ module ModernTreasury
|
|
233
233
|
end
|
234
234
|
end
|
235
235
|
|
236
|
-
# @see ModernTreasury::ExternalAccount#party_address
|
236
|
+
# @see ModernTreasury::Models::ExternalAccount#party_address
|
237
237
|
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
238
238
|
# @!attribute id
|
239
239
|
#
|
@@ -298,7 +298,7 @@ module ModernTreasury
|
|
298
298
|
|
299
299
|
# @!method initialize(id:, country:, created_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
300
300
|
# Some parameter documentations has been truncated, see
|
301
|
-
# {ModernTreasury::ExternalAccount::PartyAddress} for more details.
|
301
|
+
# {ModernTreasury::Models::ExternalAccount::PartyAddress} for more details.
|
302
302
|
#
|
303
303
|
# The address associated with the owner or `null`.
|
304
304
|
#
|
@@ -327,7 +327,7 @@ module ModernTreasury
|
|
327
327
|
|
328
328
|
# Either `individual` or `business`.
|
329
329
|
#
|
330
|
-
# @see ModernTreasury::ExternalAccount#party_type
|
330
|
+
# @see ModernTreasury::Models::ExternalAccount#party_type
|
331
331
|
module PartyType
|
332
332
|
extend ModernTreasury::Internal::Type::Enum
|
333
333
|
|
@@ -338,7 +338,7 @@ module ModernTreasury
|
|
338
338
|
# @return [Array<Symbol>]
|
339
339
|
end
|
340
340
|
|
341
|
-
# @see ModernTreasury::ExternalAccount#verification_source
|
341
|
+
# @see ModernTreasury::Models::ExternalAccount#verification_source
|
342
342
|
module VerificationSource
|
343
343
|
extend ModernTreasury::Internal::Type::Enum
|
344
344
|
|
@@ -350,7 +350,7 @@ module ModernTreasury
|
|
350
350
|
# @return [Array<Symbol>]
|
351
351
|
end
|
352
352
|
|
353
|
-
# @see ModernTreasury::ExternalAccount#verification_status
|
353
|
+
# @see ModernTreasury::Models::ExternalAccount#verification_status
|
354
354
|
module VerificationStatus
|
355
355
|
extend ModernTreasury::Internal::Type::Enum
|
356
356
|
|
@@ -14,7 +14,7 @@ module ModernTreasury
|
|
14
14
|
|
15
15
|
# @!attribute account_details
|
16
16
|
#
|
17
|
-
# @return [Array<ModernTreasury::ExternalAccountCreateParams::AccountDetail>, nil]
|
17
|
+
# @return [Array<ModernTreasury::Models::ExternalAccountCreateParams::AccountDetail>, nil]
|
18
18
|
optional :account_details,
|
19
19
|
-> {
|
20
20
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccountCreateParams::AccountDetail]
|
@@ -23,12 +23,12 @@ module ModernTreasury
|
|
23
23
|
# @!attribute account_type
|
24
24
|
# Can be `checking`, `savings` or `other`.
|
25
25
|
#
|
26
|
-
# @return [Symbol, ModernTreasury::ExternalAccountType, nil]
|
26
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
27
27
|
optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
|
28
28
|
|
29
29
|
# @!attribute contact_details
|
30
30
|
#
|
31
|
-
# @return [Array<ModernTreasury::ExternalAccountCreateParams::ContactDetail>, nil]
|
31
|
+
# @return [Array<ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail>, nil]
|
32
32
|
optional :contact_details,
|
33
33
|
-> {
|
34
34
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccountCreateParams::ContactDetail]
|
@@ -41,7 +41,7 @@ module ModernTreasury
|
|
41
41
|
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
42
42
|
# for more details.
|
43
43
|
#
|
44
|
-
# @return [ModernTreasury::ExternalAccountCreateParams::LedgerAccount, nil]
|
44
|
+
# @return [ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount, nil]
|
45
45
|
optional :ledger_account, -> { ModernTreasury::ExternalAccountCreateParams::LedgerAccount }
|
46
46
|
|
47
47
|
# @!attribute metadata
|
@@ -61,7 +61,7 @@ module ModernTreasury
|
|
61
61
|
# @!attribute party_address
|
62
62
|
# Required if receiving wire payments.
|
63
63
|
#
|
64
|
-
# @return [ModernTreasury::ExternalAccountCreateParams::PartyAddress, nil]
|
64
|
+
# @return [ModernTreasury::Models::ExternalAccountCreateParams::PartyAddress, nil]
|
65
65
|
optional :party_address, -> { ModernTreasury::ExternalAccountCreateParams::PartyAddress }
|
66
66
|
|
67
67
|
# @!attribute party_identifier
|
@@ -78,7 +78,7 @@ module ModernTreasury
|
|
78
78
|
# @!attribute party_type
|
79
79
|
# Either `individual` or `business`.
|
80
80
|
#
|
81
|
-
# @return [Symbol, ModernTreasury::ExternalAccountCreateParams::PartyType, nil]
|
81
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::PartyType, nil]
|
82
82
|
optional :party_type, enum: -> { ModernTreasury::ExternalAccountCreateParams::PartyType }, nil?: true
|
83
83
|
|
84
84
|
# @!attribute plaid_processor_token
|
@@ -90,7 +90,7 @@ module ModernTreasury
|
|
90
90
|
|
91
91
|
# @!attribute routing_details
|
92
92
|
#
|
93
|
-
# @return [Array<ModernTreasury::ExternalAccountCreateParams::RoutingDetail>, nil]
|
93
|
+
# @return [Array<ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail>, nil]
|
94
94
|
optional :routing_details,
|
95
95
|
-> {
|
96
96
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ExternalAccountCreateParams::RoutingDetail]
|
@@ -102,29 +102,29 @@ module ModernTreasury
|
|
102
102
|
#
|
103
103
|
# @param counterparty_id [String, nil]
|
104
104
|
#
|
105
|
-
# @param account_details [Array<ModernTreasury::ExternalAccountCreateParams::AccountDetail>]
|
105
|
+
# @param account_details [Array<ModernTreasury::Models::ExternalAccountCreateParams::AccountDetail>]
|
106
106
|
#
|
107
|
-
# @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
107
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
108
108
|
#
|
109
|
-
# @param contact_details [Array<ModernTreasury::ExternalAccountCreateParams::ContactDetail>]
|
109
|
+
# @param contact_details [Array<ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail>]
|
110
110
|
#
|
111
|
-
# @param ledger_account [ModernTreasury::ExternalAccountCreateParams::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
111
|
+
# @param ledger_account [ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
112
112
|
#
|
113
113
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
114
114
|
#
|
115
115
|
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
116
116
|
#
|
117
|
-
# @param party_address [ModernTreasury::ExternalAccountCreateParams::PartyAddress] Required if receiving wire payments.
|
117
|
+
# @param party_address [ModernTreasury::Models::ExternalAccountCreateParams::PartyAddress] Required if receiving wire payments.
|
118
118
|
#
|
119
119
|
# @param party_identifier [String]
|
120
120
|
#
|
121
121
|
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
122
122
|
#
|
123
|
-
# @param party_type [Symbol, ModernTreasury::ExternalAccountCreateParams::PartyType, nil] Either `individual` or `business`.
|
123
|
+
# @param party_type [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::PartyType, nil] Either `individual` or `business`.
|
124
124
|
#
|
125
125
|
# @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
126
126
|
#
|
127
|
-
# @param routing_details [Array<ModernTreasury::ExternalAccountCreateParams::RoutingDetail>]
|
127
|
+
# @param routing_details [Array<ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail>]
|
128
128
|
#
|
129
129
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
130
130
|
|
@@ -136,27 +136,31 @@ module ModernTreasury
|
|
136
136
|
|
137
137
|
# @!attribute account_number_type
|
138
138
|
#
|
139
|
-
# @return [Symbol, ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType, nil]
|
139
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::AccountDetail::AccountNumberType, nil]
|
140
140
|
optional :account_number_type,
|
141
141
|
enum: -> { ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType }
|
142
142
|
|
143
143
|
# @!method initialize(account_number:, account_number_type: nil)
|
144
144
|
# @param account_number [String]
|
145
|
-
# @param account_number_type [Symbol, ModernTreasury::ExternalAccountCreateParams::AccountDetail::AccountNumberType]
|
145
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::AccountDetail::AccountNumberType]
|
146
146
|
|
147
|
-
# @see ModernTreasury::ExternalAccountCreateParams::AccountDetail#account_number_type
|
147
|
+
# @see ModernTreasury::Models::ExternalAccountCreateParams::AccountDetail#account_number_type
|
148
148
|
module AccountNumberType
|
149
149
|
extend ModernTreasury::Internal::Type::Enum
|
150
150
|
|
151
151
|
AU_NUMBER = :au_number
|
152
|
+
BASE_ADDRESS = :base_address
|
152
153
|
CLABE = :clabe
|
154
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
153
155
|
HK_NUMBER = :hk_number
|
154
156
|
IBAN = :iban
|
155
157
|
ID_NUMBER = :id_number
|
156
158
|
NZ_NUMBER = :nz_number
|
157
159
|
OTHER = :other
|
158
160
|
PAN = :pan
|
161
|
+
POLYGON_ADDRESS = :polygon_address
|
159
162
|
SG_NUMBER = :sg_number
|
163
|
+
SOLANA_ADDRESS = :solana_address
|
160
164
|
WALLET_ADDRESS = :wallet_address
|
161
165
|
|
162
166
|
# @!method self.values
|
@@ -172,7 +176,7 @@ module ModernTreasury
|
|
172
176
|
|
173
177
|
# @!attribute contact_identifier_type
|
174
178
|
#
|
175
|
-
# @return [Symbol, ModernTreasury::ExternalAccountCreateParams::ContactDetail::ContactIdentifierType, nil]
|
179
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::ContactIdentifierType, nil]
|
176
180
|
optional :contact_identifier_type,
|
177
181
|
enum: -> {
|
178
182
|
ModernTreasury::ExternalAccountCreateParams::ContactDetail::ContactIdentifierType
|
@@ -180,9 +184,9 @@ module ModernTreasury
|
|
180
184
|
|
181
185
|
# @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
|
182
186
|
# @param contact_identifier [String]
|
183
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::ExternalAccountCreateParams::ContactDetail::ContactIdentifierType]
|
187
|
+
# @param contact_identifier_type [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail::ContactIdentifierType]
|
184
188
|
|
185
|
-
# @see ModernTreasury::ExternalAccountCreateParams::ContactDetail#contact_identifier_type
|
189
|
+
# @see ModernTreasury::Models::ExternalAccountCreateParams::ContactDetail#contact_identifier_type
|
186
190
|
module ContactIdentifierType
|
187
191
|
extend ModernTreasury::Internal::Type::Enum
|
188
192
|
|
@@ -217,7 +221,7 @@ module ModernTreasury
|
|
217
221
|
# @!attribute normal_balance
|
218
222
|
# The normal balance of the ledger account.
|
219
223
|
#
|
220
|
-
# @return [Symbol, ModernTreasury::TransactionDirection]
|
224
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
221
225
|
required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
|
222
226
|
|
223
227
|
# @!attribute currency_exponent
|
@@ -251,7 +255,7 @@ module ModernTreasury
|
|
251
255
|
# be populated here, otherwise null. The value is one of internal_account or
|
252
256
|
# external_account.
|
253
257
|
#
|
254
|
-
# @return [Symbol, ModernTreasury::ExternalAccountCreateParams::LedgerAccount::LedgerableType, nil]
|
258
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::LedgerableType, nil]
|
255
259
|
optional :ledgerable_type,
|
256
260
|
enum: -> { ModernTreasury::ExternalAccountCreateParams::LedgerAccount::LedgerableType }
|
257
261
|
|
@@ -264,7 +268,8 @@ module ModernTreasury
|
|
264
268
|
|
265
269
|
# @!method initialize(currency:, ledger_id:, name:, normal_balance:, currency_exponent: nil, description: nil, ledger_account_category_ids: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil)
|
266
270
|
# Some parameter documentations has been truncated, see
|
267
|
-
# {ModernTreasury::ExternalAccountCreateParams::LedgerAccount} for more
|
271
|
+
# {ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount} for more
|
272
|
+
# details.
|
268
273
|
#
|
269
274
|
# Specifies a ledger account object that will be created with the external
|
270
275
|
# account. The resulting ledger account is linked to the external account for
|
@@ -278,7 +283,7 @@ module ModernTreasury
|
|
278
283
|
#
|
279
284
|
# @param name [String] The name of the ledger account.
|
280
285
|
#
|
281
|
-
# @param normal_balance [Symbol, ModernTreasury::TransactionDirection] The normal balance of the ledger account.
|
286
|
+
# @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection] The normal balance of the ledger account.
|
282
287
|
#
|
283
288
|
# @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
|
284
289
|
#
|
@@ -288,7 +293,7 @@ module ModernTreasury
|
|
288
293
|
#
|
289
294
|
# @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
|
290
295
|
#
|
291
|
-
# @param ledgerable_type [Symbol, ModernTreasury::ExternalAccountCreateParams::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
296
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
292
297
|
#
|
293
298
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
294
299
|
|
@@ -296,7 +301,7 @@ module ModernTreasury
|
|
296
301
|
# be populated here, otherwise null. The value is one of internal_account or
|
297
302
|
# external_account.
|
298
303
|
#
|
299
|
-
# @see ModernTreasury::ExternalAccountCreateParams::LedgerAccount#ledgerable_type
|
304
|
+
# @see ModernTreasury::Models::ExternalAccountCreateParams::LedgerAccount#ledgerable_type
|
300
305
|
module LedgerableType
|
301
306
|
extend ModernTreasury::Internal::Type::Enum
|
302
307
|
|
@@ -380,22 +385,22 @@ module ModernTreasury
|
|
380
385
|
|
381
386
|
# @!attribute routing_number_type
|
382
387
|
#
|
383
|
-
# @return [Symbol, ModernTreasury::ExternalAccountCreateParams::RoutingDetail::RoutingNumberType]
|
388
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail::RoutingNumberType]
|
384
389
|
required :routing_number_type,
|
385
390
|
enum: -> { ModernTreasury::ExternalAccountCreateParams::RoutingDetail::RoutingNumberType }
|
386
391
|
|
387
392
|
# @!attribute payment_type
|
388
393
|
#
|
389
|
-
# @return [Symbol, ModernTreasury::ExternalAccountCreateParams::RoutingDetail::PaymentType, nil]
|
394
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail::PaymentType, nil]
|
390
395
|
optional :payment_type,
|
391
396
|
enum: -> { ModernTreasury::ExternalAccountCreateParams::RoutingDetail::PaymentType }
|
392
397
|
|
393
398
|
# @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
|
394
399
|
# @param routing_number [String]
|
395
|
-
# @param routing_number_type [Symbol, ModernTreasury::ExternalAccountCreateParams::RoutingDetail::RoutingNumberType]
|
396
|
-
# @param payment_type [Symbol, ModernTreasury::ExternalAccountCreateParams::RoutingDetail::PaymentType]
|
400
|
+
# @param routing_number_type [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail::RoutingNumberType]
|
401
|
+
# @param payment_type [Symbol, ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail::PaymentType]
|
397
402
|
|
398
|
-
# @see ModernTreasury::ExternalAccountCreateParams::RoutingDetail#routing_number_type
|
403
|
+
# @see ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail#routing_number_type
|
399
404
|
module RoutingNumberType
|
400
405
|
extend ModernTreasury::Internal::Type::Enum
|
401
406
|
|
@@ -425,13 +430,14 @@ module ModernTreasury
|
|
425
430
|
# @return [Array<Symbol>]
|
426
431
|
end
|
427
432
|
|
428
|
-
# @see ModernTreasury::ExternalAccountCreateParams::RoutingDetail#payment_type
|
433
|
+
# @see ModernTreasury::Models::ExternalAccountCreateParams::RoutingDetail#payment_type
|
429
434
|
module PaymentType
|
430
435
|
extend ModernTreasury::Internal::Type::Enum
|
431
436
|
|
432
437
|
ACH = :ach
|
433
438
|
AU_BECS = :au_becs
|
434
439
|
BACS = :bacs
|
440
|
+
BASE = :base
|
435
441
|
BOOK = :book
|
436
442
|
CARD = :card
|
437
443
|
CHATS = :chats
|
@@ -439,6 +445,7 @@ module ModernTreasury
|
|
439
445
|
CROSS_BORDER = :cross_border
|
440
446
|
DK_NETS = :dk_nets
|
441
447
|
EFT = :eft
|
448
|
+
ETHEREUM = :ethereum
|
442
449
|
HU_ICS = :hu_ics
|
443
450
|
INTERAC = :interac
|
444
451
|
MASAV = :masav
|
@@ -447,6 +454,7 @@ module ModernTreasury
|
|
447
454
|
NICS = :nics
|
448
455
|
NZ_BECS = :nz_becs
|
449
456
|
PL_ELIXIR = :pl_elixir
|
457
|
+
POLYGON = :polygon
|
450
458
|
PROVXCHANGE = :provxchange
|
451
459
|
RO_SENT = :ro_sent
|
452
460
|
RTP = :rtp
|
@@ -457,6 +465,7 @@ module ModernTreasury
|
|
457
465
|
SIC = :sic
|
458
466
|
SIGNET = :signet
|
459
467
|
SKNBI = :sknbi
|
468
|
+
SOLANA = :solana
|
460
469
|
WIRE = :wire
|
461
470
|
ZENGIN = :zengin
|
462
471
|
|
@@ -6,14 +6,19 @@ module ModernTreasury
|
|
6
6
|
module ExternalAccountType
|
7
7
|
extend ModernTreasury::Internal::Type::Enum
|
8
8
|
|
9
|
+
BASE_WALLET = :base_wallet
|
9
10
|
CASH = :cash
|
10
11
|
CHECKING = :checking
|
12
|
+
CRYPTO_WALLET = :crypto_wallet
|
13
|
+
ETHEREUM_WALLET = :ethereum_wallet
|
11
14
|
GENERAL_LEDGER = :general_ledger
|
12
15
|
LOAN = :loan
|
13
16
|
NON_RESIDENT = :non_resident
|
14
17
|
OTHER = :other
|
15
18
|
OVERDRAFT = :overdraft
|
19
|
+
POLYGON_WALLET = :polygon_wallet
|
16
20
|
SAVINGS = :savings
|
21
|
+
SOLANA_WALLET = :solana_wallet
|
17
22
|
|
18
23
|
# @!method self.values
|
19
24
|
# @return [Array<Symbol>]
|
@@ -10,7 +10,7 @@ module ModernTreasury
|
|
10
10
|
# @!attribute account_type
|
11
11
|
# Can be `checking`, `savings` or `other`.
|
12
12
|
#
|
13
|
-
# @return [Symbol, ModernTreasury::ExternalAccountType, nil]
|
13
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
14
14
|
optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
|
15
15
|
|
16
16
|
# @!attribute counterparty_id
|
@@ -34,7 +34,7 @@ module ModernTreasury
|
|
34
34
|
|
35
35
|
# @!attribute party_address
|
36
36
|
#
|
37
|
-
# @return [ModernTreasury::ExternalAccountUpdateParams::PartyAddress, nil]
|
37
|
+
# @return [ModernTreasury::Models::ExternalAccountUpdateParams::PartyAddress, nil]
|
38
38
|
optional :party_address, -> { ModernTreasury::ExternalAccountUpdateParams::PartyAddress }
|
39
39
|
|
40
40
|
# @!attribute party_name
|
@@ -46,14 +46,14 @@ module ModernTreasury
|
|
46
46
|
# @!attribute party_type
|
47
47
|
# Either `individual` or `business`.
|
48
48
|
#
|
49
|
-
# @return [Symbol, ModernTreasury::ExternalAccountUpdateParams::PartyType, nil]
|
49
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountUpdateParams::PartyType, nil]
|
50
50
|
optional :party_type, enum: -> { ModernTreasury::ExternalAccountUpdateParams::PartyType }, nil?: true
|
51
51
|
|
52
52
|
# @!method initialize(account_type: nil, counterparty_id: nil, metadata: nil, name: nil, party_address: nil, party_name: nil, party_type: nil, request_options: {})
|
53
53
|
# Some parameter documentations has been truncated, see
|
54
54
|
# {ModernTreasury::Models::ExternalAccountUpdateParams} for more details.
|
55
55
|
#
|
56
|
-
# @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
56
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
57
57
|
#
|
58
58
|
# @param counterparty_id [String, nil]
|
59
59
|
#
|
@@ -61,11 +61,11 @@ module ModernTreasury
|
|
61
61
|
#
|
62
62
|
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
63
63
|
#
|
64
|
-
# @param party_address [ModernTreasury::ExternalAccountUpdateParams::PartyAddress]
|
64
|
+
# @param party_address [ModernTreasury::Models::ExternalAccountUpdateParams::PartyAddress]
|
65
65
|
#
|
66
66
|
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
67
67
|
#
|
68
|
-
# @param party_type [Symbol, ModernTreasury::ExternalAccountUpdateParams::PartyType, nil] Either `individual` or `business`.
|
68
|
+
# @param party_type [Symbol, ModernTreasury::Models::ExternalAccountUpdateParams::PartyType, nil] Either `individual` or `business`.
|
69
69
|
#
|
70
70
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
71
71
|
|