modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +46 -0
- data/README.md +110 -61
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +3 -1
- data/lib/modern_treasury/internal/type/array_of.rb +8 -0
- data/lib/modern_treasury/internal/type/base_model.rb +14 -0
- data/lib/modern_treasury/internal/type/boolean.rb +8 -0
- data/lib/modern_treasury/internal/type/enum.rb +15 -0
- data/lib/modern_treasury/internal/type/file_input.rb +7 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +8 -0
- data/lib/modern_treasury/internal/type/union.rb +17 -0
- data/lib/modern_treasury/internal/type/unknown.rb +8 -0
- data/lib/modern_treasury/internal/util.rb +62 -10
- data/lib/modern_treasury/internal.rb +3 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +8 -8
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail.rb +8 -4
- data/lib/modern_treasury/models/account_detail_create_params.rb +8 -4
- data/lib/modern_treasury/models/account_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/bank_settings.rb +1 -1
- data/lib/modern_treasury/models/bulk_request.rb +11 -10
- data/lib/modern_treasury/models/bulk_request_create_params.rb +252 -247
- data/lib/modern_treasury/models/bulk_request_list_params.rb +7 -6
- data/lib/modern_treasury/models/bulk_result.rb +18 -29
- data/lib/modern_treasury/models/bulk_result_list_params.rb +7 -6
- data/lib/modern_treasury/models/connection.rb +1 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +4 -4
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +108 -72
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +2 -2
- data/lib/modern_treasury/models/counterparty.rb +32 -32
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +4 -4
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +1 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +166 -121
- data/lib/modern_treasury/models/currency.rb +7 -0
- data/lib/modern_treasury/models/document.rb +13 -13
- data/lib/modern_treasury/models/document_create_params.rb +6 -6
- data/lib/modern_treasury/models/document_list_params.rb +4 -4
- data/lib/modern_treasury/models/event.rb +2 -2
- data/lib/modern_treasury/models/expected_payment.rb +16 -16
- data/lib/modern_treasury/models/expected_payment_create_params.rb +27 -26
- data/lib/modern_treasury/models/expected_payment_list_params.rb +27 -7
- data/lib/modern_treasury/models/expected_payment_type.rb +4 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +10 -10
- data/lib/modern_treasury/models/external_account.rb +26 -26
- data/lib/modern_treasury/models/external_account_create_params.rb +41 -32
- data/lib/modern_treasury/models/external_account_type.rb +5 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +6 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +12 -8
- data/lib/modern_treasury/models/external_account_verify_response.rb +5 -10
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +10 -9
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +4 -4
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -19
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -6
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -6
- data/lib/modern_treasury/models/internal_account.rb +24 -19
- data/lib/modern_treasury/models/internal_account_create_params.rb +37 -5
- data/lib/modern_treasury/models/internal_account_list_params.rb +10 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +13 -12
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +9 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice.rb +34 -34
- data/lib/modern_treasury/models/invoice_create_params.rb +21 -21
- data/lib/modern_treasury/models/invoice_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice_update_params.rb +21 -21
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +10 -2
- data/lib/modern_treasury/models/ledger.rb +2 -2
- data/lib/modern_treasury/models/ledger_account.rb +19 -19
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +23 -22
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_category.rb +16 -16
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +8 -8
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_entry.rb +20 -19
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +10 -10
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction.rb +9 -9
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +6 -6
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +30 -29
- data/lib/modern_treasury/models/ledgerable_event.rb +1 -1
- data/lib/modern_treasury/models/legal_entity.rb +52 -34
- data/lib/modern_treasury/models/legal_entity_association.rb +59 -40
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +54 -36
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +1 -1
- data/lib/modern_treasury/models/legal_entity_create_params.rb +102 -65
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +4 -4
- data/lib/modern_treasury/models/legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/legal_entity_update_params.rb +44 -25
- data/lib/modern_treasury/models/line_item.rb +9 -9
- data/lib/modern_treasury/models/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_update_params.rb +2 -2
- data/lib/modern_treasury/models/paper_item.rb +16 -7
- data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
- data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
- data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
- data/lib/modern_treasury/models/payment_flow.rb +13 -13
- data/lib/modern_treasury/models/payment_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/payment_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/payment_order.rb +57 -86
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +86 -76
- data/lib/modern_treasury/models/payment_order_create_params.rb +95 -85
- data/lib/modern_treasury/models/payment_order_list_params.rb +12 -8
- data/lib/modern_treasury/models/payment_order_type.rb +4 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +72 -63
- data/lib/modern_treasury/models/payment_orders/reversal.rb +7 -7
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +17 -17
- data/lib/modern_treasury/models/payment_reference.rb +11 -7
- data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -2
- data/lib/modern_treasury/models/reconciliation_rule.rb +13 -9
- data/lib/modern_treasury/models/return_create_params.rb +44 -4
- data/lib/modern_treasury/models/return_list_params.rb +2 -2
- data/lib/modern_treasury/models/return_object.rb +78 -27
- data/lib/modern_treasury/models/routing_detail.rb +15 -11
- data/lib/modern_treasury/models/routing_detail_create_params.rb +10 -6
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +13 -9
- data/lib/modern_treasury/models/transaction.rb +23 -17
- data/lib/modern_treasury/models/transaction_create_params.rb +6 -2
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +7 -7
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +2 -2
- data/lib/modern_treasury/models/virtual_account.rb +5 -5
- data/lib/modern_treasury/models/virtual_account_create_params.rb +34 -23
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +19 -19
- data/lib/modern_treasury/models.rb +38 -19
- data/lib/modern_treasury/resources/account_collection_flows.rb +6 -6
- data/lib/modern_treasury/resources/account_details.rb +8 -8
- data/lib/modern_treasury/resources/bulk_requests.rb +9 -9
- data/lib/modern_treasury/resources/bulk_results.rb +5 -5
- data/lib/modern_treasury/resources/connection_legal_entities.rb +7 -7
- data/lib/modern_treasury/resources/connections.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +12 -12
- data/lib/modern_treasury/resources/documents.rb +6 -6
- data/lib/modern_treasury/resources/events.rb +2 -2
- data/lib/modern_treasury/resources/expected_payments.rb +24 -20
- data/lib/modern_treasury/resources/external_accounts.rb +20 -20
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +5 -5
- data/lib/modern_treasury/resources/incoming_payment_details.rb +10 -10
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +6 -6
- data/lib/modern_treasury/resources/internal_accounts.rb +12 -10
- data/lib/modern_treasury/resources/invoices/line_items.rb +5 -5
- data/lib/modern_treasury/resources/invoices.rb +21 -21
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +6 -6
- data/lib/modern_treasury/resources/ledger_account_categories.rb +8 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +6 -6
- data/lib/modern_treasury/resources/ledger_accounts.rb +12 -12
- data/lib/modern_treasury/resources/ledger_entries.rb +6 -6
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +7 -7
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +18 -18
- data/lib/modern_treasury/resources/ledgerable_events.rb +2 -2
- data/lib/modern_treasury/resources/ledgers.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +25 -25
- data/lib/modern_treasury/resources/legal_entity_associations.rb +3 -3
- data/lib/modern_treasury/resources/line_items.rb +6 -6
- data/lib/modern_treasury/resources/paper_items.rb +2 -2
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +6 -6
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +5 -5
- data/lib/modern_treasury/resources/payment_orders.rb +46 -46
- data/lib/modern_treasury/resources/payment_references.rb +3 -3
- data/lib/modern_treasury/resources/returns.rb +6 -6
- data/lib/modern_treasury/resources/routing_details.rb +9 -9
- data/lib/modern_treasury/resources/transactions/line_items.rb +4 -4
- data/lib/modern_treasury/resources/transactions.rb +5 -5
- data/lib/modern_treasury/resources/validations.rb +2 -2
- data/lib/modern_treasury/resources/virtual_accounts.rb +8 -8
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +12 -1
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +5 -1
- data/rbi/modern_treasury/internal/type/array_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/base_model.rbi +5 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +6 -0
- data/rbi/modern_treasury/internal/type/enum.rbi +5 -0
- data/rbi/modern_treasury/internal/type/file_input.rbi +5 -0
- data/rbi/modern_treasury/internal/type/hash_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +6 -0
- data/rbi/modern_treasury/internal/util.rbi +36 -0
- data/rbi/modern_treasury/internal.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail.rbi +20 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/bulk_request.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +105 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +7 -19
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +92 -6
- data/rbi/modern_treasury/models/currency.rbi +7 -0
- data/rbi/modern_treasury/models/document.rbi +9 -6
- data/rbi/modern_treasury/models/document_create_params.rbi +12 -12
- data/rbi/modern_treasury/models/document_list_params.rbi +9 -9
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +42 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +6 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +16 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +20 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +20 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +20 -0
- data/rbi/modern_treasury/models/internal_account.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +117 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/invoice.rbi +2 -2
- data/rbi/modern_treasury/models/invoices/invoice_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -3
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +26 -3
- data/rbi/modern_treasury/models/paper_item.rbi +10 -0
- data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -38
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +52 -12
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +14 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +80 -0
- data/rbi/modern_treasury/models/return_object.rbi +66 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +17 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +20 -0
- data/rbi/modern_treasury/models/transaction.rbi +16 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models.rbi +9 -0
- data/rbi/modern_treasury/resources/documents.rbi +1 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +6 -0
- data/rbi/modern_treasury/resources/external_accounts.rbi +1 -4
- data/rbi/modern_treasury/resources/internal_accounts.rbi +5 -0
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +2 -0
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/enum.rbs +2 -0
- data/sig/modern_treasury/internal/type/file_input.rbs +2 -0
- data/sig/modern_treasury/internal/type/hash_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +12 -0
- data/sig/modern_treasury/internal.rbs +3 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +30 -16
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +13 -6
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +10 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/account_detail.rbs +24 -4
- data/sig/modern_treasury/models/account_detail_create_params.rbs +15 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/async_response.rbs +2 -0
- data/sig/modern_treasury/models/bank_settings.rbs +13 -0
- data/sig/modern_treasury/models/bulk_request.rbs +29 -12
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +600 -188
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +12 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_result.rbs +44 -16
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +13 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +2 -0
- data/sig/modern_treasury/models/connection.rbs +12 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -4
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +188 -56
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +5 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +8 -0
- data/sig/modern_treasury/models/counterparty.rbs +84 -22
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +14 -6
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +307 -92
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +12 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +10 -0
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +41 -9
- data/sig/modern_treasury/models/document_create_params.rbs +16 -8
- data/sig/modern_treasury/models/document_list_params.rbs +13 -5
- data/sig/modern_treasury/models/document_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/event.rbs +13 -0
- data/sig/modern_treasury/models/event_list_params.rbs +11 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment.rbs +41 -12
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -12
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +37 -1
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +21 -0
- data/sig/modern_treasury/models/external_account.rbs +63 -16
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +99 -28
- data/sig/modern_treasury/models/external_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +17 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +21 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +10 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +13 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +52 -16
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_account.rbs +55 -9
- data/sig/modern_treasury/models/internal_account_create_params.rbs +66 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +37 -8
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +19 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +8 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice.rbs +94 -16
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +81 -4
- data/sig/modern_treasury/models/invoice_list_params.rbs +15 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +81 -4
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +21 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +11 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +6 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account.rbs +54 -4
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +6 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +45 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +13 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -4
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +53 -4
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +41 -12
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +26 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +30 -8
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +25 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +19 -4
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +11 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +40 -12
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -12
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +13 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +8 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity.rbs +96 -20
- data/sig/modern_treasury/models/legal_entity_association.rbs +113 -24
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +98 -30
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +168 -42
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +15 -4
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +70 -12
- data/sig/modern_treasury/models/line_item.rbs +22 -4
- data/sig/modern_treasury/models/line_item_list_params.rbs +7 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +7 -0
- data/sig/modern_treasury/models/paper_item.rbs +30 -4
- data/sig/modern_treasury/models/paper_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
- data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
- data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
- data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow.rbs +44 -22
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +10 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +12 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_order.rbs +116 -48
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +185 -44
- data/sig/modern_treasury/models/payment_order_create_params.rbs +205 -56
- data/sig/modern_treasury/models/payment_order_list_params.rbs +29 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +148 -32
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -8
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +43 -12
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +6 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_reference.rbs +28 -8
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ping_response.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +29 -8
- data/sig/modern_treasury/models/return_create_params.rbs +91 -0
- data/sig/modern_treasury/models/return_list_params.rbs +10 -0
- data/sig/modern_treasury/models/return_object.rbs +154 -24
- data/sig/modern_treasury/models/return_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +44 -8
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +16 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +38 -12
- data/sig/modern_treasury/models/transaction.rbs +58 -8
- data/sig/modern_treasury/models/transaction_create_params.rbs +22 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +18 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +7 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -8
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +6 -0
- data/sig/modern_treasury/models/virtual_account.rbs +19 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +74 -20
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +8 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -24
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +1 -1
- data/sig/modern_treasury/resources/bulk_requests.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/documents.rbs +1 -1
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- metadata +29 -2
@@ -15,13 +15,13 @@ module ModernTreasury
|
|
15
15
|
|
16
16
|
# @!attribute accounting
|
17
17
|
#
|
18
|
-
# @return [ModernTreasury::CounterpartyCreateParams::Accounting, nil]
|
18
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting, nil]
|
19
19
|
optional :accounting, -> { ModernTreasury::CounterpartyCreateParams::Accounting }
|
20
20
|
|
21
21
|
# @!attribute accounts
|
22
22
|
# The accounts for this counterparty.
|
23
23
|
#
|
24
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::Account>, nil]
|
24
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>, nil]
|
25
25
|
optional :accounts,
|
26
26
|
-> {
|
27
27
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account]
|
@@ -39,12 +39,12 @@ module ModernTreasury
|
|
39
39
|
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
40
40
|
# or `vendor`.
|
41
41
|
#
|
42
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LedgerType, nil]
|
42
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType, nil]
|
43
43
|
optional :ledger_type, enum: -> { ModernTreasury::CounterpartyCreateParams::LedgerType }
|
44
44
|
|
45
45
|
# @!attribute legal_entity
|
46
46
|
#
|
47
|
-
# @return [ModernTreasury::CounterpartyCreateParams::LegalEntity, nil]
|
47
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity, nil]
|
48
48
|
optional :legal_entity, -> { ModernTreasury::CounterpartyCreateParams::LegalEntity }
|
49
49
|
|
50
50
|
# @!attribute legal_entity_id
|
@@ -76,7 +76,7 @@ module ModernTreasury
|
|
76
76
|
# @!attribute verification_status
|
77
77
|
# The verification status of the counterparty.
|
78
78
|
#
|
79
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::VerificationStatus, nil]
|
79
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus, nil]
|
80
80
|
optional :verification_status, enum: -> { ModernTreasury::CounterpartyCreateParams::VerificationStatus }
|
81
81
|
|
82
82
|
# @!method initialize(name:, accounting: nil, accounts: nil, email: nil, ledger_type: nil, legal_entity: nil, legal_entity_id: nil, metadata: nil, send_remittance_advice: nil, taxpayer_identifier: nil, verification_status: nil, request_options: {})
|
@@ -85,15 +85,15 @@ module ModernTreasury
|
|
85
85
|
#
|
86
86
|
# @param name [String, nil] A human friendly name for this counterparty.
|
87
87
|
#
|
88
|
-
# @param accounting [ModernTreasury::CounterpartyCreateParams::Accounting]
|
88
|
+
# @param accounting [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
|
89
89
|
#
|
90
|
-
# @param accounts [Array<ModernTreasury::CounterpartyCreateParams::Account>] The accounts for this counterparty.
|
90
|
+
# @param accounts [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>] The accounts for this counterparty.
|
91
91
|
#
|
92
92
|
# @param email [String, nil] The counterparty's email.
|
93
93
|
#
|
94
|
-
# @param ledger_type [Symbol, ModernTreasury::CounterpartyCreateParams::LedgerType] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
94
|
+
# @param ledger_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
95
95
|
#
|
96
|
-
# @param legal_entity [ModernTreasury::CounterpartyCreateParams::LegalEntity]
|
96
|
+
# @param legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
|
97
97
|
#
|
98
98
|
# @param legal_entity_id [String, nil] The id of the legal entity.
|
99
99
|
#
|
@@ -103,7 +103,7 @@ module ModernTreasury
|
|
103
103
|
#
|
104
104
|
# @param taxpayer_identifier [String] Either a valid SSN or EIN.
|
105
105
|
#
|
106
|
-
# @param verification_status [Symbol, ModernTreasury::CounterpartyCreateParams::VerificationStatus] The verification status of the counterparty.
|
106
|
+
# @param verification_status [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus] The verification status of the counterparty.
|
107
107
|
#
|
108
108
|
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
109
109
|
|
@@ -112,19 +112,19 @@ module ModernTreasury
|
|
112
112
|
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
113
113
|
# or `vendor`.
|
114
114
|
#
|
115
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::Accounting::Type, nil]
|
115
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type, nil]
|
116
116
|
optional :type, enum: -> { ModernTreasury::CounterpartyCreateParams::Accounting::Type }
|
117
117
|
|
118
118
|
# @!method initialize(type: nil)
|
119
119
|
# Some parameter documentations has been truncated, see
|
120
|
-
# {ModernTreasury::CounterpartyCreateParams::Accounting} for more details.
|
120
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::Accounting} for more details.
|
121
121
|
#
|
122
|
-
# @param type [Symbol, ModernTreasury::CounterpartyCreateParams::Accounting::Type] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
122
|
+
# @param type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
123
123
|
|
124
124
|
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
125
125
|
# or `vendor`.
|
126
126
|
#
|
127
|
-
# @see ModernTreasury::CounterpartyCreateParams::Accounting#type
|
127
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Accounting#type
|
128
128
|
module Type
|
129
129
|
extend ModernTreasury::Internal::Type::Enum
|
130
130
|
|
@@ -139,7 +139,7 @@ module ModernTreasury
|
|
139
139
|
class Account < ModernTreasury::Internal::Type::BaseModel
|
140
140
|
# @!attribute account_details
|
141
141
|
#
|
142
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::Account::AccountDetail>, nil]
|
142
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>, nil]
|
143
143
|
optional :account_details,
|
144
144
|
-> {
|
145
145
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::AccountDetail]
|
@@ -148,12 +148,12 @@ module ModernTreasury
|
|
148
148
|
# @!attribute account_type
|
149
149
|
# Can be `checking`, `savings` or `other`.
|
150
150
|
#
|
151
|
-
# @return [Symbol, ModernTreasury::ExternalAccountType, nil]
|
151
|
+
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
152
152
|
optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
|
153
153
|
|
154
154
|
# @!attribute contact_details
|
155
155
|
#
|
156
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::Account::ContactDetail>, nil]
|
156
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>, nil]
|
157
157
|
optional :contact_details,
|
158
158
|
-> {
|
159
159
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::ContactDetail]
|
@@ -166,7 +166,7 @@ module ModernTreasury
|
|
166
166
|
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
167
167
|
# for more details.
|
168
168
|
#
|
169
|
-
# @return [ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount, nil]
|
169
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount, nil]
|
170
170
|
optional :ledger_account, -> { ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount }
|
171
171
|
|
172
172
|
# @!attribute metadata
|
@@ -186,7 +186,7 @@ module ModernTreasury
|
|
186
186
|
# @!attribute party_address
|
187
187
|
# Required if receiving wire payments.
|
188
188
|
#
|
189
|
-
# @return [ModernTreasury::CounterpartyCreateParams::Account::PartyAddress, nil]
|
189
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress, nil]
|
190
190
|
optional :party_address, -> { ModernTreasury::CounterpartyCreateParams::Account::PartyAddress }
|
191
191
|
|
192
192
|
# @!attribute party_identifier
|
@@ -203,7 +203,7 @@ module ModernTreasury
|
|
203
203
|
# @!attribute party_type
|
204
204
|
# Either `individual` or `business`.
|
205
205
|
#
|
206
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::Account::PartyType, nil]
|
206
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil]
|
207
207
|
optional :party_type,
|
208
208
|
enum: -> { ModernTreasury::CounterpartyCreateParams::Account::PartyType },
|
209
209
|
nil?: true
|
@@ -217,7 +217,7 @@ module ModernTreasury
|
|
217
217
|
|
218
218
|
# @!attribute routing_details
|
219
219
|
#
|
220
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail>, nil]
|
220
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>, nil]
|
221
221
|
optional :routing_details,
|
222
222
|
-> {
|
223
223
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail]
|
@@ -225,31 +225,31 @@ module ModernTreasury
|
|
225
225
|
|
226
226
|
# @!method initialize(account_details: nil, account_type: nil, contact_details: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
|
227
227
|
# Some parameter documentations has been truncated, see
|
228
|
-
# {ModernTreasury::CounterpartyCreateParams::Account} for more details.
|
228
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::Account} for more details.
|
229
229
|
#
|
230
|
-
# @param account_details [Array<ModernTreasury::CounterpartyCreateParams::Account::AccountDetail>]
|
230
|
+
# @param account_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
|
231
231
|
#
|
232
|
-
# @param account_type [Symbol, ModernTreasury::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
232
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
233
233
|
#
|
234
|
-
# @param contact_details [Array<ModernTreasury::CounterpartyCreateParams::Account::ContactDetail>]
|
234
|
+
# @param contact_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
|
235
235
|
#
|
236
|
-
# @param ledger_account [ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
236
|
+
# @param ledger_account [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
237
237
|
#
|
238
238
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
239
239
|
#
|
240
240
|
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
241
241
|
#
|
242
|
-
# @param party_address [ModernTreasury::CounterpartyCreateParams::Account::PartyAddress] Required if receiving wire payments.
|
242
|
+
# @param party_address [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress] Required if receiving wire payments.
|
243
243
|
#
|
244
244
|
# @param party_identifier [String]
|
245
245
|
#
|
246
246
|
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
247
247
|
#
|
248
|
-
# @param party_type [Symbol, ModernTreasury::CounterpartyCreateParams::Account::PartyType, nil] Either `individual` or `business`.
|
248
|
+
# @param party_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil] Either `individual` or `business`.
|
249
249
|
#
|
250
250
|
# @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
251
251
|
#
|
252
|
-
# @param routing_details [Array<ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail>]
|
252
|
+
# @param routing_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>]
|
253
253
|
|
254
254
|
class AccountDetail < ModernTreasury::Internal::Type::BaseModel
|
255
255
|
# @!attribute account_number
|
@@ -259,7 +259,7 @@ module ModernTreasury
|
|
259
259
|
|
260
260
|
# @!attribute account_number_type
|
261
261
|
#
|
262
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType, nil]
|
262
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType, nil]
|
263
263
|
optional :account_number_type,
|
264
264
|
enum: -> {
|
265
265
|
ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType
|
@@ -267,21 +267,25 @@ module ModernTreasury
|
|
267
267
|
|
268
268
|
# @!method initialize(account_number:, account_number_type: nil)
|
269
269
|
# @param account_number [String]
|
270
|
-
# @param account_number_type [Symbol, ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
|
270
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
|
271
271
|
|
272
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account::AccountDetail#account_number_type
|
272
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail#account_number_type
|
273
273
|
module AccountNumberType
|
274
274
|
extend ModernTreasury::Internal::Type::Enum
|
275
275
|
|
276
276
|
AU_NUMBER = :au_number
|
277
|
+
BASE_ADDRESS = :base_address
|
277
278
|
CLABE = :clabe
|
279
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
278
280
|
HK_NUMBER = :hk_number
|
279
281
|
IBAN = :iban
|
280
282
|
ID_NUMBER = :id_number
|
281
283
|
NZ_NUMBER = :nz_number
|
282
284
|
OTHER = :other
|
283
285
|
PAN = :pan
|
286
|
+
POLYGON_ADDRESS = :polygon_address
|
284
287
|
SG_NUMBER = :sg_number
|
288
|
+
SOLANA_ADDRESS = :solana_address
|
285
289
|
WALLET_ADDRESS = :wallet_address
|
286
290
|
|
287
291
|
# @!method self.values
|
@@ -297,7 +301,7 @@ module ModernTreasury
|
|
297
301
|
|
298
302
|
# @!attribute contact_identifier_type
|
299
303
|
#
|
300
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType, nil]
|
304
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType, nil]
|
301
305
|
optional :contact_identifier_type,
|
302
306
|
enum: -> {
|
303
307
|
ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType
|
@@ -305,9 +309,9 @@ module ModernTreasury
|
|
305
309
|
|
306
310
|
# @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
|
307
311
|
# @param contact_identifier [String]
|
308
|
-
# @param contact_identifier_type [Symbol, ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
|
312
|
+
# @param contact_identifier_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
|
309
313
|
|
310
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account::ContactDetail#contact_identifier_type
|
314
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail#contact_identifier_type
|
311
315
|
module ContactIdentifierType
|
312
316
|
extend ModernTreasury::Internal::Type::Enum
|
313
317
|
|
@@ -320,7 +324,7 @@ module ModernTreasury
|
|
320
324
|
end
|
321
325
|
end
|
322
326
|
|
323
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account#ledger_account
|
327
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account#ledger_account
|
324
328
|
class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
|
325
329
|
# @!attribute currency
|
326
330
|
# The currency of the ledger account.
|
@@ -343,7 +347,7 @@ module ModernTreasury
|
|
343
347
|
# @!attribute normal_balance
|
344
348
|
# The normal balance of the ledger account.
|
345
349
|
#
|
346
|
-
# @return [Symbol, ModernTreasury::TransactionDirection]
|
350
|
+
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
347
351
|
required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
|
348
352
|
|
349
353
|
# @!attribute currency_exponent
|
@@ -377,7 +381,7 @@ module ModernTreasury
|
|
377
381
|
# be populated here, otherwise null. The value is one of internal_account or
|
378
382
|
# external_account.
|
379
383
|
#
|
380
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType, nil]
|
384
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType, nil]
|
381
385
|
optional :ledgerable_type,
|
382
386
|
enum: -> {
|
383
387
|
ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType
|
@@ -392,8 +396,8 @@ module ModernTreasury
|
|
392
396
|
|
393
397
|
# @!method initialize(currency:, ledger_id:, name:, normal_balance:, currency_exponent: nil, description: nil, ledger_account_category_ids: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil)
|
394
398
|
# Some parameter documentations has been truncated, see
|
395
|
-
# {ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount} for
|
396
|
-
# details.
|
399
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount} for
|
400
|
+
# more details.
|
397
401
|
#
|
398
402
|
# Specifies a ledger account object that will be created with the external
|
399
403
|
# account. The resulting ledger account is linked to the external account for
|
@@ -407,7 +411,7 @@ module ModernTreasury
|
|
407
411
|
#
|
408
412
|
# @param name [String] The name of the ledger account.
|
409
413
|
#
|
410
|
-
# @param normal_balance [Symbol, ModernTreasury::TransactionDirection] The normal balance of the ledger account.
|
414
|
+
# @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection] The normal balance of the ledger account.
|
411
415
|
#
|
412
416
|
# @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
|
413
417
|
#
|
@@ -417,7 +421,7 @@ module ModernTreasury
|
|
417
421
|
#
|
418
422
|
# @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
|
419
423
|
#
|
420
|
-
# @param ledgerable_type [Symbol, ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
424
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
421
425
|
#
|
422
426
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
423
427
|
|
@@ -425,7 +429,7 @@ module ModernTreasury
|
|
425
429
|
# be populated here, otherwise null. The value is one of internal_account or
|
426
430
|
# external_account.
|
427
431
|
#
|
428
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount#ledgerable_type
|
432
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount#ledgerable_type
|
429
433
|
module LedgerableType
|
430
434
|
extend ModernTreasury::Internal::Type::Enum
|
431
435
|
|
@@ -439,7 +443,7 @@ module ModernTreasury
|
|
439
443
|
end
|
440
444
|
end
|
441
445
|
|
442
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account#party_address
|
446
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account#party_address
|
443
447
|
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
444
448
|
# @!attribute country
|
445
449
|
# Country code conforms to [ISO 3166-1 alpha-2]
|
@@ -493,7 +497,7 @@ module ModernTreasury
|
|
493
497
|
|
494
498
|
# Either `individual` or `business`.
|
495
499
|
#
|
496
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account#party_type
|
500
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account#party_type
|
497
501
|
module PartyType
|
498
502
|
extend ModernTreasury::Internal::Type::Enum
|
499
503
|
|
@@ -512,7 +516,7 @@ module ModernTreasury
|
|
512
516
|
|
513
517
|
# @!attribute routing_number_type
|
514
518
|
#
|
515
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
519
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
516
520
|
required :routing_number_type,
|
517
521
|
enum: -> {
|
518
522
|
ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType
|
@@ -520,16 +524,16 @@ module ModernTreasury
|
|
520
524
|
|
521
525
|
# @!attribute payment_type
|
522
526
|
#
|
523
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::PaymentType, nil]
|
527
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType, nil]
|
524
528
|
optional :payment_type,
|
525
529
|
enum: -> { ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::PaymentType }
|
526
530
|
|
527
531
|
# @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
|
528
532
|
# @param routing_number [String]
|
529
|
-
# @param routing_number_type [Symbol, ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
530
|
-
# @param payment_type [Symbol, ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
|
533
|
+
# @param routing_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
534
|
+
# @param payment_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
|
531
535
|
|
532
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail#routing_number_type
|
536
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail#routing_number_type
|
533
537
|
module RoutingNumberType
|
534
538
|
extend ModernTreasury::Internal::Type::Enum
|
535
539
|
|
@@ -559,13 +563,14 @@ module ModernTreasury
|
|
559
563
|
# @return [Array<Symbol>]
|
560
564
|
end
|
561
565
|
|
562
|
-
# @see ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail#payment_type
|
566
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail#payment_type
|
563
567
|
module PaymentType
|
564
568
|
extend ModernTreasury::Internal::Type::Enum
|
565
569
|
|
566
570
|
ACH = :ach
|
567
571
|
AU_BECS = :au_becs
|
568
572
|
BACS = :bacs
|
573
|
+
BASE = :base
|
569
574
|
BOOK = :book
|
570
575
|
CARD = :card
|
571
576
|
CHATS = :chats
|
@@ -573,6 +578,7 @@ module ModernTreasury
|
|
573
578
|
CROSS_BORDER = :cross_border
|
574
579
|
DK_NETS = :dk_nets
|
575
580
|
EFT = :eft
|
581
|
+
ETHEREUM = :ethereum
|
576
582
|
HU_ICS = :hu_ics
|
577
583
|
INTERAC = :interac
|
578
584
|
MASAV = :masav
|
@@ -581,6 +587,7 @@ module ModernTreasury
|
|
581
587
|
NICS = :nics
|
582
588
|
NZ_BECS = :nz_becs
|
583
589
|
PL_ELIXIR = :pl_elixir
|
590
|
+
POLYGON = :polygon
|
584
591
|
PROVXCHANGE = :provxchange
|
585
592
|
RO_SENT = :ro_sent
|
586
593
|
RTP = :rtp
|
@@ -591,6 +598,7 @@ module ModernTreasury
|
|
591
598
|
SIC = :sic
|
592
599
|
SIGNET = :signet
|
593
600
|
SKNBI = :sknbi
|
601
|
+
SOLANA = :solana
|
594
602
|
WIRE = :wire
|
595
603
|
ZENGIN = :zengin
|
596
604
|
|
@@ -618,14 +626,14 @@ module ModernTreasury
|
|
618
626
|
# @!attribute legal_entity_type
|
619
627
|
# The type of legal entity.
|
620
628
|
#
|
621
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityType]
|
629
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType]
|
622
630
|
required :legal_entity_type,
|
623
631
|
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityType }
|
624
632
|
|
625
633
|
# @!attribute addresses
|
626
634
|
# A list of addresses for the entity.
|
627
635
|
#
|
628
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::Address>, nil]
|
636
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>, nil]
|
629
637
|
optional :addresses,
|
630
638
|
-> {
|
631
639
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::Address]
|
@@ -633,7 +641,7 @@ module ModernTreasury
|
|
633
641
|
|
634
642
|
# @!attribute bank_settings
|
635
643
|
#
|
636
|
-
# @return [ModernTreasury::BankSettings, nil]
|
644
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
637
645
|
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
638
646
|
|
639
647
|
# @!attribute business_name
|
@@ -650,7 +658,7 @@ module ModernTreasury
|
|
650
658
|
|
651
659
|
# @!attribute compliance_details
|
652
660
|
#
|
653
|
-
# @return [ModernTreasury::LegalEntityComplianceDetail, nil]
|
661
|
+
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
654
662
|
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
655
663
|
|
656
664
|
# @!attribute date_formed
|
@@ -685,7 +693,7 @@ module ModernTreasury
|
|
685
693
|
# @!attribute identifications
|
686
694
|
# A list of identifications for the legal entity.
|
687
695
|
#
|
688
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification>, nil]
|
696
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>, nil]
|
689
697
|
optional :identifications,
|
690
698
|
-> {
|
691
699
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification]
|
@@ -694,7 +702,7 @@ module ModernTreasury
|
|
694
702
|
# @!attribute industry_classifications
|
695
703
|
# A list of industry classifications for the legal entity.
|
696
704
|
#
|
697
|
-
# @return [Array<ModernTreasury::LegalEntityIndustryClassification>, nil]
|
705
|
+
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
698
706
|
optional :industry_classifications,
|
699
707
|
-> {
|
700
708
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
@@ -709,7 +717,7 @@ module ModernTreasury
|
|
709
717
|
# @!attribute legal_entity_associations
|
710
718
|
# The legal entity associations and its child legal entities.
|
711
719
|
#
|
712
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
|
720
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
|
713
721
|
optional :legal_entity_associations,
|
714
722
|
-> {
|
715
723
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]
|
@@ -719,7 +727,7 @@ module ModernTreasury
|
|
719
727
|
# @!attribute legal_structure
|
720
728
|
# The business's legal structure.
|
721
729
|
#
|
722
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
|
730
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
|
723
731
|
optional :legal_structure,
|
724
732
|
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalStructure },
|
725
733
|
nil?: true
|
@@ -739,7 +747,7 @@ module ModernTreasury
|
|
739
747
|
|
740
748
|
# @!attribute phone_numbers
|
741
749
|
#
|
742
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber>, nil]
|
750
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>, nil]
|
743
751
|
optional :phone_numbers,
|
744
752
|
-> {
|
745
753
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber]
|
@@ -766,7 +774,7 @@ module ModernTreasury
|
|
766
774
|
# @!attribute risk_rating
|
767
775
|
# The risk rating of the legal entity. One of low, medium, high.
|
768
776
|
#
|
769
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating, nil]
|
777
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil]
|
770
778
|
optional :risk_rating,
|
771
779
|
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating },
|
772
780
|
nil?: true
|
@@ -779,7 +787,7 @@ module ModernTreasury
|
|
779
787
|
|
780
788
|
# @!attribute wealth_and_employment_details
|
781
789
|
#
|
782
|
-
# @return [ModernTreasury::WealthAndEmploymentDetails, nil]
|
790
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
783
791
|
optional :wealth_and_employment_details, -> { ModernTreasury::WealthAndEmploymentDetails }, nil?: true
|
784
792
|
|
785
793
|
# @!attribute website
|
@@ -790,19 +798,20 @@ module ModernTreasury
|
|
790
798
|
|
791
799
|
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil)
|
792
800
|
# Some parameter documentations has been truncated, see
|
793
|
-
# {ModernTreasury::CounterpartyCreateParams::LegalEntity} for more
|
801
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity} for more
|
802
|
+
# details.
|
794
803
|
#
|
795
|
-
# @param legal_entity_type [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityType] The type of legal entity.
|
804
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType] The type of legal entity.
|
796
805
|
#
|
797
|
-
# @param addresses [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::Address>] A list of addresses for the entity.
|
806
|
+
# @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>] A list of addresses for the entity.
|
798
807
|
#
|
799
|
-
# @param bank_settings [ModernTreasury::BankSettings, nil]
|
808
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
800
809
|
#
|
801
810
|
# @param business_name [String, nil] The business's legal business name.
|
802
811
|
#
|
803
812
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
804
813
|
#
|
805
|
-
# @param compliance_details [ModernTreasury::LegalEntityComplianceDetail, nil]
|
814
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
806
815
|
#
|
807
816
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
808
817
|
#
|
@@ -814,21 +823,21 @@ module ModernTreasury
|
|
814
823
|
#
|
815
824
|
# @param first_name [String, nil] An individual's first name.
|
816
825
|
#
|
817
|
-
# @param identifications [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification>] A list of identifications for the legal entity.
|
826
|
+
# @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>] A list of identifications for the legal entity.
|
818
827
|
#
|
819
|
-
# @param industry_classifications [Array<ModernTreasury::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
828
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
820
829
|
#
|
821
830
|
# @param last_name [String, nil] An individual's last name.
|
822
831
|
#
|
823
|
-
# @param legal_entity_associations [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
832
|
+
# @param legal_entity_associations [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
824
833
|
#
|
825
|
-
# @param legal_structure [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalStructure, nil] The business's legal structure.
|
834
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil] The business's legal structure.
|
826
835
|
#
|
827
836
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
828
837
|
#
|
829
838
|
# @param middle_name [String, nil] An individual's middle name.
|
830
839
|
#
|
831
|
-
# @param phone_numbers [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
|
840
|
+
# @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
|
832
841
|
#
|
833
842
|
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
834
843
|
#
|
@@ -836,17 +845,17 @@ module ModernTreasury
|
|
836
845
|
#
|
837
846
|
# @param prefix [String, nil] An individual's prefix.
|
838
847
|
#
|
839
|
-
# @param risk_rating [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
848
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
840
849
|
#
|
841
850
|
# @param suffix [String, nil] An individual's suffix.
|
842
851
|
#
|
843
|
-
# @param wealth_and_employment_details [ModernTreasury::WealthAndEmploymentDetails, nil]
|
852
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
844
853
|
#
|
845
854
|
# @param website [String, nil] The entity's primary website URL.
|
846
855
|
|
847
856
|
# The type of legal entity.
|
848
857
|
#
|
849
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity#legal_entity_type
|
858
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#legal_entity_type
|
850
859
|
module LegalEntityType
|
851
860
|
extend ModernTreasury::Internal::Type::Enum
|
852
861
|
|
@@ -890,7 +899,7 @@ module ModernTreasury
|
|
890
899
|
# @!attribute address_types
|
891
900
|
# The types of this address.
|
892
901
|
#
|
893
|
-
# @return [Array<Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType>, nil]
|
902
|
+
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>, nil]
|
894
903
|
optional :address_types,
|
895
904
|
-> {
|
896
905
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType]
|
@@ -912,7 +921,7 @@ module ModernTreasury
|
|
912
921
|
#
|
913
922
|
# @param region [String, nil] Region or State.
|
914
923
|
#
|
915
|
-
# @param address_types [Array<Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType>] The types of this address.
|
924
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>] The types of this address.
|
916
925
|
#
|
917
926
|
# @param line2 [String, nil]
|
918
927
|
|
@@ -940,10 +949,17 @@ module ModernTreasury
|
|
940
949
|
# @!attribute id_type
|
941
950
|
# The type of ID number.
|
942
951
|
#
|
943
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType]
|
952
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType]
|
944
953
|
required :id_type,
|
945
954
|
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType }
|
946
955
|
|
956
|
+
# @!attribute expiration_date
|
957
|
+
# The date when the Identification is no longer considered valid by the issuing
|
958
|
+
# authority.
|
959
|
+
#
|
960
|
+
# @return [Date, nil]
|
961
|
+
optional :expiration_date, Date, nil?: true
|
962
|
+
|
947
963
|
# @!attribute issuing_country
|
948
964
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
949
965
|
# identification
|
@@ -951,20 +967,30 @@ module ModernTreasury
|
|
951
967
|
# @return [String, nil]
|
952
968
|
optional :issuing_country, String, nil?: true
|
953
969
|
|
954
|
-
# @!
|
970
|
+
# @!attribute issuing_region
|
971
|
+
# The region in which the identifcation was issued.
|
972
|
+
#
|
973
|
+
# @return [String, nil]
|
974
|
+
optional :issuing_region, String, nil?: true
|
975
|
+
|
976
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
955
977
|
# Some parameter documentations has been truncated, see
|
956
|
-
# {ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification}
|
957
|
-
# details.
|
978
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification}
|
979
|
+
# for more details.
|
958
980
|
#
|
959
981
|
# @param id_number [String] The ID number of identification document.
|
960
982
|
#
|
961
|
-
# @param id_type [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType] The type of ID number.
|
983
|
+
# @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType] The type of ID number.
|
984
|
+
#
|
985
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
962
986
|
#
|
963
987
|
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
988
|
+
#
|
989
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
964
990
|
|
965
991
|
# The type of ID number.
|
966
992
|
#
|
967
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification#id_type
|
993
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification#id_type
|
968
994
|
module IDType
|
969
995
|
extend ModernTreasury::Internal::Type::Enum
|
970
996
|
|
@@ -976,6 +1002,7 @@ module ModernTreasury
|
|
976
1002
|
CL_RUT = :cl_rut
|
977
1003
|
CO_CEDULAS = :co_cedulas
|
978
1004
|
CO_NIT = :co_nit
|
1005
|
+
DRIVERS_LICENSE = :drivers_license
|
979
1006
|
HN_ID = :hn_id
|
980
1007
|
HN_RTN = :hn_rtn
|
981
1008
|
IN_LEI = :in_lei
|
@@ -998,7 +1025,7 @@ module ModernTreasury
|
|
998
1025
|
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
999
1026
|
# @!attribute relationship_types
|
1000
1027
|
#
|
1001
|
-
# @return [Array<Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1028
|
+
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1002
1029
|
required :relationship_types,
|
1003
1030
|
-> {
|
1004
1031
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType]
|
@@ -1007,7 +1034,7 @@ module ModernTreasury
|
|
1007
1034
|
# @!attribute child_legal_entity
|
1008
1035
|
# The child legal entity.
|
1009
1036
|
#
|
1010
|
-
# @return [ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity, nil]
|
1037
|
+
# @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity, nil]
|
1011
1038
|
optional :child_legal_entity,
|
1012
1039
|
-> {
|
1013
1040
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity
|
@@ -1032,9 +1059,9 @@ module ModernTreasury
|
|
1032
1059
|
optional :title, String, nil?: true
|
1033
1060
|
|
1034
1061
|
# @!method initialize(relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil)
|
1035
|
-
# @param relationship_types [Array<Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1062
|
+
# @param relationship_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1036
1063
|
#
|
1037
|
-
# @param child_legal_entity [ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
1064
|
+
# @param child_legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
1038
1065
|
#
|
1039
1066
|
# @param child_legal_entity_id [String] The ID of the child legal entity.
|
1040
1067
|
#
|
@@ -1053,12 +1080,12 @@ module ModernTreasury
|
|
1053
1080
|
# @return [Array<Symbol>]
|
1054
1081
|
end
|
1055
1082
|
|
1056
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation#child_legal_entity
|
1083
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation#child_legal_entity
|
1057
1084
|
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
1058
1085
|
# @!attribute addresses
|
1059
1086
|
# A list of addresses for the entity.
|
1060
1087
|
#
|
1061
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
1088
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
1062
1089
|
optional :addresses,
|
1063
1090
|
-> {
|
1064
1091
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]
|
@@ -1066,7 +1093,7 @@ module ModernTreasury
|
|
1066
1093
|
|
1067
1094
|
# @!attribute bank_settings
|
1068
1095
|
#
|
1069
|
-
# @return [ModernTreasury::BankSettings, nil]
|
1096
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
1070
1097
|
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
1071
1098
|
|
1072
1099
|
# @!attribute business_name
|
@@ -1083,7 +1110,7 @@ module ModernTreasury
|
|
1083
1110
|
|
1084
1111
|
# @!attribute compliance_details
|
1085
1112
|
#
|
1086
|
-
# @return [ModernTreasury::LegalEntityComplianceDetail, nil]
|
1113
|
+
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
1087
1114
|
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
1088
1115
|
|
1089
1116
|
# @!attribute date_formed
|
@@ -1118,7 +1145,7 @@ module ModernTreasury
|
|
1118
1145
|
# @!attribute identifications
|
1119
1146
|
# A list of identifications for the legal entity.
|
1120
1147
|
#
|
1121
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
1148
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
1122
1149
|
optional :identifications,
|
1123
1150
|
-> do
|
1124
1151
|
ModernTreasury::Internal::Type::ArrayOf[
|
@@ -1129,7 +1156,7 @@ module ModernTreasury
|
|
1129
1156
|
# @!attribute industry_classifications
|
1130
1157
|
# A list of industry classifications for the legal entity.
|
1131
1158
|
#
|
1132
|
-
# @return [Array<ModernTreasury::LegalEntityIndustryClassification>, nil]
|
1159
|
+
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
1133
1160
|
optional :industry_classifications,
|
1134
1161
|
-> {
|
1135
1162
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
@@ -1144,7 +1171,7 @@ module ModernTreasury
|
|
1144
1171
|
# @!attribute legal_entity_type
|
1145
1172
|
# The type of legal entity.
|
1146
1173
|
#
|
1147
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
1174
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
1148
1175
|
optional :legal_entity_type,
|
1149
1176
|
enum: -> {
|
1150
1177
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
|
@@ -1153,7 +1180,7 @@ module ModernTreasury
|
|
1153
1180
|
# @!attribute legal_structure
|
1154
1181
|
# The business's legal structure.
|
1155
1182
|
#
|
1156
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
1183
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
1157
1184
|
optional :legal_structure,
|
1158
1185
|
enum: -> {
|
1159
1186
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure
|
@@ -1175,7 +1202,7 @@ module ModernTreasury
|
|
1175
1202
|
|
1176
1203
|
# @!attribute phone_numbers
|
1177
1204
|
#
|
1178
|
-
# @return [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
1205
|
+
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
1179
1206
|
optional :phone_numbers,
|
1180
1207
|
-> do
|
1181
1208
|
ModernTreasury::Internal::Type::ArrayOf[
|
@@ -1204,7 +1231,7 @@ module ModernTreasury
|
|
1204
1231
|
# @!attribute risk_rating
|
1205
1232
|
# The risk rating of the legal entity. One of low, medium, high.
|
1206
1233
|
#
|
1207
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
1234
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
1208
1235
|
optional :risk_rating,
|
1209
1236
|
enum: -> {
|
1210
1237
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating
|
@@ -1219,7 +1246,7 @@ module ModernTreasury
|
|
1219
1246
|
|
1220
1247
|
# @!attribute wealth_and_employment_details
|
1221
1248
|
#
|
1222
|
-
# @return [ModernTreasury::WealthAndEmploymentDetails, nil]
|
1249
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
1223
1250
|
optional :wealth_and_employment_details,
|
1224
1251
|
-> {
|
1225
1252
|
ModernTreasury::WealthAndEmploymentDetails
|
@@ -1234,20 +1261,20 @@ module ModernTreasury
|
|
1234
1261
|
|
1235
1262
|
# @!method initialize(addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_entity_type: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil)
|
1236
1263
|
# Some parameter documentations has been truncated, see
|
1237
|
-
# {ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity}
|
1264
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity}
|
1238
1265
|
# for more details.
|
1239
1266
|
#
|
1240
1267
|
# The child legal entity.
|
1241
1268
|
#
|
1242
|
-
# @param addresses [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
1269
|
+
# @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
1243
1270
|
#
|
1244
|
-
# @param bank_settings [ModernTreasury::BankSettings, nil]
|
1271
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
1245
1272
|
#
|
1246
1273
|
# @param business_name [String, nil] The business's legal business name.
|
1247
1274
|
#
|
1248
1275
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
1249
1276
|
#
|
1250
|
-
# @param compliance_details [ModernTreasury::LegalEntityComplianceDetail, nil]
|
1277
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
1251
1278
|
#
|
1252
1279
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
1253
1280
|
#
|
@@ -1259,21 +1286,21 @@ module ModernTreasury
|
|
1259
1286
|
#
|
1260
1287
|
# @param first_name [String, nil] An individual's first name.
|
1261
1288
|
#
|
1262
|
-
# @param identifications [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
1289
|
+
# @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
1263
1290
|
#
|
1264
|
-
# @param industry_classifications [Array<ModernTreasury::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
1291
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
1265
1292
|
#
|
1266
1293
|
# @param last_name [String, nil] An individual's last name.
|
1267
1294
|
#
|
1268
|
-
# @param legal_entity_type [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
1295
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
1269
1296
|
#
|
1270
|
-
# @param legal_structure [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
1297
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
1271
1298
|
#
|
1272
1299
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
1273
1300
|
#
|
1274
1301
|
# @param middle_name [String, nil] An individual's middle name.
|
1275
1302
|
#
|
1276
|
-
# @param phone_numbers [Array<ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
1303
|
+
# @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
1277
1304
|
#
|
1278
1305
|
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
1279
1306
|
#
|
@@ -1281,11 +1308,11 @@ module ModernTreasury
|
|
1281
1308
|
#
|
1282
1309
|
# @param prefix [String, nil] An individual's prefix.
|
1283
1310
|
#
|
1284
|
-
# @param risk_rating [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
1311
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
1285
1312
|
#
|
1286
1313
|
# @param suffix [String, nil] An individual's suffix.
|
1287
1314
|
#
|
1288
|
-
# @param wealth_and_employment_details [ModernTreasury::WealthAndEmploymentDetails, nil]
|
1315
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
1289
1316
|
#
|
1290
1317
|
# @param website [String, nil] The entity's primary website URL.
|
1291
1318
|
|
@@ -1322,7 +1349,7 @@ module ModernTreasury
|
|
1322
1349
|
# @!attribute address_types
|
1323
1350
|
# The types of this address.
|
1324
1351
|
#
|
1325
|
-
# @return [Array<Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
1352
|
+
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
1326
1353
|
optional :address_types,
|
1327
1354
|
-> do
|
1328
1355
|
ModernTreasury::Internal::Type::ArrayOf[
|
@@ -1346,7 +1373,7 @@ module ModernTreasury
|
|
1346
1373
|
#
|
1347
1374
|
# @param region [String, nil] Region or State.
|
1348
1375
|
#
|
1349
|
-
# @param address_types [Array<Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
1376
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
1350
1377
|
#
|
1351
1378
|
# @param line2 [String, nil]
|
1352
1379
|
|
@@ -1374,12 +1401,19 @@ module ModernTreasury
|
|
1374
1401
|
# @!attribute id_type
|
1375
1402
|
# The type of ID number.
|
1376
1403
|
#
|
1377
|
-
# @return [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
1404
|
+
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
1378
1405
|
required :id_type,
|
1379
1406
|
enum: -> {
|
1380
1407
|
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
|
1381
1408
|
}
|
1382
1409
|
|
1410
|
+
# @!attribute expiration_date
|
1411
|
+
# The date when the Identification is no longer considered valid by the issuing
|
1412
|
+
# authority.
|
1413
|
+
#
|
1414
|
+
# @return [Date, nil]
|
1415
|
+
optional :expiration_date, Date, nil?: true
|
1416
|
+
|
1383
1417
|
# @!attribute issuing_country
|
1384
1418
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
1385
1419
|
# identification
|
@@ -1387,20 +1421,30 @@ module ModernTreasury
|
|
1387
1421
|
# @return [String, nil]
|
1388
1422
|
optional :issuing_country, String, nil?: true
|
1389
1423
|
|
1390
|
-
# @!
|
1424
|
+
# @!attribute issuing_region
|
1425
|
+
# The region in which the identifcation was issued.
|
1426
|
+
#
|
1427
|
+
# @return [String, nil]
|
1428
|
+
optional :issuing_region, String, nil?: true
|
1429
|
+
|
1430
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
1391
1431
|
# Some parameter documentations has been truncated, see
|
1392
|
-
# {ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification}
|
1432
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification}
|
1393
1433
|
# for more details.
|
1394
1434
|
#
|
1395
1435
|
# @param id_number [String] The ID number of identification document.
|
1396
1436
|
#
|
1397
|
-
# @param id_type [Symbol, ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
1437
|
+
# @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
1438
|
+
#
|
1439
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
1398
1440
|
#
|
1399
1441
|
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
1442
|
+
#
|
1443
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
1400
1444
|
|
1401
1445
|
# The type of ID number.
|
1402
1446
|
#
|
1403
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
1447
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
1404
1448
|
module IDType
|
1405
1449
|
extend ModernTreasury::Internal::Type::Enum
|
1406
1450
|
|
@@ -1412,6 +1456,7 @@ module ModernTreasury
|
|
1412
1456
|
CL_RUT = :cl_rut
|
1413
1457
|
CO_CEDULAS = :co_cedulas
|
1414
1458
|
CO_NIT = :co_nit
|
1459
|
+
DRIVERS_LICENSE = :drivers_license
|
1415
1460
|
HN_ID = :hn_id
|
1416
1461
|
HN_RTN = :hn_rtn
|
1417
1462
|
IN_LEI = :in_lei
|
@@ -1433,7 +1478,7 @@ module ModernTreasury
|
|
1433
1478
|
|
1434
1479
|
# The type of legal entity.
|
1435
1480
|
#
|
1436
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
1481
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
1437
1482
|
module LegalEntityType
|
1438
1483
|
extend ModernTreasury::Internal::Type::Enum
|
1439
1484
|
|
@@ -1446,7 +1491,7 @@ module ModernTreasury
|
|
1446
1491
|
|
1447
1492
|
# The business's legal structure.
|
1448
1493
|
#
|
1449
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
1494
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
1450
1495
|
module LegalStructure
|
1451
1496
|
extend ModernTreasury::Internal::Type::Enum
|
1452
1497
|
|
@@ -1475,7 +1520,7 @@ module ModernTreasury
|
|
1475
1520
|
|
1476
1521
|
# The risk rating of the legal entity. One of low, medium, high.
|
1477
1522
|
#
|
1478
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
1523
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
1479
1524
|
module RiskRating
|
1480
1525
|
extend ModernTreasury::Internal::Type::Enum
|
1481
1526
|
|
@@ -1491,7 +1536,7 @@ module ModernTreasury
|
|
1491
1536
|
|
1492
1537
|
# The business's legal structure.
|
1493
1538
|
#
|
1494
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity#legal_structure
|
1539
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#legal_structure
|
1495
1540
|
module LegalStructure
|
1496
1541
|
extend ModernTreasury::Internal::Type::Enum
|
1497
1542
|
|
@@ -1520,7 +1565,7 @@ module ModernTreasury
|
|
1520
1565
|
|
1521
1566
|
# The risk rating of the legal entity. One of low, medium, high.
|
1522
1567
|
#
|
1523
|
-
# @see ModernTreasury::CounterpartyCreateParams::LegalEntity#risk_rating
|
1568
|
+
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity#risk_rating
|
1524
1569
|
module RiskRating
|
1525
1570
|
extend ModernTreasury::Internal::Type::Enum
|
1526
1571
|
|