modern_treasury 0.0.0 → 0.1.0.pre.alpha.16
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/README.md +168 -0
- data/lib/modern_treasury/base_client.rb +457 -0
- data/lib/modern_treasury/base_model.rb +1211 -0
- data/lib/modern_treasury/base_page.rb +59 -0
- data/lib/modern_treasury/client.rb +250 -0
- data/lib/modern_treasury/errors.rb +183 -0
- data/lib/modern_treasury/extern.rb +7 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +199 -0
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +72 -0
- data/lib/modern_treasury/models/account_collection_flow_list_params.rb +85 -0
- data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +40 -0
- data/lib/modern_treasury/models/account_detail.rb +113 -0
- data/lib/modern_treasury/models/account_detail_create_params.rb +79 -0
- data/lib/modern_treasury/models/account_detail_delete_params.rb +42 -0
- data/lib/modern_treasury/models/account_detail_list_params.rb +40 -0
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +30 -0
- data/lib/modern_treasury/models/accounts_type.rb +18 -0
- data/lib/modern_treasury/models/async_response.rb +25 -0
- data/lib/modern_treasury/models/bank_settings.rb +97 -0
- data/lib/modern_treasury/models/bulk_request.rb +159 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +4128 -0
- data/lib/modern_treasury/models/bulk_request_list_params.rb +137 -0
- data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/bulk_result.rb +272 -0
- data/lib/modern_treasury/models/bulk_result_list_params.rb +151 -0
- data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/client_ping_params.rb +18 -0
- data/lib/modern_treasury/models/connection.rb +85 -0
- data/lib/modern_treasury/models/connection_legal_entity.rb +109 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +1024 -0
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +89 -0
- data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +42 -0
- data/lib/modern_treasury/models/connection_list_params.rb +56 -0
- data/lib/modern_treasury/models/counterparty.rb +561 -0
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +110 -0
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +38 -0
- data/lib/modern_treasury/models/counterparty_create_params.rb +1737 -0
- data/lib/modern_treasury/models/counterparty_delete_params.rb +18 -0
- data/lib/modern_treasury/models/counterparty_list_params.rb +117 -0
- data/lib/modern_treasury/models/counterparty_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/counterparty_update_params.rb +93 -0
- data/lib/modern_treasury/models/currency.rb +206 -0
- data/lib/modern_treasury/models/document.rb +247 -0
- data/lib/modern_treasury/models/document_create_params.rb +71 -0
- data/lib/modern_treasury/models/document_list_params.rb +84 -0
- data/lib/modern_treasury/models/document_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/event.rb +94 -0
- data/lib/modern_treasury/models/event_list_params.rb +98 -0
- data/lib/modern_treasury/models/event_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment.rb +285 -0
- data/lib/modern_treasury/models/expected_payment_create_params.rb +537 -0
- data/lib/modern_treasury/models/expected_payment_delete_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment_list_params.rb +199 -0
- data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/expected_payment_type.rb +48 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +207 -0
- data/lib/modern_treasury/models/external_account.rb +389 -0
- data/lib/modern_treasury/models/external_account_complete_verification_params.rb +28 -0
- data/lib/modern_treasury/models/external_account_create_params.rb +570 -0
- data/lib/modern_treasury/models/external_account_delete_params.rb +18 -0
- data/lib/modern_treasury/models/external_account_list_params.rb +78 -0
- data/lib/modern_treasury/models/external_account_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/external_account_type.rb +25 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +159 -0
- data/lib/modern_treasury/models/external_account_verify_params.rb +151 -0
- data/lib/modern_treasury/models/external_account_verify_response.rb +186 -0
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +180 -0
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +89 -0
- data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +127 -0
- data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +320 -0
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +141 -0
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +170 -0
- data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +30 -0
- data/lib/modern_treasury/models/internal_account.rb +299 -0
- data/lib/modern_treasury/models/internal_account_create_params.rb +186 -0
- data/lib/modern_treasury/models/internal_account_list_params.rb +157 -0
- data/lib/modern_treasury/models/internal_account_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/internal_account_update_params.rb +84 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +260 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +135 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +26 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +77 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +26 -0
- data/lib/modern_treasury/models/invoice.rb +624 -0
- data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +24 -0
- data/lib/modern_treasury/models/invoice_create_params.rb +649 -0
- data/lib/modern_treasury/models/invoice_list_params.rb +163 -0
- data/lib/modern_treasury/models/invoice_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/invoice_update_params.rb +665 -0
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +130 -0
- data/lib/modern_treasury/models/invoices/line_item_create_params.rb +108 -0
- data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +26 -0
- data/lib/modern_treasury/models/invoices/line_item_list_params.rb +36 -0
- data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +26 -0
- data/lib/modern_treasury/models/invoices/line_item_update_params.rb +123 -0
- data/lib/modern_treasury/models/ledger.rb +73 -0
- data/lib/modern_treasury/models/ledger_account.rb +351 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +337 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +92 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +70 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +41 -0
- data/lib/modern_treasury/models/ledger_account_category.rb +282 -0
- data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +97 -0
- data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +162 -0
- data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +24 -0
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +63 -0
- data/lib/modern_treasury/models/ledger_account_category_update_params.rb +48 -0
- data/lib/modern_treasury/models/ledger_account_create_params.rb +142 -0
- data/lib/modern_treasury/models/ledger_account_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_list_params.rb +467 -0
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +108 -0
- data/lib/modern_treasury/models/ledger_account_settlement.rb +175 -0
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +117 -0
- data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +140 -0
- data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +64 -0
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +28 -0
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +28 -0
- data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +71 -0
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +488 -0
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +488 -0
- data/lib/modern_treasury/models/ledger_account_update_params.rb +48 -0
- data/lib/modern_treasury/models/ledger_create_params.rb +44 -0
- data/lib/modern_treasury/models/ledger_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_entry.rb +346 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +347 -0
- data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +30 -0
- data/lib/modern_treasury/models/ledger_entry_update_params.rb +30 -0
- data/lib/modern_treasury/models/ledger_event_handler.rb +218 -0
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +185 -0
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +70 -0
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +58 -0
- data/lib/modern_treasury/models/ledger_list_params.rb +72 -0
- data/lib/modern_treasury/models/ledger_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_transaction.rb +213 -0
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +272 -0
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +127 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +146 -0
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +339 -0
- data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +250 -0
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +555 -0
- data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +96 -0
- data/lib/modern_treasury/models/ledger_update_params.rb +48 -0
- data/lib/modern_treasury/models/ledgerable_event.rb +96 -0
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +51 -0
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/legal_entity.rb +544 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +655 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +531 -0
- data/lib/modern_treasury/models/legal_entity_create_params.rb +964 -0
- data/lib/modern_treasury/models/legal_entity_list_params.rb +90 -0
- data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/legal_entity_update_params.rb +417 -0
- data/lib/modern_treasury/models/line_item.rb +161 -0
- data/lib/modern_treasury/models/line_item_list_params.rb +53 -0
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +43 -0
- data/lib/modern_treasury/models/line_item_update_params.rb +55 -0
- data/lib/modern_treasury/models/paper_item.rb +175 -0
- data/lib/modern_treasury/models/paper_item_list_params.rb +78 -0
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_flow.rb +293 -0
- data/lib/modern_treasury/models/payment_flow_create_params.rb +95 -0
- data/lib/modern_treasury/models/payment_flow_list_params.rb +107 -0
- data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_flow_update_params.rb +40 -0
- data/lib/modern_treasury/models/payment_order.rb +824 -0
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +1387 -0
- data/lib/modern_treasury/models/payment_order_create_params.rb +1460 -0
- data/lib/modern_treasury/models/payment_order_list_params.rb +299 -0
- data/lib/modern_treasury/models/payment_order_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_order_subtype.rb +49 -0
- data/lib/modern_treasury/models/payment_order_type.rb +49 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +1146 -0
- data/lib/modern_treasury/models/payment_orders/reversal.rb +139 -0
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +340 -0
- data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +36 -0
- data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +26 -0
- data/lib/modern_treasury/models/payment_reference.rb +189 -0
- data/lib/modern_treasury/models/payment_reference_list_params.rb +96 -0
- data/lib/modern_treasury/models/payment_reference_retireve_params.rb +18 -0
- data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/ping_response.rb +19 -0
- data/lib/modern_treasury/models/reconciliation_rule.rb +163 -0
- data/lib/modern_treasury/models/return_create_params.rb +154 -0
- data/lib/modern_treasury/models/return_list_params.rb +110 -0
- data/lib/modern_treasury/models/return_object.rb +485 -0
- data/lib/modern_treasury/models/return_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/routing_detail.rb +276 -0
- data/lib/modern_treasury/models/routing_detail_create_params.rb +141 -0
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +42 -0
- data/lib/modern_treasury/models/routing_detail_list_params.rb +40 -0
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +30 -0
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +211 -0
- data/lib/modern_treasury/models/transaction.rb +383 -0
- data/lib/modern_treasury/models/transaction_create_params.rb +163 -0
- data/lib/modern_treasury/models/transaction_delete_params.rb +18 -0
- data/lib/modern_treasury/models/transaction_direction.rb +18 -0
- data/lib/modern_treasury/models/transaction_list_params.rb +186 -0
- data/lib/modern_treasury/models/transaction_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/transaction_update_params.rb +30 -0
- data/lib/modern_treasury/models/transactions/line_item_create_params.rb +42 -0
- data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +20 -0
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +75 -0
- data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +20 -0
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +182 -0
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +72 -0
- data/lib/modern_treasury/models/virtual_account.rb +148 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +444 -0
- data/lib/modern_treasury/models/virtual_account_delete_params.rb +18 -0
- data/lib/modern_treasury/models/virtual_account_list_params.rb +77 -0
- data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +18 -0
- data/lib/modern_treasury/models/virtual_account_update_params.rb +55 -0
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +324 -0
- data/lib/modern_treasury/page.rb +92 -0
- data/lib/modern_treasury/pooled_net_requester.rb +180 -0
- data/lib/modern_treasury/request_options.rb +108 -0
- data/lib/modern_treasury/resources/account_collection_flows.rb +108 -0
- data/lib/modern_treasury/resources/account_details.rb +136 -0
- data/lib/modern_treasury/resources/bulk_requests.rb +91 -0
- data/lib/modern_treasury/resources/bulk_results.rb +66 -0
- data/lib/modern_treasury/resources/connection_legal_entities.rb +105 -0
- data/lib/modern_treasury/resources/connections.rb +39 -0
- data/lib/modern_treasury/resources/counterparties.rb +203 -0
- data/lib/modern_treasury/resources/documents.rb +86 -0
- data/lib/modern_treasury/resources/events.rb +63 -0
- data/lib/modern_treasury/resources/expected_payments.rb +227 -0
- data/lib/modern_treasury/resources/external_accounts.rb +222 -0
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +101 -0
- data/lib/modern_treasury/resources/incoming_payment_details.rb +133 -0
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +128 -0
- data/lib/modern_treasury/resources/internal_accounts.rb +140 -0
- data/lib/modern_treasury/resources/invoices/line_items.rb +177 -0
- data/lib/modern_treasury/resources/invoices.rb +286 -0
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +132 -0
- data/lib/modern_treasury/resources/ledger_account_categories.rb +266 -0
- data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +62 -0
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +152 -0
- data/lib/modern_treasury/resources/ledger_account_statements.rb +62 -0
- data/lib/modern_treasury/resources/ledger_accounts.rb +189 -0
- data/lib/modern_treasury/resources/ledger_entries.rb +137 -0
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +114 -0
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +50 -0
- data/lib/modern_treasury/resources/ledger_transactions.rb +262 -0
- data/lib/modern_treasury/resources/ledgerable_events.rb +57 -0
- data/lib/modern_treasury/resources/ledgers.rb +134 -0
- data/lib/modern_treasury/resources/legal_entities.rb +193 -0
- data/lib/modern_treasury/resources/legal_entity_associations.rb +43 -0
- data/lib/modern_treasury/resources/line_items.rb +109 -0
- data/lib/modern_treasury/resources/paper_items.rb +60 -0
- data/lib/modern_treasury/resources/payment_flows.rb +123 -0
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +95 -0
- data/lib/modern_treasury/resources/payment_orders.rb +517 -0
- data/lib/modern_treasury/resources/payment_references.rb +66 -0
- data/lib/modern_treasury/resources/returns.rb +98 -0
- data/lib/modern_treasury/resources/routing_details.rb +140 -0
- data/lib/modern_treasury/resources/transactions/line_items.rb +104 -0
- data/lib/modern_treasury/resources/transactions.rb +174 -0
- data/lib/modern_treasury/resources/validations.rb +38 -0
- data/lib/modern_treasury/resources/virtual_accounts.rb +152 -0
- data/lib/modern_treasury/util.rb +728 -0
- data/lib/modern_treasury/version.rb +5 -0
- data/lib/modern_treasury.rb +310 -0
- data/manifest.yaml +14 -0
- data/rbi/lib/modern_treasury/base_client.rbi +197 -0
- data/rbi/lib/modern_treasury/base_model.rbi +645 -0
- data/rbi/lib/modern_treasury/base_page.rbi +36 -0
- data/rbi/lib/modern_treasury/client.rbi +174 -0
- data/rbi/lib/modern_treasury/errors.rbi +144 -0
- data/rbi/lib/modern_treasury/extern.rbi +7 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +203 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +114 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_list_params.rbi +83 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +57 -0
- data/rbi/lib/modern_treasury/models/account_detail.rbi +115 -0
- data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +107 -0
- data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +56 -0
- data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +48 -0
- data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +40 -0
- data/rbi/lib/modern_treasury/models/accounts_type.rbi +19 -0
- data/rbi/lib/modern_treasury/models/async_response.rbi +21 -0
- data/rbi/lib/modern_treasury/models/bank_settings.rbi +96 -0
- data/rbi/lib/modern_treasury/models/bulk_request.rbi +162 -0
- data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +6311 -0
- data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +146 -0
- data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/bulk_result.rbi +286 -0
- data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +157 -0
- data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/client_ping_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/connection.rbi +85 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +110 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +1752 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/connection_list_params.rbi +61 -0
- data/rbi/lib/modern_treasury/models/counterparty.rbi +607 -0
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +161 -0
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +31 -0
- data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +2867 -0
- data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/counterparty_list_params.rbi +111 -0
- data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/counterparty_update_params.rbi +91 -0
- data/rbi/lib/modern_treasury/models/currency.rbi +207 -0
- data/rbi/lib/modern_treasury/models/document.rbi +243 -0
- data/rbi/lib/modern_treasury/models/document_create_params.rbi +95 -0
- data/rbi/lib/modern_treasury/models/document_list_params.rbi +105 -0
- data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/event.rbi +82 -0
- data/rbi/lib/modern_treasury/models/event_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/expected_payment.rbi +272 -0
- data/rbi/lib/modern_treasury/models/expected_payment_create_params.rbi +616 -0
- data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +197 -0
- data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +49 -0
- data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +201 -0
- data/rbi/lib/modern_treasury/models/external_account.rbi +410 -0
- data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +959 -0
- data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/external_account_list_params.rbi +78 -0
- data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/external_account_type.rbi +26 -0
- data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +170 -0
- data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +167 -0
- data/rbi/lib/modern_treasury/models/external_account_verify_response.rbi +395 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote.rbi +188 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_create_params.rbi +88 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_list_params.rbi +119 -0
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +427 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +153 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +170 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_update_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/internal_account.rbi +302 -0
- data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +193 -0
- data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +158 -0
- data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/internal_account_update_params.rbi +83 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report.rbi +311 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +235 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +31 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rbi +119 -0
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +31 -0
- data/rbi/lib/modern_treasury/models/invoice.rbi +648 -0
- data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/invoice_create_params.rbi +707 -0
- data/rbi/lib/modern_treasury/models/invoice_list_params.rbi +154 -0
- data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/invoice_update_params.rbi +719 -0
- data/rbi/lib/modern_treasury/models/invoices/invoice_line_item.rbi +126 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_create_params.rbi +105 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +29 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_list_params.rbi +45 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +29 -0
- data/rbi/lib/modern_treasury/models/invoices/line_item_update_params.rbi +117 -0
- data/rbi/lib/modern_treasury/models/ledger.rbi +76 -0
- data/rbi/lib/modern_treasury/models/ledger_account.rbi +401 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +447 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rbi +103 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rbi +73 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rbi +49 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category.rbi +354 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_create_params.rbi +96 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_list_params.rbi +154 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +30 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +77 -0
- data/rbi/lib/modern_treasury/models/ledger_account_category_update_params.rbi +55 -0
- data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +146 -0
- data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_list_params.rbi +454 -0
- data/rbi/lib/modern_treasury/models/ledger_account_retrieve_params.rbi +121 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement.rbi +169 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_create_params.rbi +123 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_list_params.rbi +130 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +79 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +39 -0
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +37 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_create_params.rbi +74 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_create_response.rbi +638 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +638 -0
- data/rbi/lib/modern_treasury/models/ledger_account_update_params.rbi +55 -0
- data/rbi/lib/modern_treasury/models/ledger_create_params.rbi +52 -0
- data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_entry.rbi +415 -0
- data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +342 -0
- data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +32 -0
- data/rbi/lib/modern_treasury/models/ledger_entry_update_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +231 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +210 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_list_params.rbi +73 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +59 -0
- data/rbi/lib/modern_treasury/models/ledger_list_params.rbi +75 -0
- data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +208 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +286 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +171 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +191 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +360 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +272 -0
- data/rbi/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +731 -0
- data/rbi/lib/modern_treasury/models/ledger_transactions/version_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/ledger_update_params.rbi +55 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event.rbi +94 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event_create_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/legal_entity.rbi +543 -0
- data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +879 -0
- data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +892 -0
- data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +1421 -0
- data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +94 -0
- data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +487 -0
- data/rbi/lib/modern_treasury/models/line_item.rbi +158 -0
- data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +65 -0
- data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +58 -0
- data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +68 -0
- data/rbi/lib/modern_treasury/models/paper_item.rbi +167 -0
- data/rbi/lib/modern_treasury/models/paper_item_list_params.rbi +78 -0
- data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_flow.rbi +285 -0
- data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +99 -0
- data/rbi/lib/modern_treasury/models/payment_flow_list_params.rbi +101 -0
- data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +53 -0
- data/rbi/lib/modern_treasury/models/payment_order.rbi +1115 -0
- data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +2008 -0
- data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +2083 -0
- data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +282 -0
- data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +50 -0
- data/rbi/lib/modern_treasury/models/payment_order_type.rbi +50 -0
- data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +1651 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +145 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_create_params.rbi +465 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_list_params.rbi +45 -0
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +29 -0
- data/rbi/lib/modern_treasury/models/payment_reference.rbi +371 -0
- data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +109 -0
- data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/ping_response.rbi +18 -0
- data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +164 -0
- data/rbi/lib/modern_treasury/models/return_create_params.rbi +161 -0
- data/rbi/lib/modern_treasury/models/return_list_params.rbi +112 -0
- data/rbi/lib/modern_treasury/models/return_object.rbi +769 -0
- data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/routing_detail.rbi +297 -0
- data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +207 -0
- data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +56 -0
- data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +48 -0
- data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +40 -0
- data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +291 -0
- data/rbi/lib/modern_treasury/models/transaction.rbi +380 -0
- data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +162 -0
- data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/transaction_direction.rbi +19 -0
- data/rbi/lib/modern_treasury/models/transaction_list_params.rbi +168 -0
- data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/transaction_update_params.rbi +34 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_create_params.rbi +51 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +23 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +84 -0
- data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +23 -0
- data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +212 -0
- data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +178 -0
- data/rbi/lib/modern_treasury/models/virtual_account.rbi +141 -0
- data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +753 -0
- data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/virtual_account_list_params.rbi +77 -0
- data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +21 -0
- data/rbi/lib/modern_treasury/models/virtual_account_update_params.rbi +60 -0
- data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +410 -0
- data/rbi/lib/modern_treasury/page.rbi +31 -0
- data/rbi/lib/modern_treasury/pooled_net_requester.rbi +62 -0
- data/rbi/lib/modern_treasury/request_options.rbi +63 -0
- data/rbi/lib/modern_treasury/resources/account_collection_flows.rbi +88 -0
- data/rbi/lib/modern_treasury/resources/account_details.rbi +100 -0
- data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +95 -0
- data/rbi/lib/modern_treasury/resources/bulk_results.rbi +60 -0
- data/rbi/lib/modern_treasury/resources/connection_legal_entities.rbi +90 -0
- data/rbi/lib/modern_treasury/resources/connections.rbi +33 -0
- data/rbi/lib/modern_treasury/resources/counterparties.rbi +198 -0
- data/rbi/lib/modern_treasury/resources/documents.rbi +72 -0
- data/rbi/lib/modern_treasury/resources/events.rbi +54 -0
- data/rbi/lib/modern_treasury/resources/expected_payments.rbi +248 -0
- data/rbi/lib/modern_treasury/resources/external_accounts.rbi +212 -0
- data/rbi/lib/modern_treasury/resources/foreign_exchange_quotes.rbi +97 -0
- data/rbi/lib/modern_treasury/resources/incoming_payment_details.rbi +127 -0
- data/rbi/lib/modern_treasury/resources/internal_accounts/balance_reports.rbi +106 -0
- data/rbi/lib/modern_treasury/resources/internal_accounts.rbi +137 -0
- data/rbi/lib/modern_treasury/resources/invoices/line_items.rbi +157 -0
- data/rbi/lib/modern_treasury/resources/invoices.rbi +338 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_balance_monitors.rbi +119 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_categories.rbi +227 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rbi +51 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_settlements.rbi +143 -0
- data/rbi/lib/modern_treasury/resources/ledger_account_statements.rbi +57 -0
- data/rbi/lib/modern_treasury/resources/ledger_accounts.rbi +191 -0
- data/rbi/lib/modern_treasury/resources/ledger_entries.rbi +135 -0
- data/rbi/lib/modern_treasury/resources/ledger_event_handlers.rbi +107 -0
- data/rbi/lib/modern_treasury/resources/ledger_transactions/versions.rbi +46 -0
- data/rbi/lib/modern_treasury/resources/ledger_transactions.rbi +268 -0
- data/rbi/lib/modern_treasury/resources/ledgerable_events.rbi +51 -0
- data/rbi/lib/modern_treasury/resources/ledgers.rbi +118 -0
- data/rbi/lib/modern_treasury/resources/legal_entities.rbi +217 -0
- data/rbi/lib/modern_treasury/resources/legal_entity_associations.rbi +44 -0
- data/rbi/lib/modern_treasury/resources/line_items.rbi +81 -0
- data/rbi/lib/modern_treasury/resources/paper_items.rbi +52 -0
- data/rbi/lib/modern_treasury/resources/payment_flows.rbi +108 -0
- data/rbi/lib/modern_treasury/resources/payment_orders/reversals.rbi +82 -0
- data/rbi/lib/modern_treasury/resources/payment_orders.rbi +601 -0
- data/rbi/lib/modern_treasury/resources/payment_references.rbi +53 -0
- data/rbi/lib/modern_treasury/resources/returns.rbi +91 -0
- data/rbi/lib/modern_treasury/resources/routing_details.rbi +105 -0
- data/rbi/lib/modern_treasury/resources/transactions/line_items.rbi +87 -0
- data/rbi/lib/modern_treasury/resources/transactions.rbi +166 -0
- data/rbi/lib/modern_treasury/resources/validations.rbi +33 -0
- data/rbi/lib/modern_treasury/resources/virtual_accounts.rbi +139 -0
- data/rbi/lib/modern_treasury/util.rbi +281 -0
- data/rbi/lib/modern_treasury/version.rbi +5 -0
- data/sig/modern_treasury/base_client.rbs +108 -0
- data/sig/modern_treasury/base_model.rbs +262 -0
- data/sig/modern_treasury/base_page.rbs +20 -0
- data/sig/modern_treasury/client.rbs +106 -0
- data/sig/modern_treasury/errors.rbs +99 -0
- data/sig/modern_treasury/extern.rbs +4 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +147 -0
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +80 -0
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +53 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +33 -0
- data/sig/modern_treasury/models/account_detail.rbs +81 -0
- data/sig/modern_treasury/models/account_detail_create_params.rbs +74 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +37 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +33 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/accounts_type.rbs +14 -0
- data/sig/modern_treasury/models/async_response.rbs +15 -0
- data/sig/modern_treasury/models/bank_settings.rbs +54 -0
- data/sig/modern_treasury/models/bulk_request.rbs +100 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +2594 -0
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +97 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/bulk_result.rbs +176 -0
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +106 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +14 -0
- data/sig/modern_treasury/models/connection.rbs +50 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +67 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +711 -0
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +62 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +37 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +41 -0
- data/sig/modern_treasury/models/counterparty.rbs +343 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +110 -0
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +18 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +1265 -0
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +14 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +65 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +53 -0
- data/sig/modern_treasury/models/currency.rbs +390 -0
- data/sig/modern_treasury/models/document.rbs +162 -0
- data/sig/modern_treasury/models/document_create_params.rbs +70 -0
- data/sig/modern_treasury/models/document_list_params.rbs +76 -0
- data/sig/modern_treasury/models/document_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/event.rbs +54 -0
- data/sig/modern_treasury/models/event_list_params.rbs +59 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/expected_payment.rbs +154 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +294 -0
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +166 -0
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +72 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +110 -0
- data/sig/modern_treasury/models/external_account.rbs +235 -0
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +22 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +463 -0
- data/sig/modern_treasury/models/external_account_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +47 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/external_account_type.rbs +28 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +105 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +141 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +157 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +103 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +53 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +71 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +225 -0
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +93 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +108 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +22 -0
- data/sig/modern_treasury/models/internal_account.rbs +181 -0
- data/sig/modern_treasury/models/internal_account_create_params.rbs +115 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +140 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +49 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +160 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +105 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +22 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +59 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/invoice.rbs +367 -0
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +20 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +370 -0
- data/sig/modern_treasury/models/invoice_list_params.rbs +101 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +378 -0
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +70 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +59 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +22 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +28 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +67 -0
- data/sig/modern_treasury/models/ledger.rbs +50 -0
- data/sig/modern_treasury/models/ledger_account.rbs +212 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +215 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +57 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +47 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +28 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +178 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +55 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +91 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +20 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +43 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +31 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +83 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +285 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +68 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +98 -0
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +64 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +77 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +48 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +41 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +306 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +306 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +31 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +29 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +206 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +206 -0
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +22 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +126 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +109 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +47 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +36 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +47 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +123 -0
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +155 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +81 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +96 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +219 -0
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +147 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +326 -0
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +55 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +31 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +54 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +37 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity.rbs +363 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +425 -0
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +371 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +678 -0
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +60 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +300 -0
- data/sig/modern_treasury/models/line_item.rbs +89 -0
- data/sig/modern_treasury/models/line_item_list_params.rbs +44 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +38 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +44 -0
- data/sig/modern_treasury/models/paper_item.rbs +98 -0
- data/sig/modern_treasury/models/paper_item_list_params.rbs +47 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/payment_flow.rbs +165 -0
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +56 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +65 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +31 -0
- data/sig/modern_treasury/models/payment_order.rbs +564 -0
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +893 -0
- data/sig/modern_treasury/models/payment_order_create_params.rbs +963 -0
- data/sig/modern_treasury/models/payment_order_list_params.rbs +238 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_order_subtype.rbs +70 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +72 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +781 -0
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +95 -0
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +205 -0
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +28 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +22 -0
- data/sig/modern_treasury/models/payment_reference.rbs +213 -0
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +61 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/ping_response.rbs +13 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +138 -0
- data/sig/modern_treasury/models/return_create_params.rbs +168 -0
- data/sig/modern_treasury/models/return_list_params.rbs +74 -0
- data/sig/modern_treasury/models/return_object.rbs +492 -0
- data/sig/modern_treasury/models/return_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/routing_detail.rbs +233 -0
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +165 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +37 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +33 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +27 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +185 -0
- data/sig/modern_treasury/models/transaction.rbs +281 -0
- data/sig/modern_treasury/models/transaction_create_params.rbs +134 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +14 -0
- data/sig/modern_treasury/models/transaction_direction.rbs +14 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +101 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +14 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +22 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +29 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +16 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +58 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +16 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +110 -0
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +78 -0
- data/sig/modern_treasury/models/virtual_account.rbs +78 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +354 -0
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +15 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +47 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +41 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +306 -0
- data/sig/modern_treasury/page.rbs +17 -0
- data/sig/modern_treasury/pooled_net_requester.rbs +37 -0
- data/sig/modern_treasury/request_options.rbs +46 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +35 -0
- data/sig/modern_treasury/resources/account_details.rbs +37 -0
- data/sig/modern_treasury/resources/bulk_requests.rbs +30 -0
- data/sig/modern_treasury/resources/bulk_results.rbs +23 -0
- data/sig/modern_treasury/resources/connection_legal_entities.rbs +34 -0
- data/sig/modern_treasury/resources/connections.rbs +15 -0
- data/sig/modern_treasury/resources/counterparties.rbs +64 -0
- data/sig/modern_treasury/resources/documents.rbs +28 -0
- data/sig/modern_treasury/resources/events.rbs +23 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +76 -0
- data/sig/modern_treasury/resources/external_accounts.rbs +71 -0
- data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +35 -0
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +43 -0
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +39 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +49 -0
- data/sig/modern_treasury/resources/invoices/line_items.rbs +53 -0
- data/sig/modern_treasury/resources/invoices.rbs +94 -0
- data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +41 -0
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +76 -0
- data/sig/modern_treasury/resources/ledger_account_settlements/account_entries.rbs +21 -0
- data/sig/modern_treasury/resources/ledger_account_settlements.rbs +48 -0
- data/sig/modern_treasury/resources/ledger_account_statements.rbs +21 -0
- data/sig/modern_treasury/resources/ledger_accounts.rbs +58 -0
- data/sig/modern_treasury/resources/ledger_entries.rbs +43 -0
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +37 -0
- data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +19 -0
- data/sig/modern_treasury/resources/ledger_transactions.rbs +83 -0
- data/sig/modern_treasury/resources/ledgerable_events.rbs +20 -0
- data/sig/modern_treasury/resources/ledgers.rbs +41 -0
- data/sig/modern_treasury/resources/legal_entities.rbs +76 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +17 -0
- data/sig/modern_treasury/resources/line_items.rbs +30 -0
- data/sig/modern_treasury/resources/paper_items.rbs +21 -0
- data/sig/modern_treasury/resources/payment_flows.rbs +40 -0
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +30 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +153 -0
- data/sig/modern_treasury/resources/payment_references.rbs +23 -0
- data/sig/modern_treasury/resources/returns.rbs +32 -0
- data/sig/modern_treasury/resources/routing_details.rbs +38 -0
- data/sig/modern_treasury/resources/transactions/line_items.rbs +35 -0
- data/sig/modern_treasury/resources/transactions.rbs +57 -0
- data/sig/modern_treasury/resources/validations.rbs +13 -0
- data/sig/modern_treasury/resources/virtual_accounts.rbs +49 -0
- data/sig/modern_treasury/util.rbs +136 -0
- data/sig/modern_treasury/version.rbs +3 -0
- metadata +861 -20
@@ -0,0 +1,1737 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module ModernTreasury
|
4
|
+
module Models
|
5
|
+
class CounterpartyCreateParams < ModernTreasury::BaseModel
|
6
|
+
# @!parse
|
7
|
+
# extend ModernTreasury::RequestParameters::Converter
|
8
|
+
include ModernTreasury::RequestParameters
|
9
|
+
|
10
|
+
# @!attribute name
|
11
|
+
# A human friendly name for this counterparty.
|
12
|
+
#
|
13
|
+
# @return [String, nil]
|
14
|
+
required :name, String, nil?: true
|
15
|
+
|
16
|
+
# @!attribute [r] accounting
|
17
|
+
#
|
18
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting, nil]
|
19
|
+
optional :accounting, -> { ModernTreasury::Models::CounterpartyCreateParams::Accounting }
|
20
|
+
|
21
|
+
# @!parse
|
22
|
+
# # @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
|
23
|
+
# attr_writer :accounting
|
24
|
+
|
25
|
+
# @!attribute [r] accounts
|
26
|
+
# The accounts for this counterparty.
|
27
|
+
#
|
28
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>, nil]
|
29
|
+
optional :accounts,
|
30
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account] }
|
31
|
+
|
32
|
+
# @!parse
|
33
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>]
|
34
|
+
# attr_writer :accounts
|
35
|
+
|
36
|
+
# @!attribute email
|
37
|
+
# The counterparty's email.
|
38
|
+
#
|
39
|
+
# @return [String, nil]
|
40
|
+
optional :email, String, nil?: true
|
41
|
+
|
42
|
+
# @!attribute [r] ledger_type
|
43
|
+
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
44
|
+
# or `vendor`.
|
45
|
+
#
|
46
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType, nil]
|
47
|
+
optional :ledger_type, enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LedgerType }
|
48
|
+
|
49
|
+
# @!parse
|
50
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType]
|
51
|
+
# attr_writer :ledger_type
|
52
|
+
|
53
|
+
# @!attribute [r] legal_entity
|
54
|
+
#
|
55
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity, nil]
|
56
|
+
optional :legal_entity, -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity }
|
57
|
+
|
58
|
+
# @!parse
|
59
|
+
# # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
|
60
|
+
# attr_writer :legal_entity
|
61
|
+
|
62
|
+
# @!attribute legal_entity_id
|
63
|
+
# The id of the legal entity.
|
64
|
+
#
|
65
|
+
# @return [String, nil]
|
66
|
+
optional :legal_entity_id, String, nil?: true
|
67
|
+
|
68
|
+
# @!attribute [r] metadata
|
69
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
70
|
+
# strings.
|
71
|
+
#
|
72
|
+
# @return [Hash{Symbol=>String}, nil]
|
73
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
74
|
+
|
75
|
+
# @!parse
|
76
|
+
# # @return [Hash{Symbol=>String}]
|
77
|
+
# attr_writer :metadata
|
78
|
+
|
79
|
+
# @!attribute [r] send_remittance_advice
|
80
|
+
# Send an email to the counterparty whenever an associated payment order is sent
|
81
|
+
# to the bank.
|
82
|
+
#
|
83
|
+
# @return [Boolean, nil]
|
84
|
+
optional :send_remittance_advice, ModernTreasury::BooleanModel
|
85
|
+
|
86
|
+
# @!parse
|
87
|
+
# # @return [Boolean]
|
88
|
+
# attr_writer :send_remittance_advice
|
89
|
+
|
90
|
+
# @!attribute [r] taxpayer_identifier
|
91
|
+
# Either a valid SSN or EIN.
|
92
|
+
#
|
93
|
+
# @return [String, nil]
|
94
|
+
optional :taxpayer_identifier, String
|
95
|
+
|
96
|
+
# @!parse
|
97
|
+
# # @return [String]
|
98
|
+
# attr_writer :taxpayer_identifier
|
99
|
+
|
100
|
+
# @!attribute [r] verification_status
|
101
|
+
# The verification status of the counterparty.
|
102
|
+
#
|
103
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus, nil]
|
104
|
+
optional :verification_status,
|
105
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus }
|
106
|
+
|
107
|
+
# @!parse
|
108
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus]
|
109
|
+
# attr_writer :verification_status
|
110
|
+
|
111
|
+
# @!parse
|
112
|
+
# # @param name [String, nil]
|
113
|
+
# # @param accounting [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
|
114
|
+
# # @param accounts [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>]
|
115
|
+
# # @param email [String, nil]
|
116
|
+
# # @param ledger_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType]
|
117
|
+
# # @param legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
|
118
|
+
# # @param legal_entity_id [String, nil]
|
119
|
+
# # @param metadata [Hash{Symbol=>String}]
|
120
|
+
# # @param send_remittance_advice [Boolean]
|
121
|
+
# # @param taxpayer_identifier [String]
|
122
|
+
# # @param verification_status [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus]
|
123
|
+
# # @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
124
|
+
# #
|
125
|
+
# def initialize(
|
126
|
+
# name:,
|
127
|
+
# accounting: nil,
|
128
|
+
# accounts: nil,
|
129
|
+
# email: nil,
|
130
|
+
# ledger_type: nil,
|
131
|
+
# legal_entity: nil,
|
132
|
+
# legal_entity_id: nil,
|
133
|
+
# metadata: nil,
|
134
|
+
# send_remittance_advice: nil,
|
135
|
+
# taxpayer_identifier: nil,
|
136
|
+
# verification_status: nil,
|
137
|
+
# request_options: {},
|
138
|
+
# **
|
139
|
+
# )
|
140
|
+
# super
|
141
|
+
# end
|
142
|
+
|
143
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
144
|
+
|
145
|
+
class Accounting < ModernTreasury::BaseModel
|
146
|
+
# @!attribute [r] type
|
147
|
+
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
148
|
+
# or `vendor`.
|
149
|
+
#
|
150
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type, nil]
|
151
|
+
optional :type, enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type }
|
152
|
+
|
153
|
+
# @!parse
|
154
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type]
|
155
|
+
# attr_writer :type
|
156
|
+
|
157
|
+
# @!parse
|
158
|
+
# # @param type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type]
|
159
|
+
# #
|
160
|
+
# def initialize(type: nil, **) = super
|
161
|
+
|
162
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
163
|
+
|
164
|
+
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
165
|
+
# or `vendor`.
|
166
|
+
module Type
|
167
|
+
extend ModernTreasury::Enum
|
168
|
+
|
169
|
+
CUSTOMER = :customer
|
170
|
+
VENDOR = :vendor
|
171
|
+
|
172
|
+
finalize!
|
173
|
+
|
174
|
+
# @!parse
|
175
|
+
# # @return [Array<Symbol>]
|
176
|
+
# def self.values; end
|
177
|
+
end
|
178
|
+
end
|
179
|
+
|
180
|
+
class Account < ModernTreasury::BaseModel
|
181
|
+
# @!attribute [r] account_details
|
182
|
+
#
|
183
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>, nil]
|
184
|
+
optional :account_details,
|
185
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail] }
|
186
|
+
|
187
|
+
# @!parse
|
188
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
|
189
|
+
# attr_writer :account_details
|
190
|
+
|
191
|
+
# @!attribute [r] account_type
|
192
|
+
# Can be `checking`, `savings` or `other`.
|
193
|
+
#
|
194
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
195
|
+
optional :account_type, enum: -> { ModernTreasury::Models::ExternalAccountType }
|
196
|
+
|
197
|
+
# @!parse
|
198
|
+
# # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
|
199
|
+
# attr_writer :account_type
|
200
|
+
|
201
|
+
# @!attribute [r] contact_details
|
202
|
+
#
|
203
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>, nil]
|
204
|
+
optional :contact_details,
|
205
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail] }
|
206
|
+
|
207
|
+
# @!parse
|
208
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
|
209
|
+
# attr_writer :contact_details
|
210
|
+
|
211
|
+
# @!attribute [r] ledger_account
|
212
|
+
# Specifies a ledger account object that will be created with the external
|
213
|
+
# account. The resulting ledger account is linked to the external account for
|
214
|
+
# auto-ledgering Payment objects. See
|
215
|
+
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
216
|
+
# for more details.
|
217
|
+
#
|
218
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount, nil]
|
219
|
+
optional :ledger_account, -> { ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount }
|
220
|
+
|
221
|
+
# @!parse
|
222
|
+
# # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount]
|
223
|
+
# attr_writer :ledger_account
|
224
|
+
|
225
|
+
# @!attribute [r] metadata
|
226
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
227
|
+
# strings.
|
228
|
+
#
|
229
|
+
# @return [Hash{Symbol=>String}, nil]
|
230
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
231
|
+
|
232
|
+
# @!parse
|
233
|
+
# # @return [Hash{Symbol=>String}]
|
234
|
+
# attr_writer :metadata
|
235
|
+
|
236
|
+
# @!attribute name
|
237
|
+
# A nickname for the external account. This is only for internal usage and won't
|
238
|
+
# affect any payments
|
239
|
+
#
|
240
|
+
# @return [String, nil]
|
241
|
+
optional :name, String, nil?: true
|
242
|
+
|
243
|
+
# @!attribute [r] party_address
|
244
|
+
# Required if receiving wire payments.
|
245
|
+
#
|
246
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress, nil]
|
247
|
+
optional :party_address, -> { ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress }
|
248
|
+
|
249
|
+
# @!parse
|
250
|
+
# # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress]
|
251
|
+
# attr_writer :party_address
|
252
|
+
|
253
|
+
# @!attribute [r] party_identifier
|
254
|
+
#
|
255
|
+
# @return [String, nil]
|
256
|
+
optional :party_identifier, String
|
257
|
+
|
258
|
+
# @!parse
|
259
|
+
# # @return [String]
|
260
|
+
# attr_writer :party_identifier
|
261
|
+
|
262
|
+
# @!attribute [r] party_name
|
263
|
+
# If this value isn't provided, it will be inherited from the counterparty's name.
|
264
|
+
#
|
265
|
+
# @return [String, nil]
|
266
|
+
optional :party_name, String
|
267
|
+
|
268
|
+
# @!parse
|
269
|
+
# # @return [String]
|
270
|
+
# attr_writer :party_name
|
271
|
+
|
272
|
+
# @!attribute party_type
|
273
|
+
# Either `individual` or `business`.
|
274
|
+
#
|
275
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil]
|
276
|
+
optional :party_type,
|
277
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType },
|
278
|
+
nil?: true
|
279
|
+
|
280
|
+
# @!attribute [r] plaid_processor_token
|
281
|
+
# If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
282
|
+
# you can pass the processor token in this field.
|
283
|
+
#
|
284
|
+
# @return [String, nil]
|
285
|
+
optional :plaid_processor_token, String
|
286
|
+
|
287
|
+
# @!parse
|
288
|
+
# # @return [String]
|
289
|
+
# attr_writer :plaid_processor_token
|
290
|
+
|
291
|
+
# @!attribute [r] routing_details
|
292
|
+
#
|
293
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>, nil]
|
294
|
+
optional :routing_details,
|
295
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail] }
|
296
|
+
|
297
|
+
# @!parse
|
298
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>]
|
299
|
+
# attr_writer :routing_details
|
300
|
+
|
301
|
+
# @!parse
|
302
|
+
# # @param account_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
|
303
|
+
# # @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType]
|
304
|
+
# # @param contact_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
|
305
|
+
# # @param ledger_account [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount]
|
306
|
+
# # @param metadata [Hash{Symbol=>String}]
|
307
|
+
# # @param name [String, nil]
|
308
|
+
# # @param party_address [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress]
|
309
|
+
# # @param party_identifier [String]
|
310
|
+
# # @param party_name [String]
|
311
|
+
# # @param party_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil]
|
312
|
+
# # @param plaid_processor_token [String]
|
313
|
+
# # @param routing_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>]
|
314
|
+
# #
|
315
|
+
# def initialize(
|
316
|
+
# account_details: nil,
|
317
|
+
# account_type: nil,
|
318
|
+
# contact_details: nil,
|
319
|
+
# ledger_account: nil,
|
320
|
+
# metadata: nil,
|
321
|
+
# name: nil,
|
322
|
+
# party_address: nil,
|
323
|
+
# party_identifier: nil,
|
324
|
+
# party_name: nil,
|
325
|
+
# party_type: nil,
|
326
|
+
# plaid_processor_token: nil,
|
327
|
+
# routing_details: nil,
|
328
|
+
# **
|
329
|
+
# )
|
330
|
+
# super
|
331
|
+
# end
|
332
|
+
|
333
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
334
|
+
|
335
|
+
class AccountDetail < ModernTreasury::BaseModel
|
336
|
+
# @!attribute account_number
|
337
|
+
#
|
338
|
+
# @return [String]
|
339
|
+
required :account_number, String
|
340
|
+
|
341
|
+
# @!attribute [r] account_number_type
|
342
|
+
#
|
343
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType, nil]
|
344
|
+
optional :account_number_type,
|
345
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType }
|
346
|
+
|
347
|
+
# @!parse
|
348
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
|
349
|
+
# attr_writer :account_number_type
|
350
|
+
|
351
|
+
# @!parse
|
352
|
+
# # @param account_number [String]
|
353
|
+
# # @param account_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
|
354
|
+
# #
|
355
|
+
# def initialize(account_number:, account_number_type: nil, **) = super
|
356
|
+
|
357
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
358
|
+
|
359
|
+
module AccountNumberType
|
360
|
+
extend ModernTreasury::Enum
|
361
|
+
|
362
|
+
AU_NUMBER = :au_number
|
363
|
+
CLABE = :clabe
|
364
|
+
HK_NUMBER = :hk_number
|
365
|
+
IBAN = :iban
|
366
|
+
ID_NUMBER = :id_number
|
367
|
+
NZ_NUMBER = :nz_number
|
368
|
+
OTHER = :other
|
369
|
+
PAN = :pan
|
370
|
+
SG_NUMBER = :sg_number
|
371
|
+
WALLET_ADDRESS = :wallet_address
|
372
|
+
|
373
|
+
finalize!
|
374
|
+
|
375
|
+
# @!parse
|
376
|
+
# # @return [Array<Symbol>]
|
377
|
+
# def self.values; end
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
381
|
+
class ContactDetail < ModernTreasury::BaseModel
|
382
|
+
# @!attribute [r] contact_identifier
|
383
|
+
#
|
384
|
+
# @return [String, nil]
|
385
|
+
optional :contact_identifier, String
|
386
|
+
|
387
|
+
# @!parse
|
388
|
+
# # @return [String]
|
389
|
+
# attr_writer :contact_identifier
|
390
|
+
|
391
|
+
# @!attribute [r] contact_identifier_type
|
392
|
+
#
|
393
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType, nil]
|
394
|
+
optional :contact_identifier_type,
|
395
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType }
|
396
|
+
|
397
|
+
# @!parse
|
398
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
|
399
|
+
# attr_writer :contact_identifier_type
|
400
|
+
|
401
|
+
# @!parse
|
402
|
+
# # @param contact_identifier [String]
|
403
|
+
# # @param contact_identifier_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
|
404
|
+
# #
|
405
|
+
# def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
|
406
|
+
|
407
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
408
|
+
|
409
|
+
module ContactIdentifierType
|
410
|
+
extend ModernTreasury::Enum
|
411
|
+
|
412
|
+
EMAIL = :email
|
413
|
+
PHONE_NUMBER = :phone_number
|
414
|
+
WEBSITE = :website
|
415
|
+
|
416
|
+
finalize!
|
417
|
+
|
418
|
+
# @!parse
|
419
|
+
# # @return [Array<Symbol>]
|
420
|
+
# def self.values; end
|
421
|
+
end
|
422
|
+
end
|
423
|
+
|
424
|
+
class LedgerAccount < ModernTreasury::BaseModel
|
425
|
+
# @!attribute currency
|
426
|
+
# The currency of the ledger account.
|
427
|
+
#
|
428
|
+
# @return [String]
|
429
|
+
required :currency, String
|
430
|
+
|
431
|
+
# @!attribute ledger_id
|
432
|
+
# The id of the ledger that this account belongs to.
|
433
|
+
#
|
434
|
+
# @return [String]
|
435
|
+
required :ledger_id, String
|
436
|
+
|
437
|
+
# @!attribute name
|
438
|
+
# The name of the ledger account.
|
439
|
+
#
|
440
|
+
# @return [String]
|
441
|
+
required :name, String
|
442
|
+
|
443
|
+
# @!attribute normal_balance
|
444
|
+
# The normal balance of the ledger account.
|
445
|
+
#
|
446
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
447
|
+
required :normal_balance, enum: -> { ModernTreasury::Models::TransactionDirection }
|
448
|
+
|
449
|
+
# @!attribute currency_exponent
|
450
|
+
# The currency exponent of the ledger account.
|
451
|
+
#
|
452
|
+
# @return [Integer, nil]
|
453
|
+
optional :currency_exponent, Integer, nil?: true
|
454
|
+
|
455
|
+
# @!attribute description
|
456
|
+
# The description of the ledger account.
|
457
|
+
#
|
458
|
+
# @return [String, nil]
|
459
|
+
optional :description, String, nil?: true
|
460
|
+
|
461
|
+
# @!attribute [r] ledger_account_category_ids
|
462
|
+
# The array of ledger account category ids that this ledger account should be a
|
463
|
+
# child of.
|
464
|
+
#
|
465
|
+
# @return [Array<String>, nil]
|
466
|
+
optional :ledger_account_category_ids, ModernTreasury::ArrayOf[String]
|
467
|
+
|
468
|
+
# @!parse
|
469
|
+
# # @return [Array<String>]
|
470
|
+
# attr_writer :ledger_account_category_ids
|
471
|
+
|
472
|
+
# @!attribute [r] ledgerable_id
|
473
|
+
# If the ledger account links to another object in Modern Treasury, the id will be
|
474
|
+
# populated here, otherwise null.
|
475
|
+
#
|
476
|
+
# @return [String, nil]
|
477
|
+
optional :ledgerable_id, String
|
478
|
+
|
479
|
+
# @!parse
|
480
|
+
# # @return [String]
|
481
|
+
# attr_writer :ledgerable_id
|
482
|
+
|
483
|
+
# @!attribute [r] ledgerable_type
|
484
|
+
# If the ledger account links to another object in Modern Treasury, the type will
|
485
|
+
# be populated here, otherwise null. The value is one of internal_account or
|
486
|
+
# external_account.
|
487
|
+
#
|
488
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType, nil]
|
489
|
+
optional :ledgerable_type,
|
490
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType }
|
491
|
+
|
492
|
+
# @!parse
|
493
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType]
|
494
|
+
# attr_writer :ledgerable_type
|
495
|
+
|
496
|
+
# @!attribute [r] metadata
|
497
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
498
|
+
# strings.
|
499
|
+
#
|
500
|
+
# @return [Hash{Symbol=>String}, nil]
|
501
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
502
|
+
|
503
|
+
# @!parse
|
504
|
+
# # @return [Hash{Symbol=>String}]
|
505
|
+
# attr_writer :metadata
|
506
|
+
|
507
|
+
# @!parse
|
508
|
+
# # Specifies a ledger account object that will be created with the external
|
509
|
+
# # account. The resulting ledger account is linked to the external account for
|
510
|
+
# # auto-ledgering Payment objects. See
|
511
|
+
# # https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
512
|
+
# # for more details.
|
513
|
+
# #
|
514
|
+
# # @param currency [String]
|
515
|
+
# # @param ledger_id [String]
|
516
|
+
# # @param name [String]
|
517
|
+
# # @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection]
|
518
|
+
# # @param currency_exponent [Integer, nil]
|
519
|
+
# # @param description [String, nil]
|
520
|
+
# # @param ledger_account_category_ids [Array<String>]
|
521
|
+
# # @param ledgerable_id [String]
|
522
|
+
# # @param ledgerable_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType]
|
523
|
+
# # @param metadata [Hash{Symbol=>String}]
|
524
|
+
# #
|
525
|
+
# def initialize(
|
526
|
+
# currency:,
|
527
|
+
# ledger_id:,
|
528
|
+
# name:,
|
529
|
+
# normal_balance:,
|
530
|
+
# currency_exponent: nil,
|
531
|
+
# description: nil,
|
532
|
+
# ledger_account_category_ids: nil,
|
533
|
+
# ledgerable_id: nil,
|
534
|
+
# ledgerable_type: nil,
|
535
|
+
# metadata: nil,
|
536
|
+
# **
|
537
|
+
# )
|
538
|
+
# super
|
539
|
+
# end
|
540
|
+
|
541
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
542
|
+
|
543
|
+
# If the ledger account links to another object in Modern Treasury, the type will
|
544
|
+
# be populated here, otherwise null. The value is one of internal_account or
|
545
|
+
# external_account.
|
546
|
+
module LedgerableType
|
547
|
+
extend ModernTreasury::Enum
|
548
|
+
|
549
|
+
COUNTERPARTY = :counterparty
|
550
|
+
EXTERNAL_ACCOUNT = :external_account
|
551
|
+
INTERNAL_ACCOUNT = :internal_account
|
552
|
+
VIRTUAL_ACCOUNT = :virtual_account
|
553
|
+
|
554
|
+
finalize!
|
555
|
+
|
556
|
+
# @!parse
|
557
|
+
# # @return [Array<Symbol>]
|
558
|
+
# def self.values; end
|
559
|
+
end
|
560
|
+
end
|
561
|
+
|
562
|
+
class PartyAddress < ModernTreasury::BaseModel
|
563
|
+
# @!attribute country
|
564
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
565
|
+
#
|
566
|
+
# @return [String, nil]
|
567
|
+
optional :country, String, nil?: true
|
568
|
+
|
569
|
+
# @!attribute line1
|
570
|
+
#
|
571
|
+
# @return [String, nil]
|
572
|
+
optional :line1, String, nil?: true
|
573
|
+
|
574
|
+
# @!attribute line2
|
575
|
+
#
|
576
|
+
# @return [String, nil]
|
577
|
+
optional :line2, String, nil?: true
|
578
|
+
|
579
|
+
# @!attribute locality
|
580
|
+
# Locality or City.
|
581
|
+
#
|
582
|
+
# @return [String, nil]
|
583
|
+
optional :locality, String, nil?: true
|
584
|
+
|
585
|
+
# @!attribute postal_code
|
586
|
+
# The postal code of the address.
|
587
|
+
#
|
588
|
+
# @return [String, nil]
|
589
|
+
optional :postal_code, String, nil?: true
|
590
|
+
|
591
|
+
# @!attribute region
|
592
|
+
# Region or State.
|
593
|
+
#
|
594
|
+
# @return [String, nil]
|
595
|
+
optional :region, String, nil?: true
|
596
|
+
|
597
|
+
# @!parse
|
598
|
+
# # Required if receiving wire payments.
|
599
|
+
# #
|
600
|
+
# # @param country [String, nil]
|
601
|
+
# # @param line1 [String, nil]
|
602
|
+
# # @param line2 [String, nil]
|
603
|
+
# # @param locality [String, nil]
|
604
|
+
# # @param postal_code [String, nil]
|
605
|
+
# # @param region [String, nil]
|
606
|
+
# #
|
607
|
+
# def initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil, **) = super
|
608
|
+
|
609
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
610
|
+
end
|
611
|
+
|
612
|
+
# Either `individual` or `business`.
|
613
|
+
module PartyType
|
614
|
+
extend ModernTreasury::Enum
|
615
|
+
|
616
|
+
BUSINESS = :business
|
617
|
+
INDIVIDUAL = :individual
|
618
|
+
|
619
|
+
finalize!
|
620
|
+
|
621
|
+
# @!parse
|
622
|
+
# # @return [Array<Symbol>]
|
623
|
+
# def self.values; end
|
624
|
+
end
|
625
|
+
|
626
|
+
class RoutingDetail < ModernTreasury::BaseModel
|
627
|
+
# @!attribute routing_number
|
628
|
+
#
|
629
|
+
# @return [String]
|
630
|
+
required :routing_number, String
|
631
|
+
|
632
|
+
# @!attribute routing_number_type
|
633
|
+
#
|
634
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
635
|
+
required :routing_number_type,
|
636
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType }
|
637
|
+
|
638
|
+
# @!attribute [r] payment_type
|
639
|
+
#
|
640
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType, nil]
|
641
|
+
optional :payment_type,
|
642
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType }
|
643
|
+
|
644
|
+
# @!parse
|
645
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
|
646
|
+
# attr_writer :payment_type
|
647
|
+
|
648
|
+
# @!parse
|
649
|
+
# # @param routing_number [String]
|
650
|
+
# # @param routing_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
651
|
+
# # @param payment_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
|
652
|
+
# #
|
653
|
+
# def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
|
654
|
+
|
655
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
656
|
+
|
657
|
+
module RoutingNumberType
|
658
|
+
extend ModernTreasury::Enum
|
659
|
+
|
660
|
+
ABA = :aba
|
661
|
+
AU_BSB = :au_bsb
|
662
|
+
BR_CODIGO = :br_codigo
|
663
|
+
CA_CPA = :ca_cpa
|
664
|
+
CHIPS = :chips
|
665
|
+
CNAPS = :cnaps
|
666
|
+
DK_INTERBANK_CLEARING_CODE = :dk_interbank_clearing_code
|
667
|
+
GB_SORT_CODE = :gb_sort_code
|
668
|
+
HK_INTERBANK_CLEARING_CODE = :hk_interbank_clearing_code
|
669
|
+
HU_INTERBANK_CLEARING_CODE = :hu_interbank_clearing_code
|
670
|
+
ID_SKNBI_CODE = :id_sknbi_code
|
671
|
+
IN_IFSC = :in_ifsc
|
672
|
+
JP_ZENGIN_CODE = :jp_zengin_code
|
673
|
+
MY_BRANCH_CODE = :my_branch_code
|
674
|
+
MX_BANK_IDENTIFIER = :mx_bank_identifier
|
675
|
+
NZ_NATIONAL_CLEARING_CODE = :nz_national_clearing_code
|
676
|
+
PL_NATIONAL_CLEARING_CODE = :pl_national_clearing_code
|
677
|
+
SE_BANKGIRO_CLEARING_CODE = :se_bankgiro_clearing_code
|
678
|
+
SG_INTERBANK_CLEARING_CODE = :sg_interbank_clearing_code
|
679
|
+
SWIFT = :swift
|
680
|
+
ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
|
681
|
+
|
682
|
+
finalize!
|
683
|
+
|
684
|
+
# @!parse
|
685
|
+
# # @return [Array<Symbol>]
|
686
|
+
# def self.values; end
|
687
|
+
end
|
688
|
+
|
689
|
+
module PaymentType
|
690
|
+
extend ModernTreasury::Enum
|
691
|
+
|
692
|
+
ACH = :ach
|
693
|
+
AU_BECS = :au_becs
|
694
|
+
BACS = :bacs
|
695
|
+
BOOK = :book
|
696
|
+
CARD = :card
|
697
|
+
CHATS = :chats
|
698
|
+
CHECK = :check
|
699
|
+
CROSS_BORDER = :cross_border
|
700
|
+
DK_NETS = :dk_nets
|
701
|
+
EFT = :eft
|
702
|
+
HU_ICS = :hu_ics
|
703
|
+
INTERAC = :interac
|
704
|
+
MASAV = :masav
|
705
|
+
MX_CCEN = :mx_ccen
|
706
|
+
NEFT = :neft
|
707
|
+
NICS = :nics
|
708
|
+
NZ_BECS = :nz_becs
|
709
|
+
PL_ELIXIR = :pl_elixir
|
710
|
+
PROVXCHANGE = :provxchange
|
711
|
+
RO_SENT = :ro_sent
|
712
|
+
RTP = :rtp
|
713
|
+
SE_BANKGIROT = :se_bankgirot
|
714
|
+
SEN = :sen
|
715
|
+
SEPA = :sepa
|
716
|
+
SG_GIRO = :sg_giro
|
717
|
+
SIC = :sic
|
718
|
+
SIGNET = :signet
|
719
|
+
SKNBI = :sknbi
|
720
|
+
WIRE = :wire
|
721
|
+
ZENGIN = :zengin
|
722
|
+
|
723
|
+
finalize!
|
724
|
+
|
725
|
+
# @!parse
|
726
|
+
# # @return [Array<Symbol>]
|
727
|
+
# def self.values; end
|
728
|
+
end
|
729
|
+
end
|
730
|
+
end
|
731
|
+
|
732
|
+
# @deprecated
|
733
|
+
#
|
734
|
+
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
735
|
+
# or `vendor`.
|
736
|
+
module LedgerType
|
737
|
+
extend ModernTreasury::Enum
|
738
|
+
|
739
|
+
CUSTOMER = :customer
|
740
|
+
VENDOR = :vendor
|
741
|
+
|
742
|
+
finalize!
|
743
|
+
|
744
|
+
# @!parse
|
745
|
+
# # @return [Array<Symbol>]
|
746
|
+
# def self.values; end
|
747
|
+
end
|
748
|
+
|
749
|
+
class LegalEntity < ModernTreasury::BaseModel
|
750
|
+
# @!attribute legal_entity_type
|
751
|
+
# The type of legal entity.
|
752
|
+
#
|
753
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType]
|
754
|
+
required :legal_entity_type,
|
755
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType }
|
756
|
+
|
757
|
+
# @!attribute [r] addresses
|
758
|
+
# A list of addresses for the entity.
|
759
|
+
#
|
760
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>, nil]
|
761
|
+
optional :addresses,
|
762
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address] }
|
763
|
+
|
764
|
+
# @!parse
|
765
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>]
|
766
|
+
# attr_writer :addresses
|
767
|
+
|
768
|
+
# @!attribute bank_settings
|
769
|
+
#
|
770
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
771
|
+
optional :bank_settings, -> { ModernTreasury::Models::BankSettings }, nil?: true
|
772
|
+
|
773
|
+
# @!attribute business_name
|
774
|
+
# The business's legal business name.
|
775
|
+
#
|
776
|
+
# @return [String, nil]
|
777
|
+
optional :business_name, String, nil?: true
|
778
|
+
|
779
|
+
# @!attribute citizenship_country
|
780
|
+
# The country of citizenship for an individual.
|
781
|
+
#
|
782
|
+
# @return [String, nil]
|
783
|
+
optional :citizenship_country, String, nil?: true
|
784
|
+
|
785
|
+
# @!attribute date_formed
|
786
|
+
# A business's formation date (YYYY-MM-DD).
|
787
|
+
#
|
788
|
+
# @return [Date, nil]
|
789
|
+
optional :date_formed, Date, nil?: true
|
790
|
+
|
791
|
+
# @!attribute date_of_birth
|
792
|
+
# An individual's date of birth (YYYY-MM-DD).
|
793
|
+
#
|
794
|
+
# @return [Date, nil]
|
795
|
+
optional :date_of_birth, Date, nil?: true
|
796
|
+
|
797
|
+
# @!attribute [r] doing_business_as_names
|
798
|
+
#
|
799
|
+
# @return [Array<String>, nil]
|
800
|
+
optional :doing_business_as_names, ModernTreasury::ArrayOf[String]
|
801
|
+
|
802
|
+
# @!parse
|
803
|
+
# # @return [Array<String>]
|
804
|
+
# attr_writer :doing_business_as_names
|
805
|
+
|
806
|
+
# @!attribute email
|
807
|
+
# The entity's primary email.
|
808
|
+
#
|
809
|
+
# @return [String, nil]
|
810
|
+
optional :email, String, nil?: true
|
811
|
+
|
812
|
+
# @!attribute first_name
|
813
|
+
# An individual's first name.
|
814
|
+
#
|
815
|
+
# @return [String, nil]
|
816
|
+
optional :first_name, String, nil?: true
|
817
|
+
|
818
|
+
# @!attribute [r] identifications
|
819
|
+
# A list of identifications for the legal entity.
|
820
|
+
#
|
821
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>, nil]
|
822
|
+
optional :identifications,
|
823
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification] }
|
824
|
+
|
825
|
+
# @!parse
|
826
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>]
|
827
|
+
# attr_writer :identifications
|
828
|
+
|
829
|
+
# @!attribute last_name
|
830
|
+
# An individual's last name.
|
831
|
+
#
|
832
|
+
# @return [String, nil]
|
833
|
+
optional :last_name, String, nil?: true
|
834
|
+
|
835
|
+
# @!attribute legal_entity_associations
|
836
|
+
# The legal entity associations and its child legal entities.
|
837
|
+
#
|
838
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
|
839
|
+
optional :legal_entity_associations,
|
840
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation] },
|
841
|
+
nil?: true
|
842
|
+
|
843
|
+
# @!attribute legal_structure
|
844
|
+
# The business's legal structure.
|
845
|
+
#
|
846
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
|
847
|
+
optional :legal_structure,
|
848
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure },
|
849
|
+
nil?: true
|
850
|
+
|
851
|
+
# @!attribute [r] metadata
|
852
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
853
|
+
# strings.
|
854
|
+
#
|
855
|
+
# @return [Hash{Symbol=>String}, nil]
|
856
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
857
|
+
|
858
|
+
# @!parse
|
859
|
+
# # @return [Hash{Symbol=>String}]
|
860
|
+
# attr_writer :metadata
|
861
|
+
|
862
|
+
# @!attribute middle_name
|
863
|
+
# An individual's middle name.
|
864
|
+
#
|
865
|
+
# @return [String, nil]
|
866
|
+
optional :middle_name, String, nil?: true
|
867
|
+
|
868
|
+
# @!attribute [r] phone_numbers
|
869
|
+
#
|
870
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>, nil]
|
871
|
+
optional :phone_numbers,
|
872
|
+
-> { ModernTreasury::ArrayOf[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber] }
|
873
|
+
|
874
|
+
# @!parse
|
875
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
|
876
|
+
# attr_writer :phone_numbers
|
877
|
+
|
878
|
+
# @!attribute politically_exposed_person
|
879
|
+
# Whether the individual is a politically exposed person.
|
880
|
+
#
|
881
|
+
# @return [Boolean, nil]
|
882
|
+
optional :politically_exposed_person, ModernTreasury::BooleanModel, nil?: true
|
883
|
+
|
884
|
+
# @!attribute preferred_name
|
885
|
+
# An individual's preferred name.
|
886
|
+
#
|
887
|
+
# @return [String, nil]
|
888
|
+
optional :preferred_name, String, nil?: true
|
889
|
+
|
890
|
+
# @!attribute prefix
|
891
|
+
# An individual's prefix.
|
892
|
+
#
|
893
|
+
# @return [String, nil]
|
894
|
+
optional :prefix, String, nil?: true
|
895
|
+
|
896
|
+
# @!attribute risk_rating
|
897
|
+
# The risk rating of the legal entity. One of low, medium, high.
|
898
|
+
#
|
899
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil]
|
900
|
+
optional :risk_rating,
|
901
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating },
|
902
|
+
nil?: true
|
903
|
+
|
904
|
+
# @!attribute suffix
|
905
|
+
# An individual's suffix.
|
906
|
+
#
|
907
|
+
# @return [String, nil]
|
908
|
+
optional :suffix, String, nil?: true
|
909
|
+
|
910
|
+
# @!attribute wealth_and_employment_details
|
911
|
+
#
|
912
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
913
|
+
optional :wealth_and_employment_details,
|
914
|
+
-> { ModernTreasury::Models::WealthAndEmploymentDetails },
|
915
|
+
nil?: true
|
916
|
+
|
917
|
+
# @!attribute website
|
918
|
+
# The entity's primary website URL.
|
919
|
+
#
|
920
|
+
# @return [String, nil]
|
921
|
+
optional :website, String, nil?: true
|
922
|
+
|
923
|
+
# @!parse
|
924
|
+
# # @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType]
|
925
|
+
# # @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>]
|
926
|
+
# # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
927
|
+
# # @param business_name [String, nil]
|
928
|
+
# # @param citizenship_country [String, nil]
|
929
|
+
# # @param date_formed [Date, nil]
|
930
|
+
# # @param date_of_birth [Date, nil]
|
931
|
+
# # @param doing_business_as_names [Array<String>]
|
932
|
+
# # @param email [String, nil]
|
933
|
+
# # @param first_name [String, nil]
|
934
|
+
# # @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>]
|
935
|
+
# # @param last_name [String, nil]
|
936
|
+
# # @param legal_entity_associations [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
|
937
|
+
# # @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
|
938
|
+
# # @param metadata [Hash{Symbol=>String}]
|
939
|
+
# # @param middle_name [String, nil]
|
940
|
+
# # @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
|
941
|
+
# # @param politically_exposed_person [Boolean, nil]
|
942
|
+
# # @param preferred_name [String, nil]
|
943
|
+
# # @param prefix [String, nil]
|
944
|
+
# # @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil]
|
945
|
+
# # @param suffix [String, nil]
|
946
|
+
# # @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
947
|
+
# # @param website [String, nil]
|
948
|
+
# #
|
949
|
+
# def initialize(
|
950
|
+
# legal_entity_type:,
|
951
|
+
# addresses: nil,
|
952
|
+
# bank_settings: nil,
|
953
|
+
# business_name: nil,
|
954
|
+
# citizenship_country: nil,
|
955
|
+
# date_formed: nil,
|
956
|
+
# date_of_birth: nil,
|
957
|
+
# doing_business_as_names: nil,
|
958
|
+
# email: nil,
|
959
|
+
# first_name: nil,
|
960
|
+
# identifications: nil,
|
961
|
+
# last_name: nil,
|
962
|
+
# legal_entity_associations: nil,
|
963
|
+
# legal_structure: nil,
|
964
|
+
# metadata: nil,
|
965
|
+
# middle_name: nil,
|
966
|
+
# phone_numbers: nil,
|
967
|
+
# politically_exposed_person: nil,
|
968
|
+
# preferred_name: nil,
|
969
|
+
# prefix: nil,
|
970
|
+
# risk_rating: nil,
|
971
|
+
# suffix: nil,
|
972
|
+
# wealth_and_employment_details: nil,
|
973
|
+
# website: nil,
|
974
|
+
# **
|
975
|
+
# )
|
976
|
+
# super
|
977
|
+
# end
|
978
|
+
|
979
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
980
|
+
|
981
|
+
# The type of legal entity.
|
982
|
+
module LegalEntityType
|
983
|
+
extend ModernTreasury::Enum
|
984
|
+
|
985
|
+
BUSINESS = :business
|
986
|
+
INDIVIDUAL = :individual
|
987
|
+
|
988
|
+
finalize!
|
989
|
+
|
990
|
+
# @!parse
|
991
|
+
# # @return [Array<Symbol>]
|
992
|
+
# def self.values; end
|
993
|
+
end
|
994
|
+
|
995
|
+
class Address < ModernTreasury::BaseModel
|
996
|
+
# @!attribute country
|
997
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
998
|
+
#
|
999
|
+
# @return [String, nil]
|
1000
|
+
required :country, String, nil?: true
|
1001
|
+
|
1002
|
+
# @!attribute line1
|
1003
|
+
#
|
1004
|
+
# @return [String, nil]
|
1005
|
+
required :line1, String, nil?: true
|
1006
|
+
|
1007
|
+
# @!attribute locality
|
1008
|
+
# Locality or City.
|
1009
|
+
#
|
1010
|
+
# @return [String, nil]
|
1011
|
+
required :locality, String, nil?: true
|
1012
|
+
|
1013
|
+
# @!attribute postal_code
|
1014
|
+
# The postal code of the address.
|
1015
|
+
#
|
1016
|
+
# @return [String, nil]
|
1017
|
+
required :postal_code, String, nil?: true
|
1018
|
+
|
1019
|
+
# @!attribute region
|
1020
|
+
# Region or State.
|
1021
|
+
#
|
1022
|
+
# @return [String, nil]
|
1023
|
+
required :region, String, nil?: true
|
1024
|
+
|
1025
|
+
# @!attribute [r] address_types
|
1026
|
+
# The types of this address.
|
1027
|
+
#
|
1028
|
+
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>, nil]
|
1029
|
+
optional :address_types,
|
1030
|
+
-> { ModernTreasury::ArrayOf[enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType] }
|
1031
|
+
|
1032
|
+
# @!parse
|
1033
|
+
# # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>]
|
1034
|
+
# attr_writer :address_types
|
1035
|
+
|
1036
|
+
# @!attribute line2
|
1037
|
+
#
|
1038
|
+
# @return [String, nil]
|
1039
|
+
optional :line2, String, nil?: true
|
1040
|
+
|
1041
|
+
# @!parse
|
1042
|
+
# # @param country [String, nil]
|
1043
|
+
# # @param line1 [String, nil]
|
1044
|
+
# # @param locality [String, nil]
|
1045
|
+
# # @param postal_code [String, nil]
|
1046
|
+
# # @param region [String, nil]
|
1047
|
+
# # @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>]
|
1048
|
+
# # @param line2 [String, nil]
|
1049
|
+
# #
|
1050
|
+
# def initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, **) = super
|
1051
|
+
|
1052
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1053
|
+
|
1054
|
+
module AddressType
|
1055
|
+
extend ModernTreasury::Enum
|
1056
|
+
|
1057
|
+
BUSINESS = :business
|
1058
|
+
MAILING = :mailing
|
1059
|
+
OTHER = :other
|
1060
|
+
PO_BOX = :po_box
|
1061
|
+
RESIDENTIAL = :residential
|
1062
|
+
|
1063
|
+
finalize!
|
1064
|
+
|
1065
|
+
# @!parse
|
1066
|
+
# # @return [Array<Symbol>]
|
1067
|
+
# def self.values; end
|
1068
|
+
end
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
class Identification < ModernTreasury::BaseModel
|
1072
|
+
# @!attribute id_number
|
1073
|
+
# The ID number of identification document.
|
1074
|
+
#
|
1075
|
+
# @return [String]
|
1076
|
+
required :id_number, String
|
1077
|
+
|
1078
|
+
# @!attribute id_type
|
1079
|
+
# The type of ID number.
|
1080
|
+
#
|
1081
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType]
|
1082
|
+
required :id_type,
|
1083
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType }
|
1084
|
+
|
1085
|
+
# @!attribute issuing_country
|
1086
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
1087
|
+
# identification
|
1088
|
+
#
|
1089
|
+
# @return [String, nil]
|
1090
|
+
optional :issuing_country, String, nil?: true
|
1091
|
+
|
1092
|
+
# @!parse
|
1093
|
+
# # @param id_number [String]
|
1094
|
+
# # @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType]
|
1095
|
+
# # @param issuing_country [String, nil]
|
1096
|
+
# #
|
1097
|
+
# def initialize(id_number:, id_type:, issuing_country: nil, **) = super
|
1098
|
+
|
1099
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1100
|
+
|
1101
|
+
# The type of ID number.
|
1102
|
+
module IDType
|
1103
|
+
extend ModernTreasury::Enum
|
1104
|
+
|
1105
|
+
AR_CUIL = :ar_cuil
|
1106
|
+
AR_CUIT = :ar_cuit
|
1107
|
+
BR_CNPJ = :br_cnpj
|
1108
|
+
BR_CPF = :br_cpf
|
1109
|
+
CL_RUN = :cl_run
|
1110
|
+
CL_RUT = :cl_rut
|
1111
|
+
CO_CEDULAS = :co_cedulas
|
1112
|
+
CO_NIT = :co_nit
|
1113
|
+
HN_ID = :hn_id
|
1114
|
+
HN_RTN = :hn_rtn
|
1115
|
+
IN_LEI = :in_lei
|
1116
|
+
KR_BRN = :kr_brn
|
1117
|
+
KR_CRN = :kr_crn
|
1118
|
+
KR_RRN = :kr_rrn
|
1119
|
+
PASSPORT = :passport
|
1120
|
+
SA_TIN = :sa_tin
|
1121
|
+
SA_VAT = :sa_vat
|
1122
|
+
US_EIN = :us_ein
|
1123
|
+
US_ITIN = :us_itin
|
1124
|
+
US_SSN = :us_ssn
|
1125
|
+
VN_TIN = :vn_tin
|
1126
|
+
|
1127
|
+
finalize!
|
1128
|
+
|
1129
|
+
# @!parse
|
1130
|
+
# # @return [Array<Symbol>]
|
1131
|
+
# def self.values; end
|
1132
|
+
end
|
1133
|
+
end
|
1134
|
+
|
1135
|
+
class LegalEntityAssociation < ModernTreasury::BaseModel
|
1136
|
+
# @!attribute relationship_types
|
1137
|
+
#
|
1138
|
+
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1139
|
+
required :relationship_types,
|
1140
|
+
-> do
|
1141
|
+
ModernTreasury::ArrayOf[
|
1142
|
+
enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType
|
1143
|
+
]
|
1144
|
+
end
|
1145
|
+
|
1146
|
+
# @!attribute [r] child_legal_entity
|
1147
|
+
# The child legal entity.
|
1148
|
+
#
|
1149
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity, nil]
|
1150
|
+
optional :child_legal_entity,
|
1151
|
+
-> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity }
|
1152
|
+
|
1153
|
+
# @!parse
|
1154
|
+
# # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity]
|
1155
|
+
# attr_writer :child_legal_entity
|
1156
|
+
|
1157
|
+
# @!attribute [r] child_legal_entity_id
|
1158
|
+
# The ID of the child legal entity.
|
1159
|
+
#
|
1160
|
+
# @return [String, nil]
|
1161
|
+
optional :child_legal_entity_id, String
|
1162
|
+
|
1163
|
+
# @!parse
|
1164
|
+
# # @return [String]
|
1165
|
+
# attr_writer :child_legal_entity_id
|
1166
|
+
|
1167
|
+
# @!attribute ownership_percentage
|
1168
|
+
# The child entity's ownership percentage iff they are a beneficial owner.
|
1169
|
+
#
|
1170
|
+
# @return [Integer, nil]
|
1171
|
+
optional :ownership_percentage, Integer, nil?: true
|
1172
|
+
|
1173
|
+
# @!attribute title
|
1174
|
+
# The job title of the child entity at the parent entity.
|
1175
|
+
#
|
1176
|
+
# @return [String, nil]
|
1177
|
+
optional :title, String, nil?: true
|
1178
|
+
|
1179
|
+
# @!parse
|
1180
|
+
# # @param relationship_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1181
|
+
# # @param child_legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity]
|
1182
|
+
# # @param child_legal_entity_id [String]
|
1183
|
+
# # @param ownership_percentage [Integer, nil]
|
1184
|
+
# # @param title [String, nil]
|
1185
|
+
# #
|
1186
|
+
# def initialize(
|
1187
|
+
# relationship_types:,
|
1188
|
+
# child_legal_entity: nil,
|
1189
|
+
# child_legal_entity_id: nil,
|
1190
|
+
# ownership_percentage: nil,
|
1191
|
+
# title: nil,
|
1192
|
+
# **
|
1193
|
+
# )
|
1194
|
+
# super
|
1195
|
+
# end
|
1196
|
+
|
1197
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1198
|
+
|
1199
|
+
# A list of relationship types for how the child entity relates to parent entity.
|
1200
|
+
module RelationshipType
|
1201
|
+
extend ModernTreasury::Enum
|
1202
|
+
|
1203
|
+
BENEFICIAL_OWNER = :beneficial_owner
|
1204
|
+
CONTROL_PERSON = :control_person
|
1205
|
+
|
1206
|
+
finalize!
|
1207
|
+
|
1208
|
+
# @!parse
|
1209
|
+
# # @return [Array<Symbol>]
|
1210
|
+
# def self.values; end
|
1211
|
+
end
|
1212
|
+
|
1213
|
+
class ChildLegalEntity < ModernTreasury::BaseModel
|
1214
|
+
# @!attribute [r] addresses
|
1215
|
+
# A list of addresses for the entity.
|
1216
|
+
#
|
1217
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
1218
|
+
optional :addresses,
|
1219
|
+
-> do
|
1220
|
+
ModernTreasury::ArrayOf[
|
1221
|
+
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
|
1222
|
+
]
|
1223
|
+
end
|
1224
|
+
|
1225
|
+
# @!parse
|
1226
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>]
|
1227
|
+
# attr_writer :addresses
|
1228
|
+
|
1229
|
+
# @!attribute bank_settings
|
1230
|
+
#
|
1231
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
1232
|
+
optional :bank_settings, -> { ModernTreasury::Models::BankSettings }, nil?: true
|
1233
|
+
|
1234
|
+
# @!attribute business_name
|
1235
|
+
# The business's legal business name.
|
1236
|
+
#
|
1237
|
+
# @return [String, nil]
|
1238
|
+
optional :business_name, String, nil?: true
|
1239
|
+
|
1240
|
+
# @!attribute citizenship_country
|
1241
|
+
# The country of citizenship for an individual.
|
1242
|
+
#
|
1243
|
+
# @return [String, nil]
|
1244
|
+
optional :citizenship_country, String, nil?: true
|
1245
|
+
|
1246
|
+
# @!attribute date_formed
|
1247
|
+
# A business's formation date (YYYY-MM-DD).
|
1248
|
+
#
|
1249
|
+
# @return [Date, nil]
|
1250
|
+
optional :date_formed, Date, nil?: true
|
1251
|
+
|
1252
|
+
# @!attribute date_of_birth
|
1253
|
+
# An individual's date of birth (YYYY-MM-DD).
|
1254
|
+
#
|
1255
|
+
# @return [Date, nil]
|
1256
|
+
optional :date_of_birth, Date, nil?: true
|
1257
|
+
|
1258
|
+
# @!attribute [r] doing_business_as_names
|
1259
|
+
#
|
1260
|
+
# @return [Array<String>, nil]
|
1261
|
+
optional :doing_business_as_names, ModernTreasury::ArrayOf[String]
|
1262
|
+
|
1263
|
+
# @!parse
|
1264
|
+
# # @return [Array<String>]
|
1265
|
+
# attr_writer :doing_business_as_names
|
1266
|
+
|
1267
|
+
# @!attribute email
|
1268
|
+
# The entity's primary email.
|
1269
|
+
#
|
1270
|
+
# @return [String, nil]
|
1271
|
+
optional :email, String, nil?: true
|
1272
|
+
|
1273
|
+
# @!attribute first_name
|
1274
|
+
# An individual's first name.
|
1275
|
+
#
|
1276
|
+
# @return [String, nil]
|
1277
|
+
optional :first_name, String, nil?: true
|
1278
|
+
|
1279
|
+
# @!attribute [r] identifications
|
1280
|
+
# A list of identifications for the legal entity.
|
1281
|
+
#
|
1282
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
1283
|
+
optional :identifications,
|
1284
|
+
-> do
|
1285
|
+
ModernTreasury::ArrayOf[
|
1286
|
+
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
|
1287
|
+
]
|
1288
|
+
end
|
1289
|
+
|
1290
|
+
# @!parse
|
1291
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>]
|
1292
|
+
# attr_writer :identifications
|
1293
|
+
|
1294
|
+
# @!attribute last_name
|
1295
|
+
# An individual's last name.
|
1296
|
+
#
|
1297
|
+
# @return [String, nil]
|
1298
|
+
optional :last_name, String, nil?: true
|
1299
|
+
|
1300
|
+
# @!attribute [r] legal_entity_type
|
1301
|
+
# The type of legal entity.
|
1302
|
+
#
|
1303
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
1304
|
+
optional :legal_entity_type,
|
1305
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType }
|
1306
|
+
|
1307
|
+
# @!parse
|
1308
|
+
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
|
1309
|
+
# attr_writer :legal_entity_type
|
1310
|
+
|
1311
|
+
# @!attribute legal_structure
|
1312
|
+
# The business's legal structure.
|
1313
|
+
#
|
1314
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
1315
|
+
optional :legal_structure,
|
1316
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure },
|
1317
|
+
nil?: true
|
1318
|
+
|
1319
|
+
# @!attribute [r] metadata
|
1320
|
+
# Additional data represented as key-value pairs. Both the key and value must be
|
1321
|
+
# strings.
|
1322
|
+
#
|
1323
|
+
# @return [Hash{Symbol=>String}, nil]
|
1324
|
+
optional :metadata, ModernTreasury::HashOf[String]
|
1325
|
+
|
1326
|
+
# @!parse
|
1327
|
+
# # @return [Hash{Symbol=>String}]
|
1328
|
+
# attr_writer :metadata
|
1329
|
+
|
1330
|
+
# @!attribute middle_name
|
1331
|
+
# An individual's middle name.
|
1332
|
+
#
|
1333
|
+
# @return [String, nil]
|
1334
|
+
optional :middle_name, String, nil?: true
|
1335
|
+
|
1336
|
+
# @!attribute [r] phone_numbers
|
1337
|
+
#
|
1338
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
1339
|
+
optional :phone_numbers,
|
1340
|
+
-> do
|
1341
|
+
ModernTreasury::ArrayOf[
|
1342
|
+
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
|
1343
|
+
]
|
1344
|
+
end
|
1345
|
+
|
1346
|
+
# @!parse
|
1347
|
+
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
1348
|
+
# attr_writer :phone_numbers
|
1349
|
+
|
1350
|
+
# @!attribute politically_exposed_person
|
1351
|
+
# Whether the individual is a politically exposed person.
|
1352
|
+
#
|
1353
|
+
# @return [Boolean, nil]
|
1354
|
+
optional :politically_exposed_person, ModernTreasury::BooleanModel, nil?: true
|
1355
|
+
|
1356
|
+
# @!attribute preferred_name
|
1357
|
+
# An individual's preferred name.
|
1358
|
+
#
|
1359
|
+
# @return [String, nil]
|
1360
|
+
optional :preferred_name, String, nil?: true
|
1361
|
+
|
1362
|
+
# @!attribute prefix
|
1363
|
+
# An individual's prefix.
|
1364
|
+
#
|
1365
|
+
# @return [String, nil]
|
1366
|
+
optional :prefix, String, nil?: true
|
1367
|
+
|
1368
|
+
# @!attribute risk_rating
|
1369
|
+
# The risk rating of the legal entity. One of low, medium, high.
|
1370
|
+
#
|
1371
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
1372
|
+
optional :risk_rating,
|
1373
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating },
|
1374
|
+
nil?: true
|
1375
|
+
|
1376
|
+
# @!attribute suffix
|
1377
|
+
# An individual's suffix.
|
1378
|
+
#
|
1379
|
+
# @return [String, nil]
|
1380
|
+
optional :suffix, String, nil?: true
|
1381
|
+
|
1382
|
+
# @!attribute wealth_and_employment_details
|
1383
|
+
#
|
1384
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
1385
|
+
optional :wealth_and_employment_details,
|
1386
|
+
-> { ModernTreasury::Models::WealthAndEmploymentDetails },
|
1387
|
+
nil?: true
|
1388
|
+
|
1389
|
+
# @!attribute website
|
1390
|
+
# The entity's primary website URL.
|
1391
|
+
#
|
1392
|
+
# @return [String, nil]
|
1393
|
+
optional :website, String, nil?: true
|
1394
|
+
|
1395
|
+
# @!parse
|
1396
|
+
# # The child legal entity.
|
1397
|
+
# #
|
1398
|
+
# # @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>]
|
1399
|
+
# # @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
1400
|
+
# # @param business_name [String, nil]
|
1401
|
+
# # @param citizenship_country [String, nil]
|
1402
|
+
# # @param date_formed [Date, nil]
|
1403
|
+
# # @param date_of_birth [Date, nil]
|
1404
|
+
# # @param doing_business_as_names [Array<String>]
|
1405
|
+
# # @param email [String, nil]
|
1406
|
+
# # @param first_name [String, nil]
|
1407
|
+
# # @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>]
|
1408
|
+
# # @param last_name [String, nil]
|
1409
|
+
# # @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
|
1410
|
+
# # @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
1411
|
+
# # @param metadata [Hash{Symbol=>String}]
|
1412
|
+
# # @param middle_name [String, nil]
|
1413
|
+
# # @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
1414
|
+
# # @param politically_exposed_person [Boolean, nil]
|
1415
|
+
# # @param preferred_name [String, nil]
|
1416
|
+
# # @param prefix [String, nil]
|
1417
|
+
# # @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
1418
|
+
# # @param suffix [String, nil]
|
1419
|
+
# # @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
1420
|
+
# # @param website [String, nil]
|
1421
|
+
# #
|
1422
|
+
# def initialize(
|
1423
|
+
# addresses: nil,
|
1424
|
+
# bank_settings: nil,
|
1425
|
+
# business_name: nil,
|
1426
|
+
# citizenship_country: nil,
|
1427
|
+
# date_formed: nil,
|
1428
|
+
# date_of_birth: nil,
|
1429
|
+
# doing_business_as_names: nil,
|
1430
|
+
# email: nil,
|
1431
|
+
# first_name: nil,
|
1432
|
+
# identifications: nil,
|
1433
|
+
# last_name: nil,
|
1434
|
+
# legal_entity_type: nil,
|
1435
|
+
# legal_structure: nil,
|
1436
|
+
# metadata: nil,
|
1437
|
+
# middle_name: nil,
|
1438
|
+
# phone_numbers: nil,
|
1439
|
+
# politically_exposed_person: nil,
|
1440
|
+
# preferred_name: nil,
|
1441
|
+
# prefix: nil,
|
1442
|
+
# risk_rating: nil,
|
1443
|
+
# suffix: nil,
|
1444
|
+
# wealth_and_employment_details: nil,
|
1445
|
+
# website: nil,
|
1446
|
+
# **
|
1447
|
+
# )
|
1448
|
+
# super
|
1449
|
+
# end
|
1450
|
+
|
1451
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1452
|
+
|
1453
|
+
class Address < ModernTreasury::BaseModel
|
1454
|
+
# @!attribute country
|
1455
|
+
# Country code conforms to [ISO 3166-1 alpha-2]
|
1456
|
+
#
|
1457
|
+
# @return [String, nil]
|
1458
|
+
required :country, String, nil?: true
|
1459
|
+
|
1460
|
+
# @!attribute line1
|
1461
|
+
#
|
1462
|
+
# @return [String, nil]
|
1463
|
+
required :line1, String, nil?: true
|
1464
|
+
|
1465
|
+
# @!attribute locality
|
1466
|
+
# Locality or City.
|
1467
|
+
#
|
1468
|
+
# @return [String, nil]
|
1469
|
+
required :locality, String, nil?: true
|
1470
|
+
|
1471
|
+
# @!attribute postal_code
|
1472
|
+
# The postal code of the address.
|
1473
|
+
#
|
1474
|
+
# @return [String, nil]
|
1475
|
+
required :postal_code, String, nil?: true
|
1476
|
+
|
1477
|
+
# @!attribute region
|
1478
|
+
# Region or State.
|
1479
|
+
#
|
1480
|
+
# @return [String, nil]
|
1481
|
+
required :region, String, nil?: true
|
1482
|
+
|
1483
|
+
# @!attribute [r] address_types
|
1484
|
+
# The types of this address.
|
1485
|
+
#
|
1486
|
+
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
1487
|
+
optional :address_types,
|
1488
|
+
-> do
|
1489
|
+
ModernTreasury::ArrayOf[
|
1490
|
+
enum: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
|
1491
|
+
]
|
1492
|
+
end
|
1493
|
+
|
1494
|
+
# @!parse
|
1495
|
+
# # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
|
1496
|
+
# attr_writer :address_types
|
1497
|
+
|
1498
|
+
# @!attribute line2
|
1499
|
+
#
|
1500
|
+
# @return [String, nil]
|
1501
|
+
optional :line2, String, nil?: true
|
1502
|
+
|
1503
|
+
# @!parse
|
1504
|
+
# # @param country [String, nil]
|
1505
|
+
# # @param line1 [String, nil]
|
1506
|
+
# # @param locality [String, nil]
|
1507
|
+
# # @param postal_code [String, nil]
|
1508
|
+
# # @param region [String, nil]
|
1509
|
+
# # @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
|
1510
|
+
# # @param line2 [String, nil]
|
1511
|
+
# #
|
1512
|
+
# def initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil, **) = super
|
1513
|
+
|
1514
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1515
|
+
|
1516
|
+
module AddressType
|
1517
|
+
extend ModernTreasury::Enum
|
1518
|
+
|
1519
|
+
BUSINESS = :business
|
1520
|
+
MAILING = :mailing
|
1521
|
+
OTHER = :other
|
1522
|
+
PO_BOX = :po_box
|
1523
|
+
RESIDENTIAL = :residential
|
1524
|
+
|
1525
|
+
finalize!
|
1526
|
+
|
1527
|
+
# @!parse
|
1528
|
+
# # @return [Array<Symbol>]
|
1529
|
+
# def self.values; end
|
1530
|
+
end
|
1531
|
+
end
|
1532
|
+
|
1533
|
+
class Identification < ModernTreasury::BaseModel
|
1534
|
+
# @!attribute id_number
|
1535
|
+
# The ID number of identification document.
|
1536
|
+
#
|
1537
|
+
# @return [String]
|
1538
|
+
required :id_number, String
|
1539
|
+
|
1540
|
+
# @!attribute id_type
|
1541
|
+
# The type of ID number.
|
1542
|
+
#
|
1543
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
1544
|
+
required :id_type,
|
1545
|
+
enum: -> { ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType }
|
1546
|
+
|
1547
|
+
# @!attribute issuing_country
|
1548
|
+
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
1549
|
+
# identification
|
1550
|
+
#
|
1551
|
+
# @return [String, nil]
|
1552
|
+
optional :issuing_country, String, nil?: true
|
1553
|
+
|
1554
|
+
# @!parse
|
1555
|
+
# # @param id_number [String]
|
1556
|
+
# # @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
1557
|
+
# # @param issuing_country [String, nil]
|
1558
|
+
# #
|
1559
|
+
# def initialize(id_number:, id_type:, issuing_country: nil, **) = super
|
1560
|
+
|
1561
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1562
|
+
|
1563
|
+
# The type of ID number.
|
1564
|
+
module IDType
|
1565
|
+
extend ModernTreasury::Enum
|
1566
|
+
|
1567
|
+
AR_CUIL = :ar_cuil
|
1568
|
+
AR_CUIT = :ar_cuit
|
1569
|
+
BR_CNPJ = :br_cnpj
|
1570
|
+
BR_CPF = :br_cpf
|
1571
|
+
CL_RUN = :cl_run
|
1572
|
+
CL_RUT = :cl_rut
|
1573
|
+
CO_CEDULAS = :co_cedulas
|
1574
|
+
CO_NIT = :co_nit
|
1575
|
+
HN_ID = :hn_id
|
1576
|
+
HN_RTN = :hn_rtn
|
1577
|
+
IN_LEI = :in_lei
|
1578
|
+
KR_BRN = :kr_brn
|
1579
|
+
KR_CRN = :kr_crn
|
1580
|
+
KR_RRN = :kr_rrn
|
1581
|
+
PASSPORT = :passport
|
1582
|
+
SA_TIN = :sa_tin
|
1583
|
+
SA_VAT = :sa_vat
|
1584
|
+
US_EIN = :us_ein
|
1585
|
+
US_ITIN = :us_itin
|
1586
|
+
US_SSN = :us_ssn
|
1587
|
+
VN_TIN = :vn_tin
|
1588
|
+
|
1589
|
+
finalize!
|
1590
|
+
|
1591
|
+
# @!parse
|
1592
|
+
# # @return [Array<Symbol>]
|
1593
|
+
# def self.values; end
|
1594
|
+
end
|
1595
|
+
end
|
1596
|
+
|
1597
|
+
# The type of legal entity.
|
1598
|
+
module LegalEntityType
|
1599
|
+
extend ModernTreasury::Enum
|
1600
|
+
|
1601
|
+
BUSINESS = :business
|
1602
|
+
INDIVIDUAL = :individual
|
1603
|
+
|
1604
|
+
finalize!
|
1605
|
+
|
1606
|
+
# @!parse
|
1607
|
+
# # @return [Array<Symbol>]
|
1608
|
+
# def self.values; end
|
1609
|
+
end
|
1610
|
+
|
1611
|
+
# The business's legal structure.
|
1612
|
+
module LegalStructure
|
1613
|
+
extend ModernTreasury::Enum
|
1614
|
+
|
1615
|
+
CORPORATION = :corporation
|
1616
|
+
LLC = :llc
|
1617
|
+
NON_PROFIT = :non_profit
|
1618
|
+
PARTNERSHIP = :partnership
|
1619
|
+
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
1620
|
+
TRUST = :trust
|
1621
|
+
|
1622
|
+
finalize!
|
1623
|
+
|
1624
|
+
# @!parse
|
1625
|
+
# # @return [Array<Symbol>]
|
1626
|
+
# def self.values; end
|
1627
|
+
end
|
1628
|
+
|
1629
|
+
class PhoneNumber < ModernTreasury::BaseModel
|
1630
|
+
# @!attribute [r] phone_number
|
1631
|
+
#
|
1632
|
+
# @return [String, nil]
|
1633
|
+
optional :phone_number, String
|
1634
|
+
|
1635
|
+
# @!parse
|
1636
|
+
# # @return [String]
|
1637
|
+
# attr_writer :phone_number
|
1638
|
+
|
1639
|
+
# @!parse
|
1640
|
+
# # A list of phone numbers in E.164 format.
|
1641
|
+
# #
|
1642
|
+
# # @param phone_number [String]
|
1643
|
+
# #
|
1644
|
+
# def initialize(phone_number: nil, **) = super
|
1645
|
+
|
1646
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1647
|
+
end
|
1648
|
+
|
1649
|
+
# The risk rating of the legal entity. One of low, medium, high.
|
1650
|
+
module RiskRating
|
1651
|
+
extend ModernTreasury::Enum
|
1652
|
+
|
1653
|
+
LOW = :low
|
1654
|
+
MEDIUM = :medium
|
1655
|
+
HIGH = :high
|
1656
|
+
|
1657
|
+
finalize!
|
1658
|
+
|
1659
|
+
# @!parse
|
1660
|
+
# # @return [Array<Symbol>]
|
1661
|
+
# def self.values; end
|
1662
|
+
end
|
1663
|
+
end
|
1664
|
+
end
|
1665
|
+
|
1666
|
+
# The business's legal structure.
|
1667
|
+
module LegalStructure
|
1668
|
+
extend ModernTreasury::Enum
|
1669
|
+
|
1670
|
+
CORPORATION = :corporation
|
1671
|
+
LLC = :llc
|
1672
|
+
NON_PROFIT = :non_profit
|
1673
|
+
PARTNERSHIP = :partnership
|
1674
|
+
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
1675
|
+
TRUST = :trust
|
1676
|
+
|
1677
|
+
finalize!
|
1678
|
+
|
1679
|
+
# @!parse
|
1680
|
+
# # @return [Array<Symbol>]
|
1681
|
+
# def self.values; end
|
1682
|
+
end
|
1683
|
+
|
1684
|
+
class PhoneNumber < ModernTreasury::BaseModel
|
1685
|
+
# @!attribute [r] phone_number
|
1686
|
+
#
|
1687
|
+
# @return [String, nil]
|
1688
|
+
optional :phone_number, String
|
1689
|
+
|
1690
|
+
# @!parse
|
1691
|
+
# # @return [String]
|
1692
|
+
# attr_writer :phone_number
|
1693
|
+
|
1694
|
+
# @!parse
|
1695
|
+
# # A list of phone numbers in E.164 format.
|
1696
|
+
# #
|
1697
|
+
# # @param phone_number [String]
|
1698
|
+
# #
|
1699
|
+
# def initialize(phone_number: nil, **) = super
|
1700
|
+
|
1701
|
+
# def initialize: (Hash | ModernTreasury::BaseModel) -> void
|
1702
|
+
end
|
1703
|
+
|
1704
|
+
# The risk rating of the legal entity. One of low, medium, high.
|
1705
|
+
module RiskRating
|
1706
|
+
extend ModernTreasury::Enum
|
1707
|
+
|
1708
|
+
LOW = :low
|
1709
|
+
MEDIUM = :medium
|
1710
|
+
HIGH = :high
|
1711
|
+
|
1712
|
+
finalize!
|
1713
|
+
|
1714
|
+
# @!parse
|
1715
|
+
# # @return [Array<Symbol>]
|
1716
|
+
# def self.values; end
|
1717
|
+
end
|
1718
|
+
end
|
1719
|
+
|
1720
|
+
# The verification status of the counterparty.
|
1721
|
+
module VerificationStatus
|
1722
|
+
extend ModernTreasury::Enum
|
1723
|
+
|
1724
|
+
DENIED = :denied
|
1725
|
+
NEEDS_APPROVAL = :needs_approval
|
1726
|
+
UNVERIFIED = :unverified
|
1727
|
+
VERIFIED = :verified
|
1728
|
+
|
1729
|
+
finalize!
|
1730
|
+
|
1731
|
+
# @!parse
|
1732
|
+
# # @return [Array<Symbol>]
|
1733
|
+
# def self.values; end
|
1734
|
+
end
|
1735
|
+
end
|
1736
|
+
end
|
1737
|
+
end
|