modern_treasury 0.1.0.pre.alpha.18 → 0.1.0.pre.alpha.20
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 +96 -0
- data/README.md +124 -66
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/errors.rb +10 -10
- data/lib/modern_treasury/file_part.rb +55 -0
- data/lib/modern_treasury/internal/page.rb +2 -2
- data/lib/modern_treasury/internal/transport/base_client.rb +88 -16
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +19 -7
- data/lib/modern_treasury/internal/type/array_of.rb +19 -0
- data/lib/modern_treasury/internal/type/base_model.rb +112 -39
- data/lib/modern_treasury/internal/type/base_page.rb +9 -1
- data/lib/modern_treasury/internal/type/boolean.rb +22 -11
- data/lib/modern_treasury/internal/type/converter.rb +22 -1
- data/lib/modern_treasury/internal/type/enum.rb +35 -19
- data/lib/modern_treasury/internal/type/{io_like.rb → file_input.rb} +41 -15
- data/lib/modern_treasury/internal/type/hash_of.rb +19 -0
- data/lib/modern_treasury/internal/type/request_parameters.rb +7 -14
- data/lib/modern_treasury/internal/type/union.rb +24 -2
- data/lib/modern_treasury/internal/type/unknown.rb +22 -11
- data/lib/modern_treasury/internal/util.rb +193 -64
- data/lib/modern_treasury/internal.rb +9 -1
- data/lib/modern_treasury/models/account_collection_flow.rb +46 -89
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +15 -22
- data/lib/modern_treasury/models/account_collection_flow_list_params.rb +14 -50
- data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +11 -15
- data/lib/modern_treasury/models/account_detail.rb +29 -38
- data/lib/modern_treasury/models/account_detail_create_params.rb +23 -29
- data/lib/modern_treasury/models/account_detail_delete_params.rb +8 -16
- data/lib/modern_treasury/models/account_detail_list_params.rb +8 -17
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +6 -11
- data/lib/modern_treasury/models/accounts_type.rb +2 -5
- data/lib/modern_treasury/models/async_response.rb +3 -7
- data/lib/modern_treasury/models/bank_settings.rb +23 -29
- data/lib/modern_treasury/models/bulk_request.rb +37 -51
- data/lib/modern_treasury/models/bulk_request_create_params.rb +1101 -1631
- data/lib/modern_treasury/models/bulk_request_list_params.rb +34 -69
- data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/bulk_result.rb +70 -95
- data/lib/modern_treasury/models/bulk_result_list_params.rb +37 -76
- data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/client_ping_params.rb +3 -8
- data/lib/modern_treasury/models/connection.rb +21 -27
- data/lib/modern_treasury/models/connection_legal_entity.rb +26 -35
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +323 -403
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +15 -49
- data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +9 -20
- data/lib/modern_treasury/models/connection_list_params.rb +14 -27
- data/lib/modern_treasury/models/counterparty.rb +157 -237
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +23 -34
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +9 -8
- data/lib/modern_treasury/models/counterparty_create_params.rb +516 -728
- data/lib/modern_treasury/models/counterparty_delete_params.rb +3 -8
- data/lib/modern_treasury/models/counterparty_list_params.rb +29 -64
- data/lib/modern_treasury/models/counterparty_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/counterparty_update_params.rb +23 -50
- data/lib/modern_treasury/models/currency.rb +9 -5
- data/lib/modern_treasury/models/document.rb +62 -91
- data/lib/modern_treasury/models/document_create_params.rb +19 -27
- data/lib/modern_treasury/models/document_list_params.rb +22 -35
- data/lib/modern_treasury/models/document_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/event.rb +23 -29
- data/lib/modern_treasury/models/event_list_params.rb +23 -57
- data/lib/modern_treasury/models/event_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment.rb +67 -82
- data/lib/modern_treasury/models/expected_payment_create_params.rb +140 -215
- data/lib/modern_treasury/models/expected_payment_delete_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment_list_params.rb +63 -92
- data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment_type.rb +6 -5
- data/lib/modern_treasury/models/expected_payment_update_params.rb +51 -70
- data/lib/modern_treasury/models/external_account.rb +105 -137
- data/lib/modern_treasury/models/external_account_complete_verification_params.rb +5 -14
- data/lib/modern_treasury/models/external_account_create_params.rb +146 -245
- data/lib/modern_treasury/models/external_account_delete_params.rb +3 -8
- data/lib/modern_treasury/models/external_account_list_params.rb +20 -43
- data/lib/modern_treasury/models/external_account_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/external_account_type.rb +7 -5
- data/lib/modern_treasury/models/external_account_update_params.rb +42 -69
- data/lib/modern_treasury/models/external_account_verify_params.rb +34 -58
- data/lib/modern_treasury/models/external_account_verify_response.rb +37 -48
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +51 -55
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +24 -47
- data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +32 -71
- data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/incoming_payment_detail.rb +72 -86
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +36 -65
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +39 -84
- data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +9 -14
- data/lib/modern_treasury/models/internal_account.rb +84 -99
- data/lib/modern_treasury/models/internal_account_create_params.rb +79 -80
- data/lib/modern_treasury/models/internal_account_list_params.rb +38 -72
- data/lib/modern_treasury/models/internal_account_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/internal_account_update_params.rb +21 -48
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +65 -78
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +39 -35
- data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +4 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +21 -33
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +4 -9
- data/lib/modern_treasury/models/invoice.rb +161 -195
- data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +4 -9
- data/lib/modern_treasury/models/invoice_create_params.rb +167 -251
- data/lib/modern_treasury/models/invoice_list_params.rb +42 -92
- data/lib/modern_treasury/models/invoice_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/invoice_update_params.rb +171 -271
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +37 -35
- data/lib/modern_treasury/models/invoices/line_item_create_params.rb +25 -52
- data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +4 -9
- data/lib/modern_treasury/models/invoices/line_item_list_params.rb +6 -15
- data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +4 -9
- data/lib/modern_treasury/models/invoices/line_item_update_params.rb +29 -64
- data/lib/modern_treasury/models/ledger.rb +21 -14
- data/lib/modern_treasury/models/ledger_account.rb +100 -115
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +114 -106
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +32 -33
- data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +21 -33
- data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +13 -20
- data/lib/modern_treasury/models/ledger_account_category.rb +87 -93
- data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +25 -40
- data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +43 -94
- data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +19 -36
- data/lib/modern_treasury/models/ledger_account_category_update_params.rb +14 -21
- data/lib/modern_treasury/models/ledger_account_create_params.rb +34 -60
- data/lib/modern_treasury/models/ledger_account_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_list_params.rb +116 -279
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +28 -66
- data/lib/modern_treasury/models/ledger_account_settlement.rb +40 -49
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +26 -42
- data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +35 -78
- data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +17 -27
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +9 -9
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +9 -9
- data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +17 -28
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +144 -146
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +145 -146
- data/lib/modern_treasury/models/ledger_account_update_params.rb +14 -21
- data/lib/modern_treasury/models/ledger_create_params.rb +13 -16
- data/lib/modern_treasury/models/ledger_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_entry.rb +101 -108
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +85 -189
- data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +9 -14
- data/lib/modern_treasury/models/ledger_entry_update_params.rb +9 -14
- data/lib/modern_treasury/models/ledger_event_handler.rb +62 -64
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +54 -63
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +20 -33
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +15 -16
- data/lib/modern_treasury/models/ledger_list_params.rb +20 -33
- data/lib/modern_treasury/models/ledger_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_transaction.rb +48 -63
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +64 -113
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +39 -48
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +33 -69
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +84 -189
- data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +60 -105
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +162 -168
- data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +24 -50
- data/lib/modern_treasury/models/ledger_update_params.rb +14 -21
- data/lib/modern_treasury/models/ledgerable_event.rb +23 -29
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +15 -17
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/legal_entity.rb +167 -174
- data/lib/modern_treasury/models/legal_entity_association.rb +206 -211
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +178 -214
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +27 -33
- data/lib/modern_treasury/models/legal_entity_create_params.rb +314 -380
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +22 -31
- data/lib/modern_treasury/models/legal_entity_list_params.rb +23 -49
- data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/legal_entity_update_params.rb +136 -163
- data/lib/modern_treasury/models/line_item.rb +40 -49
- data/lib/modern_treasury/models/line_item_list_params.rb +10 -22
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +8 -16
- data/lib/modern_treasury/models/line_item_update_params.rb +16 -22
- data/lib/modern_treasury/models/paper_item.rb +52 -52
- data/lib/modern_treasury/models/paper_item_list_params.rb +20 -43
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +3 -8
- 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 +67 -131
- data/lib/modern_treasury/models/payment_flow_create_params.rb +22 -36
- data/lib/modern_treasury/models/payment_flow_list_params.rb +18 -64
- data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/payment_flow_update_params.rb +11 -15
- data/lib/modern_treasury/models/payment_order.rb +186 -230
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +362 -563
- data/lib/modern_treasury/models/payment_order_create_params.rb +384 -595
- data/lib/modern_treasury/models/payment_order_list_params.rb +70 -146
- data/lib/modern_treasury/models/payment_order_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -5
- data/lib/modern_treasury/models/payment_order_type.rb +6 -5
- data/lib/modern_treasury/models/payment_order_update_params.rb +296 -462
- data/lib/modern_treasury/models/payment_orders/reversal.rb +31 -43
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +87 -141
- data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +6 -15
- data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +4 -9
- data/lib/modern_treasury/models/payment_reference.rb +31 -40
- data/lib/modern_treasury/models/payment_reference_list_params.rb +23 -50
- data/lib/modern_treasury/models/payment_reference_retireve_params.rb +3 -8
- data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ping_response.rb +2 -6
- data/lib/modern_treasury/models/reconciliation_rule.rb +36 -48
- data/lib/modern_treasury/models/return_create_params.rb +66 -39
- data/lib/modern_treasury/models/return_list_params.rb +26 -56
- data/lib/modern_treasury/models/return_object.rb +140 -108
- data/lib/modern_treasury/models/return_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/routing_detail.rb +61 -75
- data/lib/modern_treasury/models/routing_detail_create_params.rb +27 -33
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +8 -16
- data/lib/modern_treasury/models/routing_detail_list_params.rb +8 -17
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +6 -11
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +51 -78
- data/lib/modern_treasury/models/transaction.rb +89 -96
- data/lib/modern_treasury/models/transaction_create_params.rb +35 -49
- data/lib/modern_treasury/models/transaction_delete_params.rb +3 -8
- data/lib/modern_treasury/models/transaction_direction.rb +2 -5
- data/lib/modern_treasury/models/transaction_list_params.rb +47 -106
- data/lib/modern_treasury/models/transaction_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/transaction_update_params.rb +9 -14
- data/lib/modern_treasury/models/transactions/line_item_create_params.rb +12 -11
- data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +3 -8
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +14 -34
- data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +39 -51
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +14 -16
- data/lib/modern_treasury/models/virtual_account.rb +37 -45
- data/lib/modern_treasury/models/virtual_account_create_params.rb +114 -175
- data/lib/modern_treasury/models/virtual_account_delete_params.rb +3 -8
- data/lib/modern_treasury/models/virtual_account_list_params.rb +20 -43
- data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/virtual_account_update_params.rb +14 -27
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +61 -83
- data/lib/modern_treasury/models.rb +461 -0
- data/lib/modern_treasury/request_options.rb +8 -6
- data/lib/modern_treasury/resources/account_collection_flows.rb +20 -11
- data/lib/modern_treasury/resources/account_details.rb +36 -19
- data/lib/modern_treasury/resources/bulk_requests.rb +31 -14
- data/lib/modern_treasury/resources/bulk_results.rb +20 -9
- data/lib/modern_treasury/resources/connection_legal_entities.rb +19 -13
- data/lib/modern_treasury/resources/connections.rb +8 -4
- data/lib/modern_treasury/resources/counterparties.rb +83 -38
- data/lib/modern_treasury/resources/documents.rb +23 -11
- data/lib/modern_treasury/resources/events.rb +14 -6
- data/lib/modern_treasury/resources/expected_payments.rb +117 -55
- data/lib/modern_treasury/resources/external_accounts.rb +83 -35
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +41 -19
- data/lib/modern_treasury/resources/incoming_payment_details.rb +57 -26
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +45 -18
- data/lib/modern_treasury/resources/internal_accounts.rb +66 -31
- data/lib/modern_treasury/resources/invoices/line_items.rb +62 -32
- data/lib/modern_treasury/resources/invoices.rb +140 -66
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +46 -20
- data/lib/modern_treasury/resources/ledger_account_categories.rb +86 -45
- data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +18 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +56 -24
- data/lib/modern_treasury/resources/ledger_account_statements.rb +16 -7
- data/lib/modern_treasury/resources/ledger_accounts.rb +78 -35
- data/lib/modern_treasury/resources/ledger_entries.rb +57 -24
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +34 -14
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +16 -6
- data/lib/modern_treasury/resources/ledger_transactions.rb +116 -49
- data/lib/modern_treasury/resources/ledgerable_events.rb +16 -8
- data/lib/modern_treasury/resources/ledgers.rb +43 -20
- data/lib/modern_treasury/resources/legal_entities.rb +116 -50
- data/lib/modern_treasury/resources/legal_entity_associations.rb +16 -7
- data/lib/modern_treasury/resources/line_items.rb +31 -17
- data/lib/modern_treasury/resources/paper_items.rb +16 -7
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +31 -16
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +25 -13
- data/lib/modern_treasury/resources/payment_orders.rb +256 -121
- data/lib/modern_treasury/resources/payment_references.rb +16 -7
- data/lib/modern_treasury/resources/returns.rb +37 -17
- data/lib/modern_treasury/resources/routing_details.rb +38 -20
- data/lib/modern_treasury/resources/transactions/line_items.rb +18 -10
- data/lib/modern_treasury/resources/transactions.rb +65 -28
- data/lib/modern_treasury/resources/validations.rb +10 -4
- data/lib/modern_treasury/resources/virtual_accounts.rb +51 -23
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +14 -10
- data/rbi/{lib/modern_treasury → modern_treasury}/client.rbi +16 -12
- data/rbi/{lib/modern_treasury → modern_treasury}/errors.rbi +34 -15
- data/rbi/modern_treasury/file_part.rbi +37 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/page.rbi +8 -4
- data/rbi/modern_treasury/internal/transport/base_client.rbi +303 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +80 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/array_of.rbi +46 -23
- data/rbi/modern_treasury/internal/type/base_model.rbi +310 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/base_page.rbi +15 -8
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/boolean.rbi +18 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/converter.rbi +75 -28
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/enum.rbi +31 -18
- data/rbi/{lib/modern_treasury/internal/type/io_like.rbi → modern_treasury/internal/type/file_input.rbi} +19 -6
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/hash_of.rbi +46 -23
- data/rbi/modern_treasury/internal/type/request_parameters.rbi +31 -0
- data/rbi/modern_treasury/internal/type/union.rbi +116 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/unknown.rbi +22 -6
- data/rbi/modern_treasury/internal/util.rbi +485 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal.rbi +7 -1
- data/rbi/modern_treasury/models/account_collection_flow.rbi +372 -0
- data/rbi/modern_treasury/models/account_collection_flow_create_params.rbi +197 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/account_collection_flow_list_params.rbi +26 -17
- data/rbi/modern_treasury/models/account_collection_flow_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/account_collection_flow_update_params.rbi +85 -0
- data/rbi/modern_treasury/models/account_detail.rbi +198 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +209 -0
- data/rbi/modern_treasury/models/account_detail_delete_params.rbi +81 -0
- data/rbi/modern_treasury/models/account_detail_list_params.rbi +59 -0
- data/rbi/modern_treasury/models/account_detail_retrieve_params.rbi +46 -0
- data/rbi/modern_treasury/models/accounts_type.rbi +24 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/async_response.rbi +13 -3
- data/rbi/{lib/modern_treasury → modern_treasury}/models/bank_settings.rbi +35 -19
- data/rbi/modern_treasury/models/bulk_request.rbi +231 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +7199 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +264 -0
- data/rbi/modern_treasury/models/bulk_request_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +401 -0
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +270 -0
- data/rbi/modern_treasury/models/bulk_result_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/client_ping_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/connection.rbi +29 -18
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +148 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2052 -0
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +137 -0
- data/rbi/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/connection_legal_entity_update_params.rbi +92 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/connection_list_params.rbi +23 -14
- data/rbi/modern_treasury/models/counterparty.rbi +796 -0
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +291 -0
- data/rbi/modern_treasury/models/counterparty_collect_account_response.rbi +58 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +3527 -0
- data/rbi/modern_treasury/models/counterparty_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/counterparty_list_params.rbi +38 -19
- data/rbi/modern_treasury/models/counterparty_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/counterparty_update_params.rbi +34 -17
- data/rbi/modern_treasury/models/currency.rbi +214 -0
- data/rbi/modern_treasury/models/document.rbi +339 -0
- data/rbi/modern_treasury/models/document_create_params.rbi +159 -0
- data/rbi/modern_treasury/models/document_list_params.rbi +176 -0
- data/rbi/modern_treasury/models/document_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/event.rbi +29 -18
- data/rbi/{lib/modern_treasury → modern_treasury}/models/event_list_params.rbi +29 -18
- data/rbi/modern_treasury/models/event_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/expected_payment.rbi +387 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/expected_payment_create_params.rbi +341 -157
- data/rbi/modern_treasury/models/expected_payment_delete_params.rbi +32 -0
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +422 -0
- data/rbi/modern_treasury/models/expected_payment_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +71 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +289 -0
- data/rbi/modern_treasury/models/external_account.rbi +540 -0
- data/rbi/modern_treasury/models/external_account_complete_verification_params.rbi +44 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +1196 -0
- data/rbi/modern_treasury/models/external_account_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/external_account_list_params.rbi +29 -16
- data/rbi/modern_treasury/models/external_account_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +55 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +237 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +387 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/external_account_verify_response.rbi +113 -71
- data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote.rbi +86 -51
- data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote_create_params.rbi +39 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote_list_params.rbi +38 -20
- data/rbi/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +617 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +279 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +299 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/incoming_payment_detail_update_params.rbi +25 -6
- data/rbi/modern_treasury/models/internal_account.rbi +432 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +369 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +335 -0
- data/rbi/modern_treasury/models/internal_account_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_account_update_params.rbi +31 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_accounts/balance_report.rbi +155 -82
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +288 -0
- data/rbi/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +43 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_accounts/balance_report_list_params.rbi +47 -33
- data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +43 -0
- data/rbi/modern_treasury/models/invoice.rbi +822 -0
- data/rbi/modern_treasury/models/invoice_add_payment_order_params.rbi +38 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_create_params.rbi +416 -192
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_list_params.rbi +80 -37
- data/rbi/modern_treasury/models/invoice_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_update_params.rbi +416 -192
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/invoice_line_item.rbi +59 -24
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_create_params.rbi +41 -18
- data/rbi/modern_treasury/models/invoices/line_item_delete_params.rbi +43 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_list_params.rbi +21 -13
- data/rbi/modern_treasury/models/invoices/line_item_retrieve_params.rbi +43 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_update_params.rbi +42 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger.rbi +27 -17
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account.rbi +244 -120
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +551 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_create_params.rbi +69 -29
- data/rbi/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_list_params.rbi +28 -15
- data/rbi/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_update_params.rbi +28 -13
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category.rbi +202 -115
- data/rbi/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +38 -0
- data/rbi/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +38 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_create_params.rbi +40 -21
- data/rbi/modern_treasury/models/ledger_account_category_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_list_params.rbi +64 -35
- data/rbi/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +38 -0
- data/rbi/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +38 -0
- data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +101 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_update_params.rbi +31 -14
- data/rbi/modern_treasury/models/ledger_account_create_params.rbi +200 -0
- data/rbi/modern_treasury/models/ledger_account_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_list_params.rbi +182 -87
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_retrieve_params.rbi +62 -31
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement.rbi +104 -39
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement_create_params.rbi +81 -29
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement_list_params.rbi +41 -21
- data/rbi/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_account_settlement_update_params.rbi +121 -0
- data/rbi/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +50 -0
- data/rbi/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +50 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_create_params.rbi +34 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_create_response.rbi +389 -222
- data/rbi/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_retrieve_response.rbi +389 -222
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_update_params.rbi +31 -14
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_create_params.rbi +31 -14
- data/rbi/modern_treasury/models/ledger_delete_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +519 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +474 -0
- data/rbi/modern_treasury/models/ledger_entry_retrieve_params.rbi +51 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_entry_update_params.rbi +25 -6
- data/rbi/modern_treasury/models/ledger_event_handler.rbi +322 -0
- data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +303 -0
- data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_event_handler_list_params.rbi +28 -15
- data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +98 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_list_params.rbi +30 -15
- data/rbi/modern_treasury/models/ledger_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_transaction.rbi +298 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +410 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transaction_create_partial_post_params.rbi +95 -52
- data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +249 -0
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +506 -0
- data/rbi/modern_treasury/models/ledger_transaction_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +396 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transactions/ledger_transaction_version.rbi +358 -214
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transactions/version_list_params.rbi +35 -17
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_update_params.rbi +31 -14
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledgerable_event.rbi +36 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledgerable_event_create_params.rbi +34 -15
- data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +875 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +1112 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +1056 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/legal_entity_compliance_detail.rbi +38 -21
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +1940 -0
- data/rbi/modern_treasury/models/legal_entity_industry_classification.rbi +194 -0
- data/rbi/modern_treasury/models/legal_entity_list_params.rbi +133 -0
- data/rbi/modern_treasury/models/legal_entity_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +828 -0
- data/rbi/modern_treasury/models/line_item.rbi +217 -0
- data/rbi/modern_treasury/models/line_item_list_params.rbi +94 -0
- data/rbi/modern_treasury/models/line_item_retrieve_params.rbi +86 -0
- data/rbi/modern_treasury/models/line_item_update_params.rbi +98 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/paper_item.rbi +79 -39
- data/rbi/{lib/modern_treasury → modern_treasury}/models/paper_item_list_params.rbi +29 -16
- data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +32 -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_flow.rbi +387 -0
- data/rbi/modern_treasury/models/payment_flow_create_params.rbi +136 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_flow_list_params.rbi +28 -19
- data/rbi/modern_treasury/models/payment_flow_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_flow_update_params.rbi +76 -0
- data/rbi/modern_treasury/models/payment_order.rbi +1461 -0
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +2473 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +2631 -0
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +542 -0
- data/rbi/modern_treasury/models/payment_order_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +66 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +64 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +2136 -0
- data/rbi/modern_treasury/models/payment_orders/reversal.rbi +221 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_orders/reversal_create_params.rbi +228 -126
- data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_orders/reversal_list_params.rbi +21 -13
- data/rbi/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +43 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +564 -0
- data/rbi/modern_treasury/models/payment_reference_list_params.rbi +144 -0
- data/rbi/modern_treasury/models/payment_reference_retireve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_reference_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ping_response.rbi +10 -3
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +286 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +345 -0
- data/rbi/modern_treasury/models/return_list_params.rbi +162 -0
- data/rbi/modern_treasury/models/return_object.rbi +1011 -0
- data/rbi/modern_treasury/models/return_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +523 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +455 -0
- data/rbi/modern_treasury/models/routing_detail_delete_params.rbi +81 -0
- data/rbi/modern_treasury/models/routing_detail_list_params.rbi +59 -0
- data/rbi/modern_treasury/models/routing_detail_retrieve_params.rbi +46 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +494 -0
- data/rbi/modern_treasury/models/transaction.rbi +588 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +346 -0
- data/rbi/modern_treasury/models/transaction_delete_params.rbi +32 -0
- data/rbi/modern_treasury/models/transaction_direction.rbi +25 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/transaction_list_params.rbi +47 -25
- data/rbi/modern_treasury/models/transaction_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/transaction_update_params.rbi +25 -6
- data/rbi/{lib/modern_treasury → modern_treasury}/models/transactions/line_item_create_params.rbi +31 -14
- data/rbi/modern_treasury/models/transactions/line_item_delete_params.rbi +34 -0
- data/rbi/modern_treasury/models/transactions/line_item_list_params.rbi +125 -0
- data/rbi/modern_treasury/models/transactions/line_item_retrieve_params.rbi +34 -0
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +276 -0
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +199 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account.rbi +57 -29
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +957 -0
- data/rbi/modern_treasury/models/virtual_account_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account_list_params.rbi +28 -16
- data/rbi/modern_treasury/models/virtual_account_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account_update_params.rbi +22 -14
- data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +812 -0
- data/rbi/modern_treasury/models.rbi +498 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/request_options.rbi +20 -5
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/account_collection_flows.rbi +29 -18
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/account_details.rbi +30 -22
- data/rbi/modern_treasury/resources/bulk_requests.rbi +97 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/bulk_results.rbi +17 -12
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/connection_legal_entities.rbi +29 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/connections.rbi +7 -5
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/counterparties.rbi +47 -32
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/documents.rbi +22 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/events.rbi +12 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/expected_payments.rbi +63 -37
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/external_accounts.rbi +74 -70
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/foreign_exchange_quotes.rbi +20 -14
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/incoming_payment_details.rbi +32 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/internal_accounts/balance_reports.rbi +33 -44
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/internal_accounts.rbi +39 -25
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/invoices/line_items.rbi +30 -45
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/invoices.rbi +80 -66
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_balance_monitors.rbi +32 -24
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_categories.rbi +53 -45
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_settlements/account_entries.rbi +12 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_settlements.rbi +36 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_statements.rbi +13 -8
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_accounts.rbi +39 -37
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_entries.rbi +20 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_event_handlers.rbi +36 -29
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_transactions/versions.rbi +10 -11
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_transactions.rbi +62 -51
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledgerable_events.rbi +12 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledgers.rbi +27 -21
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/legal_entities.rbi +82 -45
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/legal_entity_associations.rbi +13 -10
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/line_items.rbi +23 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/paper_items.rbi +12 -9
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_flows.rbi +25 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_orders/reversals.rbi +24 -32
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_orders.rbi +114 -80
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_references.rbi +15 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/returns.rbi +22 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/routing_details.rbi +34 -23
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/transactions/line_items.rbi +26 -36
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/transactions.rbi +29 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/validations.rbi +9 -6
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/virtual_accounts.rbi +38 -36
- data/sig/modern_treasury/client.rbs +3 -1
- data/sig/modern_treasury/file_part.rbs +21 -0
- data/sig/modern_treasury/internal/page.rbs +1 -1
- data/sig/modern_treasury/internal/transport/base_client.rbs +25 -4
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +4 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +5 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +19 -1
- data/sig/modern_treasury/internal/type/base_page.rbs +1 -1
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/converter.rbs +2 -0
- data/sig/modern_treasury/internal/type/enum.rbs +5 -2
- data/sig/modern_treasury/internal/type/{io_like.rbs → file_input.rbs} +3 -1
- data/sig/modern_treasury/internal/type/hash_of.rbs +5 -0
- data/sig/modern_treasury/internal/type/request_parameters.rbs +5 -1
- data/sig/modern_treasury/internal/type/union.rbs +5 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +41 -12
- data/sig/modern_treasury/internal.rbs +5 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +13 -1
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +6 -1
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +9 -1
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +4 -1
- data/sig/modern_treasury/models/account_detail.rbs +19 -1
- data/sig/modern_treasury/models/account_detail_create_params.rbs +14 -1
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +5 -1
- data/sig/modern_treasury/models/account_detail_list_params.rbs +6 -1
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +5 -1
- data/sig/modern_treasury/models/async_response.rbs +1 -1
- data/sig/modern_treasury/models/bank_settings.rbs +12 -1
- data/sig/modern_treasury/models/bulk_request.rbs +16 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +504 -158
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +11 -1
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/bulk_result.rbs +34 -12
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +12 -1
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/client_ping_params.rbs +1 -1
- data/sig/modern_treasury/models/connection.rbs +11 -1
- data/sig/modern_treasury/models/connection_legal_entity.rbs +12 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +197 -85
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +8 -1
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +4 -1
- data/sig/modern_treasury/models/connection_list_params.rbs +7 -1
- data/sig/modern_treasury/models/counterparty.rbs +79 -25
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +7 -1
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +1 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +306 -127
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/counterparty_list_params.rbs +11 -1
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/counterparty_update_params.rbs +9 -1
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +40 -14
- data/sig/modern_treasury/models/document_create_params.rbs +15 -9
- data/sig/modern_treasury/models/document_list_params.rbs +12 -6
- data/sig/modern_treasury/models/document_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/event.rbs +12 -1
- data/sig/modern_treasury/models/event_list_params.rbs +10 -1
- data/sig/modern_treasury/models/event_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/expected_payment.rbs +31 -4
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -20
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +36 -2
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +23 -4
- data/sig/modern_treasury/models/external_account.rbs +56 -15
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +4 -1
- data/sig/modern_treasury/models/external_account_create_params.rbs +90 -31
- data/sig/modern_treasury/models/external_account_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/external_account_list_params.rbs +8 -1
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +23 -7
- data/sig/modern_treasury/models/external_account_verify_params.rbs +16 -1
- data/sig/modern_treasury/models/external_account_verify_response.rbs +22 -3
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +26 -5
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +9 -1
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +12 -1
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +38 -4
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +12 -1
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +12 -1
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +4 -1
- data/sig/modern_treasury/models/internal_account.rbs +57 -15
- data/sig/modern_treasury/models/internal_account_create_params.rbs +69 -7
- data/sig/modern_treasury/models/internal_account_list_params.rbs +19 -1
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/internal_account_update_params.rbs +8 -1
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +30 -5
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +16 -5
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +4 -1
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +7 -1
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/invoice.rbs +91 -23
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +4 -1
- data/sig/modern_treasury/models/invoice_create_params.rbs +88 -23
- data/sig/modern_treasury/models/invoice_list_params.rbs +14 -1
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/invoice_update_params.rbs +88 -23
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +20 -1
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +10 -1
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +4 -1
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +5 -1
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +11 -1
- data/sig/modern_treasury/models/ledger.rbs +11 -1
- data/sig/modern_treasury/models/ledger_account.rbs +57 -17
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +63 -25
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +11 -5
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +5 -1
- data/sig/modern_treasury/models/ledger_account_category.rbs +52 -17
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +11 -1
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +19 -7
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +10 -7
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +13 -1
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +67 -25
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +16 -9
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +19 -1
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +11 -1
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +13 -1
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +69 -9
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +69 -9
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_create_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_entry.rbs +56 -17
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +32 -7
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_event_handler.rbs +39 -16
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +34 -16
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +8 -8
- data/sig/modern_treasury/models/ledger_list_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_transaction.rbs +24 -4
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +26 -5
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +16 -5
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +10 -1
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +31 -7
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +26 -7
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +79 -21
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +9 -1
- data/sig/modern_treasury/models/ledger_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledgerable_event.rbs +12 -1
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +7 -1
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/legal_entity.rbs +96 -28
- data/sig/modern_treasury/models/legal_entity_association.rbs +108 -29
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +99 -41
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +14 -1
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +187 -79
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +10 -1
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +8 -1
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +85 -35
- data/sig/modern_treasury/models/line_item.rbs +19 -5
- data/sig/modern_treasury/models/line_item_list_params.rbs +6 -1
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +5 -1
- data/sig/modern_treasury/models/line_item_update_params.rbs +6 -1
- data/sig/modern_treasury/models/paper_item.rbs +25 -1
- data/sig/modern_treasury/models/paper_item_list_params.rbs +8 -1
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +1 -1
- 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 +21 -1
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +9 -1
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +11 -1
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +4 -1
- data/sig/modern_treasury/models/payment_order.rbs +90 -31
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +178 -59
- data/sig/modern_treasury/models/payment_order_create_params.rbs +198 -73
- data/sig/modern_treasury/models/payment_order_list_params.rbs +28 -1
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +147 -49
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +13 -1
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +36 -11
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +5 -1
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/payment_reference.rbs +19 -1
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +8 -1
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +1 -1
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ping_response.rbs +1 -1
- data/sig/modern_treasury/models/reconciliation_rule.rbs +20 -1
- data/sig/modern_treasury/models/return_create_params.rbs +90 -1
- data/sig/modern_treasury/models/return_list_params.rbs +9 -1
- data/sig/modern_treasury/models/return_object.rbs +134 -8
- data/sig/modern_treasury/models/return_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/routing_detail.rbs +37 -5
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +15 -1
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +5 -1
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +6 -1
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +5 -1
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +29 -7
- data/sig/modern_treasury/models/transaction.rbs +51 -5
- data/sig/modern_treasury/models/transaction_create_params.rbs +21 -1
- data/sig/modern_treasury/models/transaction_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/transaction_list_params.rbs +17 -1
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/transaction_update_params.rbs +4 -1
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +6 -1
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +8 -1
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +17 -1
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +5 -1
- data/sig/modern_treasury/models/virtual_account.rbs +24 -7
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +65 -19
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +8 -1
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +7 -1
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +20 -1
- data/sig/modern_treasury/models.rbs +411 -0
- data/sig/modern_treasury/request_options.rbs +1 -1
- data/sig/modern_treasury/resources/account_collection_flows.rbs +4 -4
- data/sig/modern_treasury/resources/account_details.rbs +3 -3
- data/sig/modern_treasury/resources/bulk_requests.rbs +3 -3
- data/sig/modern_treasury/resources/bulk_results.rbs +2 -2
- data/sig/modern_treasury/resources/connection_legal_entities.rbs +5 -5
- data/sig/modern_treasury/resources/connections.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +8 -8
- data/sig/modern_treasury/resources/documents.rbs +4 -4
- data/sig/modern_treasury/resources/events.rbs +2 -2
- data/sig/modern_treasury/resources/expected_payments.rbs +11 -9
- data/sig/modern_treasury/resources/external_accounts.rbs +11 -11
- data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +3 -3
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +4 -4
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +4 -4
- data/sig/modern_treasury/resources/internal_accounts.rbs +6 -5
- data/sig/modern_treasury/resources/invoices/line_items.rbs +5 -5
- data/sig/modern_treasury/resources/invoices.rbs +14 -14
- data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +6 -6
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +7 -7
- data/sig/modern_treasury/resources/ledger_account_settlements.rbs +4 -4
- data/sig/modern_treasury/resources/ledger_accounts.rbs +10 -10
- data/sig/modern_treasury/resources/ledger_entries.rbs +4 -4
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +7 -7
- data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_transactions.rbs +10 -10
- data/sig/modern_treasury/resources/ledgerable_events.rbs +2 -2
- data/sig/modern_treasury/resources/ledgers.rbs +5 -5
- data/sig/modern_treasury/resources/legal_entities.rbs +19 -19
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +2 -2
- data/sig/modern_treasury/resources/line_items.rbs +3 -3
- data/sig/modern_treasury/resources/paper_items.rbs +2 -2
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- data/sig/modern_treasury/resources/payment_flows.rbs +4 -4
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +4 -4
- data/sig/modern_treasury/resources/payment_orders.rbs +17 -17
- data/sig/modern_treasury/resources/payment_references.rbs +2 -2
- data/sig/modern_treasury/resources/returns.rbs +3 -3
- data/sig/modern_treasury/resources/routing_details.rbs +3 -3
- data/sig/modern_treasury/resources/transactions/line_items.rbs +3 -3
- data/sig/modern_treasury/resources/transactions.rbs +4 -4
- data/sig/modern_treasury/resources/validations.rbs +1 -1
- data/sig/modern_treasury/resources/virtual_accounts.rbs +8 -8
- metadata +324 -291
- data/rbi/lib/modern_treasury/internal/transport/base_client.rbi +0 -199
- data/rbi/lib/modern_treasury/internal/transport/pooled_net_requester.rbi +0 -60
- data/rbi/lib/modern_treasury/internal/type/base_model.rbi +0 -203
- data/rbi/lib/modern_treasury/internal/type/request_parameters.rbi +0 -21
- data/rbi/lib/modern_treasury/internal/type/union.rbi +0 -77
- data/rbi/lib/modern_treasury/internal/util.rbi +0 -300
- data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +0 -197
- data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +0 -117
- data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +0 -54
- data/rbi/lib/modern_treasury/models/account_detail.rbi +0 -111
- data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +0 -103
- data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +0 -53
- data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +0 -46
- data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +0 -38
- data/rbi/lib/modern_treasury/models/accounts_type.rbi +0 -18
- data/rbi/lib/modern_treasury/models/bulk_request.rbi +0 -160
- data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +0 -6245
- data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +0 -144
- data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/bulk_result.rbi +0 -285
- data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +0 -154
- data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/client_ping_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +0 -106
- data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +0 -1797
- data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +0 -90
- data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +0 -55
- data/rbi/lib/modern_treasury/models/counterparty.rbi +0 -591
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +0 -158
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +0 -29
- data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +0 -2902
- data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/currency.rbi +0 -206
- data/rbi/lib/modern_treasury/models/document.rbi +0 -234
- data/rbi/lib/modern_treasury/models/document_create_params.rbi +0 -92
- data/rbi/lib/modern_treasury/models/document_list_params.rbi +0 -109
- data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/expected_payment.rbi +0 -267
- data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +0 -192
- data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +0 -49
- data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +0 -196
- data/rbi/lib/modern_treasury/models/external_account.rbi +0 -403
- data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +0 -28
- data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +0 -986
- data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/external_account_type.rbi +0 -26
- data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +0 -170
- data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +0 -161
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +0 -436
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -170
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +0 -169
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/internal_account.rbi +0 -294
- data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +0 -193
- data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +0 -154
- data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +0 -231
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +0 -29
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +0 -29
- data/rbi/lib/modern_treasury/models/invoice.rbi +0 -634
- data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +0 -27
- data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +0 -27
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +0 -438
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +0 -73
- data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +0 -142
- data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +0 -76
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +0 -35
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +0 -35
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_entry.rbi +0 -410
- data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +0 -334
- data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +0 -30
- data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +0 -226
- data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -207
- data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +0 -55
- data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +0 -203
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +0 -283
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -192
- data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +0 -365
- data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +0 -274
- data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/legal_entity.rbi +0 -562
- data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +0 -901
- data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +0 -915
- data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +0 -1460
- data/rbi/lib/modern_treasury/models/legal_entity_industry_classification.rbi +0 -136
- data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +0 -90
- data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +0 -509
- data/rbi/lib/modern_treasury/models/line_item.rbi +0 -156
- data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +0 -62
- data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +0 -55
- data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +0 -65
- data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_flow.rbi +0 -280
- data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +0 -95
- data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +0 -50
- data/rbi/lib/modern_treasury/models/payment_order.rbi +0 -1145
- data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +0 -1984
- data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +0 -2083
- data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +0 -276
- data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +0 -50
- data/rbi/lib/modern_treasury/models/payment_order_type.rbi +0 -49
- data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +0 -1642
- data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +0 -140
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +0 -27
- data/rbi/lib/modern_treasury/models/payment_reference.rbi +0 -378
- data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +0 -105
- data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +0 -160
- data/rbi/lib/modern_treasury/models/return_create_params.rbi +0 -164
- data/rbi/lib/modern_treasury/models/return_list_params.rbi +0 -108
- data/rbi/lib/modern_treasury/models/return_object.rbi +0 -799
- data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/routing_detail.rbi +0 -289
- data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +0 -209
- data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +0 -53
- data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +0 -46
- data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +0 -38
- data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +0 -295
- data/rbi/lib/modern_treasury/models/transaction.rbi +0 -388
- data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +0 -158
- data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/transaction_direction.rbi +0 -19
- data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +0 -21
- data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +0 -89
- data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +0 -21
- data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +0 -213
- data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -176
- data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +0 -769
- data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +0 -401
- data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +0 -89
- /data/rbi/{lib/modern_treasury → modern_treasury}/version.rbi +0 -0
@@ -4,31 +4,28 @@ module ModernTreasury
|
|
4
4
|
module Models
|
5
5
|
# @see ModernTreasury::Resources::LegalEntities#create
|
6
6
|
class LegalEntityCreateParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
|
8
|
-
# extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
7
|
+
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
9
8
|
include ModernTreasury::Internal::Type::RequestParameters
|
10
9
|
|
11
10
|
# @!attribute legal_entity_type
|
12
11
|
# The type of legal entity.
|
13
12
|
#
|
14
13
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType]
|
15
|
-
required :legal_entity_type, enum: -> { ModernTreasury::
|
14
|
+
required :legal_entity_type, enum: -> { ModernTreasury::LegalEntityCreateParams::LegalEntityType }
|
16
15
|
|
17
|
-
# @!attribute
|
16
|
+
# @!attribute addresses
|
18
17
|
# A list of addresses for the entity.
|
19
18
|
#
|
20
19
|
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::Address>, nil]
|
21
20
|
optional :addresses,
|
22
|
-
-> {
|
23
|
-
|
24
|
-
|
25
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityCreateParams::Address>]
|
26
|
-
# attr_writer :addresses
|
21
|
+
-> {
|
22
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::Address]
|
23
|
+
}
|
27
24
|
|
28
25
|
# @!attribute bank_settings
|
29
26
|
#
|
30
27
|
# @return [ModernTreasury::Models::BankSettings, nil]
|
31
|
-
optional :bank_settings, -> { ModernTreasury::
|
28
|
+
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
32
29
|
|
33
30
|
# @!attribute business_name
|
34
31
|
# The business's legal business name.
|
@@ -45,7 +42,7 @@ module ModernTreasury
|
|
45
42
|
# @!attribute compliance_details
|
46
43
|
#
|
47
44
|
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
48
|
-
optional :compliance_details, -> { ModernTreasury::
|
45
|
+
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
49
46
|
|
50
47
|
# @!attribute date_formed
|
51
48
|
# A business's formation date (YYYY-MM-DD).
|
@@ -59,15 +56,11 @@ module ModernTreasury
|
|
59
56
|
# @return [Date, nil]
|
60
57
|
optional :date_of_birth, Date, nil?: true
|
61
58
|
|
62
|
-
# @!attribute
|
59
|
+
# @!attribute doing_business_as_names
|
63
60
|
#
|
64
61
|
# @return [Array<String>, nil]
|
65
62
|
optional :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
|
66
63
|
|
67
|
-
# @!parse
|
68
|
-
# # @return [Array<String>]
|
69
|
-
# attr_writer :doing_business_as_names
|
70
|
-
|
71
64
|
# @!attribute email
|
72
65
|
# The entity's primary email.
|
73
66
|
#
|
@@ -80,27 +73,23 @@ module ModernTreasury
|
|
80
73
|
# @return [String, nil]
|
81
74
|
optional :first_name, String, nil?: true
|
82
75
|
|
83
|
-
# @!attribute
|
76
|
+
# @!attribute identifications
|
84
77
|
# A list of identifications for the legal entity.
|
85
78
|
#
|
86
79
|
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::Identification>, nil]
|
87
80
|
optional :identifications,
|
88
|
-
-> {
|
81
|
+
-> {
|
82
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::Identification]
|
83
|
+
}
|
89
84
|
|
90
|
-
# @!
|
91
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityCreateParams::Identification>]
|
92
|
-
# attr_writer :identifications
|
93
|
-
|
94
|
-
# @!attribute [r] industry_classifications
|
85
|
+
# @!attribute industry_classifications
|
95
86
|
# A list of industry classifications for the legal entity.
|
96
87
|
#
|
97
88
|
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
98
89
|
optional :industry_classifications,
|
99
|
-
-> {
|
100
|
-
|
101
|
-
|
102
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
103
|
-
# attr_writer :industry_classifications
|
90
|
+
-> {
|
91
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
92
|
+
}
|
104
93
|
|
105
94
|
# @!attribute last_name
|
106
95
|
# An individual's last name.
|
@@ -113,7 +102,9 @@ module ModernTreasury
|
|
113
102
|
#
|
114
103
|
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation>, nil]
|
115
104
|
optional :legal_entity_associations,
|
116
|
-
-> {
|
105
|
+
-> {
|
106
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation]
|
107
|
+
},
|
117
108
|
nil?: true
|
118
109
|
|
119
110
|
# @!attribute legal_structure
|
@@ -121,35 +112,29 @@ module ModernTreasury
|
|
121
112
|
#
|
122
113
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalStructure, nil]
|
123
114
|
optional :legal_structure,
|
124
|
-
enum: -> { ModernTreasury::
|
115
|
+
enum: -> { ModernTreasury::LegalEntityCreateParams::LegalStructure },
|
125
116
|
nil?: true
|
126
117
|
|
127
|
-
# @!attribute
|
118
|
+
# @!attribute metadata
|
128
119
|
# Additional data represented as key-value pairs. Both the key and value must be
|
129
120
|
# strings.
|
130
121
|
#
|
131
122
|
# @return [Hash{Symbol=>String}, nil]
|
132
123
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
133
124
|
|
134
|
-
# @!parse
|
135
|
-
# # @return [Hash{Symbol=>String}]
|
136
|
-
# attr_writer :metadata
|
137
|
-
|
138
125
|
# @!attribute middle_name
|
139
126
|
# An individual's middle name.
|
140
127
|
#
|
141
128
|
# @return [String, nil]
|
142
129
|
optional :middle_name, String, nil?: true
|
143
130
|
|
144
|
-
# @!attribute
|
131
|
+
# @!attribute phone_numbers
|
145
132
|
#
|
146
133
|
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber>, nil]
|
147
134
|
optional :phone_numbers,
|
148
|
-
-> {
|
149
|
-
|
150
|
-
|
151
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber>]
|
152
|
-
# attr_writer :phone_numbers
|
135
|
+
-> {
|
136
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::PhoneNumber]
|
137
|
+
}
|
153
138
|
|
154
139
|
# @!attribute politically_exposed_person
|
155
140
|
# Whether the individual is a politically exposed person.
|
@@ -173,9 +158,7 @@ module ModernTreasury
|
|
173
158
|
# The risk rating of the legal entity. One of low, medium, high.
|
174
159
|
#
|
175
160
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::RiskRating, nil]
|
176
|
-
optional :risk_rating,
|
177
|
-
enum: -> { ModernTreasury::Models::LegalEntityCreateParams::RiskRating },
|
178
|
-
nil?: true
|
161
|
+
optional :risk_rating, enum: -> { ModernTreasury::LegalEntityCreateParams::RiskRating }, nil?: true
|
179
162
|
|
180
163
|
# @!attribute suffix
|
181
164
|
# An individual's suffix.
|
@@ -186,9 +169,7 @@ module ModernTreasury
|
|
186
169
|
# @!attribute wealth_and_employment_details
|
187
170
|
#
|
188
171
|
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
189
|
-
optional :wealth_and_employment_details,
|
190
|
-
-> { ModernTreasury::Models::WealthAndEmploymentDetails },
|
191
|
-
nil?: true
|
172
|
+
optional :wealth_and_employment_details, -> { ModernTreasury::WealthAndEmploymentDetails }, nil?: true
|
192
173
|
|
193
174
|
# @!attribute website
|
194
175
|
# The entity's primary website URL.
|
@@ -196,69 +177,63 @@ module ModernTreasury
|
|
196
177
|
# @return [String, nil]
|
197
178
|
optional :website, String, nil?: true
|
198
179
|
|
199
|
-
# @!
|
200
|
-
#
|
201
|
-
#
|
202
|
-
#
|
203
|
-
#
|
204
|
-
#
|
205
|
-
#
|
206
|
-
#
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
#
|
211
|
-
#
|
212
|
-
#
|
213
|
-
#
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
224
|
-
#
|
225
|
-
#
|
226
|
-
#
|
227
|
-
#
|
228
|
-
#
|
229
|
-
#
|
230
|
-
#
|
231
|
-
#
|
232
|
-
#
|
233
|
-
#
|
234
|
-
#
|
235
|
-
#
|
236
|
-
#
|
237
|
-
#
|
238
|
-
#
|
239
|
-
#
|
240
|
-
#
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
#
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
#
|
256
|
-
# **
|
257
|
-
# )
|
258
|
-
# super
|
259
|
-
# end
|
260
|
-
|
261
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
180
|
+
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil, request_options: {})
|
181
|
+
# Some parameter documentations has been truncated, see
|
182
|
+
# {ModernTreasury::Models::LegalEntityCreateParams} for more details.
|
183
|
+
#
|
184
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityType] The type of legal entity.
|
185
|
+
#
|
186
|
+
# @param addresses [Array<ModernTreasury::Models::LegalEntityCreateParams::Address>] A list of addresses for the entity.
|
187
|
+
#
|
188
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
189
|
+
#
|
190
|
+
# @param business_name [String, nil] The business's legal business name.
|
191
|
+
#
|
192
|
+
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
193
|
+
#
|
194
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
195
|
+
#
|
196
|
+
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
197
|
+
#
|
198
|
+
# @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
|
199
|
+
#
|
200
|
+
# @param doing_business_as_names [Array<String>]
|
201
|
+
#
|
202
|
+
# @param email [String, nil] The entity's primary email.
|
203
|
+
#
|
204
|
+
# @param first_name [String, nil] An individual's first name.
|
205
|
+
#
|
206
|
+
# @param identifications [Array<ModernTreasury::Models::LegalEntityCreateParams::Identification>] A list of identifications for the legal entity.
|
207
|
+
#
|
208
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
209
|
+
#
|
210
|
+
# @param last_name [String, nil] An individual's last name.
|
211
|
+
#
|
212
|
+
# @param legal_entity_associations [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
213
|
+
#
|
214
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalStructure, nil] The business's legal structure.
|
215
|
+
#
|
216
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
217
|
+
#
|
218
|
+
# @param middle_name [String, nil] An individual's middle name.
|
219
|
+
#
|
220
|
+
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntityCreateParams::PhoneNumber>]
|
221
|
+
#
|
222
|
+
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
223
|
+
#
|
224
|
+
# @param preferred_name [String, nil] An individual's preferred name.
|
225
|
+
#
|
226
|
+
# @param prefix [String, nil] An individual's prefix.
|
227
|
+
#
|
228
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityCreateParams::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
229
|
+
#
|
230
|
+
# @param suffix [String, nil] An individual's suffix.
|
231
|
+
#
|
232
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
233
|
+
#
|
234
|
+
# @param website [String, nil] The entity's primary website URL.
|
235
|
+
#
|
236
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
262
237
|
|
263
238
|
# The type of legal entity.
|
264
239
|
module LegalEntityType
|
@@ -267,11 +242,8 @@ module ModernTreasury
|
|
267
242
|
BUSINESS = :business
|
268
243
|
INDIVIDUAL = :individual
|
269
244
|
|
270
|
-
|
271
|
-
|
272
|
-
# @!parse
|
273
|
-
# # @return [Array<Symbol>]
|
274
|
-
# def self.values; end
|
245
|
+
# @!method self.values
|
246
|
+
# @return [Array<Symbol>]
|
275
247
|
end
|
276
248
|
|
277
249
|
class Address < ModernTreasury::Internal::Type::BaseModel
|
@@ -304,34 +276,34 @@ module ModernTreasury
|
|
304
276
|
# @return [String, nil]
|
305
277
|
required :region, String, nil?: true
|
306
278
|
|
307
|
-
# @!attribute
|
279
|
+
# @!attribute address_types
|
308
280
|
# The types of this address.
|
309
281
|
#
|
310
282
|
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::Address::AddressType>, nil]
|
311
283
|
optional :address_types,
|
312
|
-
-> {
|
313
|
-
|
314
|
-
|
315
|
-
# # @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::Address::AddressType>]
|
316
|
-
# attr_writer :address_types
|
284
|
+
-> {
|
285
|
+
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityCreateParams::Address::AddressType]
|
286
|
+
}
|
317
287
|
|
318
288
|
# @!attribute line2
|
319
289
|
#
|
320
290
|
# @return [String, nil]
|
321
291
|
optional :line2, String, nil?: true
|
322
292
|
|
323
|
-
# @!
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
#
|
332
|
-
#
|
333
|
-
|
334
|
-
#
|
293
|
+
# @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
|
294
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
295
|
+
#
|
296
|
+
# @param line1 [String, nil]
|
297
|
+
#
|
298
|
+
# @param locality [String, nil] Locality or City.
|
299
|
+
#
|
300
|
+
# @param postal_code [String, nil] The postal code of the address.
|
301
|
+
#
|
302
|
+
# @param region [String, nil] Region or State.
|
303
|
+
#
|
304
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::Address::AddressType>] The types of this address.
|
305
|
+
#
|
306
|
+
# @param line2 [String, nil]
|
335
307
|
|
336
308
|
module AddressType
|
337
309
|
extend ModernTreasury::Internal::Type::Enum
|
@@ -342,11 +314,8 @@ module ModernTreasury
|
|
342
314
|
PO_BOX = :po_box
|
343
315
|
RESIDENTIAL = :residential
|
344
316
|
|
345
|
-
|
346
|
-
|
347
|
-
# @!parse
|
348
|
-
# # @return [Array<Symbol>]
|
349
|
-
# def self.values; end
|
317
|
+
# @!method self.values
|
318
|
+
# @return [Array<Symbol>]
|
350
319
|
end
|
351
320
|
end
|
352
321
|
|
@@ -361,7 +330,14 @@ module ModernTreasury
|
|
361
330
|
# The type of ID number.
|
362
331
|
#
|
363
332
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::Identification::IDType]
|
364
|
-
required :id_type, enum: -> { ModernTreasury::
|
333
|
+
required :id_type, enum: -> { ModernTreasury::LegalEntityCreateParams::Identification::IDType }
|
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
|
365
341
|
|
366
342
|
# @!attribute issuing_country
|
367
343
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
@@ -370,14 +346,26 @@ module ModernTreasury
|
|
370
346
|
# @return [String, nil]
|
371
347
|
optional :issuing_country, String, nil?: true
|
372
348
|
|
373
|
-
# @!
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
|
378
|
-
# def initialize(id_number:, id_type:, issuing_country: nil, **) = super
|
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
|
379
354
|
|
380
|
-
#
|
355
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
356
|
+
# Some parameter documentations has been truncated, see
|
357
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::Identification} for more
|
358
|
+
# details.
|
359
|
+
#
|
360
|
+
# @param id_number [String] The ID number of identification document.
|
361
|
+
#
|
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
|
365
|
+
#
|
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.
|
381
369
|
|
382
370
|
# The type of ID number.
|
383
371
|
#
|
@@ -393,6 +381,7 @@ module ModernTreasury
|
|
393
381
|
CL_RUT = :cl_rut
|
394
382
|
CO_CEDULAS = :co_cedulas
|
395
383
|
CO_NIT = :co_nit
|
384
|
+
DRIVERS_LICENSE = :drivers_license
|
396
385
|
HN_ID = :hn_id
|
397
386
|
HN_RTN = :hn_rtn
|
398
387
|
IN_LEI = :in_lei
|
@@ -407,11 +396,8 @@ module ModernTreasury
|
|
407
396
|
US_SSN = :us_ssn
|
408
397
|
VN_TIN = :vn_tin
|
409
398
|
|
410
|
-
|
411
|
-
|
412
|
-
# @!parse
|
413
|
-
# # @return [Array<Symbol>]
|
414
|
-
# def self.values; end
|
399
|
+
# @!method self.values
|
400
|
+
# @return [Array<Symbol>]
|
415
401
|
end
|
416
402
|
end
|
417
403
|
|
@@ -420,29 +406,23 @@ module ModernTreasury
|
|
420
406
|
#
|
421
407
|
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType>]
|
422
408
|
required :relationship_types,
|
423
|
-
-> {
|
409
|
+
-> {
|
410
|
+
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType]
|
411
|
+
}
|
424
412
|
|
425
|
-
# @!attribute
|
413
|
+
# @!attribute child_legal_entity
|
426
414
|
# The child legal entity.
|
427
415
|
#
|
428
416
|
# @return [ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity, nil]
|
429
417
|
optional :child_legal_entity,
|
430
|
-
-> { ModernTreasury::
|
431
|
-
|
432
|
-
# @!parse
|
433
|
-
# # @return [ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity]
|
434
|
-
# attr_writer :child_legal_entity
|
418
|
+
-> { ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity }
|
435
419
|
|
436
|
-
# @!attribute
|
420
|
+
# @!attribute child_legal_entity_id
|
437
421
|
# The ID of the child legal entity.
|
438
422
|
#
|
439
423
|
# @return [String, nil]
|
440
424
|
optional :child_legal_entity_id, String
|
441
425
|
|
442
|
-
# @!parse
|
443
|
-
# # @return [String]
|
444
|
-
# attr_writer :child_legal_entity_id
|
445
|
-
|
446
426
|
# @!attribute ownership_percentage
|
447
427
|
# The child entity's ownership percentage iff they are a beneficial owner.
|
448
428
|
#
|
@@ -455,25 +435,16 @@ module ModernTreasury
|
|
455
435
|
# @return [String, nil]
|
456
436
|
optional :title, String, nil?: true
|
457
437
|
|
458
|
-
# @!
|
459
|
-
#
|
460
|
-
#
|
461
|
-
#
|
462
|
-
#
|
463
|
-
#
|
464
|
-
#
|
465
|
-
#
|
466
|
-
#
|
467
|
-
#
|
468
|
-
# child_legal_entity_id: nil,
|
469
|
-
# ownership_percentage: nil,
|
470
|
-
# title: nil,
|
471
|
-
# **
|
472
|
-
# )
|
473
|
-
# super
|
474
|
-
# end
|
475
|
-
|
476
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
438
|
+
# @!method initialize(relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil)
|
439
|
+
# @param relationship_types [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::RelationshipType>]
|
440
|
+
#
|
441
|
+
# @param child_legal_entity [ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
442
|
+
#
|
443
|
+
# @param child_legal_entity_id [String] The ID of the child legal entity.
|
444
|
+
#
|
445
|
+
# @param ownership_percentage [Integer, nil] The child entity's ownership percentage iff they are a beneficial owner.
|
446
|
+
#
|
447
|
+
# @param title [String, nil] The job title of the child entity at the parent entity.
|
477
448
|
|
478
449
|
# A list of relationship types for how the child entity relates to parent entity.
|
479
450
|
module RelationshipType
|
@@ -482,30 +453,25 @@ module ModernTreasury
|
|
482
453
|
BENEFICIAL_OWNER = :beneficial_owner
|
483
454
|
CONTROL_PERSON = :control_person
|
484
455
|
|
485
|
-
|
486
|
-
|
487
|
-
# @!parse
|
488
|
-
# # @return [Array<Symbol>]
|
489
|
-
# def self.values; end
|
456
|
+
# @!method self.values
|
457
|
+
# @return [Array<Symbol>]
|
490
458
|
end
|
491
459
|
|
492
460
|
# @see ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation#child_legal_entity
|
493
461
|
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
494
|
-
# @!attribute
|
462
|
+
# @!attribute addresses
|
495
463
|
# A list of addresses for the entity.
|
496
464
|
#
|
497
465
|
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
498
466
|
optional :addresses,
|
499
|
-
-> {
|
500
|
-
|
501
|
-
|
502
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address>]
|
503
|
-
# attr_writer :addresses
|
467
|
+
-> {
|
468
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address]
|
469
|
+
}
|
504
470
|
|
505
471
|
# @!attribute bank_settings
|
506
472
|
#
|
507
473
|
# @return [ModernTreasury::Models::BankSettings, nil]
|
508
|
-
optional :bank_settings, -> { ModernTreasury::
|
474
|
+
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
509
475
|
|
510
476
|
# @!attribute business_name
|
511
477
|
# The business's legal business name.
|
@@ -522,7 +488,7 @@ module ModernTreasury
|
|
522
488
|
# @!attribute compliance_details
|
523
489
|
#
|
524
490
|
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
525
|
-
optional :compliance_details, -> { ModernTreasury::
|
491
|
+
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
526
492
|
|
527
493
|
# @!attribute date_formed
|
528
494
|
# A business's formation date (YYYY-MM-DD).
|
@@ -536,15 +502,11 @@ module ModernTreasury
|
|
536
502
|
# @return [Date, nil]
|
537
503
|
optional :date_of_birth, Date, nil?: true
|
538
504
|
|
539
|
-
# @!attribute
|
505
|
+
# @!attribute doing_business_as_names
|
540
506
|
#
|
541
507
|
# @return [Array<String>, nil]
|
542
508
|
optional :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
|
543
509
|
|
544
|
-
# @!parse
|
545
|
-
# # @return [Array<String>]
|
546
|
-
# attr_writer :doing_business_as_names
|
547
|
-
|
548
510
|
# @!attribute email
|
549
511
|
# The entity's primary email.
|
550
512
|
#
|
@@ -557,27 +519,23 @@ module ModernTreasury
|
|
557
519
|
# @return [String, nil]
|
558
520
|
optional :first_name, String, nil?: true
|
559
521
|
|
560
|
-
# @!attribute
|
522
|
+
# @!attribute identifications
|
561
523
|
# A list of identifications for the legal entity.
|
562
524
|
#
|
563
525
|
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
564
526
|
optional :identifications,
|
565
|
-
-> {
|
566
|
-
|
567
|
-
|
568
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification>]
|
569
|
-
# attr_writer :identifications
|
527
|
+
-> {
|
528
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification]
|
529
|
+
}
|
570
530
|
|
571
|
-
# @!attribute
|
531
|
+
# @!attribute industry_classifications
|
572
532
|
# A list of industry classifications for the legal entity.
|
573
533
|
#
|
574
534
|
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
575
535
|
optional :industry_classifications,
|
576
|
-
-> {
|
577
|
-
|
578
|
-
|
579
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
580
|
-
# attr_writer :industry_classifications
|
536
|
+
-> {
|
537
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
538
|
+
}
|
581
539
|
|
582
540
|
# @!attribute last_name
|
583
541
|
# An individual's last name.
|
@@ -585,51 +543,45 @@ module ModernTreasury
|
|
585
543
|
# @return [String, nil]
|
586
544
|
optional :last_name, String, nil?: true
|
587
545
|
|
588
|
-
# @!attribute
|
546
|
+
# @!attribute legal_entity_type
|
589
547
|
# The type of legal entity.
|
590
548
|
#
|
591
549
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
592
550
|
optional :legal_entity_type,
|
593
|
-
enum: -> {
|
594
|
-
|
595
|
-
|
596
|
-
# # @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
|
597
|
-
# attr_writer :legal_entity_type
|
551
|
+
enum: -> {
|
552
|
+
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
|
553
|
+
}
|
598
554
|
|
599
555
|
# @!attribute legal_structure
|
600
556
|
# The business's legal structure.
|
601
557
|
#
|
602
558
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
603
559
|
optional :legal_structure,
|
604
|
-
enum: -> {
|
560
|
+
enum: -> {
|
561
|
+
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure
|
562
|
+
},
|
605
563
|
nil?: true
|
606
564
|
|
607
|
-
# @!attribute
|
565
|
+
# @!attribute metadata
|
608
566
|
# Additional data represented as key-value pairs. Both the key and value must be
|
609
567
|
# strings.
|
610
568
|
#
|
611
569
|
# @return [Hash{Symbol=>String}, nil]
|
612
570
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
613
571
|
|
614
|
-
# @!parse
|
615
|
-
# # @return [Hash{Symbol=>String}]
|
616
|
-
# attr_writer :metadata
|
617
|
-
|
618
572
|
# @!attribute middle_name
|
619
573
|
# An individual's middle name.
|
620
574
|
#
|
621
575
|
# @return [String, nil]
|
622
576
|
optional :middle_name, String, nil?: true
|
623
577
|
|
624
|
-
# @!attribute
|
578
|
+
# @!attribute phone_numbers
|
625
579
|
#
|
626
580
|
# @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
627
581
|
optional :phone_numbers,
|
628
|
-
-> {
|
629
|
-
|
630
|
-
|
631
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
632
|
-
# attr_writer :phone_numbers
|
582
|
+
-> {
|
583
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
584
|
+
}
|
633
585
|
|
634
586
|
# @!attribute politically_exposed_person
|
635
587
|
# Whether the individual is a politically exposed person.
|
@@ -654,7 +606,9 @@ module ModernTreasury
|
|
654
606
|
#
|
655
607
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
656
608
|
optional :risk_rating,
|
657
|
-
enum: -> {
|
609
|
+
enum: -> {
|
610
|
+
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating
|
611
|
+
},
|
658
612
|
nil?: true
|
659
613
|
|
660
614
|
# @!attribute suffix
|
@@ -667,7 +621,9 @@ module ModernTreasury
|
|
667
621
|
#
|
668
622
|
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
669
623
|
optional :wealth_and_employment_details,
|
670
|
-
-> {
|
624
|
+
-> {
|
625
|
+
ModernTreasury::WealthAndEmploymentDetails
|
626
|
+
},
|
671
627
|
nil?: true
|
672
628
|
|
673
629
|
# @!attribute website
|
@@ -676,67 +632,62 @@ module ModernTreasury
|
|
676
632
|
# @return [String, nil]
|
677
633
|
optional :website, String, nil?: true
|
678
634
|
|
679
|
-
# @!
|
680
|
-
#
|
681
|
-
#
|
682
|
-
#
|
683
|
-
#
|
684
|
-
#
|
685
|
-
#
|
686
|
-
#
|
687
|
-
#
|
688
|
-
#
|
689
|
-
#
|
690
|
-
#
|
691
|
-
#
|
692
|
-
#
|
693
|
-
#
|
694
|
-
#
|
695
|
-
#
|
696
|
-
#
|
697
|
-
#
|
698
|
-
#
|
699
|
-
#
|
700
|
-
#
|
701
|
-
#
|
702
|
-
#
|
703
|
-
#
|
704
|
-
#
|
705
|
-
#
|
706
|
-
#
|
707
|
-
#
|
708
|
-
#
|
709
|
-
#
|
710
|
-
#
|
711
|
-
#
|
712
|
-
#
|
713
|
-
#
|
714
|
-
#
|
715
|
-
#
|
716
|
-
#
|
717
|
-
#
|
718
|
-
#
|
719
|
-
#
|
720
|
-
#
|
721
|
-
#
|
722
|
-
#
|
723
|
-
#
|
724
|
-
#
|
725
|
-
#
|
726
|
-
#
|
727
|
-
#
|
728
|
-
#
|
729
|
-
#
|
730
|
-
#
|
731
|
-
#
|
732
|
-
#
|
733
|
-
#
|
734
|
-
#
|
735
|
-
# )
|
736
|
-
# super
|
737
|
-
# end
|
738
|
-
|
739
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
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)
|
636
|
+
# Some parameter documentations has been truncated, see
|
637
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity}
|
638
|
+
# for more details.
|
639
|
+
#
|
640
|
+
# The child legal entity.
|
641
|
+
#
|
642
|
+
# @param addresses [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
643
|
+
#
|
644
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
645
|
+
#
|
646
|
+
# @param business_name [String, nil] The business's legal business name.
|
647
|
+
#
|
648
|
+
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
649
|
+
#
|
650
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
651
|
+
#
|
652
|
+
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
653
|
+
#
|
654
|
+
# @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
|
655
|
+
#
|
656
|
+
# @param doing_business_as_names [Array<String>]
|
657
|
+
#
|
658
|
+
# @param email [String, nil] The entity's primary email.
|
659
|
+
#
|
660
|
+
# @param first_name [String, nil] An individual's first name.
|
661
|
+
#
|
662
|
+
# @param identifications [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
663
|
+
#
|
664
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
665
|
+
#
|
666
|
+
# @param last_name [String, nil] An individual's last name.
|
667
|
+
#
|
668
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
669
|
+
#
|
670
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
671
|
+
#
|
672
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
673
|
+
#
|
674
|
+
# @param middle_name [String, nil] An individual's middle name.
|
675
|
+
#
|
676
|
+
# @param phone_numbers [Array<ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
677
|
+
#
|
678
|
+
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
679
|
+
#
|
680
|
+
# @param preferred_name [String, nil] An individual's preferred name.
|
681
|
+
#
|
682
|
+
# @param prefix [String, nil] An individual's prefix.
|
683
|
+
#
|
684
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
685
|
+
#
|
686
|
+
# @param suffix [String, nil] An individual's suffix.
|
687
|
+
#
|
688
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
689
|
+
#
|
690
|
+
# @param website [String, nil] The entity's primary website URL.
|
740
691
|
|
741
692
|
class Address < ModernTreasury::Internal::Type::BaseModel
|
742
693
|
# @!attribute country
|
@@ -768,38 +719,36 @@ module ModernTreasury
|
|
768
719
|
# @return [String, nil]
|
769
720
|
required :region, String, nil?: true
|
770
721
|
|
771
|
-
# @!attribute
|
722
|
+
# @!attribute address_types
|
772
723
|
# The types of this address.
|
773
724
|
#
|
774
725
|
# @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
775
726
|
optional :address_types,
|
776
727
|
-> do
|
777
728
|
ModernTreasury::Internal::Type::ArrayOf[
|
778
|
-
enum: ModernTreasury::
|
729
|
+
enum: ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
|
779
730
|
]
|
780
731
|
end
|
781
732
|
|
782
|
-
# @!parse
|
783
|
-
# # @return [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
|
784
|
-
# attr_writer :address_types
|
785
|
-
|
786
733
|
# @!attribute line2
|
787
734
|
#
|
788
735
|
# @return [String, nil]
|
789
736
|
optional :line2, String, nil?: true
|
790
737
|
|
791
|
-
# @!
|
792
|
-
#
|
793
|
-
#
|
794
|
-
#
|
795
|
-
#
|
796
|
-
#
|
797
|
-
#
|
798
|
-
#
|
799
|
-
#
|
800
|
-
#
|
801
|
-
|
802
|
-
#
|
738
|
+
# @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
|
739
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
740
|
+
#
|
741
|
+
# @param line1 [String, nil]
|
742
|
+
#
|
743
|
+
# @param locality [String, nil] Locality or City.
|
744
|
+
#
|
745
|
+
# @param postal_code [String, nil] The postal code of the address.
|
746
|
+
#
|
747
|
+
# @param region [String, nil] Region or State.
|
748
|
+
#
|
749
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
750
|
+
#
|
751
|
+
# @param line2 [String, nil]
|
803
752
|
|
804
753
|
module AddressType
|
805
754
|
extend ModernTreasury::Internal::Type::Enum
|
@@ -810,11 +759,8 @@ module ModernTreasury
|
|
810
759
|
PO_BOX = :po_box
|
811
760
|
RESIDENTIAL = :residential
|
812
761
|
|
813
|
-
|
814
|
-
|
815
|
-
# @!parse
|
816
|
-
# # @return [Array<Symbol>]
|
817
|
-
# def self.values; end
|
762
|
+
# @!method self.values
|
763
|
+
# @return [Array<Symbol>]
|
818
764
|
end
|
819
765
|
end
|
820
766
|
|
@@ -830,7 +776,16 @@ module ModernTreasury
|
|
830
776
|
#
|
831
777
|
# @return [Symbol, ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
832
778
|
required :id_type,
|
833
|
-
enum: -> {
|
779
|
+
enum: -> {
|
780
|
+
ModernTreasury::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
|
781
|
+
}
|
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
|
834
789
|
|
835
790
|
# @!attribute issuing_country
|
836
791
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
@@ -839,14 +794,26 @@ module ModernTreasury
|
|
839
794
|
# @return [String, nil]
|
840
795
|
optional :issuing_country, String, nil?: true
|
841
796
|
|
842
|
-
# @!
|
843
|
-
#
|
844
|
-
#
|
845
|
-
#
|
846
|
-
|
847
|
-
# def initialize(id_number:, id_type:, issuing_country: nil, **) = super
|
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
|
848
802
|
|
849
|
-
#
|
803
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
804
|
+
# Some parameter documentations has been truncated, see
|
805
|
+
# {ModernTreasury::Models::LegalEntityCreateParams::LegalEntityAssociation::ChildLegalEntity::Identification}
|
806
|
+
# for more details.
|
807
|
+
#
|
808
|
+
# @param id_number [String] The ID number of identification document.
|
809
|
+
#
|
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
|
813
|
+
#
|
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.
|
850
817
|
|
851
818
|
# The type of ID number.
|
852
819
|
#
|
@@ -862,6 +829,7 @@ module ModernTreasury
|
|
862
829
|
CL_RUT = :cl_rut
|
863
830
|
CO_CEDULAS = :co_cedulas
|
864
831
|
CO_NIT = :co_nit
|
832
|
+
DRIVERS_LICENSE = :drivers_license
|
865
833
|
HN_ID = :hn_id
|
866
834
|
HN_RTN = :hn_rtn
|
867
835
|
IN_LEI = :in_lei
|
@@ -876,11 +844,8 @@ module ModernTreasury
|
|
876
844
|
US_SSN = :us_ssn
|
877
845
|
VN_TIN = :vn_tin
|
878
846
|
|
879
|
-
|
880
|
-
|
881
|
-
# @!parse
|
882
|
-
# # @return [Array<Symbol>]
|
883
|
-
# def self.values; end
|
847
|
+
# @!method self.values
|
848
|
+
# @return [Array<Symbol>]
|
884
849
|
end
|
885
850
|
end
|
886
851
|
|
@@ -893,11 +858,8 @@ module ModernTreasury
|
|
893
858
|
BUSINESS = :business
|
894
859
|
INDIVIDUAL = :individual
|
895
860
|
|
896
|
-
|
897
|
-
|
898
|
-
# @!parse
|
899
|
-
# # @return [Array<Symbol>]
|
900
|
-
# def self.values; end
|
861
|
+
# @!method self.values
|
862
|
+
# @return [Array<Symbol>]
|
901
863
|
end
|
902
864
|
|
903
865
|
# The business's legal structure.
|
@@ -913,31 +875,20 @@ module ModernTreasury
|
|
913
875
|
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
914
876
|
TRUST = :trust
|
915
877
|
|
916
|
-
|
917
|
-
|
918
|
-
# @!parse
|
919
|
-
# # @return [Array<Symbol>]
|
920
|
-
# def self.values; end
|
878
|
+
# @!method self.values
|
879
|
+
# @return [Array<Symbol>]
|
921
880
|
end
|
922
881
|
|
923
882
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
924
|
-
# @!attribute
|
883
|
+
# @!attribute phone_number
|
925
884
|
#
|
926
885
|
# @return [String, nil]
|
927
886
|
optional :phone_number, String
|
928
887
|
|
929
|
-
# @!
|
930
|
-
#
|
931
|
-
#
|
932
|
-
|
933
|
-
# @!parse
|
934
|
-
# # A list of phone numbers in E.164 format.
|
935
|
-
# #
|
936
|
-
# # @param phone_number [String]
|
937
|
-
# #
|
938
|
-
# def initialize(phone_number: nil, **) = super
|
939
|
-
|
940
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
888
|
+
# @!method initialize(phone_number: nil)
|
889
|
+
# A list of phone numbers in E.164 format.
|
890
|
+
#
|
891
|
+
# @param phone_number [String]
|
941
892
|
end
|
942
893
|
|
943
894
|
# The risk rating of the legal entity. One of low, medium, high.
|
@@ -950,11 +901,8 @@ module ModernTreasury
|
|
950
901
|
MEDIUM = :medium
|
951
902
|
HIGH = :high
|
952
903
|
|
953
|
-
|
954
|
-
|
955
|
-
# @!parse
|
956
|
-
# # @return [Array<Symbol>]
|
957
|
-
# def self.values; end
|
904
|
+
# @!method self.values
|
905
|
+
# @return [Array<Symbol>]
|
958
906
|
end
|
959
907
|
end
|
960
908
|
end
|
@@ -970,31 +918,20 @@ module ModernTreasury
|
|
970
918
|
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
971
919
|
TRUST = :trust
|
972
920
|
|
973
|
-
|
974
|
-
|
975
|
-
# @!parse
|
976
|
-
# # @return [Array<Symbol>]
|
977
|
-
# def self.values; end
|
921
|
+
# @!method self.values
|
922
|
+
# @return [Array<Symbol>]
|
978
923
|
end
|
979
924
|
|
980
925
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
981
|
-
# @!attribute
|
926
|
+
# @!attribute phone_number
|
982
927
|
#
|
983
928
|
# @return [String, nil]
|
984
929
|
optional :phone_number, String
|
985
930
|
|
986
|
-
# @!
|
987
|
-
#
|
988
|
-
#
|
989
|
-
|
990
|
-
# @!parse
|
991
|
-
# # A list of phone numbers in E.164 format.
|
992
|
-
# #
|
993
|
-
# # @param phone_number [String]
|
994
|
-
# #
|
995
|
-
# def initialize(phone_number: nil, **) = super
|
996
|
-
|
997
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
931
|
+
# @!method initialize(phone_number: nil)
|
932
|
+
# A list of phone numbers in E.164 format.
|
933
|
+
#
|
934
|
+
# @param phone_number [String]
|
998
935
|
end
|
999
936
|
|
1000
937
|
# The risk rating of the legal entity. One of low, medium, high.
|
@@ -1005,11 +942,8 @@ module ModernTreasury
|
|
1005
942
|
MEDIUM = :medium
|
1006
943
|
HIGH = :high
|
1007
944
|
|
1008
|
-
|
1009
|
-
|
1010
|
-
# @!parse
|
1011
|
-
# # @return [Array<Symbol>]
|
1012
|
-
# def self.values; end
|
945
|
+
# @!method self.values
|
946
|
+
# @return [Array<Symbol>]
|
1013
947
|
end
|
1014
948
|
end
|
1015
949
|
end
|