modern_treasury 0.1.0.pre.alpha.18 → 0.1.0.pre.alpha.19
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 +65 -0
- data/README.md +64 -55
- data/lib/modern_treasury/client.rb +6 -6
- 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 +16 -6
- data/lib/modern_treasury/internal/type/array_of.rb +11 -0
- data/lib/modern_treasury/internal/type/base_model.rb +98 -39
- data/lib/modern_treasury/internal/type/base_page.rb +9 -1
- data/lib/modern_treasury/internal/type/boolean.rb +14 -11
- data/lib/modern_treasury/internal/type/converter.rb +22 -1
- data/lib/modern_treasury/internal/type/enum.rb +23 -19
- data/lib/modern_treasury/internal/type/{io_like.rb → file_input.rb} +34 -15
- data/lib/modern_treasury/internal/type/hash_of.rb +11 -0
- data/lib/modern_treasury/internal/type/request_parameters.rb +7 -14
- data/lib/modern_treasury/internal/type/union.rb +12 -2
- data/lib/modern_treasury/internal/type/unknown.rb +14 -11
- data/lib/modern_treasury/internal/util.rb +144 -64
- data/lib/modern_treasury/internal.rb +6 -1
- data/lib/modern_treasury/models/account_collection_flow.rb +50 -93
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +16 -23
- 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 +12 -16
- data/lib/modern_treasury/models/account_detail.rb +27 -40
- data/lib/modern_treasury/models/account_detail_create_params.rb +21 -31
- data/lib/modern_treasury/models/account_detail_delete_params.rb +9 -17
- data/lib/modern_treasury/models/account_detail_list_params.rb +9 -18
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +7 -12
- 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 +42 -57
- data/lib/modern_treasury/models/bulk_request_create_params.rb +1223 -1758
- data/lib/modern_treasury/models/bulk_request_list_params.rb +36 -72
- data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/bulk_result.rb +90 -104
- data/lib/modern_treasury/models/bulk_result_list_params.rb +39 -79
- 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 +28 -37
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +326 -442
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +16 -50
- data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +10 -21
- data/lib/modern_treasury/models/connection_list_params.rb +14 -27
- data/lib/modern_treasury/models/counterparty.rb +176 -256
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +25 -36
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +9 -8
- data/lib/modern_treasury/models/counterparty_create_params.rb +537 -794
- 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 +2 -5
- data/lib/modern_treasury/models/document.rb +65 -94
- data/lib/modern_treasury/models/document_create_params.rb +18 -26
- data/lib/modern_treasury/models/document_list_params.rb +21 -34
- 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 +76 -91
- data/lib/modern_treasury/models/expected_payment_create_params.rb +151 -227
- data/lib/modern_treasury/models/expected_payment_delete_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment_list_params.rb +46 -95
- data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment_type.rb +2 -5
- data/lib/modern_treasury/models/expected_payment_update_params.rb +56 -75
- data/lib/modern_treasury/models/external_account.rb +120 -152
- data/lib/modern_treasury/models/external_account_complete_verification_params.rb +5 -14
- data/lib/modern_treasury/models/external_account_create_params.rb +155 -263
- 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 +2 -5
- data/lib/modern_treasury/models/external_account_update_params.rb +45 -72
- data/lib/modern_treasury/models/external_account_verify_params.rb +34 -62
- data/lib/modern_treasury/models/external_account_verify_response.rb +42 -48
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +55 -60
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +26 -49
- 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 +79 -97
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +39 -68
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +42 -87
- 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 +89 -109
- data/lib/modern_treasury/models/internal_account_create_params.rb +50 -83
- data/lib/modern_treasury/models/internal_account_list_params.rb +37 -75
- 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 +70 -84
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +43 -39
- 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 +22 -34
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +4 -9
- data/lib/modern_treasury/models/invoice.rb +179 -213
- data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +4 -9
- data/lib/modern_treasury/models/invoice_create_params.rb +178 -262
- data/lib/modern_treasury/models/invoice_list_params.rb +44 -94
- data/lib/modern_treasury/models/invoice_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/invoice_update_params.rb +182 -282
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +29 -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 +113 -128
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +126 -119
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +33 -34
- 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 +98 -104
- 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 +26 -41
- data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +44 -95
- 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 +20 -37
- data/lib/modern_treasury/models/ledger_account_category_update_params.rb +14 -21
- data/lib/modern_treasury/models/ledger_account_create_params.rb +36 -62
- data/lib/modern_treasury/models/ledger_account_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_list_params.rb +120 -283
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +29 -67
- data/lib/modern_treasury/models/ledger_account_settlement.rb +42 -51
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +27 -43
- 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 +18 -28
- 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 +145 -147
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +146 -147
- 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 +113 -121
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +93 -197
- 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 +68 -70
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +58 -67
- 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 +17 -18
- 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 +53 -68
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +67 -117
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +42 -51
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +35 -71
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +92 -197
- data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +63 -109
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +179 -186
- 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 +166 -191
- data/lib/modern_treasury/models/legal_entity_association.rb +207 -231
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +179 -233
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +27 -33
- data/lib/modern_treasury/models/legal_entity_create_params.rb +312 -415
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +24 -33
- data/lib/modern_treasury/models/legal_entity_list_params.rb +24 -50
- data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/legal_entity_update_params.rb +130 -176
- data/lib/modern_treasury/models/line_item.rb +45 -54
- data/lib/modern_treasury/models/line_item_list_params.rb +11 -23
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +9 -17
- data/lib/modern_treasury/models/line_item_update_params.rb +17 -23
- data/lib/modern_treasury/models/paper_item.rb +46 -55
- 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_flow.rb +75 -139
- data/lib/modern_treasury/models/payment_flow_create_params.rb +23 -37
- 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 +12 -16
- data/lib/modern_treasury/models/payment_order.rb +222 -237
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +391 -602
- data/lib/modern_treasury/models/payment_order_create_params.rb +414 -635
- data/lib/modern_treasury/models/payment_order_list_params.rb +70 -150
- 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 +2 -5
- data/lib/modern_treasury/models/payment_order_update_params.rb +320 -495
- data/lib/modern_treasury/models/payment_orders/reversal.rb +35 -47
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +95 -149
- 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 -44
- data/lib/modern_treasury/models/payment_reference_list_params.rb +24 -51
- 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 +37 -53
- data/lib/modern_treasury/models/return_create_params.rb +28 -41
- data/lib/modern_treasury/models/return_list_params.rb +27 -57
- data/lib/modern_treasury/models/return_object.rb +104 -123
- data/lib/modern_treasury/models/return_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/routing_detail.rb +63 -81
- data/lib/modern_treasury/models/routing_detail_create_params.rb +26 -36
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +9 -17
- data/lib/modern_treasury/models/routing_detail_list_params.rb +9 -18
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +7 -12
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +53 -84
- data/lib/modern_treasury/models/transaction.rb +93 -106
- data/lib/modern_treasury/models/transaction_create_params.rb +32 -50
- 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 +15 -35
- data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +43 -55
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +15 -17
- data/lib/modern_treasury/models/virtual_account.rb +39 -47
- data/lib/modern_treasury/models/virtual_account_create_params.rb +115 -187
- 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 +73 -95
- data/lib/modern_treasury/models.rb +442 -0
- data/lib/modern_treasury/request_options.rb +8 -6
- data/lib/modern_treasury/resources/account_collection_flows.rb +25 -16
- data/lib/modern_treasury/resources/account_details.rb +41 -24
- data/lib/modern_treasury/resources/bulk_requests.rb +34 -17
- data/lib/modern_treasury/resources/bulk_results.rb +22 -11
- data/lib/modern_treasury/resources/connection_legal_entities.rb +24 -18
- data/lib/modern_treasury/resources/connections.rb +9 -5
- data/lib/modern_treasury/resources/counterparties.rb +90 -45
- data/lib/modern_treasury/resources/documents.rb +27 -15
- data/lib/modern_treasury/resources/events.rb +16 -8
- data/lib/modern_treasury/resources/expected_payments.rb +118 -60
- data/lib/modern_treasury/resources/external_accounts.rb +93 -45
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +44 -22
- data/lib/modern_treasury/resources/incoming_payment_details.rb +61 -30
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +48 -21
- data/lib/modern_treasury/resources/internal_accounts.rb +66 -33
- data/lib/modern_treasury/resources/invoices/line_items.rb +67 -37
- data/lib/modern_treasury/resources/invoices.rb +145 -71
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +51 -25
- data/lib/modern_treasury/resources/ledger_account_categories.rb +91 -50
- data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +18 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +60 -28
- data/lib/modern_treasury/resources/ledger_account_statements.rb +16 -7
- data/lib/modern_treasury/resources/ledger_accounts.rb +83 -40
- data/lib/modern_treasury/resources/ledger_entries.rb +60 -27
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +41 -21
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +17 -7
- data/lib/modern_treasury/resources/ledger_transactions.rb +124 -57
- data/lib/modern_treasury/resources/ledgerable_events.rb +18 -10
- data/lib/modern_treasury/resources/ledgers.rb +48 -25
- data/lib/modern_treasury/resources/legal_entities.rb +129 -63
- data/lib/modern_treasury/resources/legal_entity_associations.rb +18 -9
- data/lib/modern_treasury/resources/line_items.rb +34 -20
- data/lib/modern_treasury/resources/paper_items.rb +18 -9
- data/lib/modern_treasury/resources/payment_flows.rb +35 -20
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +28 -16
- data/lib/modern_treasury/resources/payment_orders.rb +267 -132
- data/lib/modern_treasury/resources/payment_references.rb +18 -9
- data/lib/modern_treasury/resources/returns.rb +40 -20
- data/lib/modern_treasury/resources/routing_details.rb +43 -25
- data/lib/modern_treasury/resources/transactions/line_items.rb +22 -14
- data/lib/modern_treasury/resources/transactions.rb +69 -32
- data/lib/modern_treasury/resources/validations.rb +11 -5
- data/lib/modern_treasury/resources/virtual_accounts.rb +56 -28
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +5 -10
- data/rbi/{lib/modern_treasury → modern_treasury}/client.rbi +13 -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/{lib/modern_treasury → modern_treasury}/internal/transport/pooled_net_requester.rbi +29 -13
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/array_of.rbi +40 -23
- data/rbi/modern_treasury/internal/type/base_model.rbi +305 -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 +12 -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 +26 -18
- data/rbi/{lib/modern_treasury/internal/type/io_like.rbi → modern_treasury/internal/type/file_input.rbi} +14 -6
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/hash_of.rbi +40 -23
- data/rbi/modern_treasury/internal/type/request_parameters.rbi +31 -0
- data/rbi/modern_treasury/internal/type/union.rbi +111 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/unknown.rbi +16 -6
- data/rbi/modern_treasury/internal/util.rbi +451 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal.rbi +2 -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 +178 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +189 -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 +226 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +7094 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +259 -0
- data/rbi/modern_treasury/models/bulk_request_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +413 -0
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +265 -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 +2006 -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 +3441 -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 +207 -0
- data/rbi/modern_treasury/models/document.rbi +336 -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 +380 -0
- data/rbi/modern_treasury/models/expected_payment_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +65 -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 +1156 -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 +39 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +237 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +367 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/external_account_verify_response.rbi +93 -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 +597 -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 +407 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_account_create_params.rbi +115 -56
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +315 -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 +51 -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 +852 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +1089 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +1033 -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 +1894 -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 +805 -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 +69 -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_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 +1477 -0
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +2433 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +2591 -0
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +522 -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 +59 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +2096 -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 +544 -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 +272 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +265 -0
- data/rbi/modern_treasury/models/return_list_params.rbi +162 -0
- data/rbi/modern_treasury/models/return_object.rbi +945 -0
- data/rbi/modern_treasury/models/return_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +506 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +435 -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 +474 -0
- data/rbi/modern_treasury/models/transaction.rbi +572 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +326 -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 +917 -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 +489 -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 +57 -37
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/external_accounts.rbi +77 -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 +34 -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/{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 +1 -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 +2 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +2 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +17 -1
- data/sig/modern_treasury/internal/type/base_page.rbs +1 -1
- data/sig/modern_treasury/internal/type/converter.rbs +2 -0
- data/sig/modern_treasury/internal/type/enum.rbs +3 -2
- data/sig/modern_treasury/internal/type/{io_like.rbs → file_input.rbs} +1 -1
- data/sig/modern_treasury/internal/type/hash_of.rbs +2 -0
- data/sig/modern_treasury/internal/type/request_parameters.rbs +5 -1
- data/sig/modern_treasury/internal/type/union.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +29 -12
- data/sig/modern_treasury/internal.rbs +2 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +16 -18
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +6 -8
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +0 -2
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +0 -2
- data/sig/modern_treasury/models/account_detail.rbs +4 -6
- data/sig/modern_treasury/models/account_detail_create_params.rbs +0 -2
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/account_detail_list_params.rbs +0 -2
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/async_response.rbs +0 -2
- data/sig/modern_treasury/models/bank_settings.rbs +0 -2
- data/sig/modern_treasury/models/bulk_request.rbs +12 -14
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +312 -378
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +0 -2
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/bulk_result.rbs +24 -30
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +0 -2
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/client_ping_params.rbs +0 -2
- data/sig/modern_treasury/models/connection.rbs +0 -2
- data/sig/modern_treasury/models/connection_legal_entity.rbs +4 -6
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +123 -143
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +0 -2
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +0 -2
- data/sig/modern_treasury/models/connection_list_params.rbs +0 -2
- data/sig/modern_treasury/models/counterparty.rbs +43 -51
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +6 -8
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +0 -2
- data/sig/modern_treasury/models/counterparty_create_params.rbs +194 -230
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/counterparty_list_params.rbs +0 -2
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/counterparty_update_params.rbs +0 -2
- data/sig/modern_treasury/models/document.rbs +10 -16
- data/sig/modern_treasury/models/document_create_params.rbs +3 -5
- data/sig/modern_treasury/models/document_list_params.rbs +0 -2
- data/sig/modern_treasury/models/document_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/event.rbs +0 -2
- data/sig/modern_treasury/models/event_list_params.rbs +0 -2
- data/sig/modern_treasury/models/event_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/expected_payment.rbs +15 -17
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +28 -36
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -2
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +3 -5
- data/sig/modern_treasury/models/external_account.rbs +28 -34
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +0 -2
- data/sig/modern_treasury/models/external_account_create_params.rbs +53 -65
- data/sig/modern_treasury/models/external_account_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/external_account_list_params.rbs +0 -2
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/external_account_update_params.rbs +5 -9
- data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -2
- data/sig/modern_treasury/models/external_account_verify_response.rbs +2 -4
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +3 -7
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +0 -2
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +0 -2
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +19 -21
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -2
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -2
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +0 -2
- data/sig/modern_treasury/models/internal_account.rbs +20 -24
- data/sig/modern_treasury/models/internal_account_create_params.rbs +5 -9
- data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -2
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/internal_account_update_params.rbs +0 -2
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +11 -15
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +7 -11
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +0 -2
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/invoice.rbs +34 -44
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +0 -2
- data/sig/modern_treasury/models/invoice_create_params.rbs +21 -33
- data/sig/modern_treasury/models/invoice_list_params.rbs +0 -2
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/invoice_update_params.rbs +21 -33
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +0 -2
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +0 -2
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +0 -2
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account.rbs +16 -26
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +18 -32
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +3 -7
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_category.rbs +12 -22
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -9
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +5 -9
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +20 -30
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +5 -11
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +4 -6
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +0 -18
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +0 -18
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_create_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_entry.rbs +16 -26
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +17 -21
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_event_handler.rbs +12 -20
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +12 -20
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +3 -10
- data/sig/modern_treasury/models/ledger_list_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction.rbs +11 -13
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +3 -7
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +7 -11
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +17 -21
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +5 -9
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +27 -39
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_update_params.rbs +0 -2
- data/sig/modern_treasury/models/ledgerable_event.rbs +0 -2
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -2
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/legal_entity.rbs +44 -52
- data/sig/modern_treasury/models/legal_entity_association.rbs +48 -58
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +62 -72
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +0 -2
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +104 -122
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +4 -6
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +0 -2
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +39 -47
- data/sig/modern_treasury/models/line_item.rbs +7 -11
- data/sig/modern_treasury/models/line_item_list_params.rbs +0 -2
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/line_item_update_params.rbs +0 -2
- data/sig/modern_treasury/models/paper_item.rbs +4 -6
- data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -2
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_flow.rbs +22 -24
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_order.rbs +49 -58
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +92 -114
- data/sig/modern_treasury/models/payment_order_create_params.rbs +104 -128
- data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_order_update_params.rbs +72 -90
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +8 -10
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +20 -26
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_reference.rbs +8 -10
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +0 -2
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/ping_response.rbs +0 -2
- data/sig/modern_treasury/models/reconciliation_rule.rbs +8 -10
- data/sig/modern_treasury/models/return_create_params.rbs +0 -2
- data/sig/modern_treasury/models/return_list_params.rbs +0 -2
- data/sig/modern_treasury/models/return_object.rbs +30 -34
- data/sig/modern_treasury/models/return_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/routing_detail.rbs +11 -15
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -2
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +0 -2
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +17 -21
- data/sig/modern_treasury/models/transaction.rbs +11 -15
- data/sig/modern_treasury/models/transaction_create_params.rbs +0 -2
- data/sig/modern_treasury/models/transaction_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/transaction_list_params.rbs +0 -2
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/transaction_update_params.rbs +0 -2
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +0 -2
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +0 -2
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +8 -10
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account.rbs +6 -8
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +35 -43
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +0 -2
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +24 -26
- data/sig/modern_treasury/models.rbs +403 -0
- data/sig/modern_treasury/request_options.rbs +1 -1
- data/sig/modern_treasury/resources/account_collection_flows.rbs +5 -5
- data/sig/modern_treasury/resources/account_details.rbs +3 -3
- data/sig/modern_treasury/resources/bulk_requests.rbs +4 -4
- 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 +9 -9
- 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 +9 -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 +5 -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 +3 -3
- 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_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 +297 -291
- data/rbi/lib/modern_treasury/internal/transport/base_client.rbi +0 -199
- 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_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
@@ -1,2902 +0,0 @@
|
|
1
|
-
# typed: strong
|
2
|
-
|
3
|
-
module ModernTreasury
|
4
|
-
module Models
|
5
|
-
class CounterpartyCreateParams < ModernTreasury::Internal::Type::BaseModel
|
6
|
-
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
7
|
-
include ModernTreasury::Internal::Type::RequestParameters
|
8
|
-
|
9
|
-
# A human friendly name for this counterparty.
|
10
|
-
sig { returns(T.nilable(String)) }
|
11
|
-
attr_accessor :name
|
12
|
-
|
13
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Accounting)) }
|
14
|
-
attr_reader :accounting
|
15
|
-
|
16
|
-
sig do
|
17
|
-
params(
|
18
|
-
accounting: T.any(ModernTreasury::Models::CounterpartyCreateParams::Accounting, ModernTreasury::Internal::AnyHash)
|
19
|
-
)
|
20
|
-
.void
|
21
|
-
end
|
22
|
-
attr_writer :accounting
|
23
|
-
|
24
|
-
# The accounts for this counterparty.
|
25
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account])) }
|
26
|
-
attr_reader :accounts
|
27
|
-
|
28
|
-
sig do
|
29
|
-
params(
|
30
|
-
accounts: T::Array[T.any(ModernTreasury::Models::CounterpartyCreateParams::Account, ModernTreasury::Internal::AnyHash)]
|
31
|
-
)
|
32
|
-
.void
|
33
|
-
end
|
34
|
-
attr_writer :accounts
|
35
|
-
|
36
|
-
# The counterparty's email.
|
37
|
-
sig { returns(T.nilable(String)) }
|
38
|
-
attr_accessor :email
|
39
|
-
|
40
|
-
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
41
|
-
# or `vendor`.
|
42
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LedgerType::OrSymbol)) }
|
43
|
-
attr_reader :ledger_type
|
44
|
-
|
45
|
-
sig { params(ledger_type: ModernTreasury::Models::CounterpartyCreateParams::LedgerType::OrSymbol).void }
|
46
|
-
attr_writer :ledger_type
|
47
|
-
|
48
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity)) }
|
49
|
-
attr_reader :legal_entity
|
50
|
-
|
51
|
-
sig do
|
52
|
-
params(
|
53
|
-
legal_entity: T.any(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity, ModernTreasury::Internal::AnyHash)
|
54
|
-
)
|
55
|
-
.void
|
56
|
-
end
|
57
|
-
attr_writer :legal_entity
|
58
|
-
|
59
|
-
# The id of the legal entity.
|
60
|
-
sig { returns(T.nilable(String)) }
|
61
|
-
attr_accessor :legal_entity_id
|
62
|
-
|
63
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
64
|
-
# strings.
|
65
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
66
|
-
attr_reader :metadata
|
67
|
-
|
68
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
69
|
-
attr_writer :metadata
|
70
|
-
|
71
|
-
# Send an email to the counterparty whenever an associated payment order is sent
|
72
|
-
# to the bank.
|
73
|
-
sig { returns(T.nilable(T::Boolean)) }
|
74
|
-
attr_reader :send_remittance_advice
|
75
|
-
|
76
|
-
sig { params(send_remittance_advice: T::Boolean).void }
|
77
|
-
attr_writer :send_remittance_advice
|
78
|
-
|
79
|
-
# Either a valid SSN or EIN.
|
80
|
-
sig { returns(T.nilable(String)) }
|
81
|
-
attr_reader :taxpayer_identifier
|
82
|
-
|
83
|
-
sig { params(taxpayer_identifier: String).void }
|
84
|
-
attr_writer :taxpayer_identifier
|
85
|
-
|
86
|
-
# The verification status of the counterparty.
|
87
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::OrSymbol)) }
|
88
|
-
attr_reader :verification_status
|
89
|
-
|
90
|
-
sig do
|
91
|
-
params(
|
92
|
-
verification_status: ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::OrSymbol
|
93
|
-
)
|
94
|
-
.void
|
95
|
-
end
|
96
|
-
attr_writer :verification_status
|
97
|
-
|
98
|
-
sig do
|
99
|
-
params(
|
100
|
-
name: T.nilable(String),
|
101
|
-
accounting: T.any(ModernTreasury::Models::CounterpartyCreateParams::Accounting, ModernTreasury::Internal::AnyHash),
|
102
|
-
accounts: T::Array[T.any(ModernTreasury::Models::CounterpartyCreateParams::Account, ModernTreasury::Internal::AnyHash)],
|
103
|
-
email: T.nilable(String),
|
104
|
-
ledger_type: ModernTreasury::Models::CounterpartyCreateParams::LedgerType::OrSymbol,
|
105
|
-
legal_entity: T.any(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity, ModernTreasury::Internal::AnyHash),
|
106
|
-
legal_entity_id: T.nilable(String),
|
107
|
-
metadata: T::Hash[Symbol, String],
|
108
|
-
send_remittance_advice: T::Boolean,
|
109
|
-
taxpayer_identifier: String,
|
110
|
-
verification_status: ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::OrSymbol,
|
111
|
-
request_options: T.any(ModernTreasury::RequestOptions, ModernTreasury::Internal::AnyHash)
|
112
|
-
)
|
113
|
-
.returns(T.attached_class)
|
114
|
-
end
|
115
|
-
def self.new(
|
116
|
-
name:,
|
117
|
-
accounting: nil,
|
118
|
-
accounts: nil,
|
119
|
-
email: nil,
|
120
|
-
ledger_type: nil,
|
121
|
-
legal_entity: nil,
|
122
|
-
legal_entity_id: nil,
|
123
|
-
metadata: nil,
|
124
|
-
send_remittance_advice: nil,
|
125
|
-
taxpayer_identifier: nil,
|
126
|
-
verification_status: nil,
|
127
|
-
request_options: {}
|
128
|
-
); end
|
129
|
-
sig do
|
130
|
-
override
|
131
|
-
.returns(
|
132
|
-
{
|
133
|
-
name: T.nilable(String),
|
134
|
-
accounting: ModernTreasury::Models::CounterpartyCreateParams::Accounting,
|
135
|
-
accounts: T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account],
|
136
|
-
email: T.nilable(String),
|
137
|
-
ledger_type: ModernTreasury::Models::CounterpartyCreateParams::LedgerType::OrSymbol,
|
138
|
-
legal_entity: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity,
|
139
|
-
legal_entity_id: T.nilable(String),
|
140
|
-
metadata: T::Hash[Symbol, String],
|
141
|
-
send_remittance_advice: T::Boolean,
|
142
|
-
taxpayer_identifier: String,
|
143
|
-
verification_status: ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::OrSymbol,
|
144
|
-
request_options: ModernTreasury::RequestOptions
|
145
|
-
}
|
146
|
-
)
|
147
|
-
end
|
148
|
-
def to_hash; end
|
149
|
-
|
150
|
-
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
151
|
-
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
152
|
-
# or `vendor`.
|
153
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::OrSymbol)) }
|
154
|
-
attr_reader :type
|
155
|
-
|
156
|
-
sig { params(type: ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::OrSymbol).void }
|
157
|
-
attr_writer :type
|
158
|
-
|
159
|
-
sig do
|
160
|
-
params(type: ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::OrSymbol)
|
161
|
-
.returns(T.attached_class)
|
162
|
-
end
|
163
|
-
def self.new(type: nil); end
|
164
|
-
|
165
|
-
sig { override.returns({type: ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::OrSymbol}) }
|
166
|
-
def to_hash; end
|
167
|
-
|
168
|
-
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
169
|
-
# or `vendor`.
|
170
|
-
module Type
|
171
|
-
extend ModernTreasury::Internal::Type::Enum
|
172
|
-
|
173
|
-
TaggedSymbol =
|
174
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type) }
|
175
|
-
OrSymbol =
|
176
|
-
T.type_alias { T.any(Symbol, String, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::TaggedSymbol) }
|
177
|
-
|
178
|
-
CUSTOMER =
|
179
|
-
T.let(:customer, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::TaggedSymbol)
|
180
|
-
VENDOR = T.let(:vendor, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::TaggedSymbol)
|
181
|
-
|
182
|
-
sig do
|
183
|
-
override
|
184
|
-
.returns(T::Array[ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type::TaggedSymbol])
|
185
|
-
end
|
186
|
-
def self.values; end
|
187
|
-
end
|
188
|
-
end
|
189
|
-
|
190
|
-
class Account < ModernTreasury::Internal::Type::BaseModel
|
191
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail])) }
|
192
|
-
attr_reader :account_details
|
193
|
-
|
194
|
-
sig do
|
195
|
-
params(
|
196
|
-
account_details: T::Array[
|
197
|
-
T.any(
|
198
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail,
|
199
|
-
ModernTreasury::Internal::AnyHash
|
200
|
-
)
|
201
|
-
]
|
202
|
-
)
|
203
|
-
.void
|
204
|
-
end
|
205
|
-
attr_writer :account_details
|
206
|
-
|
207
|
-
# Can be `checking`, `savings` or `other`.
|
208
|
-
sig { returns(T.nilable(ModernTreasury::Models::ExternalAccountType::OrSymbol)) }
|
209
|
-
attr_reader :account_type
|
210
|
-
|
211
|
-
sig { params(account_type: ModernTreasury::Models::ExternalAccountType::OrSymbol).void }
|
212
|
-
attr_writer :account_type
|
213
|
-
|
214
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail])) }
|
215
|
-
attr_reader :contact_details
|
216
|
-
|
217
|
-
sig do
|
218
|
-
params(
|
219
|
-
contact_details: T::Array[
|
220
|
-
T.any(
|
221
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail,
|
222
|
-
ModernTreasury::Internal::AnyHash
|
223
|
-
)
|
224
|
-
]
|
225
|
-
)
|
226
|
-
.void
|
227
|
-
end
|
228
|
-
attr_writer :contact_details
|
229
|
-
|
230
|
-
# Specifies a ledger account object that will be created with the external
|
231
|
-
# account. The resulting ledger account is linked to the external account for
|
232
|
-
# auto-ledgering Payment objects. See
|
233
|
-
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
234
|
-
# for more details.
|
235
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount)) }
|
236
|
-
attr_reader :ledger_account
|
237
|
-
|
238
|
-
sig do
|
239
|
-
params(
|
240
|
-
ledger_account: T.any(
|
241
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount,
|
242
|
-
ModernTreasury::Internal::AnyHash
|
243
|
-
)
|
244
|
-
)
|
245
|
-
.void
|
246
|
-
end
|
247
|
-
attr_writer :ledger_account
|
248
|
-
|
249
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
250
|
-
# strings.
|
251
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
252
|
-
attr_reader :metadata
|
253
|
-
|
254
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
255
|
-
attr_writer :metadata
|
256
|
-
|
257
|
-
# A nickname for the external account. This is only for internal usage and won't
|
258
|
-
# affect any payments
|
259
|
-
sig { returns(T.nilable(String)) }
|
260
|
-
attr_accessor :name
|
261
|
-
|
262
|
-
# Required if receiving wire payments.
|
263
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress)) }
|
264
|
-
attr_reader :party_address
|
265
|
-
|
266
|
-
sig do
|
267
|
-
params(
|
268
|
-
party_address: T.any(
|
269
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress,
|
270
|
-
ModernTreasury::Internal::AnyHash
|
271
|
-
)
|
272
|
-
)
|
273
|
-
.void
|
274
|
-
end
|
275
|
-
attr_writer :party_address
|
276
|
-
|
277
|
-
sig { returns(T.nilable(String)) }
|
278
|
-
attr_reader :party_identifier
|
279
|
-
|
280
|
-
sig { params(party_identifier: String).void }
|
281
|
-
attr_writer :party_identifier
|
282
|
-
|
283
|
-
# If this value isn't provided, it will be inherited from the counterparty's name.
|
284
|
-
sig { returns(T.nilable(String)) }
|
285
|
-
attr_reader :party_name
|
286
|
-
|
287
|
-
sig { params(party_name: String).void }
|
288
|
-
attr_writer :party_name
|
289
|
-
|
290
|
-
# Either `individual` or `business`.
|
291
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType::OrSymbol)) }
|
292
|
-
attr_accessor :party_type
|
293
|
-
|
294
|
-
# If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
295
|
-
# you can pass the processor token in this field.
|
296
|
-
sig { returns(T.nilable(String)) }
|
297
|
-
attr_reader :plaid_processor_token
|
298
|
-
|
299
|
-
sig { params(plaid_processor_token: String).void }
|
300
|
-
attr_writer :plaid_processor_token
|
301
|
-
|
302
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail])) }
|
303
|
-
attr_reader :routing_details
|
304
|
-
|
305
|
-
sig do
|
306
|
-
params(
|
307
|
-
routing_details: T::Array[
|
308
|
-
T.any(
|
309
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail,
|
310
|
-
ModernTreasury::Internal::AnyHash
|
311
|
-
)
|
312
|
-
]
|
313
|
-
)
|
314
|
-
.void
|
315
|
-
end
|
316
|
-
attr_writer :routing_details
|
317
|
-
|
318
|
-
sig do
|
319
|
-
params(
|
320
|
-
account_details: T::Array[
|
321
|
-
T.any(
|
322
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail,
|
323
|
-
ModernTreasury::Internal::AnyHash
|
324
|
-
)
|
325
|
-
],
|
326
|
-
account_type: ModernTreasury::Models::ExternalAccountType::OrSymbol,
|
327
|
-
contact_details: T::Array[
|
328
|
-
T.any(
|
329
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail,
|
330
|
-
ModernTreasury::Internal::AnyHash
|
331
|
-
)
|
332
|
-
],
|
333
|
-
ledger_account: T.any(
|
334
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount,
|
335
|
-
ModernTreasury::Internal::AnyHash
|
336
|
-
),
|
337
|
-
metadata: T::Hash[Symbol, String],
|
338
|
-
name: T.nilable(String),
|
339
|
-
party_address: T.any(
|
340
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress,
|
341
|
-
ModernTreasury::Internal::AnyHash
|
342
|
-
),
|
343
|
-
party_identifier: String,
|
344
|
-
party_name: String,
|
345
|
-
party_type: T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType::OrSymbol),
|
346
|
-
plaid_processor_token: String,
|
347
|
-
routing_details: T::Array[
|
348
|
-
T.any(
|
349
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail,
|
350
|
-
ModernTreasury::Internal::AnyHash
|
351
|
-
)
|
352
|
-
]
|
353
|
-
)
|
354
|
-
.returns(T.attached_class)
|
355
|
-
end
|
356
|
-
def self.new(
|
357
|
-
account_details: nil,
|
358
|
-
account_type: nil,
|
359
|
-
contact_details: nil,
|
360
|
-
ledger_account: nil,
|
361
|
-
metadata: nil,
|
362
|
-
name: nil,
|
363
|
-
party_address: nil,
|
364
|
-
party_identifier: nil,
|
365
|
-
party_name: nil,
|
366
|
-
party_type: nil,
|
367
|
-
plaid_processor_token: nil,
|
368
|
-
routing_details: nil
|
369
|
-
); end
|
370
|
-
sig do
|
371
|
-
override
|
372
|
-
.returns(
|
373
|
-
{
|
374
|
-
account_details: T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail],
|
375
|
-
account_type: ModernTreasury::Models::ExternalAccountType::OrSymbol,
|
376
|
-
contact_details: T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail],
|
377
|
-
ledger_account: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount,
|
378
|
-
metadata: T::Hash[Symbol, String],
|
379
|
-
name: T.nilable(String),
|
380
|
-
party_address: ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress,
|
381
|
-
party_identifier: String,
|
382
|
-
party_name: String,
|
383
|
-
party_type: T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType::OrSymbol),
|
384
|
-
plaid_processor_token: String,
|
385
|
-
routing_details: T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail]
|
386
|
-
}
|
387
|
-
)
|
388
|
-
end
|
389
|
-
def to_hash; end
|
390
|
-
|
391
|
-
class AccountDetail < ModernTreasury::Internal::Type::BaseModel
|
392
|
-
sig { returns(String) }
|
393
|
-
attr_accessor :account_number
|
394
|
-
|
395
|
-
sig do
|
396
|
-
returns(
|
397
|
-
T.nilable(
|
398
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::OrSymbol
|
399
|
-
)
|
400
|
-
)
|
401
|
-
end
|
402
|
-
attr_reader :account_number_type
|
403
|
-
|
404
|
-
sig do
|
405
|
-
params(
|
406
|
-
account_number_type: ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::OrSymbol
|
407
|
-
)
|
408
|
-
.void
|
409
|
-
end
|
410
|
-
attr_writer :account_number_type
|
411
|
-
|
412
|
-
sig do
|
413
|
-
params(
|
414
|
-
account_number: String,
|
415
|
-
account_number_type: ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::OrSymbol
|
416
|
-
)
|
417
|
-
.returns(T.attached_class)
|
418
|
-
end
|
419
|
-
def self.new(account_number:, account_number_type: nil); end
|
420
|
-
|
421
|
-
sig do
|
422
|
-
override
|
423
|
-
.returns(
|
424
|
-
{
|
425
|
-
account_number: String,
|
426
|
-
account_number_type: ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::OrSymbol
|
427
|
-
}
|
428
|
-
)
|
429
|
-
end
|
430
|
-
def to_hash; end
|
431
|
-
|
432
|
-
module AccountNumberType
|
433
|
-
extend ModernTreasury::Internal::Type::Enum
|
434
|
-
|
435
|
-
TaggedSymbol =
|
436
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType) }
|
437
|
-
OrSymbol =
|
438
|
-
T.type_alias do
|
439
|
-
T.any(
|
440
|
-
Symbol,
|
441
|
-
String,
|
442
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
443
|
-
)
|
444
|
-
end
|
445
|
-
|
446
|
-
AU_NUMBER =
|
447
|
-
T.let(
|
448
|
-
:au_number,
|
449
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
450
|
-
)
|
451
|
-
CLABE =
|
452
|
-
T.let(
|
453
|
-
:clabe,
|
454
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
455
|
-
)
|
456
|
-
HK_NUMBER =
|
457
|
-
T.let(
|
458
|
-
:hk_number,
|
459
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
460
|
-
)
|
461
|
-
IBAN =
|
462
|
-
T.let(
|
463
|
-
:iban,
|
464
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
465
|
-
)
|
466
|
-
ID_NUMBER =
|
467
|
-
T.let(
|
468
|
-
:id_number,
|
469
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
470
|
-
)
|
471
|
-
NZ_NUMBER =
|
472
|
-
T.let(
|
473
|
-
:nz_number,
|
474
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
475
|
-
)
|
476
|
-
OTHER =
|
477
|
-
T.let(
|
478
|
-
:other,
|
479
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
480
|
-
)
|
481
|
-
PAN =
|
482
|
-
T.let(
|
483
|
-
:pan,
|
484
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
485
|
-
)
|
486
|
-
SG_NUMBER =
|
487
|
-
T.let(
|
488
|
-
:sg_number,
|
489
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
490
|
-
)
|
491
|
-
WALLET_ADDRESS =
|
492
|
-
T.let(
|
493
|
-
:wallet_address,
|
494
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol
|
495
|
-
)
|
496
|
-
|
497
|
-
sig do
|
498
|
-
override
|
499
|
-
.returns(
|
500
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType::TaggedSymbol]
|
501
|
-
)
|
502
|
-
end
|
503
|
-
def self.values; end
|
504
|
-
end
|
505
|
-
end
|
506
|
-
|
507
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
508
|
-
sig { returns(T.nilable(String)) }
|
509
|
-
attr_reader :contact_identifier
|
510
|
-
|
511
|
-
sig { params(contact_identifier: String).void }
|
512
|
-
attr_writer :contact_identifier
|
513
|
-
|
514
|
-
sig do
|
515
|
-
returns(
|
516
|
-
T.nilable(
|
517
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
|
518
|
-
)
|
519
|
-
)
|
520
|
-
end
|
521
|
-
attr_reader :contact_identifier_type
|
522
|
-
|
523
|
-
sig do
|
524
|
-
params(
|
525
|
-
contact_identifier_type: ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
|
526
|
-
)
|
527
|
-
.void
|
528
|
-
end
|
529
|
-
attr_writer :contact_identifier_type
|
530
|
-
|
531
|
-
sig do
|
532
|
-
params(
|
533
|
-
contact_identifier: String,
|
534
|
-
contact_identifier_type: ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
|
535
|
-
)
|
536
|
-
.returns(T.attached_class)
|
537
|
-
end
|
538
|
-
def self.new(contact_identifier: nil, contact_identifier_type: nil); end
|
539
|
-
|
540
|
-
sig do
|
541
|
-
override
|
542
|
-
.returns(
|
543
|
-
{
|
544
|
-
contact_identifier: String,
|
545
|
-
contact_identifier_type: ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::OrSymbol
|
546
|
-
}
|
547
|
-
)
|
548
|
-
end
|
549
|
-
def to_hash; end
|
550
|
-
|
551
|
-
module ContactIdentifierType
|
552
|
-
extend ModernTreasury::Internal::Type::Enum
|
553
|
-
|
554
|
-
TaggedSymbol =
|
555
|
-
T.type_alias do
|
556
|
-
T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType)
|
557
|
-
end
|
558
|
-
OrSymbol =
|
559
|
-
T.type_alias do
|
560
|
-
T.any(
|
561
|
-
Symbol,
|
562
|
-
String,
|
563
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
|
564
|
-
)
|
565
|
-
end
|
566
|
-
|
567
|
-
EMAIL =
|
568
|
-
T.let(
|
569
|
-
:email,
|
570
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
|
571
|
-
)
|
572
|
-
PHONE_NUMBER =
|
573
|
-
T.let(
|
574
|
-
:phone_number,
|
575
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
|
576
|
-
)
|
577
|
-
WEBSITE =
|
578
|
-
T.let(
|
579
|
-
:website,
|
580
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
|
581
|
-
)
|
582
|
-
|
583
|
-
sig do
|
584
|
-
override
|
585
|
-
.returns(
|
586
|
-
T::Array[
|
587
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType::TaggedSymbol
|
588
|
-
]
|
589
|
-
)
|
590
|
-
end
|
591
|
-
def self.values; end
|
592
|
-
end
|
593
|
-
end
|
594
|
-
|
595
|
-
class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
|
596
|
-
# The currency of the ledger account.
|
597
|
-
sig { returns(String) }
|
598
|
-
attr_accessor :currency
|
599
|
-
|
600
|
-
# The id of the ledger that this account belongs to.
|
601
|
-
sig { returns(String) }
|
602
|
-
attr_accessor :ledger_id
|
603
|
-
|
604
|
-
# The name of the ledger account.
|
605
|
-
sig { returns(String) }
|
606
|
-
attr_accessor :name
|
607
|
-
|
608
|
-
# The normal balance of the ledger account.
|
609
|
-
sig { returns(ModernTreasury::Models::TransactionDirection::OrSymbol) }
|
610
|
-
attr_accessor :normal_balance
|
611
|
-
|
612
|
-
# The currency exponent of the ledger account.
|
613
|
-
sig { returns(T.nilable(Integer)) }
|
614
|
-
attr_accessor :currency_exponent
|
615
|
-
|
616
|
-
# The description of the ledger account.
|
617
|
-
sig { returns(T.nilable(String)) }
|
618
|
-
attr_accessor :description
|
619
|
-
|
620
|
-
# The array of ledger account category ids that this ledger account should be a
|
621
|
-
# child of.
|
622
|
-
sig { returns(T.nilable(T::Array[String])) }
|
623
|
-
attr_reader :ledger_account_category_ids
|
624
|
-
|
625
|
-
sig { params(ledger_account_category_ids: T::Array[String]).void }
|
626
|
-
attr_writer :ledger_account_category_ids
|
627
|
-
|
628
|
-
# If the ledger account links to another object in Modern Treasury, the id will be
|
629
|
-
# populated here, otherwise null.
|
630
|
-
sig { returns(T.nilable(String)) }
|
631
|
-
attr_reader :ledgerable_id
|
632
|
-
|
633
|
-
sig { params(ledgerable_id: String).void }
|
634
|
-
attr_writer :ledgerable_id
|
635
|
-
|
636
|
-
# If the ledger account links to another object in Modern Treasury, the type will
|
637
|
-
# be populated here, otherwise null. The value is one of internal_account or
|
638
|
-
# external_account.
|
639
|
-
sig do
|
640
|
-
returns(
|
641
|
-
T.nilable(
|
642
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol
|
643
|
-
)
|
644
|
-
)
|
645
|
-
end
|
646
|
-
attr_reader :ledgerable_type
|
647
|
-
|
648
|
-
sig do
|
649
|
-
params(
|
650
|
-
ledgerable_type: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol
|
651
|
-
)
|
652
|
-
.void
|
653
|
-
end
|
654
|
-
attr_writer :ledgerable_type
|
655
|
-
|
656
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
657
|
-
# strings.
|
658
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
659
|
-
attr_reader :metadata
|
660
|
-
|
661
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
662
|
-
attr_writer :metadata
|
663
|
-
|
664
|
-
# Specifies a ledger account object that will be created with the external
|
665
|
-
# account. The resulting ledger account is linked to the external account for
|
666
|
-
# auto-ledgering Payment objects. See
|
667
|
-
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
668
|
-
# for more details.
|
669
|
-
sig do
|
670
|
-
params(
|
671
|
-
currency: String,
|
672
|
-
ledger_id: String,
|
673
|
-
name: String,
|
674
|
-
normal_balance: ModernTreasury::Models::TransactionDirection::OrSymbol,
|
675
|
-
currency_exponent: T.nilable(Integer),
|
676
|
-
description: T.nilable(String),
|
677
|
-
ledger_account_category_ids: T::Array[String],
|
678
|
-
ledgerable_id: String,
|
679
|
-
ledgerable_type: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol,
|
680
|
-
metadata: T::Hash[Symbol, String]
|
681
|
-
)
|
682
|
-
.returns(T.attached_class)
|
683
|
-
end
|
684
|
-
def self.new(
|
685
|
-
currency:,
|
686
|
-
ledger_id:,
|
687
|
-
name:,
|
688
|
-
normal_balance:,
|
689
|
-
currency_exponent: nil,
|
690
|
-
description: nil,
|
691
|
-
ledger_account_category_ids: nil,
|
692
|
-
ledgerable_id: nil,
|
693
|
-
ledgerable_type: nil,
|
694
|
-
metadata: nil
|
695
|
-
); end
|
696
|
-
sig do
|
697
|
-
override
|
698
|
-
.returns(
|
699
|
-
{
|
700
|
-
currency: String,
|
701
|
-
ledger_id: String,
|
702
|
-
name: String,
|
703
|
-
normal_balance: ModernTreasury::Models::TransactionDirection::OrSymbol,
|
704
|
-
currency_exponent: T.nilable(Integer),
|
705
|
-
description: T.nilable(String),
|
706
|
-
ledger_account_category_ids: T::Array[String],
|
707
|
-
ledgerable_id: String,
|
708
|
-
ledgerable_type: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::OrSymbol,
|
709
|
-
metadata: T::Hash[Symbol, String]
|
710
|
-
}
|
711
|
-
)
|
712
|
-
end
|
713
|
-
def to_hash; end
|
714
|
-
|
715
|
-
# If the ledger account links to another object in Modern Treasury, the type will
|
716
|
-
# be populated here, otherwise null. The value is one of internal_account or
|
717
|
-
# external_account.
|
718
|
-
module LedgerableType
|
719
|
-
extend ModernTreasury::Internal::Type::Enum
|
720
|
-
|
721
|
-
TaggedSymbol =
|
722
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType) }
|
723
|
-
OrSymbol =
|
724
|
-
T.type_alias do
|
725
|
-
T.any(
|
726
|
-
Symbol,
|
727
|
-
String,
|
728
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
|
729
|
-
)
|
730
|
-
end
|
731
|
-
|
732
|
-
COUNTERPARTY =
|
733
|
-
T.let(
|
734
|
-
:counterparty,
|
735
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
|
736
|
-
)
|
737
|
-
EXTERNAL_ACCOUNT =
|
738
|
-
T.let(
|
739
|
-
:external_account,
|
740
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
|
741
|
-
)
|
742
|
-
INTERNAL_ACCOUNT =
|
743
|
-
T.let(
|
744
|
-
:internal_account,
|
745
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
|
746
|
-
)
|
747
|
-
VIRTUAL_ACCOUNT =
|
748
|
-
T.let(
|
749
|
-
:virtual_account,
|
750
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol
|
751
|
-
)
|
752
|
-
|
753
|
-
sig do
|
754
|
-
override
|
755
|
-
.returns(
|
756
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType::TaggedSymbol]
|
757
|
-
)
|
758
|
-
end
|
759
|
-
def self.values; end
|
760
|
-
end
|
761
|
-
end
|
762
|
-
|
763
|
-
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
764
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
765
|
-
sig { returns(T.nilable(String)) }
|
766
|
-
attr_accessor :country
|
767
|
-
|
768
|
-
sig { returns(T.nilable(String)) }
|
769
|
-
attr_accessor :line1
|
770
|
-
|
771
|
-
sig { returns(T.nilable(String)) }
|
772
|
-
attr_accessor :line2
|
773
|
-
|
774
|
-
# Locality or City.
|
775
|
-
sig { returns(T.nilable(String)) }
|
776
|
-
attr_accessor :locality
|
777
|
-
|
778
|
-
# The postal code of the address.
|
779
|
-
sig { returns(T.nilable(String)) }
|
780
|
-
attr_accessor :postal_code
|
781
|
-
|
782
|
-
# Region or State.
|
783
|
-
sig { returns(T.nilable(String)) }
|
784
|
-
attr_accessor :region
|
785
|
-
|
786
|
-
# Required if receiving wire payments.
|
787
|
-
sig do
|
788
|
-
params(
|
789
|
-
country: T.nilable(String),
|
790
|
-
line1: T.nilable(String),
|
791
|
-
line2: T.nilable(String),
|
792
|
-
locality: T.nilable(String),
|
793
|
-
postal_code: T.nilable(String),
|
794
|
-
region: T.nilable(String)
|
795
|
-
)
|
796
|
-
.returns(T.attached_class)
|
797
|
-
end
|
798
|
-
def self.new(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
|
799
|
-
end
|
800
|
-
|
801
|
-
sig do
|
802
|
-
override
|
803
|
-
.returns(
|
804
|
-
{
|
805
|
-
country: T.nilable(String),
|
806
|
-
line1: T.nilable(String),
|
807
|
-
line2: T.nilable(String),
|
808
|
-
locality: T.nilable(String),
|
809
|
-
postal_code: T.nilable(String),
|
810
|
-
region: T.nilable(String)
|
811
|
-
}
|
812
|
-
)
|
813
|
-
end
|
814
|
-
def to_hash; end
|
815
|
-
end
|
816
|
-
|
817
|
-
# Either `individual` or `business`.
|
818
|
-
module PartyType
|
819
|
-
extend ModernTreasury::Internal::Type::Enum
|
820
|
-
|
821
|
-
TaggedSymbol =
|
822
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType) }
|
823
|
-
OrSymbol =
|
824
|
-
T.type_alias { T.any(Symbol, String, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType::TaggedSymbol) }
|
825
|
-
|
826
|
-
BUSINESS =
|
827
|
-
T.let(:business, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType::TaggedSymbol)
|
828
|
-
INDIVIDUAL =
|
829
|
-
T.let(:individual, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType::TaggedSymbol)
|
830
|
-
|
831
|
-
sig do
|
832
|
-
override
|
833
|
-
.returns(T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType::TaggedSymbol])
|
834
|
-
end
|
835
|
-
def self.values; end
|
836
|
-
end
|
837
|
-
|
838
|
-
class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
|
839
|
-
sig { returns(String) }
|
840
|
-
attr_accessor :routing_number
|
841
|
-
|
842
|
-
sig do
|
843
|
-
returns(
|
844
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::OrSymbol
|
845
|
-
)
|
846
|
-
end
|
847
|
-
attr_accessor :routing_number_type
|
848
|
-
|
849
|
-
sig do
|
850
|
-
returns(
|
851
|
-
T.nilable(ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::OrSymbol)
|
852
|
-
)
|
853
|
-
end
|
854
|
-
attr_reader :payment_type
|
855
|
-
|
856
|
-
sig do
|
857
|
-
params(
|
858
|
-
payment_type: ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::OrSymbol
|
859
|
-
)
|
860
|
-
.void
|
861
|
-
end
|
862
|
-
attr_writer :payment_type
|
863
|
-
|
864
|
-
sig do
|
865
|
-
params(
|
866
|
-
routing_number: String,
|
867
|
-
routing_number_type: ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::OrSymbol,
|
868
|
-
payment_type: ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::OrSymbol
|
869
|
-
)
|
870
|
-
.returns(T.attached_class)
|
871
|
-
end
|
872
|
-
def self.new(routing_number:, routing_number_type:, payment_type: nil); end
|
873
|
-
|
874
|
-
sig do
|
875
|
-
override
|
876
|
-
.returns(
|
877
|
-
{
|
878
|
-
routing_number: String,
|
879
|
-
routing_number_type: ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::OrSymbol,
|
880
|
-
payment_type: ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::OrSymbol
|
881
|
-
}
|
882
|
-
)
|
883
|
-
end
|
884
|
-
def to_hash; end
|
885
|
-
|
886
|
-
module RoutingNumberType
|
887
|
-
extend ModernTreasury::Internal::Type::Enum
|
888
|
-
|
889
|
-
TaggedSymbol =
|
890
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType) }
|
891
|
-
OrSymbol =
|
892
|
-
T.type_alias do
|
893
|
-
T.any(
|
894
|
-
Symbol,
|
895
|
-
String,
|
896
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
897
|
-
)
|
898
|
-
end
|
899
|
-
|
900
|
-
ABA =
|
901
|
-
T.let(
|
902
|
-
:aba,
|
903
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
904
|
-
)
|
905
|
-
AU_BSB =
|
906
|
-
T.let(
|
907
|
-
:au_bsb,
|
908
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
909
|
-
)
|
910
|
-
BR_CODIGO =
|
911
|
-
T.let(
|
912
|
-
:br_codigo,
|
913
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
914
|
-
)
|
915
|
-
CA_CPA =
|
916
|
-
T.let(
|
917
|
-
:ca_cpa,
|
918
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
919
|
-
)
|
920
|
-
CHIPS =
|
921
|
-
T.let(
|
922
|
-
:chips,
|
923
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
924
|
-
)
|
925
|
-
CNAPS =
|
926
|
-
T.let(
|
927
|
-
:cnaps,
|
928
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
929
|
-
)
|
930
|
-
DK_INTERBANK_CLEARING_CODE =
|
931
|
-
T.let(
|
932
|
-
:dk_interbank_clearing_code,
|
933
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
934
|
-
)
|
935
|
-
GB_SORT_CODE =
|
936
|
-
T.let(
|
937
|
-
:gb_sort_code,
|
938
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
939
|
-
)
|
940
|
-
HK_INTERBANK_CLEARING_CODE =
|
941
|
-
T.let(
|
942
|
-
:hk_interbank_clearing_code,
|
943
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
944
|
-
)
|
945
|
-
HU_INTERBANK_CLEARING_CODE =
|
946
|
-
T.let(
|
947
|
-
:hu_interbank_clearing_code,
|
948
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
949
|
-
)
|
950
|
-
ID_SKNBI_CODE =
|
951
|
-
T.let(
|
952
|
-
:id_sknbi_code,
|
953
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
954
|
-
)
|
955
|
-
IN_IFSC =
|
956
|
-
T.let(
|
957
|
-
:in_ifsc,
|
958
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
959
|
-
)
|
960
|
-
JP_ZENGIN_CODE =
|
961
|
-
T.let(
|
962
|
-
:jp_zengin_code,
|
963
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
964
|
-
)
|
965
|
-
MY_BRANCH_CODE =
|
966
|
-
T.let(
|
967
|
-
:my_branch_code,
|
968
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
969
|
-
)
|
970
|
-
MX_BANK_IDENTIFIER =
|
971
|
-
T.let(
|
972
|
-
:mx_bank_identifier,
|
973
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
974
|
-
)
|
975
|
-
NZ_NATIONAL_CLEARING_CODE =
|
976
|
-
T.let(
|
977
|
-
:nz_national_clearing_code,
|
978
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
979
|
-
)
|
980
|
-
PL_NATIONAL_CLEARING_CODE =
|
981
|
-
T.let(
|
982
|
-
:pl_national_clearing_code,
|
983
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
984
|
-
)
|
985
|
-
SE_BANKGIRO_CLEARING_CODE =
|
986
|
-
T.let(
|
987
|
-
:se_bankgiro_clearing_code,
|
988
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
989
|
-
)
|
990
|
-
SG_INTERBANK_CLEARING_CODE =
|
991
|
-
T.let(
|
992
|
-
:sg_interbank_clearing_code,
|
993
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
994
|
-
)
|
995
|
-
SWIFT =
|
996
|
-
T.let(
|
997
|
-
:swift,
|
998
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
999
|
-
)
|
1000
|
-
ZA_NATIONAL_CLEARING_CODE =
|
1001
|
-
T.let(
|
1002
|
-
:za_national_clearing_code,
|
1003
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol
|
1004
|
-
)
|
1005
|
-
|
1006
|
-
sig do
|
1007
|
-
override
|
1008
|
-
.returns(
|
1009
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType::TaggedSymbol]
|
1010
|
-
)
|
1011
|
-
end
|
1012
|
-
def self.values; end
|
1013
|
-
end
|
1014
|
-
|
1015
|
-
module PaymentType
|
1016
|
-
extend ModernTreasury::Internal::Type::Enum
|
1017
|
-
|
1018
|
-
TaggedSymbol =
|
1019
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType) }
|
1020
|
-
OrSymbol =
|
1021
|
-
T.type_alias do
|
1022
|
-
T.any(
|
1023
|
-
Symbol,
|
1024
|
-
String,
|
1025
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1026
|
-
)
|
1027
|
-
end
|
1028
|
-
|
1029
|
-
ACH =
|
1030
|
-
T.let(
|
1031
|
-
:ach,
|
1032
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1033
|
-
)
|
1034
|
-
AU_BECS =
|
1035
|
-
T.let(
|
1036
|
-
:au_becs,
|
1037
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1038
|
-
)
|
1039
|
-
BACS =
|
1040
|
-
T.let(
|
1041
|
-
:bacs,
|
1042
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1043
|
-
)
|
1044
|
-
BOOK =
|
1045
|
-
T.let(
|
1046
|
-
:book,
|
1047
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1048
|
-
)
|
1049
|
-
CARD =
|
1050
|
-
T.let(
|
1051
|
-
:card,
|
1052
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1053
|
-
)
|
1054
|
-
CHATS =
|
1055
|
-
T.let(
|
1056
|
-
:chats,
|
1057
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1058
|
-
)
|
1059
|
-
CHECK =
|
1060
|
-
T.let(
|
1061
|
-
:check,
|
1062
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1063
|
-
)
|
1064
|
-
CROSS_BORDER =
|
1065
|
-
T.let(
|
1066
|
-
:cross_border,
|
1067
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1068
|
-
)
|
1069
|
-
DK_NETS =
|
1070
|
-
T.let(
|
1071
|
-
:dk_nets,
|
1072
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1073
|
-
)
|
1074
|
-
EFT =
|
1075
|
-
T.let(
|
1076
|
-
:eft,
|
1077
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1078
|
-
)
|
1079
|
-
HU_ICS =
|
1080
|
-
T.let(
|
1081
|
-
:hu_ics,
|
1082
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1083
|
-
)
|
1084
|
-
INTERAC =
|
1085
|
-
T.let(
|
1086
|
-
:interac,
|
1087
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1088
|
-
)
|
1089
|
-
MASAV =
|
1090
|
-
T.let(
|
1091
|
-
:masav,
|
1092
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1093
|
-
)
|
1094
|
-
MX_CCEN =
|
1095
|
-
T.let(
|
1096
|
-
:mx_ccen,
|
1097
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1098
|
-
)
|
1099
|
-
NEFT =
|
1100
|
-
T.let(
|
1101
|
-
:neft,
|
1102
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1103
|
-
)
|
1104
|
-
NICS =
|
1105
|
-
T.let(
|
1106
|
-
:nics,
|
1107
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1108
|
-
)
|
1109
|
-
NZ_BECS =
|
1110
|
-
T.let(
|
1111
|
-
:nz_becs,
|
1112
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1113
|
-
)
|
1114
|
-
PL_ELIXIR =
|
1115
|
-
T.let(
|
1116
|
-
:pl_elixir,
|
1117
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1118
|
-
)
|
1119
|
-
PROVXCHANGE =
|
1120
|
-
T.let(
|
1121
|
-
:provxchange,
|
1122
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1123
|
-
)
|
1124
|
-
RO_SENT =
|
1125
|
-
T.let(
|
1126
|
-
:ro_sent,
|
1127
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1128
|
-
)
|
1129
|
-
RTP =
|
1130
|
-
T.let(
|
1131
|
-
:rtp,
|
1132
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1133
|
-
)
|
1134
|
-
SE_BANKGIROT =
|
1135
|
-
T.let(
|
1136
|
-
:se_bankgirot,
|
1137
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1138
|
-
)
|
1139
|
-
SEN =
|
1140
|
-
T.let(
|
1141
|
-
:sen,
|
1142
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1143
|
-
)
|
1144
|
-
SEPA =
|
1145
|
-
T.let(
|
1146
|
-
:sepa,
|
1147
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1148
|
-
)
|
1149
|
-
SG_GIRO =
|
1150
|
-
T.let(
|
1151
|
-
:sg_giro,
|
1152
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1153
|
-
)
|
1154
|
-
SIC =
|
1155
|
-
T.let(
|
1156
|
-
:sic,
|
1157
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1158
|
-
)
|
1159
|
-
SIGNET =
|
1160
|
-
T.let(
|
1161
|
-
:signet,
|
1162
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1163
|
-
)
|
1164
|
-
SKNBI =
|
1165
|
-
T.let(
|
1166
|
-
:sknbi,
|
1167
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1168
|
-
)
|
1169
|
-
WIRE =
|
1170
|
-
T.let(
|
1171
|
-
:wire,
|
1172
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1173
|
-
)
|
1174
|
-
ZENGIN =
|
1175
|
-
T.let(
|
1176
|
-
:zengin,
|
1177
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol
|
1178
|
-
)
|
1179
|
-
|
1180
|
-
sig do
|
1181
|
-
override
|
1182
|
-
.returns(
|
1183
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType::TaggedSymbol]
|
1184
|
-
)
|
1185
|
-
end
|
1186
|
-
def self.values; end
|
1187
|
-
end
|
1188
|
-
end
|
1189
|
-
end
|
1190
|
-
|
1191
|
-
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
1192
|
-
# or `vendor`.
|
1193
|
-
module LedgerType
|
1194
|
-
extend ModernTreasury::Internal::Type::Enum
|
1195
|
-
|
1196
|
-
TaggedSymbol =
|
1197
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType) }
|
1198
|
-
OrSymbol =
|
1199
|
-
T.type_alias { T.any(Symbol, String, ModernTreasury::Models::CounterpartyCreateParams::LedgerType::TaggedSymbol) }
|
1200
|
-
|
1201
|
-
CUSTOMER = T.let(:customer, ModernTreasury::Models::CounterpartyCreateParams::LedgerType::TaggedSymbol)
|
1202
|
-
VENDOR = T.let(:vendor, ModernTreasury::Models::CounterpartyCreateParams::LedgerType::TaggedSymbol)
|
1203
|
-
|
1204
|
-
sig { override.returns(T::Array[ModernTreasury::Models::CounterpartyCreateParams::LedgerType::TaggedSymbol]) }
|
1205
|
-
def self.values; end
|
1206
|
-
end
|
1207
|
-
|
1208
|
-
class LegalEntity < ModernTreasury::Internal::Type::BaseModel
|
1209
|
-
# The type of legal entity.
|
1210
|
-
sig { returns(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType::OrSymbol) }
|
1211
|
-
attr_accessor :legal_entity_type
|
1212
|
-
|
1213
|
-
# A list of addresses for the entity.
|
1214
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address])) }
|
1215
|
-
attr_reader :addresses
|
1216
|
-
|
1217
|
-
sig do
|
1218
|
-
params(
|
1219
|
-
addresses: T::Array[
|
1220
|
-
T.any(
|
1221
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address,
|
1222
|
-
ModernTreasury::Internal::AnyHash
|
1223
|
-
)
|
1224
|
-
]
|
1225
|
-
)
|
1226
|
-
.void
|
1227
|
-
end
|
1228
|
-
attr_writer :addresses
|
1229
|
-
|
1230
|
-
sig { returns(T.nilable(ModernTreasury::Models::BankSettings)) }
|
1231
|
-
attr_reader :bank_settings
|
1232
|
-
|
1233
|
-
sig do
|
1234
|
-
params(
|
1235
|
-
bank_settings: T.nilable(T.any(ModernTreasury::Models::BankSettings, ModernTreasury::Internal::AnyHash))
|
1236
|
-
)
|
1237
|
-
.void
|
1238
|
-
end
|
1239
|
-
attr_writer :bank_settings
|
1240
|
-
|
1241
|
-
# The business's legal business name.
|
1242
|
-
sig { returns(T.nilable(String)) }
|
1243
|
-
attr_accessor :business_name
|
1244
|
-
|
1245
|
-
# The country of citizenship for an individual.
|
1246
|
-
sig { returns(T.nilable(String)) }
|
1247
|
-
attr_accessor :citizenship_country
|
1248
|
-
|
1249
|
-
sig { returns(T.nilable(ModernTreasury::Models::LegalEntityComplianceDetail)) }
|
1250
|
-
attr_reader :compliance_details
|
1251
|
-
|
1252
|
-
sig do
|
1253
|
-
params(
|
1254
|
-
compliance_details: T.nilable(T.any(ModernTreasury::Models::LegalEntityComplianceDetail, ModernTreasury::Internal::AnyHash))
|
1255
|
-
)
|
1256
|
-
.void
|
1257
|
-
end
|
1258
|
-
attr_writer :compliance_details
|
1259
|
-
|
1260
|
-
# A business's formation date (YYYY-MM-DD).
|
1261
|
-
sig { returns(T.nilable(Date)) }
|
1262
|
-
attr_accessor :date_formed
|
1263
|
-
|
1264
|
-
# An individual's date of birth (YYYY-MM-DD).
|
1265
|
-
sig { returns(T.nilable(Date)) }
|
1266
|
-
attr_accessor :date_of_birth
|
1267
|
-
|
1268
|
-
sig { returns(T.nilable(T::Array[String])) }
|
1269
|
-
attr_reader :doing_business_as_names
|
1270
|
-
|
1271
|
-
sig { params(doing_business_as_names: T::Array[String]).void }
|
1272
|
-
attr_writer :doing_business_as_names
|
1273
|
-
|
1274
|
-
# The entity's primary email.
|
1275
|
-
sig { returns(T.nilable(String)) }
|
1276
|
-
attr_accessor :email
|
1277
|
-
|
1278
|
-
# An individual's first name.
|
1279
|
-
sig { returns(T.nilable(String)) }
|
1280
|
-
attr_accessor :first_name
|
1281
|
-
|
1282
|
-
# A list of identifications for the legal entity.
|
1283
|
-
sig do
|
1284
|
-
returns(
|
1285
|
-
T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification])
|
1286
|
-
)
|
1287
|
-
end
|
1288
|
-
attr_reader :identifications
|
1289
|
-
|
1290
|
-
sig do
|
1291
|
-
params(
|
1292
|
-
identifications: T::Array[
|
1293
|
-
T.any(
|
1294
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification,
|
1295
|
-
ModernTreasury::Internal::AnyHash
|
1296
|
-
)
|
1297
|
-
]
|
1298
|
-
)
|
1299
|
-
.void
|
1300
|
-
end
|
1301
|
-
attr_writer :identifications
|
1302
|
-
|
1303
|
-
# A list of industry classifications for the legal entity.
|
1304
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::LegalEntityIndustryClassification])) }
|
1305
|
-
attr_reader :industry_classifications
|
1306
|
-
|
1307
|
-
sig do
|
1308
|
-
params(
|
1309
|
-
industry_classifications: T::Array[T.any(ModernTreasury::Models::LegalEntityIndustryClassification, ModernTreasury::Internal::AnyHash)]
|
1310
|
-
)
|
1311
|
-
.void
|
1312
|
-
end
|
1313
|
-
attr_writer :industry_classifications
|
1314
|
-
|
1315
|
-
# An individual's last name.
|
1316
|
-
sig { returns(T.nilable(String)) }
|
1317
|
-
attr_accessor :last_name
|
1318
|
-
|
1319
|
-
# The legal entity associations and its child legal entities.
|
1320
|
-
sig do
|
1321
|
-
returns(
|
1322
|
-
T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation])
|
1323
|
-
)
|
1324
|
-
end
|
1325
|
-
attr_accessor :legal_entity_associations
|
1326
|
-
|
1327
|
-
# The business's legal structure.
|
1328
|
-
sig do
|
1329
|
-
returns(
|
1330
|
-
T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::OrSymbol)
|
1331
|
-
)
|
1332
|
-
end
|
1333
|
-
attr_accessor :legal_structure
|
1334
|
-
|
1335
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
1336
|
-
# strings.
|
1337
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
1338
|
-
attr_reader :metadata
|
1339
|
-
|
1340
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
1341
|
-
attr_writer :metadata
|
1342
|
-
|
1343
|
-
# An individual's middle name.
|
1344
|
-
sig { returns(T.nilable(String)) }
|
1345
|
-
attr_accessor :middle_name
|
1346
|
-
|
1347
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber])) }
|
1348
|
-
attr_reader :phone_numbers
|
1349
|
-
|
1350
|
-
sig do
|
1351
|
-
params(
|
1352
|
-
phone_numbers: T::Array[
|
1353
|
-
T.any(
|
1354
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber,
|
1355
|
-
ModernTreasury::Internal::AnyHash
|
1356
|
-
)
|
1357
|
-
]
|
1358
|
-
)
|
1359
|
-
.void
|
1360
|
-
end
|
1361
|
-
attr_writer :phone_numbers
|
1362
|
-
|
1363
|
-
# Whether the individual is a politically exposed person.
|
1364
|
-
sig { returns(T.nilable(T::Boolean)) }
|
1365
|
-
attr_accessor :politically_exposed_person
|
1366
|
-
|
1367
|
-
# An individual's preferred name.
|
1368
|
-
sig { returns(T.nilable(String)) }
|
1369
|
-
attr_accessor :preferred_name
|
1370
|
-
|
1371
|
-
# An individual's prefix.
|
1372
|
-
sig { returns(T.nilable(String)) }
|
1373
|
-
attr_accessor :prefix
|
1374
|
-
|
1375
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
1376
|
-
sig { returns(T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::OrSymbol)) }
|
1377
|
-
attr_accessor :risk_rating
|
1378
|
-
|
1379
|
-
# An individual's suffix.
|
1380
|
-
sig { returns(T.nilable(String)) }
|
1381
|
-
attr_accessor :suffix
|
1382
|
-
|
1383
|
-
sig { returns(T.nilable(ModernTreasury::Models::WealthAndEmploymentDetails)) }
|
1384
|
-
attr_reader :wealth_and_employment_details
|
1385
|
-
|
1386
|
-
sig do
|
1387
|
-
params(
|
1388
|
-
wealth_and_employment_details: T.nilable(T.any(ModernTreasury::Models::WealthAndEmploymentDetails, ModernTreasury::Internal::AnyHash))
|
1389
|
-
)
|
1390
|
-
.void
|
1391
|
-
end
|
1392
|
-
attr_writer :wealth_and_employment_details
|
1393
|
-
|
1394
|
-
# The entity's primary website URL.
|
1395
|
-
sig { returns(T.nilable(String)) }
|
1396
|
-
attr_accessor :website
|
1397
|
-
|
1398
|
-
sig do
|
1399
|
-
params(
|
1400
|
-
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType::OrSymbol,
|
1401
|
-
addresses: T::Array[
|
1402
|
-
T.any(
|
1403
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address,
|
1404
|
-
ModernTreasury::Internal::AnyHash
|
1405
|
-
)
|
1406
|
-
],
|
1407
|
-
bank_settings: T.nilable(T.any(ModernTreasury::Models::BankSettings, ModernTreasury::Internal::AnyHash)),
|
1408
|
-
business_name: T.nilable(String),
|
1409
|
-
citizenship_country: T.nilable(String),
|
1410
|
-
compliance_details: T.nilable(T.any(ModernTreasury::Models::LegalEntityComplianceDetail, ModernTreasury::Internal::AnyHash)),
|
1411
|
-
date_formed: T.nilable(Date),
|
1412
|
-
date_of_birth: T.nilable(Date),
|
1413
|
-
doing_business_as_names: T::Array[String],
|
1414
|
-
email: T.nilable(String),
|
1415
|
-
first_name: T.nilable(String),
|
1416
|
-
identifications: T::Array[
|
1417
|
-
T.any(
|
1418
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification,
|
1419
|
-
ModernTreasury::Internal::AnyHash
|
1420
|
-
)
|
1421
|
-
],
|
1422
|
-
industry_classifications: T::Array[T.any(ModernTreasury::Models::LegalEntityIndustryClassification, ModernTreasury::Internal::AnyHash)],
|
1423
|
-
last_name: T.nilable(String),
|
1424
|
-
legal_entity_associations: T.nilable(
|
1425
|
-
T::Array[
|
1426
|
-
T.any(
|
1427
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation,
|
1428
|
-
ModernTreasury::Internal::AnyHash
|
1429
|
-
)
|
1430
|
-
]
|
1431
|
-
),
|
1432
|
-
legal_structure: T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::OrSymbol),
|
1433
|
-
metadata: T::Hash[Symbol, String],
|
1434
|
-
middle_name: T.nilable(String),
|
1435
|
-
phone_numbers: T::Array[
|
1436
|
-
T.any(
|
1437
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber,
|
1438
|
-
ModernTreasury::Internal::AnyHash
|
1439
|
-
)
|
1440
|
-
],
|
1441
|
-
politically_exposed_person: T.nilable(T::Boolean),
|
1442
|
-
preferred_name: T.nilable(String),
|
1443
|
-
prefix: T.nilable(String),
|
1444
|
-
risk_rating: T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::OrSymbol),
|
1445
|
-
suffix: T.nilable(String),
|
1446
|
-
wealth_and_employment_details: T.nilable(T.any(ModernTreasury::Models::WealthAndEmploymentDetails, ModernTreasury::Internal::AnyHash)),
|
1447
|
-
website: T.nilable(String)
|
1448
|
-
)
|
1449
|
-
.returns(T.attached_class)
|
1450
|
-
end
|
1451
|
-
def self.new(
|
1452
|
-
legal_entity_type:,
|
1453
|
-
addresses: nil,
|
1454
|
-
bank_settings: nil,
|
1455
|
-
business_name: nil,
|
1456
|
-
citizenship_country: nil,
|
1457
|
-
compliance_details: nil,
|
1458
|
-
date_formed: nil,
|
1459
|
-
date_of_birth: nil,
|
1460
|
-
doing_business_as_names: nil,
|
1461
|
-
email: nil,
|
1462
|
-
first_name: nil,
|
1463
|
-
identifications: nil,
|
1464
|
-
industry_classifications: nil,
|
1465
|
-
last_name: nil,
|
1466
|
-
legal_entity_associations: nil,
|
1467
|
-
legal_structure: nil,
|
1468
|
-
metadata: nil,
|
1469
|
-
middle_name: nil,
|
1470
|
-
phone_numbers: nil,
|
1471
|
-
politically_exposed_person: nil,
|
1472
|
-
preferred_name: nil,
|
1473
|
-
prefix: nil,
|
1474
|
-
risk_rating: nil,
|
1475
|
-
suffix: nil,
|
1476
|
-
wealth_and_employment_details: nil,
|
1477
|
-
website: nil
|
1478
|
-
); end
|
1479
|
-
sig do
|
1480
|
-
override
|
1481
|
-
.returns(
|
1482
|
-
{
|
1483
|
-
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType::OrSymbol,
|
1484
|
-
addresses: T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address],
|
1485
|
-
bank_settings: T.nilable(ModernTreasury::Models::BankSettings),
|
1486
|
-
business_name: T.nilable(String),
|
1487
|
-
citizenship_country: T.nilable(String),
|
1488
|
-
compliance_details: T.nilable(ModernTreasury::Models::LegalEntityComplianceDetail),
|
1489
|
-
date_formed: T.nilable(Date),
|
1490
|
-
date_of_birth: T.nilable(Date),
|
1491
|
-
doing_business_as_names: T::Array[String],
|
1492
|
-
email: T.nilable(String),
|
1493
|
-
first_name: T.nilable(String),
|
1494
|
-
identifications: T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification],
|
1495
|
-
industry_classifications: T::Array[ModernTreasury::Models::LegalEntityIndustryClassification],
|
1496
|
-
last_name: T.nilable(String),
|
1497
|
-
legal_entity_associations: T.nilable(T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]),
|
1498
|
-
legal_structure: T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::OrSymbol),
|
1499
|
-
metadata: T::Hash[Symbol, String],
|
1500
|
-
middle_name: T.nilable(String),
|
1501
|
-
phone_numbers: T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber],
|
1502
|
-
politically_exposed_person: T.nilable(T::Boolean),
|
1503
|
-
preferred_name: T.nilable(String),
|
1504
|
-
prefix: T.nilable(String),
|
1505
|
-
risk_rating: T.nilable(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::OrSymbol),
|
1506
|
-
suffix: T.nilable(String),
|
1507
|
-
wealth_and_employment_details: T.nilable(ModernTreasury::Models::WealthAndEmploymentDetails),
|
1508
|
-
website: T.nilable(String)
|
1509
|
-
}
|
1510
|
-
)
|
1511
|
-
end
|
1512
|
-
def to_hash; end
|
1513
|
-
|
1514
|
-
# The type of legal entity.
|
1515
|
-
module LegalEntityType
|
1516
|
-
extend ModernTreasury::Internal::Type::Enum
|
1517
|
-
|
1518
|
-
TaggedSymbol =
|
1519
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType) }
|
1520
|
-
OrSymbol =
|
1521
|
-
T.type_alias do
|
1522
|
-
T.any(
|
1523
|
-
Symbol,
|
1524
|
-
String,
|
1525
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType::TaggedSymbol
|
1526
|
-
)
|
1527
|
-
end
|
1528
|
-
|
1529
|
-
BUSINESS =
|
1530
|
-
T.let(
|
1531
|
-
:business,
|
1532
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType::TaggedSymbol
|
1533
|
-
)
|
1534
|
-
INDIVIDUAL =
|
1535
|
-
T.let(
|
1536
|
-
:individual,
|
1537
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType::TaggedSymbol
|
1538
|
-
)
|
1539
|
-
|
1540
|
-
sig do
|
1541
|
-
override
|
1542
|
-
.returns(
|
1543
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType::TaggedSymbol]
|
1544
|
-
)
|
1545
|
-
end
|
1546
|
-
def self.values; end
|
1547
|
-
end
|
1548
|
-
|
1549
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
1550
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
1551
|
-
sig { returns(T.nilable(String)) }
|
1552
|
-
attr_accessor :country
|
1553
|
-
|
1554
|
-
sig { returns(T.nilable(String)) }
|
1555
|
-
attr_accessor :line1
|
1556
|
-
|
1557
|
-
# Locality or City.
|
1558
|
-
sig { returns(T.nilable(String)) }
|
1559
|
-
attr_accessor :locality
|
1560
|
-
|
1561
|
-
# The postal code of the address.
|
1562
|
-
sig { returns(T.nilable(String)) }
|
1563
|
-
attr_accessor :postal_code
|
1564
|
-
|
1565
|
-
# Region or State.
|
1566
|
-
sig { returns(T.nilable(String)) }
|
1567
|
-
attr_accessor :region
|
1568
|
-
|
1569
|
-
# The types of this address.
|
1570
|
-
sig do
|
1571
|
-
returns(
|
1572
|
-
T.nilable(
|
1573
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol]
|
1574
|
-
)
|
1575
|
-
)
|
1576
|
-
end
|
1577
|
-
attr_reader :address_types
|
1578
|
-
|
1579
|
-
sig do
|
1580
|
-
params(
|
1581
|
-
address_types: T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol]
|
1582
|
-
)
|
1583
|
-
.void
|
1584
|
-
end
|
1585
|
-
attr_writer :address_types
|
1586
|
-
|
1587
|
-
sig { returns(T.nilable(String)) }
|
1588
|
-
attr_accessor :line2
|
1589
|
-
|
1590
|
-
sig do
|
1591
|
-
params(
|
1592
|
-
country: T.nilable(String),
|
1593
|
-
line1: T.nilable(String),
|
1594
|
-
locality: T.nilable(String),
|
1595
|
-
postal_code: T.nilable(String),
|
1596
|
-
region: T.nilable(String),
|
1597
|
-
address_types: T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol],
|
1598
|
-
line2: T.nilable(String)
|
1599
|
-
)
|
1600
|
-
.returns(T.attached_class)
|
1601
|
-
end
|
1602
|
-
def self.new(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
|
1603
|
-
end
|
1604
|
-
|
1605
|
-
sig do
|
1606
|
-
override
|
1607
|
-
.returns(
|
1608
|
-
{
|
1609
|
-
country: T.nilable(String),
|
1610
|
-
line1: T.nilable(String),
|
1611
|
-
locality: T.nilable(String),
|
1612
|
-
postal_code: T.nilable(String),
|
1613
|
-
region: T.nilable(String),
|
1614
|
-
address_types: T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::OrSymbol],
|
1615
|
-
line2: T.nilable(String)
|
1616
|
-
}
|
1617
|
-
)
|
1618
|
-
end
|
1619
|
-
def to_hash; end
|
1620
|
-
|
1621
|
-
module AddressType
|
1622
|
-
extend ModernTreasury::Internal::Type::Enum
|
1623
|
-
|
1624
|
-
TaggedSymbol =
|
1625
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType) }
|
1626
|
-
OrSymbol =
|
1627
|
-
T.type_alias do
|
1628
|
-
T.any(
|
1629
|
-
Symbol,
|
1630
|
-
String,
|
1631
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
|
1632
|
-
)
|
1633
|
-
end
|
1634
|
-
|
1635
|
-
BUSINESS =
|
1636
|
-
T.let(
|
1637
|
-
:business,
|
1638
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
|
1639
|
-
)
|
1640
|
-
MAILING =
|
1641
|
-
T.let(
|
1642
|
-
:mailing,
|
1643
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
|
1644
|
-
)
|
1645
|
-
OTHER =
|
1646
|
-
T.let(
|
1647
|
-
:other,
|
1648
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
|
1649
|
-
)
|
1650
|
-
PO_BOX =
|
1651
|
-
T.let(
|
1652
|
-
:po_box,
|
1653
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
|
1654
|
-
)
|
1655
|
-
RESIDENTIAL =
|
1656
|
-
T.let(
|
1657
|
-
:residential,
|
1658
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol
|
1659
|
-
)
|
1660
|
-
|
1661
|
-
sig do
|
1662
|
-
override
|
1663
|
-
.returns(
|
1664
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType::TaggedSymbol]
|
1665
|
-
)
|
1666
|
-
end
|
1667
|
-
def self.values; end
|
1668
|
-
end
|
1669
|
-
end
|
1670
|
-
|
1671
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
1672
|
-
# The ID number of identification document.
|
1673
|
-
sig { returns(String) }
|
1674
|
-
attr_accessor :id_number
|
1675
|
-
|
1676
|
-
# The type of ID number.
|
1677
|
-
sig { returns(ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::OrSymbol) }
|
1678
|
-
attr_accessor :id_type
|
1679
|
-
|
1680
|
-
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
1681
|
-
# identification
|
1682
|
-
sig { returns(T.nilable(String)) }
|
1683
|
-
attr_accessor :issuing_country
|
1684
|
-
|
1685
|
-
sig do
|
1686
|
-
params(
|
1687
|
-
id_number: String,
|
1688
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::OrSymbol,
|
1689
|
-
issuing_country: T.nilable(String)
|
1690
|
-
)
|
1691
|
-
.returns(T.attached_class)
|
1692
|
-
end
|
1693
|
-
def self.new(id_number:, id_type:, issuing_country: nil); end
|
1694
|
-
|
1695
|
-
sig do
|
1696
|
-
override
|
1697
|
-
.returns(
|
1698
|
-
{
|
1699
|
-
id_number: String,
|
1700
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::OrSymbol,
|
1701
|
-
issuing_country: T.nilable(String)
|
1702
|
-
}
|
1703
|
-
)
|
1704
|
-
end
|
1705
|
-
def to_hash; end
|
1706
|
-
|
1707
|
-
# The type of ID number.
|
1708
|
-
module IDType
|
1709
|
-
extend ModernTreasury::Internal::Type::Enum
|
1710
|
-
|
1711
|
-
TaggedSymbol =
|
1712
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType) }
|
1713
|
-
OrSymbol =
|
1714
|
-
T.type_alias do
|
1715
|
-
T.any(
|
1716
|
-
Symbol,
|
1717
|
-
String,
|
1718
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1719
|
-
)
|
1720
|
-
end
|
1721
|
-
|
1722
|
-
AR_CUIL =
|
1723
|
-
T.let(
|
1724
|
-
:ar_cuil,
|
1725
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1726
|
-
)
|
1727
|
-
AR_CUIT =
|
1728
|
-
T.let(
|
1729
|
-
:ar_cuit,
|
1730
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1731
|
-
)
|
1732
|
-
BR_CNPJ =
|
1733
|
-
T.let(
|
1734
|
-
:br_cnpj,
|
1735
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1736
|
-
)
|
1737
|
-
BR_CPF =
|
1738
|
-
T.let(
|
1739
|
-
:br_cpf,
|
1740
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1741
|
-
)
|
1742
|
-
CL_RUN =
|
1743
|
-
T.let(
|
1744
|
-
:cl_run,
|
1745
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1746
|
-
)
|
1747
|
-
CL_RUT =
|
1748
|
-
T.let(
|
1749
|
-
:cl_rut,
|
1750
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1751
|
-
)
|
1752
|
-
CO_CEDULAS =
|
1753
|
-
T.let(
|
1754
|
-
:co_cedulas,
|
1755
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1756
|
-
)
|
1757
|
-
CO_NIT =
|
1758
|
-
T.let(
|
1759
|
-
:co_nit,
|
1760
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1761
|
-
)
|
1762
|
-
HN_ID =
|
1763
|
-
T.let(
|
1764
|
-
:hn_id,
|
1765
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1766
|
-
)
|
1767
|
-
HN_RTN =
|
1768
|
-
T.let(
|
1769
|
-
:hn_rtn,
|
1770
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1771
|
-
)
|
1772
|
-
IN_LEI =
|
1773
|
-
T.let(
|
1774
|
-
:in_lei,
|
1775
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1776
|
-
)
|
1777
|
-
KR_BRN =
|
1778
|
-
T.let(
|
1779
|
-
:kr_brn,
|
1780
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1781
|
-
)
|
1782
|
-
KR_CRN =
|
1783
|
-
T.let(
|
1784
|
-
:kr_crn,
|
1785
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1786
|
-
)
|
1787
|
-
KR_RRN =
|
1788
|
-
T.let(
|
1789
|
-
:kr_rrn,
|
1790
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1791
|
-
)
|
1792
|
-
PASSPORT =
|
1793
|
-
T.let(
|
1794
|
-
:passport,
|
1795
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1796
|
-
)
|
1797
|
-
SA_TIN =
|
1798
|
-
T.let(
|
1799
|
-
:sa_tin,
|
1800
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1801
|
-
)
|
1802
|
-
SA_VAT =
|
1803
|
-
T.let(
|
1804
|
-
:sa_vat,
|
1805
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1806
|
-
)
|
1807
|
-
US_EIN =
|
1808
|
-
T.let(
|
1809
|
-
:us_ein,
|
1810
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1811
|
-
)
|
1812
|
-
US_ITIN =
|
1813
|
-
T.let(
|
1814
|
-
:us_itin,
|
1815
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1816
|
-
)
|
1817
|
-
US_SSN =
|
1818
|
-
T.let(
|
1819
|
-
:us_ssn,
|
1820
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1821
|
-
)
|
1822
|
-
VN_TIN =
|
1823
|
-
T.let(
|
1824
|
-
:vn_tin,
|
1825
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol
|
1826
|
-
)
|
1827
|
-
|
1828
|
-
sig do
|
1829
|
-
override
|
1830
|
-
.returns(
|
1831
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType::TaggedSymbol]
|
1832
|
-
)
|
1833
|
-
end
|
1834
|
-
def self.values; end
|
1835
|
-
end
|
1836
|
-
end
|
1837
|
-
|
1838
|
-
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
1839
|
-
sig do
|
1840
|
-
returns(
|
1841
|
-
T::Array[
|
1842
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
|
1843
|
-
]
|
1844
|
-
)
|
1845
|
-
end
|
1846
|
-
attr_accessor :relationship_types
|
1847
|
-
|
1848
|
-
# The child legal entity.
|
1849
|
-
sig do
|
1850
|
-
returns(
|
1851
|
-
T.nilable(
|
1852
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity
|
1853
|
-
)
|
1854
|
-
)
|
1855
|
-
end
|
1856
|
-
attr_reader :child_legal_entity
|
1857
|
-
|
1858
|
-
sig do
|
1859
|
-
params(
|
1860
|
-
child_legal_entity: T.any(
|
1861
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity,
|
1862
|
-
ModernTreasury::Internal::AnyHash
|
1863
|
-
)
|
1864
|
-
)
|
1865
|
-
.void
|
1866
|
-
end
|
1867
|
-
attr_writer :child_legal_entity
|
1868
|
-
|
1869
|
-
# The ID of the child legal entity.
|
1870
|
-
sig { returns(T.nilable(String)) }
|
1871
|
-
attr_reader :child_legal_entity_id
|
1872
|
-
|
1873
|
-
sig { params(child_legal_entity_id: String).void }
|
1874
|
-
attr_writer :child_legal_entity_id
|
1875
|
-
|
1876
|
-
# The child entity's ownership percentage iff they are a beneficial owner.
|
1877
|
-
sig { returns(T.nilable(Integer)) }
|
1878
|
-
attr_accessor :ownership_percentage
|
1879
|
-
|
1880
|
-
# The job title of the child entity at the parent entity.
|
1881
|
-
sig { returns(T.nilable(String)) }
|
1882
|
-
attr_accessor :title
|
1883
|
-
|
1884
|
-
sig do
|
1885
|
-
params(
|
1886
|
-
relationship_types: T::Array[
|
1887
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
|
1888
|
-
],
|
1889
|
-
child_legal_entity: T.any(
|
1890
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity,
|
1891
|
-
ModernTreasury::Internal::AnyHash
|
1892
|
-
),
|
1893
|
-
child_legal_entity_id: String,
|
1894
|
-
ownership_percentage: T.nilable(Integer),
|
1895
|
-
title: T.nilable(String)
|
1896
|
-
)
|
1897
|
-
.returns(T.attached_class)
|
1898
|
-
end
|
1899
|
-
def self.new(
|
1900
|
-
relationship_types:,
|
1901
|
-
child_legal_entity: nil,
|
1902
|
-
child_legal_entity_id: nil,
|
1903
|
-
ownership_percentage: nil,
|
1904
|
-
title: nil
|
1905
|
-
); end
|
1906
|
-
sig do
|
1907
|
-
override
|
1908
|
-
.returns(
|
1909
|
-
{
|
1910
|
-
relationship_types: T::Array[
|
1911
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::OrSymbol
|
1912
|
-
],
|
1913
|
-
child_legal_entity: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity,
|
1914
|
-
child_legal_entity_id: String,
|
1915
|
-
ownership_percentage: T.nilable(Integer),
|
1916
|
-
title: T.nilable(String)
|
1917
|
-
}
|
1918
|
-
)
|
1919
|
-
end
|
1920
|
-
def to_hash; end
|
1921
|
-
|
1922
|
-
# A list of relationship types for how the child entity relates to parent entity.
|
1923
|
-
module RelationshipType
|
1924
|
-
extend ModernTreasury::Internal::Type::Enum
|
1925
|
-
|
1926
|
-
TaggedSymbol =
|
1927
|
-
T.type_alias do
|
1928
|
-
T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType)
|
1929
|
-
end
|
1930
|
-
OrSymbol =
|
1931
|
-
T.type_alias do
|
1932
|
-
T.any(
|
1933
|
-
Symbol,
|
1934
|
-
String,
|
1935
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
1936
|
-
)
|
1937
|
-
end
|
1938
|
-
|
1939
|
-
BENEFICIAL_OWNER =
|
1940
|
-
T.let(
|
1941
|
-
:beneficial_owner,
|
1942
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
1943
|
-
)
|
1944
|
-
CONTROL_PERSON =
|
1945
|
-
T.let(
|
1946
|
-
:control_person,
|
1947
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
1948
|
-
)
|
1949
|
-
|
1950
|
-
sig do
|
1951
|
-
override
|
1952
|
-
.returns(
|
1953
|
-
T::Array[
|
1954
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType::TaggedSymbol
|
1955
|
-
]
|
1956
|
-
)
|
1957
|
-
end
|
1958
|
-
def self.values; end
|
1959
|
-
end
|
1960
|
-
|
1961
|
-
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
1962
|
-
# A list of addresses for the entity.
|
1963
|
-
sig do
|
1964
|
-
returns(
|
1965
|
-
T.nilable(
|
1966
|
-
T::Array[
|
1967
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
|
1968
|
-
]
|
1969
|
-
)
|
1970
|
-
)
|
1971
|
-
end
|
1972
|
-
attr_reader :addresses
|
1973
|
-
|
1974
|
-
sig do
|
1975
|
-
params(
|
1976
|
-
addresses: T::Array[
|
1977
|
-
T.any(
|
1978
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address,
|
1979
|
-
ModernTreasury::Internal::AnyHash
|
1980
|
-
)
|
1981
|
-
]
|
1982
|
-
)
|
1983
|
-
.void
|
1984
|
-
end
|
1985
|
-
attr_writer :addresses
|
1986
|
-
|
1987
|
-
sig { returns(T.nilable(ModernTreasury::Models::BankSettings)) }
|
1988
|
-
attr_reader :bank_settings
|
1989
|
-
|
1990
|
-
sig do
|
1991
|
-
params(
|
1992
|
-
bank_settings: T.nilable(T.any(ModernTreasury::Models::BankSettings, ModernTreasury::Internal::AnyHash))
|
1993
|
-
)
|
1994
|
-
.void
|
1995
|
-
end
|
1996
|
-
attr_writer :bank_settings
|
1997
|
-
|
1998
|
-
# The business's legal business name.
|
1999
|
-
sig { returns(T.nilable(String)) }
|
2000
|
-
attr_accessor :business_name
|
2001
|
-
|
2002
|
-
# The country of citizenship for an individual.
|
2003
|
-
sig { returns(T.nilable(String)) }
|
2004
|
-
attr_accessor :citizenship_country
|
2005
|
-
|
2006
|
-
sig { returns(T.nilable(ModernTreasury::Models::LegalEntityComplianceDetail)) }
|
2007
|
-
attr_reader :compliance_details
|
2008
|
-
|
2009
|
-
sig do
|
2010
|
-
params(
|
2011
|
-
compliance_details: T.nilable(T.any(ModernTreasury::Models::LegalEntityComplianceDetail, ModernTreasury::Internal::AnyHash))
|
2012
|
-
)
|
2013
|
-
.void
|
2014
|
-
end
|
2015
|
-
attr_writer :compliance_details
|
2016
|
-
|
2017
|
-
# A business's formation date (YYYY-MM-DD).
|
2018
|
-
sig { returns(T.nilable(Date)) }
|
2019
|
-
attr_accessor :date_formed
|
2020
|
-
|
2021
|
-
# An individual's date of birth (YYYY-MM-DD).
|
2022
|
-
sig { returns(T.nilable(Date)) }
|
2023
|
-
attr_accessor :date_of_birth
|
2024
|
-
|
2025
|
-
sig { returns(T.nilable(T::Array[String])) }
|
2026
|
-
attr_reader :doing_business_as_names
|
2027
|
-
|
2028
|
-
sig { params(doing_business_as_names: T::Array[String]).void }
|
2029
|
-
attr_writer :doing_business_as_names
|
2030
|
-
|
2031
|
-
# The entity's primary email.
|
2032
|
-
sig { returns(T.nilable(String)) }
|
2033
|
-
attr_accessor :email
|
2034
|
-
|
2035
|
-
# An individual's first name.
|
2036
|
-
sig { returns(T.nilable(String)) }
|
2037
|
-
attr_accessor :first_name
|
2038
|
-
|
2039
|
-
# A list of identifications for the legal entity.
|
2040
|
-
sig do
|
2041
|
-
returns(
|
2042
|
-
T.nilable(
|
2043
|
-
T::Array[
|
2044
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
|
2045
|
-
]
|
2046
|
-
)
|
2047
|
-
)
|
2048
|
-
end
|
2049
|
-
attr_reader :identifications
|
2050
|
-
|
2051
|
-
sig do
|
2052
|
-
params(
|
2053
|
-
identifications: T::Array[
|
2054
|
-
T.any(
|
2055
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification,
|
2056
|
-
ModernTreasury::Internal::AnyHash
|
2057
|
-
)
|
2058
|
-
]
|
2059
|
-
)
|
2060
|
-
.void
|
2061
|
-
end
|
2062
|
-
attr_writer :identifications
|
2063
|
-
|
2064
|
-
# A list of industry classifications for the legal entity.
|
2065
|
-
sig { returns(T.nilable(T::Array[ModernTreasury::Models::LegalEntityIndustryClassification])) }
|
2066
|
-
attr_reader :industry_classifications
|
2067
|
-
|
2068
|
-
sig do
|
2069
|
-
params(
|
2070
|
-
industry_classifications: T::Array[T.any(ModernTreasury::Models::LegalEntityIndustryClassification, ModernTreasury::Internal::AnyHash)]
|
2071
|
-
)
|
2072
|
-
.void
|
2073
|
-
end
|
2074
|
-
attr_writer :industry_classifications
|
2075
|
-
|
2076
|
-
# An individual's last name.
|
2077
|
-
sig { returns(T.nilable(String)) }
|
2078
|
-
attr_accessor :last_name
|
2079
|
-
|
2080
|
-
# The type of legal entity.
|
2081
|
-
sig do
|
2082
|
-
returns(
|
2083
|
-
T.nilable(
|
2084
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
|
2085
|
-
)
|
2086
|
-
)
|
2087
|
-
end
|
2088
|
-
attr_reader :legal_entity_type
|
2089
|
-
|
2090
|
-
sig do
|
2091
|
-
params(
|
2092
|
-
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol
|
2093
|
-
)
|
2094
|
-
.void
|
2095
|
-
end
|
2096
|
-
attr_writer :legal_entity_type
|
2097
|
-
|
2098
|
-
# The business's legal structure.
|
2099
|
-
sig do
|
2100
|
-
returns(
|
2101
|
-
T.nilable(
|
2102
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
|
2103
|
-
)
|
2104
|
-
)
|
2105
|
-
end
|
2106
|
-
attr_accessor :legal_structure
|
2107
|
-
|
2108
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
2109
|
-
# strings.
|
2110
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
2111
|
-
attr_reader :metadata
|
2112
|
-
|
2113
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
2114
|
-
attr_writer :metadata
|
2115
|
-
|
2116
|
-
# An individual's middle name.
|
2117
|
-
sig { returns(T.nilable(String)) }
|
2118
|
-
attr_accessor :middle_name
|
2119
|
-
|
2120
|
-
sig do
|
2121
|
-
returns(
|
2122
|
-
T.nilable(
|
2123
|
-
T::Array[
|
2124
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
|
2125
|
-
]
|
2126
|
-
)
|
2127
|
-
)
|
2128
|
-
end
|
2129
|
-
attr_reader :phone_numbers
|
2130
|
-
|
2131
|
-
sig do
|
2132
|
-
params(
|
2133
|
-
phone_numbers: T::Array[
|
2134
|
-
T.any(
|
2135
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber,
|
2136
|
-
ModernTreasury::Internal::AnyHash
|
2137
|
-
)
|
2138
|
-
]
|
2139
|
-
)
|
2140
|
-
.void
|
2141
|
-
end
|
2142
|
-
attr_writer :phone_numbers
|
2143
|
-
|
2144
|
-
# Whether the individual is a politically exposed person.
|
2145
|
-
sig { returns(T.nilable(T::Boolean)) }
|
2146
|
-
attr_accessor :politically_exposed_person
|
2147
|
-
|
2148
|
-
# An individual's preferred name.
|
2149
|
-
sig { returns(T.nilable(String)) }
|
2150
|
-
attr_accessor :preferred_name
|
2151
|
-
|
2152
|
-
# An individual's prefix.
|
2153
|
-
sig { returns(T.nilable(String)) }
|
2154
|
-
attr_accessor :prefix
|
2155
|
-
|
2156
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
2157
|
-
sig do
|
2158
|
-
returns(
|
2159
|
-
T.nilable(
|
2160
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
|
2161
|
-
)
|
2162
|
-
)
|
2163
|
-
end
|
2164
|
-
attr_accessor :risk_rating
|
2165
|
-
|
2166
|
-
# An individual's suffix.
|
2167
|
-
sig { returns(T.nilable(String)) }
|
2168
|
-
attr_accessor :suffix
|
2169
|
-
|
2170
|
-
sig { returns(T.nilable(ModernTreasury::Models::WealthAndEmploymentDetails)) }
|
2171
|
-
attr_reader :wealth_and_employment_details
|
2172
|
-
|
2173
|
-
sig do
|
2174
|
-
params(
|
2175
|
-
wealth_and_employment_details: T.nilable(T.any(ModernTreasury::Models::WealthAndEmploymentDetails, ModernTreasury::Internal::AnyHash))
|
2176
|
-
)
|
2177
|
-
.void
|
2178
|
-
end
|
2179
|
-
attr_writer :wealth_and_employment_details
|
2180
|
-
|
2181
|
-
# The entity's primary website URL.
|
2182
|
-
sig { returns(T.nilable(String)) }
|
2183
|
-
attr_accessor :website
|
2184
|
-
|
2185
|
-
# The child legal entity.
|
2186
|
-
sig do
|
2187
|
-
params(
|
2188
|
-
addresses: T::Array[
|
2189
|
-
T.any(
|
2190
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address,
|
2191
|
-
ModernTreasury::Internal::AnyHash
|
2192
|
-
)
|
2193
|
-
],
|
2194
|
-
bank_settings: T.nilable(T.any(ModernTreasury::Models::BankSettings, ModernTreasury::Internal::AnyHash)),
|
2195
|
-
business_name: T.nilable(String),
|
2196
|
-
citizenship_country: T.nilable(String),
|
2197
|
-
compliance_details: T.nilable(T.any(ModernTreasury::Models::LegalEntityComplianceDetail, ModernTreasury::Internal::AnyHash)),
|
2198
|
-
date_formed: T.nilable(Date),
|
2199
|
-
date_of_birth: T.nilable(Date),
|
2200
|
-
doing_business_as_names: T::Array[String],
|
2201
|
-
email: T.nilable(String),
|
2202
|
-
first_name: T.nilable(String),
|
2203
|
-
identifications: T::Array[
|
2204
|
-
T.any(
|
2205
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification,
|
2206
|
-
ModernTreasury::Internal::AnyHash
|
2207
|
-
)
|
2208
|
-
],
|
2209
|
-
industry_classifications: T::Array[T.any(ModernTreasury::Models::LegalEntityIndustryClassification, ModernTreasury::Internal::AnyHash)],
|
2210
|
-
last_name: T.nilable(String),
|
2211
|
-
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
|
2212
|
-
legal_structure: T.nilable(
|
2213
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
|
2214
|
-
),
|
2215
|
-
metadata: T::Hash[Symbol, String],
|
2216
|
-
middle_name: T.nilable(String),
|
2217
|
-
phone_numbers: T::Array[
|
2218
|
-
T.any(
|
2219
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber,
|
2220
|
-
ModernTreasury::Internal::AnyHash
|
2221
|
-
)
|
2222
|
-
],
|
2223
|
-
politically_exposed_person: T.nilable(T::Boolean),
|
2224
|
-
preferred_name: T.nilable(String),
|
2225
|
-
prefix: T.nilable(String),
|
2226
|
-
risk_rating: T.nilable(
|
2227
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
|
2228
|
-
),
|
2229
|
-
suffix: T.nilable(String),
|
2230
|
-
wealth_and_employment_details: T.nilable(T.any(ModernTreasury::Models::WealthAndEmploymentDetails, ModernTreasury::Internal::AnyHash)),
|
2231
|
-
website: T.nilable(String)
|
2232
|
-
)
|
2233
|
-
.returns(T.attached_class)
|
2234
|
-
end
|
2235
|
-
def self.new(
|
2236
|
-
addresses: nil,
|
2237
|
-
bank_settings: nil,
|
2238
|
-
business_name: nil,
|
2239
|
-
citizenship_country: nil,
|
2240
|
-
compliance_details: nil,
|
2241
|
-
date_formed: nil,
|
2242
|
-
date_of_birth: nil,
|
2243
|
-
doing_business_as_names: nil,
|
2244
|
-
email: nil,
|
2245
|
-
first_name: nil,
|
2246
|
-
identifications: nil,
|
2247
|
-
industry_classifications: nil,
|
2248
|
-
last_name: nil,
|
2249
|
-
legal_entity_type: nil,
|
2250
|
-
legal_structure: nil,
|
2251
|
-
metadata: nil,
|
2252
|
-
middle_name: nil,
|
2253
|
-
phone_numbers: nil,
|
2254
|
-
politically_exposed_person: nil,
|
2255
|
-
preferred_name: nil,
|
2256
|
-
prefix: nil,
|
2257
|
-
risk_rating: nil,
|
2258
|
-
suffix: nil,
|
2259
|
-
wealth_and_employment_details: nil,
|
2260
|
-
website: nil
|
2261
|
-
); end
|
2262
|
-
sig do
|
2263
|
-
override
|
2264
|
-
.returns(
|
2265
|
-
{
|
2266
|
-
addresses: T::Array[
|
2267
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
|
2268
|
-
],
|
2269
|
-
bank_settings: T.nilable(ModernTreasury::Models::BankSettings),
|
2270
|
-
business_name: T.nilable(String),
|
2271
|
-
citizenship_country: T.nilable(String),
|
2272
|
-
compliance_details: T.nilable(ModernTreasury::Models::LegalEntityComplianceDetail),
|
2273
|
-
date_formed: T.nilable(Date),
|
2274
|
-
date_of_birth: T.nilable(Date),
|
2275
|
-
doing_business_as_names: T::Array[String],
|
2276
|
-
email: T.nilable(String),
|
2277
|
-
first_name: T.nilable(String),
|
2278
|
-
identifications: T::Array[
|
2279
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
|
2280
|
-
],
|
2281
|
-
industry_classifications: T::Array[ModernTreasury::Models::LegalEntityIndustryClassification],
|
2282
|
-
last_name: T.nilable(String),
|
2283
|
-
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::OrSymbol,
|
2284
|
-
legal_structure: T.nilable(
|
2285
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::OrSymbol
|
2286
|
-
),
|
2287
|
-
metadata: T::Hash[Symbol, String],
|
2288
|
-
middle_name: T.nilable(String),
|
2289
|
-
phone_numbers: T::Array[
|
2290
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
|
2291
|
-
],
|
2292
|
-
politically_exposed_person: T.nilable(T::Boolean),
|
2293
|
-
preferred_name: T.nilable(String),
|
2294
|
-
prefix: T.nilable(String),
|
2295
|
-
risk_rating: T.nilable(
|
2296
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::OrSymbol
|
2297
|
-
),
|
2298
|
-
suffix: T.nilable(String),
|
2299
|
-
wealth_and_employment_details: T.nilable(ModernTreasury::Models::WealthAndEmploymentDetails),
|
2300
|
-
website: T.nilable(String)
|
2301
|
-
}
|
2302
|
-
)
|
2303
|
-
end
|
2304
|
-
def to_hash; end
|
2305
|
-
|
2306
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
2307
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
2308
|
-
sig { returns(T.nilable(String)) }
|
2309
|
-
attr_accessor :country
|
2310
|
-
|
2311
|
-
sig { returns(T.nilable(String)) }
|
2312
|
-
attr_accessor :line1
|
2313
|
-
|
2314
|
-
# Locality or City.
|
2315
|
-
sig { returns(T.nilable(String)) }
|
2316
|
-
attr_accessor :locality
|
2317
|
-
|
2318
|
-
# The postal code of the address.
|
2319
|
-
sig { returns(T.nilable(String)) }
|
2320
|
-
attr_accessor :postal_code
|
2321
|
-
|
2322
|
-
# Region or State.
|
2323
|
-
sig { returns(T.nilable(String)) }
|
2324
|
-
attr_accessor :region
|
2325
|
-
|
2326
|
-
# The types of this address.
|
2327
|
-
sig do
|
2328
|
-
returns(
|
2329
|
-
T.nilable(
|
2330
|
-
T::Array[
|
2331
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
|
2332
|
-
]
|
2333
|
-
)
|
2334
|
-
)
|
2335
|
-
end
|
2336
|
-
attr_reader :address_types
|
2337
|
-
|
2338
|
-
sig do
|
2339
|
-
params(
|
2340
|
-
address_types: T::Array[
|
2341
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
|
2342
|
-
]
|
2343
|
-
)
|
2344
|
-
.void
|
2345
|
-
end
|
2346
|
-
attr_writer :address_types
|
2347
|
-
|
2348
|
-
sig { returns(T.nilable(String)) }
|
2349
|
-
attr_accessor :line2
|
2350
|
-
|
2351
|
-
sig do
|
2352
|
-
params(
|
2353
|
-
country: T.nilable(String),
|
2354
|
-
line1: T.nilable(String),
|
2355
|
-
locality: T.nilable(String),
|
2356
|
-
postal_code: T.nilable(String),
|
2357
|
-
region: T.nilable(String),
|
2358
|
-
address_types: T::Array[
|
2359
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
|
2360
|
-
],
|
2361
|
-
line2: T.nilable(String)
|
2362
|
-
)
|
2363
|
-
.returns(T.attached_class)
|
2364
|
-
end
|
2365
|
-
def self.new(
|
2366
|
-
country:,
|
2367
|
-
line1:,
|
2368
|
-
locality:,
|
2369
|
-
postal_code:,
|
2370
|
-
region:,
|
2371
|
-
address_types: nil,
|
2372
|
-
line2: nil
|
2373
|
-
)
|
2374
|
-
end
|
2375
|
-
|
2376
|
-
sig do
|
2377
|
-
override
|
2378
|
-
.returns(
|
2379
|
-
{
|
2380
|
-
country: T.nilable(String),
|
2381
|
-
line1: T.nilable(String),
|
2382
|
-
locality: T.nilable(String),
|
2383
|
-
postal_code: T.nilable(String),
|
2384
|
-
region: T.nilable(String),
|
2385
|
-
address_types: T::Array[
|
2386
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::OrSymbol
|
2387
|
-
],
|
2388
|
-
line2: T.nilable(String)
|
2389
|
-
}
|
2390
|
-
)
|
2391
|
-
end
|
2392
|
-
def to_hash; end
|
2393
|
-
|
2394
|
-
module AddressType
|
2395
|
-
extend ModernTreasury::Internal::Type::Enum
|
2396
|
-
|
2397
|
-
TaggedSymbol =
|
2398
|
-
T.type_alias do
|
2399
|
-
T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType)
|
2400
|
-
end
|
2401
|
-
OrSymbol =
|
2402
|
-
T.type_alias do
|
2403
|
-
T.any(
|
2404
|
-
Symbol,
|
2405
|
-
String,
|
2406
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
2407
|
-
)
|
2408
|
-
end
|
2409
|
-
|
2410
|
-
BUSINESS =
|
2411
|
-
T.let(
|
2412
|
-
:business,
|
2413
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
2414
|
-
)
|
2415
|
-
MAILING =
|
2416
|
-
T.let(
|
2417
|
-
:mailing,
|
2418
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
2419
|
-
)
|
2420
|
-
OTHER =
|
2421
|
-
T.let(
|
2422
|
-
:other,
|
2423
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
2424
|
-
)
|
2425
|
-
PO_BOX =
|
2426
|
-
T.let(
|
2427
|
-
:po_box,
|
2428
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
2429
|
-
)
|
2430
|
-
RESIDENTIAL =
|
2431
|
-
T.let(
|
2432
|
-
:residential,
|
2433
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
2434
|
-
)
|
2435
|
-
|
2436
|
-
sig do
|
2437
|
-
override
|
2438
|
-
.returns(
|
2439
|
-
T::Array[
|
2440
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
2441
|
-
]
|
2442
|
-
)
|
2443
|
-
end
|
2444
|
-
def self.values; end
|
2445
|
-
end
|
2446
|
-
end
|
2447
|
-
|
2448
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
2449
|
-
# The ID number of identification document.
|
2450
|
-
sig { returns(String) }
|
2451
|
-
attr_accessor :id_number
|
2452
|
-
|
2453
|
-
# The type of ID number.
|
2454
|
-
sig do
|
2455
|
-
returns(
|
2456
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol
|
2457
|
-
)
|
2458
|
-
end
|
2459
|
-
attr_accessor :id_type
|
2460
|
-
|
2461
|
-
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
2462
|
-
# identification
|
2463
|
-
sig { returns(T.nilable(String)) }
|
2464
|
-
attr_accessor :issuing_country
|
2465
|
-
|
2466
|
-
sig do
|
2467
|
-
params(
|
2468
|
-
id_number: String,
|
2469
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
|
2470
|
-
issuing_country: T.nilable(String)
|
2471
|
-
)
|
2472
|
-
.returns(T.attached_class)
|
2473
|
-
end
|
2474
|
-
def self.new(id_number:, id_type:, issuing_country: nil); end
|
2475
|
-
|
2476
|
-
sig do
|
2477
|
-
override
|
2478
|
-
.returns(
|
2479
|
-
{
|
2480
|
-
id_number: String,
|
2481
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::OrSymbol,
|
2482
|
-
issuing_country: T.nilable(String)
|
2483
|
-
}
|
2484
|
-
)
|
2485
|
-
end
|
2486
|
-
def to_hash; end
|
2487
|
-
|
2488
|
-
# The type of ID number.
|
2489
|
-
module IDType
|
2490
|
-
extend ModernTreasury::Internal::Type::Enum
|
2491
|
-
|
2492
|
-
TaggedSymbol =
|
2493
|
-
T.type_alias do
|
2494
|
-
T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType)
|
2495
|
-
end
|
2496
|
-
OrSymbol =
|
2497
|
-
T.type_alias do
|
2498
|
-
T.any(
|
2499
|
-
Symbol,
|
2500
|
-
String,
|
2501
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2502
|
-
)
|
2503
|
-
end
|
2504
|
-
|
2505
|
-
AR_CUIL =
|
2506
|
-
T.let(
|
2507
|
-
:ar_cuil,
|
2508
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2509
|
-
)
|
2510
|
-
AR_CUIT =
|
2511
|
-
T.let(
|
2512
|
-
:ar_cuit,
|
2513
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2514
|
-
)
|
2515
|
-
BR_CNPJ =
|
2516
|
-
T.let(
|
2517
|
-
:br_cnpj,
|
2518
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2519
|
-
)
|
2520
|
-
BR_CPF =
|
2521
|
-
T.let(
|
2522
|
-
:br_cpf,
|
2523
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2524
|
-
)
|
2525
|
-
CL_RUN =
|
2526
|
-
T.let(
|
2527
|
-
:cl_run,
|
2528
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2529
|
-
)
|
2530
|
-
CL_RUT =
|
2531
|
-
T.let(
|
2532
|
-
:cl_rut,
|
2533
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2534
|
-
)
|
2535
|
-
CO_CEDULAS =
|
2536
|
-
T.let(
|
2537
|
-
:co_cedulas,
|
2538
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2539
|
-
)
|
2540
|
-
CO_NIT =
|
2541
|
-
T.let(
|
2542
|
-
:co_nit,
|
2543
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2544
|
-
)
|
2545
|
-
HN_ID =
|
2546
|
-
T.let(
|
2547
|
-
:hn_id,
|
2548
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2549
|
-
)
|
2550
|
-
HN_RTN =
|
2551
|
-
T.let(
|
2552
|
-
:hn_rtn,
|
2553
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2554
|
-
)
|
2555
|
-
IN_LEI =
|
2556
|
-
T.let(
|
2557
|
-
:in_lei,
|
2558
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2559
|
-
)
|
2560
|
-
KR_BRN =
|
2561
|
-
T.let(
|
2562
|
-
:kr_brn,
|
2563
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2564
|
-
)
|
2565
|
-
KR_CRN =
|
2566
|
-
T.let(
|
2567
|
-
:kr_crn,
|
2568
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2569
|
-
)
|
2570
|
-
KR_RRN =
|
2571
|
-
T.let(
|
2572
|
-
:kr_rrn,
|
2573
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2574
|
-
)
|
2575
|
-
PASSPORT =
|
2576
|
-
T.let(
|
2577
|
-
:passport,
|
2578
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2579
|
-
)
|
2580
|
-
SA_TIN =
|
2581
|
-
T.let(
|
2582
|
-
:sa_tin,
|
2583
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2584
|
-
)
|
2585
|
-
SA_VAT =
|
2586
|
-
T.let(
|
2587
|
-
:sa_vat,
|
2588
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2589
|
-
)
|
2590
|
-
US_EIN =
|
2591
|
-
T.let(
|
2592
|
-
:us_ein,
|
2593
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2594
|
-
)
|
2595
|
-
US_ITIN =
|
2596
|
-
T.let(
|
2597
|
-
:us_itin,
|
2598
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2599
|
-
)
|
2600
|
-
US_SSN =
|
2601
|
-
T.let(
|
2602
|
-
:us_ssn,
|
2603
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2604
|
-
)
|
2605
|
-
VN_TIN =
|
2606
|
-
T.let(
|
2607
|
-
:vn_tin,
|
2608
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2609
|
-
)
|
2610
|
-
|
2611
|
-
sig do
|
2612
|
-
override
|
2613
|
-
.returns(
|
2614
|
-
T::Array[
|
2615
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
2616
|
-
]
|
2617
|
-
)
|
2618
|
-
end
|
2619
|
-
def self.values; end
|
2620
|
-
end
|
2621
|
-
end
|
2622
|
-
|
2623
|
-
# The type of legal entity.
|
2624
|
-
module LegalEntityType
|
2625
|
-
extend ModernTreasury::Internal::Type::Enum
|
2626
|
-
|
2627
|
-
TaggedSymbol =
|
2628
|
-
T.type_alias do
|
2629
|
-
T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType)
|
2630
|
-
end
|
2631
|
-
OrSymbol =
|
2632
|
-
T.type_alias do
|
2633
|
-
T.any(
|
2634
|
-
Symbol,
|
2635
|
-
String,
|
2636
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
|
2637
|
-
)
|
2638
|
-
end
|
2639
|
-
|
2640
|
-
BUSINESS =
|
2641
|
-
T.let(
|
2642
|
-
:business,
|
2643
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
|
2644
|
-
)
|
2645
|
-
INDIVIDUAL =
|
2646
|
-
T.let(
|
2647
|
-
:individual,
|
2648
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
|
2649
|
-
)
|
2650
|
-
|
2651
|
-
sig do
|
2652
|
-
override
|
2653
|
-
.returns(
|
2654
|
-
T::Array[
|
2655
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType::TaggedSymbol
|
2656
|
-
]
|
2657
|
-
)
|
2658
|
-
end
|
2659
|
-
def self.values; end
|
2660
|
-
end
|
2661
|
-
|
2662
|
-
# The business's legal structure.
|
2663
|
-
module LegalStructure
|
2664
|
-
extend ModernTreasury::Internal::Type::Enum
|
2665
|
-
|
2666
|
-
TaggedSymbol =
|
2667
|
-
T.type_alias do
|
2668
|
-
T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure)
|
2669
|
-
end
|
2670
|
-
OrSymbol =
|
2671
|
-
T.type_alias do
|
2672
|
-
T.any(
|
2673
|
-
Symbol,
|
2674
|
-
String,
|
2675
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2676
|
-
)
|
2677
|
-
end
|
2678
|
-
|
2679
|
-
CORPORATION =
|
2680
|
-
T.let(
|
2681
|
-
:corporation,
|
2682
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2683
|
-
)
|
2684
|
-
LLC =
|
2685
|
-
T.let(
|
2686
|
-
:llc,
|
2687
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2688
|
-
)
|
2689
|
-
NON_PROFIT =
|
2690
|
-
T.let(
|
2691
|
-
:non_profit,
|
2692
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2693
|
-
)
|
2694
|
-
PARTNERSHIP =
|
2695
|
-
T.let(
|
2696
|
-
:partnership,
|
2697
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2698
|
-
)
|
2699
|
-
SOLE_PROPRIETORSHIP =
|
2700
|
-
T.let(
|
2701
|
-
:sole_proprietorship,
|
2702
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2703
|
-
)
|
2704
|
-
TRUST =
|
2705
|
-
T.let(
|
2706
|
-
:trust,
|
2707
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2708
|
-
)
|
2709
|
-
|
2710
|
-
sig do
|
2711
|
-
override
|
2712
|
-
.returns(
|
2713
|
-
T::Array[
|
2714
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure::TaggedSymbol
|
2715
|
-
]
|
2716
|
-
)
|
2717
|
-
end
|
2718
|
-
def self.values; end
|
2719
|
-
end
|
2720
|
-
|
2721
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
2722
|
-
sig { returns(T.nilable(String)) }
|
2723
|
-
attr_reader :phone_number
|
2724
|
-
|
2725
|
-
sig { params(phone_number: String).void }
|
2726
|
-
attr_writer :phone_number
|
2727
|
-
|
2728
|
-
# A list of phone numbers in E.164 format.
|
2729
|
-
sig { params(phone_number: String).returns(T.attached_class) }
|
2730
|
-
def self.new(phone_number: nil); end
|
2731
|
-
|
2732
|
-
sig { override.returns({phone_number: String}) }
|
2733
|
-
def to_hash; end
|
2734
|
-
end
|
2735
|
-
|
2736
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
2737
|
-
module RiskRating
|
2738
|
-
extend ModernTreasury::Internal::Type::Enum
|
2739
|
-
|
2740
|
-
TaggedSymbol =
|
2741
|
-
T.type_alias do
|
2742
|
-
T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating)
|
2743
|
-
end
|
2744
|
-
OrSymbol =
|
2745
|
-
T.type_alias do
|
2746
|
-
T.any(
|
2747
|
-
Symbol,
|
2748
|
-
String,
|
2749
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
|
2750
|
-
)
|
2751
|
-
end
|
2752
|
-
|
2753
|
-
LOW =
|
2754
|
-
T.let(
|
2755
|
-
:low,
|
2756
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
|
2757
|
-
)
|
2758
|
-
MEDIUM =
|
2759
|
-
T.let(
|
2760
|
-
:medium,
|
2761
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
|
2762
|
-
)
|
2763
|
-
HIGH =
|
2764
|
-
T.let(
|
2765
|
-
:high,
|
2766
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
|
2767
|
-
)
|
2768
|
-
|
2769
|
-
sig do
|
2770
|
-
override
|
2771
|
-
.returns(
|
2772
|
-
T::Array[
|
2773
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating::TaggedSymbol
|
2774
|
-
]
|
2775
|
-
)
|
2776
|
-
end
|
2777
|
-
def self.values; end
|
2778
|
-
end
|
2779
|
-
end
|
2780
|
-
end
|
2781
|
-
|
2782
|
-
# The business's legal structure.
|
2783
|
-
module LegalStructure
|
2784
|
-
extend ModernTreasury::Internal::Type::Enum
|
2785
|
-
|
2786
|
-
TaggedSymbol =
|
2787
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure) }
|
2788
|
-
OrSymbol =
|
2789
|
-
T.type_alias do
|
2790
|
-
T.any(
|
2791
|
-
Symbol,
|
2792
|
-
String,
|
2793
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol
|
2794
|
-
)
|
2795
|
-
end
|
2796
|
-
|
2797
|
-
CORPORATION =
|
2798
|
-
T.let(
|
2799
|
-
:corporation,
|
2800
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol
|
2801
|
-
)
|
2802
|
-
LLC =
|
2803
|
-
T.let(:llc, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol)
|
2804
|
-
NON_PROFIT =
|
2805
|
-
T.let(
|
2806
|
-
:non_profit,
|
2807
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol
|
2808
|
-
)
|
2809
|
-
PARTNERSHIP =
|
2810
|
-
T.let(
|
2811
|
-
:partnership,
|
2812
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol
|
2813
|
-
)
|
2814
|
-
SOLE_PROPRIETORSHIP =
|
2815
|
-
T.let(
|
2816
|
-
:sole_proprietorship,
|
2817
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol
|
2818
|
-
)
|
2819
|
-
TRUST =
|
2820
|
-
T.let(:trust, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol)
|
2821
|
-
|
2822
|
-
sig do
|
2823
|
-
override
|
2824
|
-
.returns(
|
2825
|
-
T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure::TaggedSymbol]
|
2826
|
-
)
|
2827
|
-
end
|
2828
|
-
def self.values; end
|
2829
|
-
end
|
2830
|
-
|
2831
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
2832
|
-
sig { returns(T.nilable(String)) }
|
2833
|
-
attr_reader :phone_number
|
2834
|
-
|
2835
|
-
sig { params(phone_number: String).void }
|
2836
|
-
attr_writer :phone_number
|
2837
|
-
|
2838
|
-
# A list of phone numbers in E.164 format.
|
2839
|
-
sig { params(phone_number: String).returns(T.attached_class) }
|
2840
|
-
def self.new(phone_number: nil); end
|
2841
|
-
|
2842
|
-
sig { override.returns({phone_number: String}) }
|
2843
|
-
def to_hash; end
|
2844
|
-
end
|
2845
|
-
|
2846
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
2847
|
-
module RiskRating
|
2848
|
-
extend ModernTreasury::Internal::Type::Enum
|
2849
|
-
|
2850
|
-
TaggedSymbol =
|
2851
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating) }
|
2852
|
-
OrSymbol =
|
2853
|
-
T.type_alias do
|
2854
|
-
T.any(
|
2855
|
-
Symbol,
|
2856
|
-
String,
|
2857
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::TaggedSymbol
|
2858
|
-
)
|
2859
|
-
end
|
2860
|
-
|
2861
|
-
LOW =
|
2862
|
-
T.let(:low, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::TaggedSymbol)
|
2863
|
-
MEDIUM =
|
2864
|
-
T.let(:medium, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::TaggedSymbol)
|
2865
|
-
HIGH =
|
2866
|
-
T.let(:high, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::TaggedSymbol)
|
2867
|
-
|
2868
|
-
sig do
|
2869
|
-
override
|
2870
|
-
.returns(T::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating::TaggedSymbol])
|
2871
|
-
end
|
2872
|
-
def self.values; end
|
2873
|
-
end
|
2874
|
-
end
|
2875
|
-
|
2876
|
-
# The verification status of the counterparty.
|
2877
|
-
module VerificationStatus
|
2878
|
-
extend ModernTreasury::Internal::Type::Enum
|
2879
|
-
|
2880
|
-
TaggedSymbol =
|
2881
|
-
T.type_alias { T.all(Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus) }
|
2882
|
-
OrSymbol =
|
2883
|
-
T.type_alias { T.any(Symbol, String, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::TaggedSymbol) }
|
2884
|
-
|
2885
|
-
DENIED =
|
2886
|
-
T.let(:denied, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::TaggedSymbol)
|
2887
|
-
NEEDS_APPROVAL =
|
2888
|
-
T.let(:needs_approval, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::TaggedSymbol)
|
2889
|
-
UNVERIFIED =
|
2890
|
-
T.let(:unverified, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::TaggedSymbol)
|
2891
|
-
VERIFIED =
|
2892
|
-
T.let(:verified, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::TaggedSymbol)
|
2893
|
-
|
2894
|
-
sig do
|
2895
|
-
override
|
2896
|
-
.returns(T::Array[ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus::TaggedSymbol])
|
2897
|
-
end
|
2898
|
-
def self.values; end
|
2899
|
-
end
|
2900
|
-
end
|
2901
|
-
end
|
2902
|
-
end
|