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
@@ -12,7 +12,7 @@ module ModernTreasury
|
|
12
12
|
# @!attribute addresses
|
13
13
|
# A list of addresses for the entity.
|
14
14
|
#
|
15
|
-
# @return [Array<ModernTreasury::LegalEntity::Address>]
|
15
|
+
# @return [Array<ModernTreasury::Models::LegalEntity::Address>]
|
16
16
|
required :addresses,
|
17
17
|
-> {
|
18
18
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntity::Address]
|
@@ -20,7 +20,7 @@ module ModernTreasury
|
|
20
20
|
|
21
21
|
# @!attribute bank_settings
|
22
22
|
#
|
23
|
-
# @return [ModernTreasury::BankSettings, nil]
|
23
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
24
24
|
required :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
25
25
|
|
26
26
|
# @!attribute business_name
|
@@ -37,7 +37,7 @@ module ModernTreasury
|
|
37
37
|
|
38
38
|
# @!attribute compliance_details
|
39
39
|
#
|
40
|
-
# @return [ModernTreasury::LegalEntityComplianceDetail, nil]
|
40
|
+
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
41
41
|
required :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
42
42
|
|
43
43
|
# @!attribute created_at
|
@@ -82,14 +82,14 @@ module ModernTreasury
|
|
82
82
|
# @!attribute identifications
|
83
83
|
# A list of identifications for the legal entity.
|
84
84
|
#
|
85
|
-
# @return [Array<ModernTreasury::LegalEntity::Identification>]
|
85
|
+
# @return [Array<ModernTreasury::Models::LegalEntity::Identification>]
|
86
86
|
required :identifications,
|
87
87
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntity::Identification] }
|
88
88
|
|
89
89
|
# @!attribute industry_classifications
|
90
90
|
# A list of industry classifications for the legal entity.
|
91
91
|
#
|
92
|
-
# @return [Array<ModernTreasury::LegalEntityIndustryClassification>]
|
92
|
+
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
93
93
|
required :industry_classifications,
|
94
94
|
-> {
|
95
95
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
@@ -104,7 +104,7 @@ module ModernTreasury
|
|
104
104
|
# @!attribute legal_entity_associations
|
105
105
|
# The legal entity associations and its child legal entities.
|
106
106
|
#
|
107
|
-
# @return [Array<ModernTreasury::LegalEntityAssociation>, nil]
|
107
|
+
# @return [Array<ModernTreasury::Models::LegalEntityAssociation>, nil]
|
108
108
|
required :legal_entity_associations,
|
109
109
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation] },
|
110
110
|
nil?: true
|
@@ -112,13 +112,13 @@ module ModernTreasury
|
|
112
112
|
# @!attribute legal_entity_type
|
113
113
|
# The type of legal entity.
|
114
114
|
#
|
115
|
-
# @return [Symbol, ModernTreasury::LegalEntity::LegalEntityType]
|
115
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntity::LegalEntityType]
|
116
116
|
required :legal_entity_type, enum: -> { ModernTreasury::LegalEntity::LegalEntityType }
|
117
117
|
|
118
118
|
# @!attribute legal_structure
|
119
119
|
# The business's legal structure.
|
120
120
|
#
|
121
|
-
# @return [Symbol, ModernTreasury::LegalEntity::LegalStructure, nil]
|
121
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntity::LegalStructure, nil]
|
122
122
|
required :legal_structure, enum: -> { ModernTreasury::LegalEntity::LegalStructure }, nil?: true
|
123
123
|
|
124
124
|
# @!attribute live_mode
|
@@ -148,7 +148,7 @@ module ModernTreasury
|
|
148
148
|
|
149
149
|
# @!attribute phone_numbers
|
150
150
|
#
|
151
|
-
# @return [Array<ModernTreasury::LegalEntity::PhoneNumber>]
|
151
|
+
# @return [Array<ModernTreasury::Models::LegalEntity::PhoneNumber>]
|
152
152
|
required :phone_numbers,
|
153
153
|
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntity::PhoneNumber] }
|
154
154
|
|
@@ -173,7 +173,7 @@ module ModernTreasury
|
|
173
173
|
# @!attribute risk_rating
|
174
174
|
# The risk rating of the legal entity. One of low, medium, high.
|
175
175
|
#
|
176
|
-
# @return [Symbol, ModernTreasury::LegalEntity::RiskRating, nil]
|
176
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntity::RiskRating, nil]
|
177
177
|
required :risk_rating, enum: -> { ModernTreasury::LegalEntity::RiskRating }, nil?: true
|
178
178
|
|
179
179
|
# @!attribute suffix
|
@@ -189,7 +189,7 @@ module ModernTreasury
|
|
189
189
|
|
190
190
|
# @!attribute wealth_and_employment_details
|
191
191
|
#
|
192
|
-
# @return [ModernTreasury::WealthAndEmploymentDetails, nil]
|
192
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
193
193
|
required :wealth_and_employment_details, -> { ModernTreasury::WealthAndEmploymentDetails }, nil?: true
|
194
194
|
|
195
195
|
# @!attribute website
|
@@ -200,19 +200,19 @@ module ModernTreasury
|
|
200
200
|
|
201
201
|
# @!method initialize(id:, addresses:, bank_settings:, business_name:, citizenship_country:, compliance_details:, created_at:, date_formed:, date_of_birth:, discarded_at:, doing_business_as_names:, email:, first_name:, identifications:, industry_classifications:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, live_mode:, metadata:, middle_name:, object:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, risk_rating:, suffix:, updated_at:, wealth_and_employment_details:, website:)
|
202
202
|
# Some parameter documentations has been truncated, see
|
203
|
-
# {ModernTreasury::LegalEntity} for more details.
|
203
|
+
# {ModernTreasury::Models::LegalEntity} for more details.
|
204
204
|
#
|
205
205
|
# @param id [String]
|
206
206
|
#
|
207
|
-
# @param addresses [Array<ModernTreasury::LegalEntity::Address>] A list of addresses for the entity.
|
207
|
+
# @param addresses [Array<ModernTreasury::Models::LegalEntity::Address>] A list of addresses for the entity.
|
208
208
|
#
|
209
|
-
# @param bank_settings [ModernTreasury::BankSettings, nil]
|
209
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
210
210
|
#
|
211
211
|
# @param business_name [String, nil] The business's legal business name.
|
212
212
|
#
|
213
213
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
214
214
|
#
|
215
|
-
# @param compliance_details [ModernTreasury::LegalEntityComplianceDetail, nil]
|
215
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
216
216
|
#
|
217
217
|
# @param created_at [Time]
|
218
218
|
#
|
@@ -228,17 +228,17 @@ module ModernTreasury
|
|
228
228
|
#
|
229
229
|
# @param first_name [String, nil] An individual's first name.
|
230
230
|
#
|
231
|
-
# @param identifications [Array<ModernTreasury::LegalEntity::Identification>] A list of identifications for the legal entity.
|
231
|
+
# @param identifications [Array<ModernTreasury::Models::LegalEntity::Identification>] A list of identifications for the legal entity.
|
232
232
|
#
|
233
|
-
# @param industry_classifications [Array<ModernTreasury::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
233
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
234
234
|
#
|
235
235
|
# @param last_name [String, nil] An individual's last name.
|
236
236
|
#
|
237
|
-
# @param legal_entity_associations [Array<ModernTreasury::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
237
|
+
# @param legal_entity_associations [Array<ModernTreasury::Models::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
238
238
|
#
|
239
|
-
# @param legal_entity_type [Symbol, ModernTreasury::LegalEntity::LegalEntityType] The type of legal entity.
|
239
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntity::LegalEntityType] The type of legal entity.
|
240
240
|
#
|
241
|
-
# @param legal_structure [Symbol, ModernTreasury::LegalEntity::LegalStructure, nil] The business's legal structure.
|
241
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::LegalEntity::LegalStructure, nil] The business's legal structure.
|
242
242
|
#
|
243
243
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
244
244
|
#
|
@@ -248,7 +248,7 @@ module ModernTreasury
|
|
248
248
|
#
|
249
249
|
# @param object [String]
|
250
250
|
#
|
251
|
-
# @param phone_numbers [Array<ModernTreasury::LegalEntity::PhoneNumber>]
|
251
|
+
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntity::PhoneNumber>]
|
252
252
|
#
|
253
253
|
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
254
254
|
#
|
@@ -256,13 +256,13 @@ module ModernTreasury
|
|
256
256
|
#
|
257
257
|
# @param prefix [String, nil] An individual's prefix.
|
258
258
|
#
|
259
|
-
# @param risk_rating [Symbol, ModernTreasury::LegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
259
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
260
260
|
#
|
261
261
|
# @param suffix [String, nil] An individual's suffix.
|
262
262
|
#
|
263
263
|
# @param updated_at [Time]
|
264
264
|
#
|
265
|
-
# @param wealth_and_employment_details [ModernTreasury::WealthAndEmploymentDetails, nil]
|
265
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
266
266
|
#
|
267
267
|
# @param website [String, nil] The entity's primary website URL.
|
268
268
|
|
@@ -275,7 +275,7 @@ module ModernTreasury
|
|
275
275
|
# @!attribute address_types
|
276
276
|
# The types of this address.
|
277
277
|
#
|
278
|
-
# @return [Array<Symbol, ModernTreasury::LegalEntity::Address::AddressType>]
|
278
|
+
# @return [Array<Symbol, ModernTreasury::Models::LegalEntity::Address::AddressType>]
|
279
279
|
required :address_types,
|
280
280
|
-> {
|
281
281
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntity::Address::AddressType]
|
@@ -344,11 +344,11 @@ module ModernTreasury
|
|
344
344
|
|
345
345
|
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
346
346
|
# Some parameter documentations has been truncated, see
|
347
|
-
# {ModernTreasury::LegalEntity::Address} for more details.
|
347
|
+
# {ModernTreasury::Models::LegalEntity::Address} for more details.
|
348
348
|
#
|
349
349
|
# @param id [String]
|
350
350
|
#
|
351
|
-
# @param address_types [Array<Symbol, ModernTreasury::LegalEntity::Address::AddressType>] The types of this address.
|
351
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntity::Address::AddressType>] The types of this address.
|
352
352
|
#
|
353
353
|
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
354
354
|
#
|
@@ -402,10 +402,17 @@ module ModernTreasury
|
|
402
402
|
# @return [Time, nil]
|
403
403
|
required :discarded_at, Time, nil?: true
|
404
404
|
|
405
|
+
# @!attribute expiration_date
|
406
|
+
# The date when the Identification is no longer considered valid by the issuing
|
407
|
+
# authority.
|
408
|
+
#
|
409
|
+
# @return [Date, nil]
|
410
|
+
required :expiration_date, Date, nil?: true
|
411
|
+
|
405
412
|
# @!attribute id_type
|
406
413
|
# The type of ID number.
|
407
414
|
#
|
408
|
-
# @return [Symbol, ModernTreasury::LegalEntity::Identification::IDType]
|
415
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntity::Identification::IDType]
|
409
416
|
required :id_type, enum: -> { ModernTreasury::LegalEntity::Identification::IDType }
|
410
417
|
|
411
418
|
# @!attribute issuing_country
|
@@ -415,6 +422,12 @@ module ModernTreasury
|
|
415
422
|
# @return [String, nil]
|
416
423
|
required :issuing_country, String, nil?: true
|
417
424
|
|
425
|
+
# @!attribute issuing_region
|
426
|
+
# The region in which the identifcation was issued.
|
427
|
+
#
|
428
|
+
# @return [String, nil]
|
429
|
+
required :issuing_region, String, nil?: true
|
430
|
+
|
418
431
|
# @!attribute live_mode
|
419
432
|
# This field will be true if this object exists in the live environment or false
|
420
433
|
# if it exists in the test environment.
|
@@ -432,9 +445,9 @@ module ModernTreasury
|
|
432
445
|
# @return [Time]
|
433
446
|
required :updated_at, Time
|
434
447
|
|
435
|
-
# @!method initialize(id:, created_at:, discarded_at:, id_type:, issuing_country:, live_mode:, object:, updated_at:)
|
448
|
+
# @!method initialize(id:, created_at:, discarded_at:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
|
436
449
|
# Some parameter documentations has been truncated, see
|
437
|
-
# {ModernTreasury::LegalEntity::Identification} for more details.
|
450
|
+
# {ModernTreasury::Models::LegalEntity::Identification} for more details.
|
438
451
|
#
|
439
452
|
# @param id [String]
|
440
453
|
#
|
@@ -442,10 +455,14 @@ module ModernTreasury
|
|
442
455
|
#
|
443
456
|
# @param discarded_at [Time, nil]
|
444
457
|
#
|
445
|
-
# @param
|
458
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
459
|
+
#
|
460
|
+
# @param id_type [Symbol, ModernTreasury::Models::LegalEntity::Identification::IDType] The type of ID number.
|
446
461
|
#
|
447
462
|
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
448
463
|
#
|
464
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
465
|
+
#
|
449
466
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
450
467
|
#
|
451
468
|
# @param object [String]
|
@@ -454,7 +471,7 @@ module ModernTreasury
|
|
454
471
|
|
455
472
|
# The type of ID number.
|
456
473
|
#
|
457
|
-
# @see ModernTreasury::LegalEntity::Identification#id_type
|
474
|
+
# @see ModernTreasury::Models::LegalEntity::Identification#id_type
|
458
475
|
module IDType
|
459
476
|
extend ModernTreasury::Internal::Type::Enum
|
460
477
|
|
@@ -466,6 +483,7 @@ module ModernTreasury
|
|
466
483
|
CL_RUT = :cl_rut
|
467
484
|
CO_CEDULAS = :co_cedulas
|
468
485
|
CO_NIT = :co_nit
|
486
|
+
DRIVERS_LICENSE = :drivers_license
|
469
487
|
HN_ID = :hn_id
|
470
488
|
HN_RTN = :hn_rtn
|
471
489
|
IN_LEI = :in_lei
|
@@ -487,7 +505,7 @@ module ModernTreasury
|
|
487
505
|
|
488
506
|
# The type of legal entity.
|
489
507
|
#
|
490
|
-
# @see ModernTreasury::LegalEntity#legal_entity_type
|
508
|
+
# @see ModernTreasury::Models::LegalEntity#legal_entity_type
|
491
509
|
module LegalEntityType
|
492
510
|
extend ModernTreasury::Internal::Type::Enum
|
493
511
|
|
@@ -501,7 +519,7 @@ module ModernTreasury
|
|
501
519
|
|
502
520
|
# The business's legal structure.
|
503
521
|
#
|
504
|
-
# @see ModernTreasury::LegalEntity#legal_structure
|
522
|
+
# @see ModernTreasury::Models::LegalEntity#legal_structure
|
505
523
|
module LegalStructure
|
506
524
|
extend ModernTreasury::Internal::Type::Enum
|
507
525
|
|
@@ -530,7 +548,7 @@ module ModernTreasury
|
|
530
548
|
|
531
549
|
# The risk rating of the legal entity. One of low, medium, high.
|
532
550
|
#
|
533
|
-
# @see ModernTreasury::LegalEntity#risk_rating
|
551
|
+
# @see ModernTreasury::Models::LegalEntity#risk_rating
|
534
552
|
module RiskRating
|
535
553
|
extend ModernTreasury::Internal::Type::Enum
|
536
554
|
|
@@ -12,7 +12,7 @@ module ModernTreasury
|
|
12
12
|
# @!attribute child_legal_entity
|
13
13
|
# The child legal entity.
|
14
14
|
#
|
15
|
-
# @return [ModernTreasury::LegalEntityAssociation::ChildLegalEntity]
|
15
|
+
# @return [ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity]
|
16
16
|
required :child_legal_entity, -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity }
|
17
17
|
|
18
18
|
# @!attribute created_at
|
@@ -52,7 +52,7 @@ module ModernTreasury
|
|
52
52
|
|
53
53
|
# @!attribute relationship_types
|
54
54
|
#
|
55
|
-
# @return [Array<Symbol, ModernTreasury::LegalEntityAssociation::RelationshipType>]
|
55
|
+
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::RelationshipType>]
|
56
56
|
required :relationship_types,
|
57
57
|
-> {
|
58
58
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAssociation::RelationshipType]
|
@@ -71,11 +71,11 @@ module ModernTreasury
|
|
71
71
|
|
72
72
|
# @!method initialize(id:, child_legal_entity:, created_at:, discarded_at:, live_mode:, object:, ownership_percentage:, parent_legal_entity_id:, relationship_types:, title:, updated_at:)
|
73
73
|
# Some parameter documentations has been truncated, see
|
74
|
-
# {ModernTreasury::LegalEntityAssociation} for more details.
|
74
|
+
# {ModernTreasury::Models::LegalEntityAssociation} for more details.
|
75
75
|
#
|
76
76
|
# @param id [String]
|
77
77
|
#
|
78
|
-
# @param child_legal_entity [ModernTreasury::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
78
|
+
# @param child_legal_entity [ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
79
79
|
#
|
80
80
|
# @param created_at [Time]
|
81
81
|
#
|
@@ -89,13 +89,13 @@ module ModernTreasury
|
|
89
89
|
#
|
90
90
|
# @param parent_legal_entity_id [String] The ID of the parent legal entity. This must be a business or joint legal entity
|
91
91
|
#
|
92
|
-
# @param relationship_types [Array<Symbol, ModernTreasury::LegalEntityAssociation::RelationshipType>]
|
92
|
+
# @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::RelationshipType>]
|
93
93
|
#
|
94
94
|
# @param title [String, nil] The job title of the child entity at the parent entity.
|
95
95
|
#
|
96
96
|
# @param updated_at [Time]
|
97
97
|
|
98
|
-
# @see ModernTreasury::LegalEntityAssociation#child_legal_entity
|
98
|
+
# @see ModernTreasury::Models::LegalEntityAssociation#child_legal_entity
|
99
99
|
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
100
100
|
# @!attribute id
|
101
101
|
#
|
@@ -105,7 +105,7 @@ module ModernTreasury
|
|
105
105
|
# @!attribute addresses
|
106
106
|
# A list of addresses for the entity.
|
107
107
|
#
|
108
|
-
# @return [Array<ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address>]
|
108
|
+
# @return [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address>]
|
109
109
|
required :addresses,
|
110
110
|
-> {
|
111
111
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address]
|
@@ -113,7 +113,7 @@ module ModernTreasury
|
|
113
113
|
|
114
114
|
# @!attribute bank_settings
|
115
115
|
#
|
116
|
-
# @return [ModernTreasury::BankSettings, nil]
|
116
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
117
117
|
required :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
118
118
|
|
119
119
|
# @!attribute business_name
|
@@ -130,7 +130,7 @@ module ModernTreasury
|
|
130
130
|
|
131
131
|
# @!attribute compliance_details
|
132
132
|
#
|
133
|
-
# @return [ModernTreasury::LegalEntityComplianceDetail, nil]
|
133
|
+
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
134
134
|
required :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
135
135
|
|
136
136
|
# @!attribute created_at
|
@@ -175,7 +175,7 @@ module ModernTreasury
|
|
175
175
|
# @!attribute identifications
|
176
176
|
# A list of identifications for the legal entity.
|
177
177
|
#
|
178
|
-
# @return [Array<ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification>]
|
178
|
+
# @return [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification>]
|
179
179
|
required :identifications,
|
180
180
|
-> {
|
181
181
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification]
|
@@ -184,7 +184,7 @@ module ModernTreasury
|
|
184
184
|
# @!attribute industry_classifications
|
185
185
|
# A list of industry classifications for the legal entity.
|
186
186
|
#
|
187
|
-
# @return [Array<ModernTreasury::LegalEntityIndustryClassification>]
|
187
|
+
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
188
188
|
required :industry_classifications,
|
189
189
|
-> {
|
190
190
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
@@ -199,14 +199,14 @@ module ModernTreasury
|
|
199
199
|
# @!attribute legal_entity_type
|
200
200
|
# The type of legal entity.
|
201
201
|
#
|
202
|
-
# @return [Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
|
202
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
|
203
203
|
required :legal_entity_type,
|
204
204
|
enum: -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalEntityType }
|
205
205
|
|
206
206
|
# @!attribute legal_structure
|
207
207
|
# The business's legal structure.
|
208
208
|
#
|
209
|
-
# @return [Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
209
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
210
210
|
required :legal_structure,
|
211
211
|
enum: -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalStructure },
|
212
212
|
nil?: true
|
@@ -238,7 +238,7 @@ module ModernTreasury
|
|
238
238
|
|
239
239
|
# @!attribute phone_numbers
|
240
240
|
#
|
241
|
-
# @return [Array<ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
241
|
+
# @return [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
242
242
|
required :phone_numbers,
|
243
243
|
-> {
|
244
244
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
@@ -265,7 +265,7 @@ module ModernTreasury
|
|
265
265
|
# @!attribute risk_rating
|
266
266
|
# The risk rating of the legal entity. One of low, medium, high.
|
267
267
|
#
|
268
|
-
# @return [Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
268
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
269
269
|
required :risk_rating,
|
270
270
|
enum: -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity::RiskRating },
|
271
271
|
nil?: true
|
@@ -283,7 +283,7 @@ module ModernTreasury
|
|
283
283
|
|
284
284
|
# @!attribute wealth_and_employment_details
|
285
285
|
#
|
286
|
-
# @return [ModernTreasury::WealthAndEmploymentDetails, nil]
|
286
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
287
287
|
required :wealth_and_employment_details, -> { ModernTreasury::WealthAndEmploymentDetails }, nil?: true
|
288
288
|
|
289
289
|
# @!attribute website
|
@@ -294,21 +294,22 @@ module ModernTreasury
|
|
294
294
|
|
295
295
|
# @!method initialize(id:, addresses:, bank_settings:, business_name:, citizenship_country:, compliance_details:, created_at:, date_formed:, date_of_birth:, discarded_at:, doing_business_as_names:, email:, first_name:, identifications:, industry_classifications:, last_name:, legal_entity_type:, legal_structure:, live_mode:, metadata:, middle_name:, object:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, risk_rating:, suffix:, updated_at:, wealth_and_employment_details:, website:)
|
296
296
|
# Some parameter documentations has been truncated, see
|
297
|
-
# {ModernTreasury::LegalEntityAssociation::ChildLegalEntity} for more
|
297
|
+
# {ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity} for more
|
298
|
+
# details.
|
298
299
|
#
|
299
300
|
# The child legal entity.
|
300
301
|
#
|
301
302
|
# @param id [String]
|
302
303
|
#
|
303
|
-
# @param addresses [Array<ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
304
|
+
# @param addresses [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
304
305
|
#
|
305
|
-
# @param bank_settings [ModernTreasury::BankSettings, nil]
|
306
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
306
307
|
#
|
307
308
|
# @param business_name [String, nil] The business's legal business name.
|
308
309
|
#
|
309
310
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
310
311
|
#
|
311
|
-
# @param compliance_details [ModernTreasury::LegalEntityComplianceDetail, nil]
|
312
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
312
313
|
#
|
313
314
|
# @param created_at [Time]
|
314
315
|
#
|
@@ -324,15 +325,15 @@ module ModernTreasury
|
|
324
325
|
#
|
325
326
|
# @param first_name [String, nil] An individual's first name.
|
326
327
|
#
|
327
|
-
# @param identifications [Array<ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
328
|
+
# @param identifications [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
328
329
|
#
|
329
|
-
# @param industry_classifications [Array<ModernTreasury::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
330
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
330
331
|
#
|
331
332
|
# @param last_name [String, nil] An individual's last name.
|
332
333
|
#
|
333
|
-
# @param legal_entity_type [Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
334
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
334
335
|
#
|
335
|
-
# @param legal_structure [Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
336
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
336
337
|
#
|
337
338
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
338
339
|
#
|
@@ -342,7 +343,7 @@ module ModernTreasury
|
|
342
343
|
#
|
343
344
|
# @param object [String]
|
344
345
|
#
|
345
|
-
# @param phone_numbers [Array<ModernTreasury::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
346
|
+
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
346
347
|
#
|
347
348
|
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
348
349
|
#
|
@@ -350,13 +351,13 @@ module ModernTreasury
|
|
350
351
|
#
|
351
352
|
# @param prefix [String, nil] An individual's prefix.
|
352
353
|
#
|
353
|
-
# @param risk_rating [Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
354
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
354
355
|
#
|
355
356
|
# @param suffix [String, nil] An individual's suffix.
|
356
357
|
#
|
357
358
|
# @param updated_at [Time]
|
358
359
|
#
|
359
|
-
# @param wealth_and_employment_details [ModernTreasury::WealthAndEmploymentDetails, nil]
|
360
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
360
361
|
#
|
361
362
|
# @param website [String, nil] The entity's primary website URL.
|
362
363
|
|
@@ -369,7 +370,7 @@ module ModernTreasury
|
|
369
370
|
# @!attribute address_types
|
370
371
|
# The types of this address.
|
371
372
|
#
|
372
|
-
# @return [Array<Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
|
373
|
+
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
|
373
374
|
required :address_types,
|
374
375
|
-> {
|
375
376
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address::AddressType]
|
@@ -438,12 +439,12 @@ module ModernTreasury
|
|
438
439
|
|
439
440
|
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
440
441
|
# Some parameter documentations has been truncated, see
|
441
|
-
# {ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address} for
|
442
|
-
# details.
|
442
|
+
# {ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address} for
|
443
|
+
# more details.
|
443
444
|
#
|
444
445
|
# @param id [String]
|
445
446
|
#
|
446
|
-
# @param address_types [Array<Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
447
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
447
448
|
#
|
448
449
|
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
449
450
|
#
|
@@ -497,10 +498,17 @@ module ModernTreasury
|
|
497
498
|
# @return [Time, nil]
|
498
499
|
required :discarded_at, Time, nil?: true
|
499
500
|
|
501
|
+
# @!attribute expiration_date
|
502
|
+
# The date when the Identification is no longer considered valid by the issuing
|
503
|
+
# authority.
|
504
|
+
#
|
505
|
+
# @return [Date, nil]
|
506
|
+
required :expiration_date, Date, nil?: true
|
507
|
+
|
500
508
|
# @!attribute id_type
|
501
509
|
# The type of ID number.
|
502
510
|
#
|
503
|
-
# @return [Symbol, ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
511
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
504
512
|
required :id_type,
|
505
513
|
enum: -> {
|
506
514
|
ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
|
@@ -513,6 +521,12 @@ module ModernTreasury
|
|
513
521
|
# @return [String, nil]
|
514
522
|
required :issuing_country, String, nil?: true
|
515
523
|
|
524
|
+
# @!attribute issuing_region
|
525
|
+
# The region in which the identifcation was issued.
|
526
|
+
#
|
527
|
+
# @return [String, nil]
|
528
|
+
required :issuing_region, String, nil?: true
|
529
|
+
|
516
530
|
# @!attribute live_mode
|
517
531
|
# This field will be true if this object exists in the live environment or false
|
518
532
|
# if it exists in the test environment.
|
@@ -530,10 +544,10 @@ module ModernTreasury
|
|
530
544
|
# @return [Time]
|
531
545
|
required :updated_at, Time
|
532
546
|
|
533
|
-
# @!method initialize(id:, created_at:, discarded_at:, id_type:, issuing_country:, live_mode:, object:, updated_at:)
|
547
|
+
# @!method initialize(id:, created_at:, discarded_at:, expiration_date:, id_type:, issuing_country:, issuing_region:, live_mode:, object:, updated_at:)
|
534
548
|
# Some parameter documentations has been truncated, see
|
535
|
-
# {ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification}
|
536
|
-
# more details.
|
549
|
+
# {ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification}
|
550
|
+
# for more details.
|
537
551
|
#
|
538
552
|
# @param id [String]
|
539
553
|
#
|
@@ -541,10 +555,14 @@ module ModernTreasury
|
|
541
555
|
#
|
542
556
|
# @param discarded_at [Time, nil]
|
543
557
|
#
|
544
|
-
# @param
|
558
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
559
|
+
#
|
560
|
+
# @param id_type [Symbol, ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
545
561
|
#
|
546
562
|
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
547
563
|
#
|
564
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
565
|
+
#
|
548
566
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
549
567
|
#
|
550
568
|
# @param object [String]
|
@@ -553,7 +571,7 @@ module ModernTreasury
|
|
553
571
|
|
554
572
|
# The type of ID number.
|
555
573
|
#
|
556
|
-
# @see ModernTreasury::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
574
|
+
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
557
575
|
module IDType
|
558
576
|
extend ModernTreasury::Internal::Type::Enum
|
559
577
|
|
@@ -565,6 +583,7 @@ module ModernTreasury
|
|
565
583
|
CL_RUT = :cl_rut
|
566
584
|
CO_CEDULAS = :co_cedulas
|
567
585
|
CO_NIT = :co_nit
|
586
|
+
DRIVERS_LICENSE = :drivers_license
|
568
587
|
HN_ID = :hn_id
|
569
588
|
HN_RTN = :hn_rtn
|
570
589
|
IN_LEI = :in_lei
|
@@ -586,7 +605,7 @@ module ModernTreasury
|
|
586
605
|
|
587
606
|
# The type of legal entity.
|
588
607
|
#
|
589
|
-
# @see ModernTreasury::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
608
|
+
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
590
609
|
module LegalEntityType
|
591
610
|
extend ModernTreasury::Internal::Type::Enum
|
592
611
|
|
@@ -600,7 +619,7 @@ module ModernTreasury
|
|
600
619
|
|
601
620
|
# The business's legal structure.
|
602
621
|
#
|
603
|
-
# @see ModernTreasury::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
622
|
+
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
604
623
|
module LegalStructure
|
605
624
|
extend ModernTreasury::Internal::Type::Enum
|
606
625
|
|
@@ -629,7 +648,7 @@ module ModernTreasury
|
|
629
648
|
|
630
649
|
# The risk rating of the legal entity. One of low, medium, high.
|
631
650
|
#
|
632
|
-
# @see ModernTreasury::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
651
|
+
# @see ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
633
652
|
module RiskRating
|
634
653
|
extend ModernTreasury::Internal::Type::Enum
|
635
654
|
|