modern_treasury 0.1.0.pre.alpha.19 → 0.1.0.pre.alpha.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +46 -0
- data/README.md +110 -61
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +3 -1
- data/lib/modern_treasury/internal/type/array_of.rb +8 -0
- data/lib/modern_treasury/internal/type/base_model.rb +14 -0
- data/lib/modern_treasury/internal/type/boolean.rb +8 -0
- data/lib/modern_treasury/internal/type/enum.rb +15 -0
- data/lib/modern_treasury/internal/type/file_input.rb +7 -0
- data/lib/modern_treasury/internal/type/hash_of.rb +8 -0
- data/lib/modern_treasury/internal/type/union.rb +17 -0
- data/lib/modern_treasury/internal/type/unknown.rb +8 -0
- data/lib/modern_treasury/internal/util.rb +62 -10
- data/lib/modern_treasury/internal.rb +3 -0
- data/lib/modern_treasury/models/account_collection_flow.rb +8 -8
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail.rb +8 -4
- data/lib/modern_treasury/models/account_detail_create_params.rb +8 -4
- data/lib/modern_treasury/models/account_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/bank_settings.rb +1 -1
- data/lib/modern_treasury/models/bulk_request.rb +11 -10
- data/lib/modern_treasury/models/bulk_request_create_params.rb +252 -247
- data/lib/modern_treasury/models/bulk_request_list_params.rb +7 -6
- data/lib/modern_treasury/models/bulk_result.rb +18 -29
- data/lib/modern_treasury/models/bulk_result_list_params.rb +7 -6
- data/lib/modern_treasury/models/connection.rb +1 -1
- data/lib/modern_treasury/models/connection_legal_entity.rb +4 -4
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +108 -72
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +2 -2
- data/lib/modern_treasury/models/counterparty.rb +32 -32
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +4 -4
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +1 -1
- data/lib/modern_treasury/models/counterparty_create_params.rb +166 -121
- data/lib/modern_treasury/models/currency.rb +7 -0
- data/lib/modern_treasury/models/document.rb +13 -13
- data/lib/modern_treasury/models/document_create_params.rb +6 -6
- data/lib/modern_treasury/models/document_list_params.rb +4 -4
- data/lib/modern_treasury/models/event.rb +2 -2
- data/lib/modern_treasury/models/expected_payment.rb +16 -16
- data/lib/modern_treasury/models/expected_payment_create_params.rb +27 -26
- data/lib/modern_treasury/models/expected_payment_list_params.rb +27 -7
- data/lib/modern_treasury/models/expected_payment_type.rb +4 -0
- data/lib/modern_treasury/models/expected_payment_update_params.rb +10 -10
- data/lib/modern_treasury/models/external_account.rb +26 -26
- data/lib/modern_treasury/models/external_account_create_params.rb +41 -32
- data/lib/modern_treasury/models/external_account_type.rb +5 -0
- data/lib/modern_treasury/models/external_account_update_params.rb +6 -6
- data/lib/modern_treasury/models/external_account_verify_params.rb +12 -8
- data/lib/modern_treasury/models/external_account_verify_response.rb +5 -10
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +10 -9
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +4 -4
- data/lib/modern_treasury/models/incoming_payment_detail.rb +23 -19
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +6 -6
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +6 -6
- data/lib/modern_treasury/models/internal_account.rb +24 -19
- data/lib/modern_treasury/models/internal_account_create_params.rb +37 -5
- data/lib/modern_treasury/models/internal_account_list_params.rb +10 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +13 -12
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +9 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice.rb +34 -34
- data/lib/modern_treasury/models/invoice_create_params.rb +21 -21
- data/lib/modern_treasury/models/invoice_list_params.rb +2 -2
- data/lib/modern_treasury/models/invoice_update_params.rb +21 -21
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +10 -2
- data/lib/modern_treasury/models/ledger.rb +2 -2
- data/lib/modern_treasury/models/ledger_account.rb +19 -19
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +23 -22
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_category.rb +16 -16
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_list_params.rb +8 -8
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement.rb +4 -4
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +2 -2
- data/lib/modern_treasury/models/ledger_entry.rb +20 -19
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler.rb +12 -12
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +10 -10
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction.rb +9 -9
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +6 -6
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +4 -4
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +12 -12
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +10 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +30 -29
- data/lib/modern_treasury/models/ledgerable_event.rb +1 -1
- data/lib/modern_treasury/models/legal_entity.rb +52 -34
- data/lib/modern_treasury/models/legal_entity_association.rb +59 -40
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +54 -36
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +1 -1
- data/lib/modern_treasury/models/legal_entity_create_params.rb +102 -65
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +4 -4
- data/lib/modern_treasury/models/legal_entity_list_params.rb +2 -2
- data/lib/modern_treasury/models/legal_entity_update_params.rb +44 -25
- data/lib/modern_treasury/models/line_item.rb +9 -9
- data/lib/modern_treasury/models/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/line_item_update_params.rb +2 -2
- data/lib/modern_treasury/models/paper_item.rb +16 -7
- data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
- data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
- data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
- data/lib/modern_treasury/models/payment_flow.rb +13 -13
- data/lib/modern_treasury/models/payment_flow_create_params.rb +2 -2
- data/lib/modern_treasury/models/payment_flow_update_params.rb +2 -2
- data/lib/modern_treasury/models/payment_order.rb +57 -86
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +86 -76
- data/lib/modern_treasury/models/payment_order_create_params.rb +95 -85
- data/lib/modern_treasury/models/payment_order_list_params.rb +12 -8
- data/lib/modern_treasury/models/payment_order_type.rb +4 -0
- data/lib/modern_treasury/models/payment_order_update_params.rb +72 -63
- data/lib/modern_treasury/models/payment_orders/reversal.rb +7 -7
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +17 -17
- data/lib/modern_treasury/models/payment_reference.rb +11 -7
- data/lib/modern_treasury/models/payment_reference_list_params.rb +2 -2
- data/lib/modern_treasury/models/reconciliation_rule.rb +13 -9
- data/lib/modern_treasury/models/return_create_params.rb +44 -4
- data/lib/modern_treasury/models/return_list_params.rb +2 -2
- data/lib/modern_treasury/models/return_object.rb +78 -27
- data/lib/modern_treasury/models/routing_detail.rb +15 -11
- data/lib/modern_treasury/models/routing_detail_create_params.rb +10 -6
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_list_params.rb +2 -2
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +2 -2
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +13 -9
- data/lib/modern_treasury/models/transaction.rb +23 -17
- data/lib/modern_treasury/models/transaction_create_params.rb +6 -2
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +2 -2
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +7 -7
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +2 -2
- data/lib/modern_treasury/models/virtual_account.rb +5 -5
- data/lib/modern_treasury/models/virtual_account_create_params.rb +34 -23
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +19 -19
- data/lib/modern_treasury/models.rb +38 -19
- data/lib/modern_treasury/resources/account_collection_flows.rb +6 -6
- data/lib/modern_treasury/resources/account_details.rb +8 -8
- data/lib/modern_treasury/resources/bulk_requests.rb +9 -9
- data/lib/modern_treasury/resources/bulk_results.rb +5 -5
- data/lib/modern_treasury/resources/connection_legal_entities.rb +7 -7
- data/lib/modern_treasury/resources/connections.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +12 -12
- data/lib/modern_treasury/resources/documents.rb +6 -6
- data/lib/modern_treasury/resources/events.rb +2 -2
- data/lib/modern_treasury/resources/expected_payments.rb +24 -20
- data/lib/modern_treasury/resources/external_accounts.rb +20 -20
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +5 -5
- data/lib/modern_treasury/resources/incoming_payment_details.rb +10 -10
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +6 -6
- data/lib/modern_treasury/resources/internal_accounts.rb +12 -10
- data/lib/modern_treasury/resources/invoices/line_items.rb +5 -5
- data/lib/modern_treasury/resources/invoices.rb +21 -21
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +6 -6
- data/lib/modern_treasury/resources/ledger_account_categories.rb +8 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +6 -6
- data/lib/modern_treasury/resources/ledger_accounts.rb +12 -12
- data/lib/modern_treasury/resources/ledger_entries.rb +6 -6
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +7 -7
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +18 -18
- data/lib/modern_treasury/resources/ledgerable_events.rb +2 -2
- data/lib/modern_treasury/resources/ledgers.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +25 -25
- data/lib/modern_treasury/resources/legal_entity_associations.rb +3 -3
- data/lib/modern_treasury/resources/line_items.rb +6 -6
- data/lib/modern_treasury/resources/paper_items.rb +2 -2
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +6 -6
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +5 -5
- data/lib/modern_treasury/resources/payment_orders.rb +46 -46
- data/lib/modern_treasury/resources/payment_references.rb +3 -3
- data/lib/modern_treasury/resources/returns.rb +6 -6
- data/lib/modern_treasury/resources/routing_details.rb +9 -9
- data/lib/modern_treasury/resources/transactions/line_items.rb +4 -4
- data/lib/modern_treasury/resources/transactions.rb +5 -5
- data/lib/modern_treasury/resources/validations.rb +2 -2
- data/lib/modern_treasury/resources/virtual_accounts.rb +8 -8
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +12 -1
- data/rbi/modern_treasury/client.rbi +3 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +5 -1
- data/rbi/modern_treasury/internal/type/array_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/base_model.rbi +5 -0
- data/rbi/modern_treasury/internal/type/boolean.rbi +6 -0
- data/rbi/modern_treasury/internal/type/enum.rbi +5 -0
- data/rbi/modern_treasury/internal/type/file_input.rbi +5 -0
- data/rbi/modern_treasury/internal/type/hash_of.rbi +6 -0
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +6 -0
- data/rbi/modern_treasury/internal/util.rbi +36 -0
- data/rbi/modern_treasury/internal.rbi +5 -0
- data/rbi/modern_treasury/models/account_detail.rbi +20 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/bulk_request.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +105 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +7 -19
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +92 -6
- data/rbi/modern_treasury/models/currency.rbi +7 -0
- data/rbi/modern_treasury/models/document.rbi +9 -6
- data/rbi/modern_treasury/models/document_create_params.rbi +12 -12
- data/rbi/modern_treasury/models/document_list_params.rbi +9 -9
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +42 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +6 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +16 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +20 -0
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +20 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +20 -0
- data/rbi/modern_treasury/models/internal_account.rbi +25 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +117 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/invoice.rbi +2 -2
- data/rbi/modern_treasury/models/invoices/invoice_line_item.rbi +8 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +23 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +26 -3
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +52 -6
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +26 -3
- data/rbi/modern_treasury/models/paper_item.rbi +10 -0
- data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_order.rbi +22 -38
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +52 -12
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +20 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +40 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +20 -0
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +14 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +80 -0
- data/rbi/modern_treasury/models/return_object.rbi +66 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +17 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +20 -0
- data/rbi/modern_treasury/models/transaction.rbi +16 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +20 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +40 -0
- data/rbi/modern_treasury/models.rbi +9 -0
- data/rbi/modern_treasury/resources/documents.rbi +1 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +6 -0
- data/rbi/modern_treasury/resources/external_accounts.rbi +1 -4
- data/rbi/modern_treasury/resources/internal_accounts.rbi +5 -0
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/sig/modern_treasury/client.rbs +2 -0
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +2 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +2 -0
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/enum.rbs +2 -0
- data/sig/modern_treasury/internal/type/file_input.rbs +2 -0
- data/sig/modern_treasury/internal/type/hash_of.rbs +3 -0
- data/sig/modern_treasury/internal/type/union.rbs +2 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +12 -0
- data/sig/modern_treasury/internal.rbs +3 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +30 -16
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +13 -6
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +10 -0
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/account_detail.rbs +24 -4
- data/sig/modern_treasury/models/account_detail_create_params.rbs +15 -0
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/account_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/async_response.rbs +2 -0
- data/sig/modern_treasury/models/bank_settings.rbs +13 -0
- data/sig/modern_treasury/models/bulk_request.rbs +29 -12
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +600 -188
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +12 -0
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/bulk_result.rbs +44 -16
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +13 -0
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/client_ping_params.rbs +2 -0
- data/sig/modern_treasury/models/connection.rbs +12 -0
- data/sig/modern_treasury/models/connection_legal_entity.rbs +17 -4
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +188 -56
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +5 -0
- data/sig/modern_treasury/models/connection_list_params.rbs +8 -0
- data/sig/modern_treasury/models/counterparty.rbs +84 -22
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +14 -6
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_create_params.rbs +307 -92
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_list_params.rbs +12 -0
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/counterparty_update_params.rbs +10 -0
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +41 -9
- data/sig/modern_treasury/models/document_create_params.rbs +16 -8
- data/sig/modern_treasury/models/document_list_params.rbs +13 -5
- data/sig/modern_treasury/models/document_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/event.rbs +13 -0
- data/sig/modern_treasury/models/event_list_params.rbs +11 -0
- data/sig/modern_treasury/models/event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment.rbs +41 -12
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -12
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +37 -1
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +21 -0
- data/sig/modern_treasury/models/external_account.rbs +63 -16
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account_create_params.rbs +99 -28
- data/sig/modern_treasury/models/external_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +20 -0
- data/sig/modern_treasury/models/external_account_verify_params.rbs +17 -0
- data/sig/modern_treasury/models/external_account_verify_response.rbs +21 -0
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +25 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +10 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +13 -0
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +52 -16
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +13 -0
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_account.rbs +55 -9
- data/sig/modern_treasury/models/internal_account_create_params.rbs +66 -0
- data/sig/modern_treasury/models/internal_account_list_params.rbs +20 -0
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/internal_account_update_params.rbs +9 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +37 -8
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +19 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +8 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice.rbs +94 -16
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +5 -0
- data/sig/modern_treasury/models/invoice_create_params.rbs +81 -4
- data/sig/modern_treasury/models/invoice_list_params.rbs +15 -0
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/invoice_update_params.rbs +81 -4
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +21 -0
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +11 -0
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +6 -0
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account.rbs +54 -4
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +6 -0
- data/sig/modern_treasury/models/ledger_account_category.rbs +45 -0
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +52 -0
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +13 -0
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +24 -4
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +12 -0
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +14 -0
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +78 -0
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_create_params.rbs +7 -0
- data/sig/modern_treasury/models/ledger_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +53 -4
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +41 -12
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +5 -0
- data/sig/modern_treasury/models/ledger_event_handler.rbs +31 -0
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +26 -0
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +7 -0
- data/sig/modern_treasury/models/ledger_list_params.rbs +9 -0
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction.rbs +30 -8
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +25 -0
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +19 -4
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +11 -0
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +40 -12
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +23 -0
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +82 -12
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +10 -0
- data/sig/modern_treasury/models/ledger_update_params.rbs +7 -0
- data/sig/modern_treasury/models/ledgerable_event.rbs +13 -0
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +8 -0
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity.rbs +96 -20
- data/sig/modern_treasury/models/legal_entity_association.rbs +113 -24
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +98 -30
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +15 -0
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +168 -42
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +15 -4
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +9 -0
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +70 -12
- data/sig/modern_treasury/models/line_item.rbs +22 -4
- data/sig/modern_treasury/models/line_item_list_params.rbs +7 -0
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/line_item_update_params.rbs +7 -0
- data/sig/modern_treasury/models/paper_item.rbs +30 -4
- data/sig/modern_treasury/models/paper_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
- data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
- data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
- data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow.rbs +44 -22
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +10 -0
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +12 -0
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_order.rbs +116 -48
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +185 -44
- data/sig/modern_treasury/models/payment_order_create_params.rbs +205 -56
- data/sig/modern_treasury/models/payment_order_list_params.rbs +29 -0
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +148 -32
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +22 -8
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +43 -12
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +6 -0
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +5 -0
- data/sig/modern_treasury/models/payment_reference.rbs +28 -8
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +2 -0
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/ping_response.rbs +2 -0
- data/sig/modern_treasury/models/reconciliation_rule.rbs +29 -8
- data/sig/modern_treasury/models/return_create_params.rbs +91 -0
- data/sig/modern_treasury/models/return_list_params.rbs +10 -0
- data/sig/modern_treasury/models/return_object.rbs +154 -24
- data/sig/modern_treasury/models/return_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_detail.rbs +44 -8
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +16 -0
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +7 -0
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +6 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +38 -12
- data/sig/modern_treasury/models/transaction.rbs +58 -8
- data/sig/modern_treasury/models/transaction_create_params.rbs +22 -0
- data/sig/modern_treasury/models/transaction_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_list_params.rbs +18 -0
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transaction_update_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +7 -0
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +9 -0
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +26 -8
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +6 -0
- data/sig/modern_treasury/models/virtual_account.rbs +19 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +74 -20
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +9 -0
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +8 -0
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +45 -24
- data/sig/modern_treasury/models.rbs +8 -0
- data/sig/modern_treasury/resources/account_collection_flows.rbs +1 -1
- data/sig/modern_treasury/resources/bulk_requests.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +1 -1
- data/sig/modern_treasury/resources/documents.rbs +1 -1
- data/sig/modern_treasury/resources/expected_payments.rbs +2 -0
- data/sig/modern_treasury/resources/internal_accounts.rbs +1 -0
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- metadata +29 -2
@@ -10,13 +10,13 @@ module ModernTreasury
|
|
10
10
|
# @!attribute legal_entity_type
|
11
11
|
# The type of legal entity.
|
12
12
|
#
|
13
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityType]
|
13
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType]
|
14
14
|
required :legal_entity_type, enum: -> { ModernTreasury::LegalEntityCreateParams::LegalEntityType }
|
15
15
|
|
16
16
|
# @!attribute addresses
|
17
17
|
# A list of addresses for the entity.
|
18
18
|
#
|
19
|
-
# @return [Array<ModernTreasury::LegalEntityCreateParams::Address>, nil]
|
19
|
+
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::Address>, nil]
|
20
20
|
optional :addresses,
|
21
21
|
-> {
|
22
22
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::Address]
|
@@ -24,7 +24,7 @@ module ModernTreasury
|
|
24
24
|
|
25
25
|
# @!attribute bank_settings
|
26
26
|
#
|
27
|
-
# @return [ModernTreasury::BankSettings, nil]
|
27
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
28
28
|
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
29
29
|
|
30
30
|
# @!attribute business_name
|
@@ -41,7 +41,7 @@ module ModernTreasury
|
|
41
41
|
|
42
42
|
# @!attribute compliance_details
|
43
43
|
#
|
44
|
-
# @return [ModernTreasury::LegalEntityComplianceDetail, nil]
|
44
|
+
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
45
45
|
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
46
46
|
|
47
47
|
# @!attribute date_formed
|
@@ -76,7 +76,7 @@ module ModernTreasury
|
|
76
76
|
# @!attribute identifications
|
77
77
|
# A list of identifications for the legal entity.
|
78
78
|
#
|
79
|
-
# @return [Array<ModernTreasury::LegalEntityCreateParams::Identification>, nil]
|
79
|
+
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::Identification>, nil]
|
80
80
|
optional :identifications,
|
81
81
|
-> {
|
82
82
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::Identification]
|
@@ -85,7 +85,7 @@ module ModernTreasury
|
|
85
85
|
# @!attribute industry_classifications
|
86
86
|
# A list of industry classifications for the legal entity.
|
87
87
|
#
|
88
|
-
# @return [Array<ModernTreasury::LegalEntityIndustryClassification>, nil]
|
88
|
+
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
89
89
|
optional :industry_classifications,
|
90
90
|
-> {
|
91
91
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
@@ -100,7 +100,7 @@ module ModernTreasury
|
|
100
100
|
# @!attribute legal_entity_associations
|
101
101
|
# The legal entity associations and its child legal entities.
|
102
102
|
#
|
103
|
-
# @return [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation>, nil]
|
103
|
+
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation>, nil]
|
104
104
|
optional :legal_entity_associations,
|
105
105
|
-> {
|
106
106
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation]
|
@@ -110,7 +110,7 @@ module ModernTreasury
|
|
110
110
|
# @!attribute legal_structure
|
111
111
|
# The business's legal structure.
|
112
112
|
#
|
113
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::LegalStructure, nil]
|
113
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalStructure, nil]
|
114
114
|
optional :legal_structure,
|
115
115
|
enum: -> { ModernTreasury::LegalEntityCreateParams::LegalStructure },
|
116
116
|
nil?: true
|
@@ -130,7 +130,7 @@ module ModernTreasury
|
|
130
130
|
|
131
131
|
# @!attribute phone_numbers
|
132
132
|
#
|
133
|
-
# @return [Array<ModernTreasury::LegalEntityCreateParams::PhoneNumber>, nil]
|
133
|
+
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber>, nil]
|
134
134
|
optional :phone_numbers,
|
135
135
|
-> {
|
136
136
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::PhoneNumber]
|
@@ -157,7 +157,7 @@ module ModernTreasury
|
|
157
157
|
# @!attribute risk_rating
|
158
158
|
# The risk rating of the legal entity. One of low, medium, high.
|
159
159
|
#
|
160
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::RiskRating, nil]
|
160
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::RiskRating, nil]
|
161
161
|
optional :risk_rating, enum: -> { ModernTreasury::LegalEntityCreateParams::RiskRating }, nil?: true
|
162
162
|
|
163
163
|
# @!attribute suffix
|
@@ -168,7 +168,7 @@ module ModernTreasury
|
|
168
168
|
|
169
169
|
# @!attribute wealth_and_employment_details
|
170
170
|
#
|
171
|
-
# @return [ModernTreasury::WealthAndEmploymentDetails, nil]
|
171
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
172
172
|
optional :wealth_and_employment_details, -> { ModernTreasury::WealthAndEmploymentDetails }, nil?: true
|
173
173
|
|
174
174
|
# @!attribute website
|
@@ -181,17 +181,17 @@ module ModernTreasury
|
|
181
181
|
# Some parameter documentations has been truncated, see
|
182
182
|
# {ModernTreasury::Models::LegalEntityCreateParams} for more details.
|
183
183
|
#
|
184
|
-
# @param legal_entity_type [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityType] The type of legal entity.
|
184
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType] The type of legal entity.
|
185
185
|
#
|
186
|
-
# @param addresses [Array<ModernTreasury::LegalEntityCreateParams::Address>] A list of addresses for the entity.
|
186
|
+
# @param addresses [Array<ModernTreasury::Models::LegalEntityCreateParams::Address>] A list of addresses for the entity.
|
187
187
|
#
|
188
|
-
# @param bank_settings [ModernTreasury::BankSettings, nil]
|
188
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
189
189
|
#
|
190
190
|
# @param business_name [String, nil] The business's legal business name.
|
191
191
|
#
|
192
192
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
193
193
|
#
|
194
|
-
# @param compliance_details [ModernTreasury::LegalEntityComplianceDetail, nil]
|
194
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
195
195
|
#
|
196
196
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
197
197
|
#
|
@@ -203,21 +203,21 @@ module ModernTreasury
|
|
203
203
|
#
|
204
204
|
# @param first_name [String, nil] An individual's first name.
|
205
205
|
#
|
206
|
-
# @param identifications [Array<ModernTreasury::LegalEntityCreateParams::Identification>] A list of identifications for the legal entity.
|
206
|
+
# @param identifications [Array<ModernTreasury::Models::LegalEntityCreateParams::Identification>] A list of identifications for the legal entity.
|
207
207
|
#
|
208
|
-
# @param industry_classifications [Array<ModernTreasury::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
208
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
209
209
|
#
|
210
210
|
# @param last_name [String, nil] An individual's last name.
|
211
211
|
#
|
212
|
-
# @param legal_entity_associations [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
212
|
+
# @param legal_entity_associations [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
213
213
|
#
|
214
|
-
# @param legal_structure [Symbol, ModernTreasury::LegalEntityCreateParams::LegalStructure, nil] The business's legal structure.
|
214
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalStructure, nil] The business's legal structure.
|
215
215
|
#
|
216
216
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
217
217
|
#
|
218
218
|
# @param middle_name [String, nil] An individual's middle name.
|
219
219
|
#
|
220
|
-
# @param phone_numbers [Array<ModernTreasury::LegalEntityCreateParams::PhoneNumber>]
|
220
|
+
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber>]
|
221
221
|
#
|
222
222
|
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
223
223
|
#
|
@@ -225,11 +225,11 @@ module ModernTreasury
|
|
225
225
|
#
|
226
226
|
# @param prefix [String, nil] An individual's prefix.
|
227
227
|
#
|
228
|
-
# @param risk_rating [Symbol, ModernTreasury::LegalEntityCreateParams::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
228
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityCreateParams::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
229
229
|
#
|
230
230
|
# @param suffix [String, nil] An individual's suffix.
|
231
231
|
#
|
232
|
-
# @param wealth_and_employment_details [ModernTreasury::WealthAndEmploymentDetails, nil]
|
232
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
233
233
|
#
|
234
234
|
# @param website [String, nil] The entity's primary website URL.
|
235
235
|
#
|
@@ -279,7 +279,7 @@ module ModernTreasury
|
|
279
279
|
# @!attribute address_types
|
280
280
|
# The types of this address.
|
281
281
|
#
|
282
|
-
# @return [Array<Symbol, ModernTreasury::LegalEntityCreateParams::Address::AddressType>, nil]
|
282
|
+
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::Address::AddressType>, nil]
|
283
283
|
optional :address_types,
|
284
284
|
-> {
|
285
285
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityCreateParams::Address::AddressType]
|
@@ -301,7 +301,7 @@ module ModernTreasury
|
|
301
301
|
#
|
302
302
|
# @param region [String, nil] Region or State.
|
303
303
|
#
|
304
|
-
# @param address_types [Array<Symbol, ModernTreasury::LegalEntityCreateParams::Address::AddressType>] The types of this address.
|
304
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::Address::AddressType>] The types of this address.
|
305
305
|
#
|
306
306
|
# @param line2 [String, nil]
|
307
307
|
|
@@ -329,9 +329,16 @@ module ModernTreasury
|
|
329
329
|
# @!attribute id_type
|
330
330
|
# The type of ID number.
|
331
331
|
#
|
332
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::Identification::IDType]
|
332
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::Identification::IDType]
|
333
333
|
required :id_type, enum: -> { ModernTreasury::LegalEntityCreateParams::Identification::IDType }
|
334
334
|
|
335
|
+
# @!attribute expiration_date
|
336
|
+
# The date when the Identification is no longer considered valid by the issuing
|
337
|
+
# authority.
|
338
|
+
#
|
339
|
+
# @return [Date, nil]
|
340
|
+
optional :expiration_date, Date, nil?: true
|
341
|
+
|
335
342
|
# @!attribute issuing_country
|
336
343
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
337
344
|
# identification
|
@@ -339,19 +346,30 @@ module ModernTreasury
|
|
339
346
|
# @return [String, nil]
|
340
347
|
optional :issuing_country, String, nil?: true
|
341
348
|
|
342
|
-
# @!
|
349
|
+
# @!attribute issuing_region
|
350
|
+
# The region in which the identifcation was issued.
|
351
|
+
#
|
352
|
+
# @return [String, nil]
|
353
|
+
optional :issuing_region, String, nil?: true
|
354
|
+
|
355
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
343
356
|
# Some parameter documentations has been truncated, see
|
344
|
-
# {ModernTreasury::LegalEntityCreateParams::Identification} for more
|
357
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::Identification} for more
|
358
|
+
# details.
|
345
359
|
#
|
346
360
|
# @param id_number [String] The ID number of identification document.
|
347
361
|
#
|
348
|
-
# @param id_type [Symbol, ModernTreasury::LegalEntityCreateParams::Identification::IDType] The type of ID number.
|
362
|
+
# @param id_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::Identification::IDType] The type of ID number.
|
363
|
+
#
|
364
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
349
365
|
#
|
350
366
|
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
367
|
+
#
|
368
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
351
369
|
|
352
370
|
# The type of ID number.
|
353
371
|
#
|
354
|
-
# @see ModernTreasury::LegalEntityCreateParams::Identification#id_type
|
372
|
+
# @see ModernTreasury::Models::LegalEntityCreateParams::Identification#id_type
|
355
373
|
module IDType
|
356
374
|
extend ModernTreasury::Internal::Type::Enum
|
357
375
|
|
@@ -363,6 +381,7 @@ module ModernTreasury
|
|
363
381
|
CL_RUT = :cl_rut
|
364
382
|
CO_CEDULAS = :co_cedulas
|
365
383
|
CO_NIT = :co_nit
|
384
|
+
DRIVERS_LICENSE = :drivers_license
|
366
385
|
HN_ID = :hn_id
|
367
386
|
HN_RTN = :hn_rtn
|
368
387
|
IN_LEI = :in_lei
|
@@ -385,7 +404,7 @@ module ModernTreasury
|
|
385
404
|
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
386
405
|
# @!attribute relationship_types
|
387
406
|
#
|
388
|
-
# @return [Array<Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType>]
|
407
|
+
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType>]
|
389
408
|
required :relationship_types,
|
390
409
|
-> {
|
391
410
|
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType]
|
@@ -394,7 +413,7 @@ module ModernTreasury
|
|
394
413
|
# @!attribute child_legal_entity
|
395
414
|
# The child legal entity.
|
396
415
|
#
|
397
|
-
# @return [ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity, nil]
|
416
|
+
# @return [ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity, nil]
|
398
417
|
optional :child_legal_entity,
|
399
418
|
-> { ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity }
|
400
419
|
|
@@ -417,9 +436,9 @@ module ModernTreasury
|
|
417
436
|
optional :title, String, nil?: true
|
418
437
|
|
419
438
|
# @!method initialize(relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil)
|
420
|
-
# @param relationship_types [Array<Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType>]
|
439
|
+
# @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType>]
|
421
440
|
#
|
422
|
-
# @param child_legal_entity [ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
441
|
+
# @param child_legal_entity [ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
423
442
|
#
|
424
443
|
# @param child_legal_entity_id [String] The ID of the child legal entity.
|
425
444
|
#
|
@@ -438,12 +457,12 @@ module ModernTreasury
|
|
438
457
|
# @return [Array<Symbol>]
|
439
458
|
end
|
440
459
|
|
441
|
-
# @see ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation#child_legal_entity
|
460
|
+
# @see ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation#child_legal_entity
|
442
461
|
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
443
462
|
# @!attribute addresses
|
444
463
|
# A list of addresses for the entity.
|
445
464
|
#
|
446
|
-
# @return [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
465
|
+
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
447
466
|
optional :addresses,
|
448
467
|
-> {
|
449
468
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address]
|
@@ -451,7 +470,7 @@ module ModernTreasury
|
|
451
470
|
|
452
471
|
# @!attribute bank_settings
|
453
472
|
#
|
454
|
-
# @return [ModernTreasury::BankSettings, nil]
|
473
|
+
# @return [ModernTreasury::Models::BankSettings, nil]
|
455
474
|
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
456
475
|
|
457
476
|
# @!attribute business_name
|
@@ -468,7 +487,7 @@ module ModernTreasury
|
|
468
487
|
|
469
488
|
# @!attribute compliance_details
|
470
489
|
#
|
471
|
-
# @return [ModernTreasury::LegalEntityComplianceDetail, nil]
|
490
|
+
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
472
491
|
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
473
492
|
|
474
493
|
# @!attribute date_formed
|
@@ -503,7 +522,7 @@ module ModernTreasury
|
|
503
522
|
# @!attribute identifications
|
504
523
|
# A list of identifications for the legal entity.
|
505
524
|
#
|
506
|
-
# @return [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
525
|
+
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
507
526
|
optional :identifications,
|
508
527
|
-> {
|
509
528
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification]
|
@@ -512,7 +531,7 @@ module ModernTreasury
|
|
512
531
|
# @!attribute industry_classifications
|
513
532
|
# A list of industry classifications for the legal entity.
|
514
533
|
#
|
515
|
-
# @return [Array<ModernTreasury::LegalEntityIndustryClassification>, nil]
|
534
|
+
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
516
535
|
optional :industry_classifications,
|
517
536
|
-> {
|
518
537
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
@@ -527,7 +546,7 @@ module ModernTreasury
|
|
527
546
|
# @!attribute legal_entity_type
|
528
547
|
# The type of legal entity.
|
529
548
|
#
|
530
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
549
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
531
550
|
optional :legal_entity_type,
|
532
551
|
enum: -> {
|
533
552
|
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
|
@@ -536,7 +555,7 @@ module ModernTreasury
|
|
536
555
|
# @!attribute legal_structure
|
537
556
|
# The business's legal structure.
|
538
557
|
#
|
539
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
558
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
540
559
|
optional :legal_structure,
|
541
560
|
enum: -> {
|
542
561
|
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure
|
@@ -558,7 +577,7 @@ module ModernTreasury
|
|
558
577
|
|
559
578
|
# @!attribute phone_numbers
|
560
579
|
#
|
561
|
-
# @return [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
580
|
+
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
562
581
|
optional :phone_numbers,
|
563
582
|
-> {
|
564
583
|
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
@@ -585,7 +604,7 @@ module ModernTreasury
|
|
585
604
|
# @!attribute risk_rating
|
586
605
|
# The risk rating of the legal entity. One of low, medium, high.
|
587
606
|
#
|
588
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
607
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
589
608
|
optional :risk_rating,
|
590
609
|
enum: -> {
|
591
610
|
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating
|
@@ -600,7 +619,7 @@ module ModernTreasury
|
|
600
619
|
|
601
620
|
# @!attribute wealth_and_employment_details
|
602
621
|
#
|
603
|
-
# @return [ModernTreasury::WealthAndEmploymentDetails, nil]
|
622
|
+
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
604
623
|
optional :wealth_and_employment_details,
|
605
624
|
-> {
|
606
625
|
ModernTreasury::WealthAndEmploymentDetails
|
@@ -615,20 +634,20 @@ module ModernTreasury
|
|
615
634
|
|
616
635
|
# @!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)
|
617
636
|
# Some parameter documentations has been truncated, see
|
618
|
-
# {ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity}
|
637
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity}
|
619
638
|
# for more details.
|
620
639
|
#
|
621
640
|
# The child legal entity.
|
622
641
|
#
|
623
|
-
# @param addresses [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
642
|
+
# @param addresses [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
624
643
|
#
|
625
|
-
# @param bank_settings [ModernTreasury::BankSettings, nil]
|
644
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
626
645
|
#
|
627
646
|
# @param business_name [String, nil] The business's legal business name.
|
628
647
|
#
|
629
648
|
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
630
649
|
#
|
631
|
-
# @param compliance_details [ModernTreasury::LegalEntityComplianceDetail, nil]
|
650
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
632
651
|
#
|
633
652
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
634
653
|
#
|
@@ -640,21 +659,21 @@ module ModernTreasury
|
|
640
659
|
#
|
641
660
|
# @param first_name [String, nil] An individual's first name.
|
642
661
|
#
|
643
|
-
# @param identifications [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
662
|
+
# @param identifications [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
644
663
|
#
|
645
|
-
# @param industry_classifications [Array<ModernTreasury::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
664
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
646
665
|
#
|
647
666
|
# @param last_name [String, nil] An individual's last name.
|
648
667
|
#
|
649
|
-
# @param legal_entity_type [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
668
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
650
669
|
#
|
651
|
-
# @param legal_structure [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
670
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
652
671
|
#
|
653
672
|
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
654
673
|
#
|
655
674
|
# @param middle_name [String, nil] An individual's middle name.
|
656
675
|
#
|
657
|
-
# @param phone_numbers [Array<ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
676
|
+
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
658
677
|
#
|
659
678
|
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
660
679
|
#
|
@@ -662,11 +681,11 @@ module ModernTreasury
|
|
662
681
|
#
|
663
682
|
# @param prefix [String, nil] An individual's prefix.
|
664
683
|
#
|
665
|
-
# @param risk_rating [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
684
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
666
685
|
#
|
667
686
|
# @param suffix [String, nil] An individual's suffix.
|
668
687
|
#
|
669
|
-
# @param wealth_and_employment_details [ModernTreasury::WealthAndEmploymentDetails, nil]
|
688
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
670
689
|
#
|
671
690
|
# @param website [String, nil] The entity's primary website URL.
|
672
691
|
|
@@ -703,7 +722,7 @@ module ModernTreasury
|
|
703
722
|
# @!attribute address_types
|
704
723
|
# The types of this address.
|
705
724
|
#
|
706
|
-
# @return [Array<Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
725
|
+
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
707
726
|
optional :address_types,
|
708
727
|
-> do
|
709
728
|
ModernTreasury::Internal::Type::ArrayOf[
|
@@ -727,7 +746,7 @@ module ModernTreasury
|
|
727
746
|
#
|
728
747
|
# @param region [String, nil] Region or State.
|
729
748
|
#
|
730
|
-
# @param address_types [Array<Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
749
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
731
750
|
#
|
732
751
|
# @param line2 [String, nil]
|
733
752
|
|
@@ -755,12 +774,19 @@ module ModernTreasury
|
|
755
774
|
# @!attribute id_type
|
756
775
|
# The type of ID number.
|
757
776
|
#
|
758
|
-
# @return [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
777
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
759
778
|
required :id_type,
|
760
779
|
enum: -> {
|
761
780
|
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
|
762
781
|
}
|
763
782
|
|
783
|
+
# @!attribute expiration_date
|
784
|
+
# The date when the Identification is no longer considered valid by the issuing
|
785
|
+
# authority.
|
786
|
+
#
|
787
|
+
# @return [Date, nil]
|
788
|
+
optional :expiration_date, Date, nil?: true
|
789
|
+
|
764
790
|
# @!attribute issuing_country
|
765
791
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
766
792
|
# identification
|
@@ -768,20 +794,30 @@ module ModernTreasury
|
|
768
794
|
# @return [String, nil]
|
769
795
|
optional :issuing_country, String, nil?: true
|
770
796
|
|
771
|
-
# @!
|
797
|
+
# @!attribute issuing_region
|
798
|
+
# The region in which the identifcation was issued.
|
799
|
+
#
|
800
|
+
# @return [String, nil]
|
801
|
+
optional :issuing_region, String, nil?: true
|
802
|
+
|
803
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
772
804
|
# Some parameter documentations has been truncated, see
|
773
|
-
# {ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification}
|
805
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification}
|
774
806
|
# for more details.
|
775
807
|
#
|
776
808
|
# @param id_number [String] The ID number of identification document.
|
777
809
|
#
|
778
|
-
# @param id_type [Symbol, ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
810
|
+
# @param id_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
811
|
+
#
|
812
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
779
813
|
#
|
780
814
|
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
815
|
+
#
|
816
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
781
817
|
|
782
818
|
# The type of ID number.
|
783
819
|
#
|
784
|
-
# @see ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
820
|
+
# @see ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
785
821
|
module IDType
|
786
822
|
extend ModernTreasury::Internal::Type::Enum
|
787
823
|
|
@@ -793,6 +829,7 @@ module ModernTreasury
|
|
793
829
|
CL_RUT = :cl_rut
|
794
830
|
CO_CEDULAS = :co_cedulas
|
795
831
|
CO_NIT = :co_nit
|
832
|
+
DRIVERS_LICENSE = :drivers_license
|
796
833
|
HN_ID = :hn_id
|
797
834
|
HN_RTN = :hn_rtn
|
798
835
|
IN_LEI = :in_lei
|
@@ -814,7 +851,7 @@ module ModernTreasury
|
|
814
851
|
|
815
852
|
# The type of legal entity.
|
816
853
|
#
|
817
|
-
# @see ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
854
|
+
# @see ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
818
855
|
module LegalEntityType
|
819
856
|
extend ModernTreasury::Internal::Type::Enum
|
820
857
|
|
@@ -827,7 +864,7 @@ module ModernTreasury
|
|
827
864
|
|
828
865
|
# The business's legal structure.
|
829
866
|
#
|
830
|
-
# @see ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
867
|
+
# @see ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
831
868
|
module LegalStructure
|
832
869
|
extend ModernTreasury::Internal::Type::Enum
|
833
870
|
|
@@ -856,7 +893,7 @@ module ModernTreasury
|
|
856
893
|
|
857
894
|
# The risk rating of the legal entity. One of low, medium, high.
|
858
895
|
#
|
859
|
-
# @see ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
896
|
+
# @see ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
860
897
|
module RiskRating
|
861
898
|
extend ModernTreasury::Internal::Type::Enum
|
862
899
|
|
@@ -17,7 +17,7 @@ module ModernTreasury
|
|
17
17
|
# @!attribute classification_type
|
18
18
|
# The classification system of the classification codes.
|
19
19
|
#
|
20
|
-
# @return [Symbol, ModernTreasury::LegalEntityIndustryClassification::ClassificationType]
|
20
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityIndustryClassification::ClassificationType]
|
21
21
|
required :classification_type,
|
22
22
|
enum: -> { ModernTreasury::LegalEntityIndustryClassification::ClassificationType }
|
23
23
|
|
@@ -50,13 +50,13 @@ module ModernTreasury
|
|
50
50
|
|
51
51
|
# @!method initialize(id:, classification_codes:, classification_type:, created_at:, discarded_at:, live_mode:, object:, updated_at:)
|
52
52
|
# Some parameter documentations has been truncated, see
|
53
|
-
# {ModernTreasury::LegalEntityIndustryClassification} for more details.
|
53
|
+
# {ModernTreasury::Models::LegalEntityIndustryClassification} for more details.
|
54
54
|
#
|
55
55
|
# @param id [String]
|
56
56
|
#
|
57
57
|
# @param classification_codes [Array<String>] The industry classification codes for the legal entity.
|
58
58
|
#
|
59
|
-
# @param classification_type [Symbol, ModernTreasury::LegalEntityIndustryClassification::ClassificationType] The classification system of the classification codes.
|
59
|
+
# @param classification_type [Symbol, ModernTreasury::Models::LegalEntityIndustryClassification::ClassificationType] The classification system of the classification codes.
|
60
60
|
#
|
61
61
|
# @param created_at [Time]
|
62
62
|
#
|
@@ -70,7 +70,7 @@ module ModernTreasury
|
|
70
70
|
|
71
71
|
# The classification system of the classification codes.
|
72
72
|
#
|
73
|
-
# @see ModernTreasury::LegalEntityIndustryClassification#classification_type
|
73
|
+
# @see ModernTreasury::Models::LegalEntityIndustryClassification#classification_type
|
74
74
|
module ClassificationType
|
75
75
|
extend ModernTreasury::Internal::Type::Enum
|
76
76
|
|
@@ -14,7 +14,7 @@ module ModernTreasury
|
|
14
14
|
|
15
15
|
# @!attribute legal_entity_type
|
16
16
|
#
|
17
|
-
# @return [Symbol, ModernTreasury::LegalEntityListParams::LegalEntityType, nil]
|
17
|
+
# @return [Symbol, ModernTreasury::Models::LegalEntityListParams::LegalEntityType, nil]
|
18
18
|
optional :legal_entity_type, enum: -> { ModernTreasury::LegalEntityListParams::LegalEntityType }
|
19
19
|
|
20
20
|
# @!attribute metadata
|
@@ -41,7 +41,7 @@ module ModernTreasury
|
|
41
41
|
#
|
42
42
|
# @param after_cursor [String, nil]
|
43
43
|
#
|
44
|
-
# @param legal_entity_type [Symbol, ModernTreasury::LegalEntityListParams::LegalEntityType]
|
44
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityListParams::LegalEntityType]
|
45
45
|
#
|
46
46
|
# @param metadata [Hash{Symbol=>String}] For example, if you want to query for records with metadata key `Type` and value
|
47
47
|
#
|