modern_treasury 0.1.0.pre.alpha.18 → 0.1.0.pre.alpha.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +96 -0
- data/README.md +124 -66
- data/SECURITY.md +2 -2
- data/lib/modern_treasury/client.rb +9 -5
- data/lib/modern_treasury/errors.rb +10 -10
- data/lib/modern_treasury/file_part.rb +55 -0
- data/lib/modern_treasury/internal/page.rb +2 -2
- data/lib/modern_treasury/internal/transport/base_client.rb +88 -16
- data/lib/modern_treasury/internal/transport/pooled_net_requester.rb +19 -7
- data/lib/modern_treasury/internal/type/array_of.rb +19 -0
- data/lib/modern_treasury/internal/type/base_model.rb +112 -39
- data/lib/modern_treasury/internal/type/base_page.rb +9 -1
- data/lib/modern_treasury/internal/type/boolean.rb +22 -11
- data/lib/modern_treasury/internal/type/converter.rb +22 -1
- data/lib/modern_treasury/internal/type/enum.rb +35 -19
- data/lib/modern_treasury/internal/type/{io_like.rb → file_input.rb} +41 -15
- data/lib/modern_treasury/internal/type/hash_of.rb +19 -0
- data/lib/modern_treasury/internal/type/request_parameters.rb +7 -14
- data/lib/modern_treasury/internal/type/union.rb +24 -2
- data/lib/modern_treasury/internal/type/unknown.rb +22 -11
- data/lib/modern_treasury/internal/util.rb +193 -64
- data/lib/modern_treasury/internal.rb +9 -1
- data/lib/modern_treasury/models/account_collection_flow.rb +46 -89
- data/lib/modern_treasury/models/account_collection_flow_create_params.rb +15 -22
- data/lib/modern_treasury/models/account_collection_flow_list_params.rb +14 -50
- data/lib/modern_treasury/models/account_collection_flow_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/account_collection_flow_update_params.rb +11 -15
- data/lib/modern_treasury/models/account_detail.rb +29 -38
- data/lib/modern_treasury/models/account_detail_create_params.rb +23 -29
- data/lib/modern_treasury/models/account_detail_delete_params.rb +8 -16
- data/lib/modern_treasury/models/account_detail_list_params.rb +8 -17
- data/lib/modern_treasury/models/account_detail_retrieve_params.rb +6 -11
- data/lib/modern_treasury/models/accounts_type.rb +2 -5
- data/lib/modern_treasury/models/async_response.rb +3 -7
- data/lib/modern_treasury/models/bank_settings.rb +23 -29
- data/lib/modern_treasury/models/bulk_request.rb +37 -51
- data/lib/modern_treasury/models/bulk_request_create_params.rb +1101 -1631
- data/lib/modern_treasury/models/bulk_request_list_params.rb +34 -69
- data/lib/modern_treasury/models/bulk_request_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/bulk_result.rb +70 -95
- data/lib/modern_treasury/models/bulk_result_list_params.rb +37 -76
- data/lib/modern_treasury/models/bulk_result_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/client_ping_params.rb +3 -8
- data/lib/modern_treasury/models/connection.rb +21 -27
- data/lib/modern_treasury/models/connection_legal_entity.rb +26 -35
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +323 -403
- data/lib/modern_treasury/models/connection_legal_entity_list_params.rb +15 -49
- data/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/connection_legal_entity_update_params.rb +9 -20
- data/lib/modern_treasury/models/connection_list_params.rb +14 -27
- data/lib/modern_treasury/models/counterparty.rb +157 -237
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +23 -34
- data/lib/modern_treasury/models/counterparty_collect_account_response.rb +9 -8
- data/lib/modern_treasury/models/counterparty_create_params.rb +516 -728
- data/lib/modern_treasury/models/counterparty_delete_params.rb +3 -8
- data/lib/modern_treasury/models/counterparty_list_params.rb +29 -64
- data/lib/modern_treasury/models/counterparty_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/counterparty_update_params.rb +23 -50
- data/lib/modern_treasury/models/currency.rb +9 -5
- data/lib/modern_treasury/models/document.rb +62 -91
- data/lib/modern_treasury/models/document_create_params.rb +19 -27
- data/lib/modern_treasury/models/document_list_params.rb +22 -35
- data/lib/modern_treasury/models/document_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/event.rb +23 -29
- data/lib/modern_treasury/models/event_list_params.rb +23 -57
- data/lib/modern_treasury/models/event_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment.rb +67 -82
- data/lib/modern_treasury/models/expected_payment_create_params.rb +140 -215
- data/lib/modern_treasury/models/expected_payment_delete_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment_list_params.rb +63 -92
- data/lib/modern_treasury/models/expected_payment_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/expected_payment_type.rb +6 -5
- data/lib/modern_treasury/models/expected_payment_update_params.rb +51 -70
- data/lib/modern_treasury/models/external_account.rb +105 -137
- data/lib/modern_treasury/models/external_account_complete_verification_params.rb +5 -14
- data/lib/modern_treasury/models/external_account_create_params.rb +146 -245
- data/lib/modern_treasury/models/external_account_delete_params.rb +3 -8
- data/lib/modern_treasury/models/external_account_list_params.rb +20 -43
- data/lib/modern_treasury/models/external_account_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/external_account_type.rb +7 -5
- data/lib/modern_treasury/models/external_account_update_params.rb +42 -69
- data/lib/modern_treasury/models/external_account_verify_params.rb +34 -58
- data/lib/modern_treasury/models/external_account_verify_response.rb +37 -48
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +51 -55
- data/lib/modern_treasury/models/foreign_exchange_quote_create_params.rb +24 -47
- data/lib/modern_treasury/models/foreign_exchange_quote_list_params.rb +32 -71
- data/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/incoming_payment_detail.rb +72 -86
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +36 -65
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +39 -84
- data/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/incoming_payment_detail_update_params.rb +9 -14
- data/lib/modern_treasury/models/internal_account.rb +84 -99
- data/lib/modern_treasury/models/internal_account_create_params.rb +79 -80
- data/lib/modern_treasury/models/internal_account_list_params.rb +38 -72
- data/lib/modern_treasury/models/internal_account_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/internal_account_update_params.rb +21 -48
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +65 -78
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +39 -35
- data/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rb +4 -9
- data/lib/modern_treasury/models/internal_accounts/balance_report_list_params.rb +21 -33
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +4 -9
- data/lib/modern_treasury/models/invoice.rb +161 -195
- data/lib/modern_treasury/models/invoice_add_payment_order_params.rb +4 -9
- data/lib/modern_treasury/models/invoice_create_params.rb +167 -251
- data/lib/modern_treasury/models/invoice_list_params.rb +42 -92
- data/lib/modern_treasury/models/invoice_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/invoice_update_params.rb +171 -271
- data/lib/modern_treasury/models/invoices/invoice_line_item.rb +37 -35
- data/lib/modern_treasury/models/invoices/line_item_create_params.rb +25 -52
- data/lib/modern_treasury/models/invoices/line_item_delete_params.rb +4 -9
- data/lib/modern_treasury/models/invoices/line_item_list_params.rb +6 -15
- data/lib/modern_treasury/models/invoices/line_item_retrieve_params.rb +4 -9
- data/lib/modern_treasury/models/invoices/line_item_update_params.rb +29 -64
- data/lib/modern_treasury/models/ledger.rb +21 -14
- data/lib/modern_treasury/models/ledger_account.rb +100 -115
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +114 -106
- data/lib/modern_treasury/models/ledger_account_balance_monitor_create_params.rb +32 -33
- data/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_balance_monitor_list_params.rb +21 -33
- data/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_balance_monitor_update_params.rb +13 -20
- data/lib/modern_treasury/models/ledger_account_category.rb +87 -93
- data/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_create_params.rb +25 -40
- data/lib/modern_treasury/models/ledger_account_category_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +43 -94
- data/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rb +4 -9
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +19 -36
- data/lib/modern_treasury/models/ledger_account_category_update_params.rb +14 -21
- data/lib/modern_treasury/models/ledger_account_create_params.rb +34 -60
- data/lib/modern_treasury/models/ledger_account_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_list_params.rb +116 -279
- data/lib/modern_treasury/models/ledger_account_retrieve_params.rb +28 -66
- data/lib/modern_treasury/models/ledger_account_settlement.rb +40 -49
- data/lib/modern_treasury/models/ledger_account_settlement_create_params.rb +26 -42
- data/lib/modern_treasury/models/ledger_account_settlement_list_params.rb +35 -78
- data/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_settlement_update_params.rb +17 -27
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rb +9 -9
- data/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rb +9 -9
- data/lib/modern_treasury/models/ledger_account_statement_create_params.rb +17 -28
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +144 -146
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +145 -146
- data/lib/modern_treasury/models/ledger_account_update_params.rb +14 -21
- data/lib/modern_treasury/models/ledger_create_params.rb +13 -16
- data/lib/modern_treasury/models/ledger_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_entry.rb +101 -108
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +85 -189
- data/lib/modern_treasury/models/ledger_entry_retrieve_params.rb +9 -14
- data/lib/modern_treasury/models/ledger_entry_update_params.rb +9 -14
- data/lib/modern_treasury/models/ledger_event_handler.rb +62 -64
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +54 -63
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +20 -33
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +15 -16
- data/lib/modern_treasury/models/ledger_list_params.rb +20 -33
- data/lib/modern_treasury/models/ledger_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_transaction.rb +48 -63
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +64 -113
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +39 -48
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +33 -69
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +84 -189
- data/lib/modern_treasury/models/ledger_transaction_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +60 -105
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +162 -168
- data/lib/modern_treasury/models/ledger_transactions/version_list_params.rb +24 -50
- data/lib/modern_treasury/models/ledger_update_params.rb +14 -21
- data/lib/modern_treasury/models/ledgerable_event.rb +23 -29
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +15 -17
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/legal_entity.rb +167 -174
- data/lib/modern_treasury/models/legal_entity_association.rb +206 -211
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +178 -214
- data/lib/modern_treasury/models/legal_entity_compliance_detail.rb +27 -33
- data/lib/modern_treasury/models/legal_entity_create_params.rb +314 -380
- data/lib/modern_treasury/models/legal_entity_industry_classification.rb +22 -31
- data/lib/modern_treasury/models/legal_entity_list_params.rb +23 -49
- data/lib/modern_treasury/models/legal_entity_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/legal_entity_update_params.rb +136 -163
- data/lib/modern_treasury/models/line_item.rb +40 -49
- data/lib/modern_treasury/models/line_item_list_params.rb +10 -22
- data/lib/modern_treasury/models/line_item_retrieve_params.rb +8 -16
- data/lib/modern_treasury/models/line_item_update_params.rb +16 -22
- data/lib/modern_treasury/models/paper_item.rb +52 -52
- data/lib/modern_treasury/models/paper_item_list_params.rb +20 -43
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/payment_action_create_params.rb +59 -0
- data/lib/modern_treasury/models/payment_action_create_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_list_params.rb +157 -0
- data/lib/modern_treasury/models/payment_action_list_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_retrieve_params.rb +14 -0
- data/lib/modern_treasury/models/payment_action_retrieve_response.rb +100 -0
- data/lib/modern_treasury/models/payment_action_update_params.rb +44 -0
- data/lib/modern_treasury/models/payment_action_update_response.rb +100 -0
- data/lib/modern_treasury/models/payment_flow.rb +67 -131
- data/lib/modern_treasury/models/payment_flow_create_params.rb +22 -36
- data/lib/modern_treasury/models/payment_flow_list_params.rb +18 -64
- data/lib/modern_treasury/models/payment_flow_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/payment_flow_update_params.rb +11 -15
- data/lib/modern_treasury/models/payment_order.rb +186 -230
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +362 -563
- data/lib/modern_treasury/models/payment_order_create_params.rb +384 -595
- data/lib/modern_treasury/models/payment_order_list_params.rb +70 -146
- data/lib/modern_treasury/models/payment_order_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -5
- data/lib/modern_treasury/models/payment_order_type.rb +6 -5
- data/lib/modern_treasury/models/payment_order_update_params.rb +296 -462
- data/lib/modern_treasury/models/payment_orders/reversal.rb +31 -43
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +87 -141
- data/lib/modern_treasury/models/payment_orders/reversal_list_params.rb +6 -15
- data/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rb +4 -9
- data/lib/modern_treasury/models/payment_reference.rb +31 -40
- data/lib/modern_treasury/models/payment_reference_list_params.rb +23 -50
- data/lib/modern_treasury/models/payment_reference_retireve_params.rb +3 -8
- data/lib/modern_treasury/models/payment_reference_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/ping_response.rb +2 -6
- data/lib/modern_treasury/models/reconciliation_rule.rb +36 -48
- data/lib/modern_treasury/models/return_create_params.rb +66 -39
- data/lib/modern_treasury/models/return_list_params.rb +26 -56
- data/lib/modern_treasury/models/return_object.rb +140 -108
- data/lib/modern_treasury/models/return_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/routing_detail.rb +61 -75
- data/lib/modern_treasury/models/routing_detail_create_params.rb +27 -33
- data/lib/modern_treasury/models/routing_detail_delete_params.rb +8 -16
- data/lib/modern_treasury/models/routing_detail_list_params.rb +8 -17
- data/lib/modern_treasury/models/routing_detail_retrieve_params.rb +6 -11
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +51 -78
- data/lib/modern_treasury/models/transaction.rb +89 -96
- data/lib/modern_treasury/models/transaction_create_params.rb +35 -49
- data/lib/modern_treasury/models/transaction_delete_params.rb +3 -8
- data/lib/modern_treasury/models/transaction_direction.rb +2 -5
- data/lib/modern_treasury/models/transaction_list_params.rb +47 -106
- data/lib/modern_treasury/models/transaction_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/transaction_update_params.rb +9 -14
- data/lib/modern_treasury/models/transactions/line_item_create_params.rb +12 -11
- data/lib/modern_treasury/models/transactions/line_item_delete_params.rb +3 -8
- data/lib/modern_treasury/models/transactions/line_item_list_params.rb +14 -34
- data/lib/modern_treasury/models/transactions/line_item_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +39 -51
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +14 -16
- data/lib/modern_treasury/models/virtual_account.rb +37 -45
- data/lib/modern_treasury/models/virtual_account_create_params.rb +114 -175
- data/lib/modern_treasury/models/virtual_account_delete_params.rb +3 -8
- data/lib/modern_treasury/models/virtual_account_list_params.rb +20 -43
- data/lib/modern_treasury/models/virtual_account_retrieve_params.rb +3 -8
- data/lib/modern_treasury/models/virtual_account_update_params.rb +14 -27
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +61 -83
- data/lib/modern_treasury/models.rb +461 -0
- data/lib/modern_treasury/request_options.rb +8 -6
- data/lib/modern_treasury/resources/account_collection_flows.rb +20 -11
- data/lib/modern_treasury/resources/account_details.rb +36 -19
- data/lib/modern_treasury/resources/bulk_requests.rb +31 -14
- data/lib/modern_treasury/resources/bulk_results.rb +20 -9
- data/lib/modern_treasury/resources/connection_legal_entities.rb +19 -13
- data/lib/modern_treasury/resources/connections.rb +8 -4
- data/lib/modern_treasury/resources/counterparties.rb +83 -38
- data/lib/modern_treasury/resources/documents.rb +23 -11
- data/lib/modern_treasury/resources/events.rb +14 -6
- data/lib/modern_treasury/resources/expected_payments.rb +117 -55
- data/lib/modern_treasury/resources/external_accounts.rb +83 -35
- data/lib/modern_treasury/resources/foreign_exchange_quotes.rb +41 -19
- data/lib/modern_treasury/resources/incoming_payment_details.rb +57 -26
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +45 -18
- data/lib/modern_treasury/resources/internal_accounts.rb +66 -31
- data/lib/modern_treasury/resources/invoices/line_items.rb +62 -32
- data/lib/modern_treasury/resources/invoices.rb +140 -66
- data/lib/modern_treasury/resources/ledger_account_balance_monitors.rb +46 -20
- data/lib/modern_treasury/resources/ledger_account_categories.rb +86 -45
- data/lib/modern_treasury/resources/ledger_account_settlements/account_entries.rb +18 -8
- data/lib/modern_treasury/resources/ledger_account_settlements.rb +56 -24
- data/lib/modern_treasury/resources/ledger_account_statements.rb +16 -7
- data/lib/modern_treasury/resources/ledger_accounts.rb +78 -35
- data/lib/modern_treasury/resources/ledger_entries.rb +57 -24
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +34 -14
- data/lib/modern_treasury/resources/ledger_transactions/versions.rb +16 -6
- data/lib/modern_treasury/resources/ledger_transactions.rb +116 -49
- data/lib/modern_treasury/resources/ledgerable_events.rb +16 -8
- data/lib/modern_treasury/resources/ledgers.rb +43 -20
- data/lib/modern_treasury/resources/legal_entities.rb +116 -50
- data/lib/modern_treasury/resources/legal_entity_associations.rb +16 -7
- data/lib/modern_treasury/resources/line_items.rb +31 -17
- data/lib/modern_treasury/resources/paper_items.rb +16 -7
- data/lib/modern_treasury/resources/payment_actions.rb +137 -0
- data/lib/modern_treasury/resources/payment_flows.rb +31 -16
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +25 -13
- data/lib/modern_treasury/resources/payment_orders.rb +256 -121
- data/lib/modern_treasury/resources/payment_references.rb +16 -7
- data/lib/modern_treasury/resources/returns.rb +37 -17
- data/lib/modern_treasury/resources/routing_details.rb +38 -20
- data/lib/modern_treasury/resources/transactions/line_items.rb +18 -10
- data/lib/modern_treasury/resources/transactions.rb +65 -28
- data/lib/modern_treasury/resources/validations.rb +10 -4
- data/lib/modern_treasury/resources/virtual_accounts.rb +51 -23
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +14 -10
- data/rbi/{lib/modern_treasury → modern_treasury}/client.rbi +16 -12
- data/rbi/{lib/modern_treasury → modern_treasury}/errors.rbi +34 -15
- data/rbi/modern_treasury/file_part.rbi +37 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/page.rbi +8 -4
- data/rbi/modern_treasury/internal/transport/base_client.rbi +303 -0
- data/rbi/modern_treasury/internal/transport/pooled_net_requester.rbi +80 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/array_of.rbi +46 -23
- data/rbi/modern_treasury/internal/type/base_model.rbi +310 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/base_page.rbi +15 -8
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/boolean.rbi +18 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/converter.rbi +75 -28
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/enum.rbi +31 -18
- data/rbi/{lib/modern_treasury/internal/type/io_like.rbi → modern_treasury/internal/type/file_input.rbi} +19 -6
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/hash_of.rbi +46 -23
- data/rbi/modern_treasury/internal/type/request_parameters.rbi +31 -0
- data/rbi/modern_treasury/internal/type/union.rbi +116 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal/type/unknown.rbi +22 -6
- data/rbi/modern_treasury/internal/util.rbi +485 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/internal.rbi +7 -1
- data/rbi/modern_treasury/models/account_collection_flow.rbi +372 -0
- data/rbi/modern_treasury/models/account_collection_flow_create_params.rbi +197 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/account_collection_flow_list_params.rbi +26 -17
- data/rbi/modern_treasury/models/account_collection_flow_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/account_collection_flow_update_params.rbi +85 -0
- data/rbi/modern_treasury/models/account_detail.rbi +198 -0
- data/rbi/modern_treasury/models/account_detail_create_params.rbi +209 -0
- data/rbi/modern_treasury/models/account_detail_delete_params.rbi +81 -0
- data/rbi/modern_treasury/models/account_detail_list_params.rbi +59 -0
- data/rbi/modern_treasury/models/account_detail_retrieve_params.rbi +46 -0
- data/rbi/modern_treasury/models/accounts_type.rbi +24 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/async_response.rbi +13 -3
- data/rbi/{lib/modern_treasury → modern_treasury}/models/bank_settings.rbi +35 -19
- data/rbi/modern_treasury/models/bulk_request.rbi +231 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +7199 -0
- data/rbi/modern_treasury/models/bulk_request_list_params.rbi +264 -0
- data/rbi/modern_treasury/models/bulk_request_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/bulk_result.rbi +401 -0
- data/rbi/modern_treasury/models/bulk_result_list_params.rbi +270 -0
- data/rbi/modern_treasury/models/bulk_result_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/client_ping_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/connection.rbi +29 -18
- data/rbi/modern_treasury/models/connection_legal_entity.rbi +148 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +2052 -0
- data/rbi/modern_treasury/models/connection_legal_entity_list_params.rbi +137 -0
- data/rbi/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/connection_legal_entity_update_params.rbi +92 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/connection_list_params.rbi +23 -14
- data/rbi/modern_treasury/models/counterparty.rbi +796 -0
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +291 -0
- data/rbi/modern_treasury/models/counterparty_collect_account_response.rbi +58 -0
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +3527 -0
- data/rbi/modern_treasury/models/counterparty_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/counterparty_list_params.rbi +38 -19
- data/rbi/modern_treasury/models/counterparty_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/counterparty_update_params.rbi +34 -17
- data/rbi/modern_treasury/models/currency.rbi +214 -0
- data/rbi/modern_treasury/models/document.rbi +339 -0
- data/rbi/modern_treasury/models/document_create_params.rbi +159 -0
- data/rbi/modern_treasury/models/document_list_params.rbi +176 -0
- data/rbi/modern_treasury/models/document_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/event.rbi +29 -18
- data/rbi/{lib/modern_treasury → modern_treasury}/models/event_list_params.rbi +29 -18
- data/rbi/modern_treasury/models/event_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/expected_payment.rbi +387 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/expected_payment_create_params.rbi +341 -157
- data/rbi/modern_treasury/models/expected_payment_delete_params.rbi +32 -0
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +422 -0
- data/rbi/modern_treasury/models/expected_payment_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/expected_payment_type.rbi +71 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +289 -0
- data/rbi/modern_treasury/models/external_account.rbi +540 -0
- data/rbi/modern_treasury/models/external_account_complete_verification_params.rbi +44 -0
- data/rbi/modern_treasury/models/external_account_create_params.rbi +1196 -0
- data/rbi/modern_treasury/models/external_account_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/external_account_list_params.rbi +29 -16
- data/rbi/modern_treasury/models/external_account_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/external_account_type.rbi +55 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +237 -0
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +387 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/external_account_verify_response.rbi +113 -71
- data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote.rbi +86 -51
- data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote_create_params.rbi +39 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/models/foreign_exchange_quote_list_params.rbi +38 -20
- data/rbi/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +617 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +279 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +299 -0
- data/rbi/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/incoming_payment_detail_update_params.rbi +25 -6
- data/rbi/modern_treasury/models/internal_account.rbi +432 -0
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +369 -0
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +335 -0
- data/rbi/modern_treasury/models/internal_account_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_account_update_params.rbi +31 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_accounts/balance_report.rbi +155 -82
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +288 -0
- data/rbi/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +43 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/internal_accounts/balance_report_list_params.rbi +47 -33
- data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +43 -0
- data/rbi/modern_treasury/models/invoice.rbi +822 -0
- data/rbi/modern_treasury/models/invoice_add_payment_order_params.rbi +38 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_create_params.rbi +416 -192
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_list_params.rbi +80 -37
- data/rbi/modern_treasury/models/invoice_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoice_update_params.rbi +416 -192
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/invoice_line_item.rbi +59 -24
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_create_params.rbi +41 -18
- data/rbi/modern_treasury/models/invoices/line_item_delete_params.rbi +43 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_list_params.rbi +21 -13
- data/rbi/modern_treasury/models/invoices/line_item_retrieve_params.rbi +43 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/invoices/line_item_update_params.rbi +42 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger.rbi +27 -17
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account.rbi +244 -120
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +551 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_create_params.rbi +69 -29
- data/rbi/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_list_params.rbi +28 -15
- data/rbi/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_balance_monitor_update_params.rbi +28 -13
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category.rbi +202 -115
- data/rbi/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +38 -0
- data/rbi/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +38 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_create_params.rbi +40 -21
- data/rbi/modern_treasury/models/ledger_account_category_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_list_params.rbi +64 -35
- data/rbi/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +38 -0
- data/rbi/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +38 -0
- data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +101 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_category_update_params.rbi +31 -14
- data/rbi/modern_treasury/models/ledger_account_create_params.rbi +200 -0
- data/rbi/modern_treasury/models/ledger_account_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_list_params.rbi +182 -87
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_retrieve_params.rbi +62 -31
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement.rbi +104 -39
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement_create_params.rbi +81 -29
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_settlement_list_params.rbi +41 -21
- data/rbi/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_account_settlement_update_params.rbi +121 -0
- data/rbi/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +50 -0
- data/rbi/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +50 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_create_params.rbi +34 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_create_response.rbi +389 -222
- data/rbi/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_statement_retrieve_response.rbi +389 -222
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_account_update_params.rbi +31 -14
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_create_params.rbi +31 -14
- data/rbi/modern_treasury/models/ledger_delete_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +519 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +474 -0
- data/rbi/modern_treasury/models/ledger_entry_retrieve_params.rbi +51 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_entry_update_params.rbi +25 -6
- data/rbi/modern_treasury/models/ledger_event_handler.rbi +322 -0
- data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +303 -0
- data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_event_handler_list_params.rbi +28 -15
- data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +98 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_list_params.rbi +30 -15
- data/rbi/modern_treasury/models/ledger_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_transaction.rbi +298 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +410 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transaction_create_partial_post_params.rbi +95 -52
- data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +249 -0
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +506 -0
- data/rbi/modern_treasury/models/ledger_transaction_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +396 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transactions/ledger_transaction_version.rbi +358 -214
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_transactions/version_list_params.rbi +35 -17
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledger_update_params.rbi +31 -14
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledgerable_event.rbi +36 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ledgerable_event_create_params.rbi +34 -15
- data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +875 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +1112 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +1056 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/legal_entity_compliance_detail.rbi +38 -21
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +1940 -0
- data/rbi/modern_treasury/models/legal_entity_industry_classification.rbi +194 -0
- data/rbi/modern_treasury/models/legal_entity_list_params.rbi +133 -0
- data/rbi/modern_treasury/models/legal_entity_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +828 -0
- data/rbi/modern_treasury/models/line_item.rbi +217 -0
- data/rbi/modern_treasury/models/line_item_list_params.rbi +94 -0
- data/rbi/modern_treasury/models/line_item_retrieve_params.rbi +86 -0
- data/rbi/modern_treasury/models/line_item_update_params.rbi +98 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/paper_item.rbi +79 -39
- data/rbi/{lib/modern_treasury → modern_treasury}/models/paper_item_list_params.rbi +29 -16
- data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_create_params.rbi +94 -0
- data/rbi/modern_treasury/models/payment_action_create_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +306 -0
- data/rbi/modern_treasury/models/payment_action_list_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_action_retrieve_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_action_update_params.rbi +106 -0
- data/rbi/modern_treasury/models/payment_action_update_response.rbi +118 -0
- data/rbi/modern_treasury/models/payment_flow.rbi +387 -0
- data/rbi/modern_treasury/models/payment_flow_create_params.rbi +136 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_flow_list_params.rbi +28 -19
- data/rbi/modern_treasury/models/payment_flow_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_flow_update_params.rbi +76 -0
- data/rbi/modern_treasury/models/payment_order.rbi +1461 -0
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +2473 -0
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +2631 -0
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +542 -0
- data/rbi/modern_treasury/models/payment_order_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +66 -0
- data/rbi/modern_treasury/models/payment_order_type.rbi +64 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +2136 -0
- data/rbi/modern_treasury/models/payment_orders/reversal.rbi +221 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_orders/reversal_create_params.rbi +228 -126
- data/rbi/{lib/modern_treasury → modern_treasury}/models/payment_orders/reversal_list_params.rbi +21 -13
- data/rbi/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +43 -0
- data/rbi/modern_treasury/models/payment_reference.rbi +564 -0
- data/rbi/modern_treasury/models/payment_reference_list_params.rbi +144 -0
- data/rbi/modern_treasury/models/payment_reference_retireve_params.rbi +32 -0
- data/rbi/modern_treasury/models/payment_reference_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/ping_response.rbi +10 -3
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +286 -0
- data/rbi/modern_treasury/models/return_create_params.rbi +345 -0
- data/rbi/modern_treasury/models/return_list_params.rbi +162 -0
- data/rbi/modern_treasury/models/return_object.rbi +1011 -0
- data/rbi/modern_treasury/models/return_retrieve_params.rbi +32 -0
- data/rbi/modern_treasury/models/routing_detail.rbi +523 -0
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +455 -0
- data/rbi/modern_treasury/models/routing_detail_delete_params.rbi +81 -0
- data/rbi/modern_treasury/models/routing_detail_list_params.rbi +59 -0
- data/rbi/modern_treasury/models/routing_detail_retrieve_params.rbi +46 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +494 -0
- data/rbi/modern_treasury/models/transaction.rbi +588 -0
- data/rbi/modern_treasury/models/transaction_create_params.rbi +346 -0
- data/rbi/modern_treasury/models/transaction_delete_params.rbi +32 -0
- data/rbi/modern_treasury/models/transaction_direction.rbi +25 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/transaction_list_params.rbi +47 -25
- data/rbi/modern_treasury/models/transaction_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/transaction_update_params.rbi +25 -6
- data/rbi/{lib/modern_treasury → modern_treasury}/models/transactions/line_item_create_params.rbi +31 -14
- data/rbi/modern_treasury/models/transactions/line_item_delete_params.rbi +34 -0
- data/rbi/modern_treasury/models/transactions/line_item_list_params.rbi +125 -0
- data/rbi/modern_treasury/models/transactions/line_item_retrieve_params.rbi +34 -0
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +276 -0
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +199 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account.rbi +57 -29
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +957 -0
- data/rbi/modern_treasury/models/virtual_account_delete_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account_list_params.rbi +28 -16
- data/rbi/modern_treasury/models/virtual_account_retrieve_params.rbi +32 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/models/virtual_account_update_params.rbi +22 -14
- data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +812 -0
- data/rbi/modern_treasury/models.rbi +498 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/request_options.rbi +20 -5
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/account_collection_flows.rbi +29 -18
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/account_details.rbi +30 -22
- data/rbi/modern_treasury/resources/bulk_requests.rbi +97 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/bulk_results.rbi +17 -12
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/connection_legal_entities.rbi +29 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/connections.rbi +7 -5
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/counterparties.rbi +47 -32
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/documents.rbi +22 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/events.rbi +12 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/expected_payments.rbi +63 -37
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/external_accounts.rbi +74 -70
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/foreign_exchange_quotes.rbi +20 -14
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/incoming_payment_details.rbi +32 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/internal_accounts/balance_reports.rbi +33 -44
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/internal_accounts.rbi +39 -25
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/invoices/line_items.rbi +30 -45
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/invoices.rbi +80 -66
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_balance_monitors.rbi +32 -24
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_categories.rbi +53 -45
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_settlements/account_entries.rbi +12 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_settlements.rbi +36 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_account_statements.rbi +13 -8
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_accounts.rbi +39 -37
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_entries.rbi +20 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_event_handlers.rbi +36 -29
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_transactions/versions.rbi +10 -11
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledger_transactions.rbi +62 -51
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledgerable_events.rbi +12 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/ledgers.rbi +27 -21
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/legal_entities.rbi +82 -45
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/legal_entity_associations.rbi +13 -10
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/line_items.rbi +23 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/paper_items.rbi +12 -9
- data/rbi/modern_treasury/resources/payment_actions.rbi +119 -0
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_flows.rbi +25 -19
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_orders/reversals.rbi +24 -32
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_orders.rbi +114 -80
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/payment_references.rbi +15 -9
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/returns.rbi +22 -16
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/routing_details.rbi +34 -23
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/transactions/line_items.rbi +26 -36
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/transactions.rbi +29 -22
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/validations.rbi +9 -6
- data/rbi/{lib/modern_treasury → modern_treasury}/resources/virtual_accounts.rbi +38 -36
- data/sig/modern_treasury/client.rbs +3 -1
- data/sig/modern_treasury/file_part.rbs +21 -0
- data/sig/modern_treasury/internal/page.rbs +1 -1
- data/sig/modern_treasury/internal/transport/base_client.rbs +25 -4
- data/sig/modern_treasury/internal/transport/pooled_net_requester.rbs +4 -0
- data/sig/modern_treasury/internal/type/array_of.rbs +5 -0
- data/sig/modern_treasury/internal/type/base_model.rbs +19 -1
- data/sig/modern_treasury/internal/type/base_page.rbs +1 -1
- data/sig/modern_treasury/internal/type/boolean.rbs +3 -0
- data/sig/modern_treasury/internal/type/converter.rbs +2 -0
- data/sig/modern_treasury/internal/type/enum.rbs +5 -2
- data/sig/modern_treasury/internal/type/{io_like.rbs → file_input.rbs} +3 -1
- data/sig/modern_treasury/internal/type/hash_of.rbs +5 -0
- data/sig/modern_treasury/internal/type/request_parameters.rbs +5 -1
- data/sig/modern_treasury/internal/type/union.rbs +5 -0
- data/sig/modern_treasury/internal/type/unknown.rbs +3 -0
- data/sig/modern_treasury/internal/util.rbs +41 -12
- data/sig/modern_treasury/internal.rbs +5 -0
- data/sig/modern_treasury/models/account_collection_flow.rbs +13 -1
- data/sig/modern_treasury/models/account_collection_flow_create_params.rbs +6 -1
- data/sig/modern_treasury/models/account_collection_flow_list_params.rbs +9 -1
- data/sig/modern_treasury/models/account_collection_flow_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/account_collection_flow_update_params.rbs +4 -1
- data/sig/modern_treasury/models/account_detail.rbs +19 -1
- data/sig/modern_treasury/models/account_detail_create_params.rbs +14 -1
- data/sig/modern_treasury/models/account_detail_delete_params.rbs +5 -1
- data/sig/modern_treasury/models/account_detail_list_params.rbs +6 -1
- data/sig/modern_treasury/models/account_detail_retrieve_params.rbs +5 -1
- data/sig/modern_treasury/models/async_response.rbs +1 -1
- data/sig/modern_treasury/models/bank_settings.rbs +12 -1
- data/sig/modern_treasury/models/bulk_request.rbs +16 -1
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +504 -158
- data/sig/modern_treasury/models/bulk_request_list_params.rbs +11 -1
- data/sig/modern_treasury/models/bulk_request_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/bulk_result.rbs +34 -12
- data/sig/modern_treasury/models/bulk_result_list_params.rbs +12 -1
- data/sig/modern_treasury/models/bulk_result_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/client_ping_params.rbs +1 -1
- data/sig/modern_treasury/models/connection.rbs +11 -1
- data/sig/modern_treasury/models/connection_legal_entity.rbs +12 -1
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +197 -85
- data/sig/modern_treasury/models/connection_legal_entity_list_params.rbs +8 -1
- data/sig/modern_treasury/models/connection_legal_entity_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/connection_legal_entity_update_params.rbs +4 -1
- data/sig/modern_treasury/models/connection_list_params.rbs +7 -1
- data/sig/modern_treasury/models/counterparty.rbs +79 -25
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +7 -1
- data/sig/modern_treasury/models/counterparty_collect_account_response.rbs +1 -1
- data/sig/modern_treasury/models/counterparty_create_params.rbs +306 -127
- data/sig/modern_treasury/models/counterparty_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/counterparty_list_params.rbs +11 -1
- data/sig/modern_treasury/models/counterparty_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/counterparty_update_params.rbs +9 -1
- data/sig/modern_treasury/models/currency.rbs +14 -0
- data/sig/modern_treasury/models/document.rbs +40 -14
- data/sig/modern_treasury/models/document_create_params.rbs +15 -9
- data/sig/modern_treasury/models/document_list_params.rbs +12 -6
- data/sig/modern_treasury/models/document_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/event.rbs +12 -1
- data/sig/modern_treasury/models/event_list_params.rbs +10 -1
- data/sig/modern_treasury/models/event_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/expected_payment.rbs +31 -4
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +66 -20
- data/sig/modern_treasury/models/expected_payment_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +36 -2
- data/sig/modern_treasury/models/expected_payment_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/expected_payment_type.rbs +8 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +23 -4
- data/sig/modern_treasury/models/external_account.rbs +56 -15
- data/sig/modern_treasury/models/external_account_complete_verification_params.rbs +4 -1
- data/sig/modern_treasury/models/external_account_create_params.rbs +90 -31
- data/sig/modern_treasury/models/external_account_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/external_account_list_params.rbs +8 -1
- data/sig/modern_treasury/models/external_account_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/external_account_type.rbs +11 -1
- data/sig/modern_treasury/models/external_account_update_params.rbs +23 -7
- data/sig/modern_treasury/models/external_account_verify_params.rbs +16 -1
- data/sig/modern_treasury/models/external_account_verify_response.rbs +22 -3
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +26 -5
- data/sig/modern_treasury/models/foreign_exchange_quote_create_params.rbs +9 -1
- data/sig/modern_treasury/models/foreign_exchange_quote_list_params.rbs +12 -1
- data/sig/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +38 -4
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +12 -1
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +12 -1
- data/sig/modern_treasury/models/incoming_payment_detail_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/incoming_payment_detail_update_params.rbs +4 -1
- data/sig/modern_treasury/models/internal_account.rbs +57 -15
- data/sig/modern_treasury/models/internal_account_create_params.rbs +69 -7
- data/sig/modern_treasury/models/internal_account_list_params.rbs +19 -1
- data/sig/modern_treasury/models/internal_account_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/internal_account_update_params.rbs +8 -1
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +30 -5
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +16 -5
- data/sig/modern_treasury/models/internal_accounts/balance_report_delete_params.rbs +4 -1
- data/sig/modern_treasury/models/internal_accounts/balance_report_list_params.rbs +7 -1
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/invoice.rbs +91 -23
- data/sig/modern_treasury/models/invoice_add_payment_order_params.rbs +4 -1
- data/sig/modern_treasury/models/invoice_create_params.rbs +88 -23
- data/sig/modern_treasury/models/invoice_list_params.rbs +14 -1
- data/sig/modern_treasury/models/invoice_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/invoice_update_params.rbs +88 -23
- data/sig/modern_treasury/models/invoices/invoice_line_item.rbs +20 -1
- data/sig/modern_treasury/models/invoices/line_item_create_params.rbs +10 -1
- data/sig/modern_treasury/models/invoices/line_item_delete_params.rbs +4 -1
- data/sig/modern_treasury/models/invoices/line_item_list_params.rbs +5 -1
- data/sig/modern_treasury/models/invoices/line_item_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/invoices/line_item_update_params.rbs +11 -1
- data/sig/modern_treasury/models/ledger.rbs +11 -1
- data/sig/modern_treasury/models/ledger_account.rbs +57 -17
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +63 -25
- data/sig/modern_treasury/models/ledger_account_balance_monitor_create_params.rbs +11 -5
- data/sig/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_balance_monitor_list_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_balance_monitor_update_params.rbs +5 -1
- data/sig/modern_treasury/models/ledger_account_category.rbs +52 -17
- data/sig/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_add_nested_category_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_create_params.rbs +11 -1
- data/sig/modern_treasury/models/ledger_account_category_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +19 -7
- data/sig/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_category_retrieve_params.rbs +10 -7
- data/sig/modern_treasury/models/ledger_account_category_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +13 -1
- data/sig/modern_treasury/models/ledger_account_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +67 -25
- data/sig/modern_treasury/models/ledger_account_retrieve_params.rbs +16 -9
- data/sig/modern_treasury/models/ledger_account_settlement.rbs +19 -1
- data/sig/modern_treasury/models/ledger_account_settlement_create_params.rbs +11 -1
- data/sig/modern_treasury/models/ledger_account_settlement_list_params.rbs +13 -1
- data/sig/modern_treasury/models/ledger_account_settlement_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_settlement_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_account_statement_create_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +69 -9
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +69 -9
- data/sig/modern_treasury/models/ledger_account_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_create_params.rbs +6 -1
- data/sig/modern_treasury/models/ledger_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_entry.rbs +56 -17
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +32 -7
- data/sig/modern_treasury/models/ledger_entry_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_entry_update_params.rbs +4 -1
- data/sig/modern_treasury/models/ledger_event_handler.rbs +39 -16
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +34 -16
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +8 -8
- data/sig/modern_treasury/models/ledger_list_params.rbs +8 -1
- data/sig/modern_treasury/models/ledger_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_transaction.rbs +24 -4
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +26 -5
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +16 -5
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +10 -1
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +31 -7
- data/sig/modern_treasury/models/ledger_transaction_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +26 -7
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +79 -21
- data/sig/modern_treasury/models/ledger_transactions/version_list_params.rbs +9 -1
- data/sig/modern_treasury/models/ledger_update_params.rbs +6 -1
- data/sig/modern_treasury/models/ledgerable_event.rbs +12 -1
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +7 -1
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/legal_entity.rbs +96 -28
- data/sig/modern_treasury/models/legal_entity_association.rbs +108 -29
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +99 -41
- data/sig/modern_treasury/models/legal_entity_compliance_detail.rbs +14 -1
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +187 -79
- data/sig/modern_treasury/models/legal_entity_industry_classification.rbs +10 -1
- data/sig/modern_treasury/models/legal_entity_list_params.rbs +8 -1
- data/sig/modern_treasury/models/legal_entity_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +85 -35
- data/sig/modern_treasury/models/line_item.rbs +19 -5
- data/sig/modern_treasury/models/line_item_list_params.rbs +6 -1
- data/sig/modern_treasury/models/line_item_retrieve_params.rbs +5 -1
- data/sig/modern_treasury/models/line_item_update_params.rbs +6 -1
- data/sig/modern_treasury/models/paper_item.rbs +25 -1
- data/sig/modern_treasury/models/paper_item_list_params.rbs +8 -1
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/payment_action_create_params.rbs +54 -0
- data/sig/modern_treasury/models/payment_action_create_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_list_params.rbs +149 -0
- data/sig/modern_treasury/models/payment_action_list_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_retrieve_params.rbs +15 -0
- data/sig/modern_treasury/models/payment_action_retrieve_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_action_update_params.rbs +40 -0
- data/sig/modern_treasury/models/payment_action_update_response.rbs +70 -0
- data/sig/modern_treasury/models/payment_flow.rbs +21 -1
- data/sig/modern_treasury/models/payment_flow_create_params.rbs +9 -1
- data/sig/modern_treasury/models/payment_flow_list_params.rbs +11 -1
- data/sig/modern_treasury/models/payment_flow_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/payment_flow_update_params.rbs +4 -1
- data/sig/modern_treasury/models/payment_order.rbs +90 -31
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +178 -59
- data/sig/modern_treasury/models/payment_order_create_params.rbs +198 -73
- data/sig/modern_treasury/models/payment_order_list_params.rbs +28 -1
- data/sig/modern_treasury/models/payment_order_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/payment_order_type.rbs +8 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +147 -49
- data/sig/modern_treasury/models/payment_orders/reversal.rbs +13 -1
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +36 -11
- data/sig/modern_treasury/models/payment_orders/reversal_list_params.rbs +5 -1
- data/sig/modern_treasury/models/payment_orders/reversal_retrieve_params.rbs +4 -1
- data/sig/modern_treasury/models/payment_reference.rbs +19 -1
- data/sig/modern_treasury/models/payment_reference_list_params.rbs +8 -1
- data/sig/modern_treasury/models/payment_reference_retireve_params.rbs +1 -1
- data/sig/modern_treasury/models/payment_reference_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/ping_response.rbs +1 -1
- data/sig/modern_treasury/models/reconciliation_rule.rbs +20 -1
- data/sig/modern_treasury/models/return_create_params.rbs +90 -1
- data/sig/modern_treasury/models/return_list_params.rbs +9 -1
- data/sig/modern_treasury/models/return_object.rbs +134 -8
- data/sig/modern_treasury/models/return_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/routing_detail.rbs +37 -5
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +15 -1
- data/sig/modern_treasury/models/routing_detail_delete_params.rbs +5 -1
- data/sig/modern_treasury/models/routing_detail_list_params.rbs +6 -1
- data/sig/modern_treasury/models/routing_detail_retrieve_params.rbs +5 -1
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +29 -7
- data/sig/modern_treasury/models/transaction.rbs +51 -5
- data/sig/modern_treasury/models/transaction_create_params.rbs +21 -1
- data/sig/modern_treasury/models/transaction_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/transaction_list_params.rbs +17 -1
- data/sig/modern_treasury/models/transaction_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/transaction_update_params.rbs +4 -1
- data/sig/modern_treasury/models/transactions/line_item_create_params.rbs +6 -1
- data/sig/modern_treasury/models/transactions/line_item_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/transactions/line_item_list_params.rbs +8 -1
- data/sig/modern_treasury/models/transactions/line_item_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +17 -1
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +5 -1
- data/sig/modern_treasury/models/virtual_account.rbs +24 -7
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +65 -19
- data/sig/modern_treasury/models/virtual_account_delete_params.rbs +1 -1
- data/sig/modern_treasury/models/virtual_account_list_params.rbs +8 -1
- data/sig/modern_treasury/models/virtual_account_retrieve_params.rbs +1 -1
- data/sig/modern_treasury/models/virtual_account_update_params.rbs +7 -1
- data/sig/modern_treasury/models/wealth_and_employment_details.rbs +20 -1
- data/sig/modern_treasury/models.rbs +411 -0
- data/sig/modern_treasury/request_options.rbs +1 -1
- data/sig/modern_treasury/resources/account_collection_flows.rbs +4 -4
- data/sig/modern_treasury/resources/account_details.rbs +3 -3
- data/sig/modern_treasury/resources/bulk_requests.rbs +3 -3
- data/sig/modern_treasury/resources/bulk_results.rbs +2 -2
- data/sig/modern_treasury/resources/connection_legal_entities.rbs +5 -5
- data/sig/modern_treasury/resources/connections.rbs +1 -1
- data/sig/modern_treasury/resources/counterparties.rbs +8 -8
- data/sig/modern_treasury/resources/documents.rbs +4 -4
- data/sig/modern_treasury/resources/events.rbs +2 -2
- data/sig/modern_treasury/resources/expected_payments.rbs +11 -9
- data/sig/modern_treasury/resources/external_accounts.rbs +11 -11
- data/sig/modern_treasury/resources/foreign_exchange_quotes.rbs +3 -3
- data/sig/modern_treasury/resources/incoming_payment_details.rbs +4 -4
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +4 -4
- data/sig/modern_treasury/resources/internal_accounts.rbs +6 -5
- data/sig/modern_treasury/resources/invoices/line_items.rbs +5 -5
- data/sig/modern_treasury/resources/invoices.rbs +14 -14
- data/sig/modern_treasury/resources/ledger_account_balance_monitors.rbs +6 -6
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +7 -7
- data/sig/modern_treasury/resources/ledger_account_settlements.rbs +4 -4
- data/sig/modern_treasury/resources/ledger_accounts.rbs +10 -10
- data/sig/modern_treasury/resources/ledger_entries.rbs +4 -4
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +7 -7
- data/sig/modern_treasury/resources/ledger_transactions/versions.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_transactions.rbs +10 -10
- data/sig/modern_treasury/resources/ledgerable_events.rbs +2 -2
- data/sig/modern_treasury/resources/ledgers.rbs +5 -5
- data/sig/modern_treasury/resources/legal_entities.rbs +19 -19
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +2 -2
- data/sig/modern_treasury/resources/line_items.rbs +3 -3
- data/sig/modern_treasury/resources/paper_items.rbs +2 -2
- data/sig/modern_treasury/resources/payment_actions.rbs +40 -0
- data/sig/modern_treasury/resources/payment_flows.rbs +4 -4
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +4 -4
- data/sig/modern_treasury/resources/payment_orders.rbs +17 -17
- data/sig/modern_treasury/resources/payment_references.rbs +2 -2
- data/sig/modern_treasury/resources/returns.rbs +3 -3
- data/sig/modern_treasury/resources/routing_details.rbs +3 -3
- data/sig/modern_treasury/resources/transactions/line_items.rbs +3 -3
- data/sig/modern_treasury/resources/transactions.rbs +4 -4
- data/sig/modern_treasury/resources/validations.rbs +1 -1
- data/sig/modern_treasury/resources/virtual_accounts.rbs +8 -8
- metadata +324 -291
- data/rbi/lib/modern_treasury/internal/transport/base_client.rbi +0 -199
- data/rbi/lib/modern_treasury/internal/transport/pooled_net_requester.rbi +0 -60
- data/rbi/lib/modern_treasury/internal/type/base_model.rbi +0 -203
- data/rbi/lib/modern_treasury/internal/type/request_parameters.rbi +0 -21
- data/rbi/lib/modern_treasury/internal/type/union.rbi +0 -77
- data/rbi/lib/modern_treasury/internal/util.rbi +0 -300
- data/rbi/lib/modern_treasury/models/account_collection_flow.rbi +0 -197
- data/rbi/lib/modern_treasury/models/account_collection_flow_create_params.rbi +0 -117
- data/rbi/lib/modern_treasury/models/account_collection_flow_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/account_collection_flow_update_params.rbi +0 -54
- data/rbi/lib/modern_treasury/models/account_detail.rbi +0 -111
- data/rbi/lib/modern_treasury/models/account_detail_create_params.rbi +0 -103
- data/rbi/lib/modern_treasury/models/account_detail_delete_params.rbi +0 -53
- data/rbi/lib/modern_treasury/models/account_detail_list_params.rbi +0 -46
- data/rbi/lib/modern_treasury/models/account_detail_retrieve_params.rbi +0 -38
- data/rbi/lib/modern_treasury/models/accounts_type.rbi +0 -18
- data/rbi/lib/modern_treasury/models/bulk_request.rbi +0 -160
- data/rbi/lib/modern_treasury/models/bulk_request_create_params.rbi +0 -6245
- data/rbi/lib/modern_treasury/models/bulk_request_list_params.rbi +0 -144
- data/rbi/lib/modern_treasury/models/bulk_request_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/bulk_result.rbi +0 -285
- data/rbi/lib/modern_treasury/models/bulk_result_list_params.rbi +0 -154
- data/rbi/lib/modern_treasury/models/bulk_result_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/client_ping_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/connection_legal_entity.rbi +0 -106
- data/rbi/lib/modern_treasury/models/connection_legal_entity_create_params.rbi +0 -1797
- data/rbi/lib/modern_treasury/models/connection_legal_entity_list_params.rbi +0 -90
- data/rbi/lib/modern_treasury/models/connection_legal_entity_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/connection_legal_entity_update_params.rbi +0 -55
- data/rbi/lib/modern_treasury/models/counterparty.rbi +0 -591
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_params.rbi +0 -158
- data/rbi/lib/modern_treasury/models/counterparty_collect_account_response.rbi +0 -29
- data/rbi/lib/modern_treasury/models/counterparty_create_params.rbi +0 -2902
- data/rbi/lib/modern_treasury/models/counterparty_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/counterparty_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/currency.rbi +0 -206
- data/rbi/lib/modern_treasury/models/document.rbi +0 -234
- data/rbi/lib/modern_treasury/models/document_create_params.rbi +0 -92
- data/rbi/lib/modern_treasury/models/document_list_params.rbi +0 -109
- data/rbi/lib/modern_treasury/models/document_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/event_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/expected_payment.rbi +0 -267
- data/rbi/lib/modern_treasury/models/expected_payment_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/expected_payment_list_params.rbi +0 -192
- data/rbi/lib/modern_treasury/models/expected_payment_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/expected_payment_type.rbi +0 -49
- data/rbi/lib/modern_treasury/models/expected_payment_update_params.rbi +0 -196
- data/rbi/lib/modern_treasury/models/external_account.rbi +0 -403
- data/rbi/lib/modern_treasury/models/external_account_complete_verification_params.rbi +0 -28
- data/rbi/lib/modern_treasury/models/external_account_create_params.rbi +0 -986
- data/rbi/lib/modern_treasury/models/external_account_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/external_account_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/external_account_type.rbi +0 -26
- data/rbi/lib/modern_treasury/models/external_account_update_params.rbi +0 -170
- data/rbi/lib/modern_treasury/models/external_account_verify_params.rbi +0 -161
- data/rbi/lib/modern_treasury/models/foreign_exchange_quote_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/incoming_payment_detail.rbi +0 -436
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -170
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_list_params.rbi +0 -169
- data/rbi/lib/modern_treasury/models/incoming_payment_detail_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/internal_account.rbi +0 -294
- data/rbi/lib/modern_treasury/models/internal_account_create_params.rbi +0 -193
- data/rbi/lib/modern_treasury/models/internal_account_list_params.rbi +0 -154
- data/rbi/lib/modern_treasury/models/internal_account_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +0 -231
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_delete_params.rbi +0 -29
- data/rbi/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +0 -29
- data/rbi/lib/modern_treasury/models/invoice.rbi +0 -634
- data/rbi/lib/modern_treasury/models/invoice_add_payment_order_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/invoice_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/invoices/line_item_delete_params.rbi +0 -27
- data/rbi/lib/modern_treasury/models/invoices/line_item_retrieve_params.rbi +0 -27
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor.rbi +0 -438
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_balance_monitor_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_ledger_account_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_add_nested_category_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_ledger_account_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_remove_nested_category_params.rbi +0 -25
- data/rbi/lib/modern_treasury/models/ledger_account_category_retrieve_params.rbi +0 -73
- data/rbi/lib/modern_treasury/models/ledger_account_create_params.rbi +0 -142
- data/rbi/lib/modern_treasury/models/ledger_account_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_account_settlement_update_params.rbi +0 -76
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_delete_params.rbi +0 -35
- data/rbi/lib/modern_treasury/models/ledger_account_settlements/account_entry_update_params.rbi +0 -35
- data/rbi/lib/modern_treasury/models/ledger_account_statement_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_entry.rbi +0 -410
- data/rbi/lib/modern_treasury/models/ledger_entry_list_params.rbi +0 -334
- data/rbi/lib/modern_treasury/models/ledger_entry_retrieve_params.rbi +0 -30
- data/rbi/lib/modern_treasury/models/ledger_event_handler.rbi +0 -226
- data/rbi/lib/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -207
- data/rbi/lib/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_event_handler_variable.rbi +0 -55
- data/rbi/lib/modern_treasury/models/ledger_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_transaction.rbi +0 -203
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_params.rbi +0 -283
- data/rbi/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -192
- data/rbi/lib/modern_treasury/models/ledger_transaction_list_params.rbi +0 -365
- data/rbi/lib/modern_treasury/models/ledger_transaction_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/ledger_transaction_update_params.rbi +0 -274
- data/rbi/lib/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/legal_entity.rbi +0 -562
- data/rbi/lib/modern_treasury/models/legal_entity_association.rbi +0 -901
- data/rbi/lib/modern_treasury/models/legal_entity_association_create_params.rbi +0 -915
- data/rbi/lib/modern_treasury/models/legal_entity_create_params.rbi +0 -1460
- data/rbi/lib/modern_treasury/models/legal_entity_industry_classification.rbi +0 -136
- data/rbi/lib/modern_treasury/models/legal_entity_list_params.rbi +0 -90
- data/rbi/lib/modern_treasury/models/legal_entity_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/legal_entity_update_params.rbi +0 -509
- data/rbi/lib/modern_treasury/models/line_item.rbi +0 -156
- data/rbi/lib/modern_treasury/models/line_item_list_params.rbi +0 -62
- data/rbi/lib/modern_treasury/models/line_item_retrieve_params.rbi +0 -55
- data/rbi/lib/modern_treasury/models/line_item_update_params.rbi +0 -65
- data/rbi/lib/modern_treasury/models/paper_item_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_flow.rbi +0 -280
- data/rbi/lib/modern_treasury/models/payment_flow_create_params.rbi +0 -95
- data/rbi/lib/modern_treasury/models/payment_flow_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_flow_update_params.rbi +0 -50
- data/rbi/lib/modern_treasury/models/payment_order.rbi +0 -1145
- data/rbi/lib/modern_treasury/models/payment_order_create_async_params.rbi +0 -1984
- data/rbi/lib/modern_treasury/models/payment_order_create_params.rbi +0 -2083
- data/rbi/lib/modern_treasury/models/payment_order_list_params.rbi +0 -276
- data/rbi/lib/modern_treasury/models/payment_order_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_order_subtype.rbi +0 -50
- data/rbi/lib/modern_treasury/models/payment_order_type.rbi +0 -49
- data/rbi/lib/modern_treasury/models/payment_order_update_params.rbi +0 -1642
- data/rbi/lib/modern_treasury/models/payment_orders/reversal.rbi +0 -140
- data/rbi/lib/modern_treasury/models/payment_orders/reversal_retrieve_params.rbi +0 -27
- data/rbi/lib/modern_treasury/models/payment_reference.rbi +0 -378
- data/rbi/lib/modern_treasury/models/payment_reference_list_params.rbi +0 -105
- data/rbi/lib/modern_treasury/models/payment_reference_retireve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/payment_reference_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/reconciliation_rule.rbi +0 -160
- data/rbi/lib/modern_treasury/models/return_create_params.rbi +0 -164
- data/rbi/lib/modern_treasury/models/return_list_params.rbi +0 -108
- data/rbi/lib/modern_treasury/models/return_object.rbi +0 -799
- data/rbi/lib/modern_treasury/models/return_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/routing_detail.rbi +0 -289
- data/rbi/lib/modern_treasury/models/routing_detail_create_params.rbi +0 -209
- data/rbi/lib/modern_treasury/models/routing_detail_delete_params.rbi +0 -53
- data/rbi/lib/modern_treasury/models/routing_detail_list_params.rbi +0 -46
- data/rbi/lib/modern_treasury/models/routing_detail_retrieve_params.rbi +0 -38
- data/rbi/lib/modern_treasury/models/routing_number_lookup_request.rbi +0 -295
- data/rbi/lib/modern_treasury/models/transaction.rbi +0 -388
- data/rbi/lib/modern_treasury/models/transaction_create_params.rbi +0 -158
- data/rbi/lib/modern_treasury/models/transaction_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/transaction_direction.rbi +0 -19
- data/rbi/lib/modern_treasury/models/transaction_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/transactions/line_item_delete_params.rbi +0 -21
- data/rbi/lib/modern_treasury/models/transactions/line_item_list_params.rbi +0 -89
- data/rbi/lib/modern_treasury/models/transactions/line_item_retrieve_params.rbi +0 -21
- data/rbi/lib/modern_treasury/models/transactions/transaction_line_item.rbi +0 -213
- data/rbi/lib/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -176
- data/rbi/lib/modern_treasury/models/virtual_account_create_params.rbi +0 -769
- data/rbi/lib/modern_treasury/models/virtual_account_delete_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/virtual_account_retrieve_params.rbi +0 -19
- data/rbi/lib/modern_treasury/models/wealth_and_employment_details.rbi +0 -401
- data/rbi/lib/modern_treasury/resources/bulk_requests.rbi +0 -89
- /data/rbi/{lib/modern_treasury → modern_treasury}/version.rbi +0 -0
@@ -4,8 +4,7 @@ module ModernTreasury
|
|
4
4
|
module Models
|
5
5
|
# @see ModernTreasury::Resources::Counterparties#create
|
6
6
|
class CounterpartyCreateParams < ModernTreasury::Internal::Type::BaseModel
|
7
|
-
|
8
|
-
# extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
7
|
+
extend ModernTreasury::Internal::Type::RequestParameters::Converter
|
9
8
|
include ModernTreasury::Internal::Type::RequestParameters
|
10
9
|
|
11
10
|
# @!attribute name
|
@@ -14,25 +13,19 @@ module ModernTreasury
|
|
14
13
|
# @return [String, nil]
|
15
14
|
required :name, String, nil?: true
|
16
15
|
|
17
|
-
# @!attribute
|
16
|
+
# @!attribute accounting
|
18
17
|
#
|
19
18
|
# @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting, nil]
|
20
|
-
optional :accounting, -> { ModernTreasury::
|
19
|
+
optional :accounting, -> { ModernTreasury::CounterpartyCreateParams::Accounting }
|
21
20
|
|
22
|
-
# @!
|
23
|
-
# # @return [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
|
24
|
-
# attr_writer :accounting
|
25
|
-
|
26
|
-
# @!attribute [r] accounts
|
21
|
+
# @!attribute accounts
|
27
22
|
# The accounts for this counterparty.
|
28
23
|
#
|
29
24
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>, nil]
|
30
25
|
optional :accounts,
|
31
|
-
-> {
|
32
|
-
|
33
|
-
|
34
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>]
|
35
|
-
# attr_writer :accounts
|
26
|
+
-> {
|
27
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account]
|
28
|
+
}
|
36
29
|
|
37
30
|
# @!attribute email
|
38
31
|
# The counterparty's email.
|
@@ -40,25 +33,19 @@ module ModernTreasury
|
|
40
33
|
# @return [String, nil]
|
41
34
|
optional :email, String, nil?: true
|
42
35
|
|
43
|
-
# @!attribute
|
36
|
+
# @!attribute ledger_type
|
37
|
+
# @deprecated
|
38
|
+
#
|
44
39
|
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
45
40
|
# or `vendor`.
|
46
41
|
#
|
47
42
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType, nil]
|
48
|
-
optional :ledger_type, enum: -> { ModernTreasury::
|
49
|
-
|
50
|
-
# @!parse
|
51
|
-
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType]
|
52
|
-
# attr_writer :ledger_type
|
43
|
+
optional :ledger_type, enum: -> { ModernTreasury::CounterpartyCreateParams::LedgerType }
|
53
44
|
|
54
|
-
# @!attribute
|
45
|
+
# @!attribute legal_entity
|
55
46
|
#
|
56
47
|
# @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity, nil]
|
57
|
-
optional :legal_entity, -> { ModernTreasury::
|
58
|
-
|
59
|
-
# @!parse
|
60
|
-
# # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
|
61
|
-
# attr_writer :legal_entity
|
48
|
+
optional :legal_entity, -> { ModernTreasury::CounterpartyCreateParams::LegalEntity }
|
62
49
|
|
63
50
|
# @!attribute legal_entity_id
|
64
51
|
# The id of the legal entity.
|
@@ -66,101 +53,73 @@ module ModernTreasury
|
|
66
53
|
# @return [String, nil]
|
67
54
|
optional :legal_entity_id, String, nil?: true
|
68
55
|
|
69
|
-
# @!attribute
|
56
|
+
# @!attribute metadata
|
70
57
|
# Additional data represented as key-value pairs. Both the key and value must be
|
71
58
|
# strings.
|
72
59
|
#
|
73
60
|
# @return [Hash{Symbol=>String}, nil]
|
74
61
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
75
62
|
|
76
|
-
# @!
|
77
|
-
# # @return [Hash{Symbol=>String}]
|
78
|
-
# attr_writer :metadata
|
79
|
-
|
80
|
-
# @!attribute [r] send_remittance_advice
|
63
|
+
# @!attribute send_remittance_advice
|
81
64
|
# Send an email to the counterparty whenever an associated payment order is sent
|
82
65
|
# to the bank.
|
83
66
|
#
|
84
67
|
# @return [Boolean, nil]
|
85
68
|
optional :send_remittance_advice, ModernTreasury::Internal::Type::Boolean
|
86
69
|
|
87
|
-
# @!
|
88
|
-
# # @return [Boolean]
|
89
|
-
# attr_writer :send_remittance_advice
|
90
|
-
|
91
|
-
# @!attribute [r] taxpayer_identifier
|
70
|
+
# @!attribute taxpayer_identifier
|
92
71
|
# Either a valid SSN or EIN.
|
93
72
|
#
|
94
73
|
# @return [String, nil]
|
95
74
|
optional :taxpayer_identifier, String
|
96
75
|
|
97
|
-
# @!
|
98
|
-
# # @return [String]
|
99
|
-
# attr_writer :taxpayer_identifier
|
100
|
-
|
101
|
-
# @!attribute [r] verification_status
|
76
|
+
# @!attribute verification_status
|
102
77
|
# The verification status of the counterparty.
|
103
78
|
#
|
104
79
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus, nil]
|
105
|
-
optional :verification_status,
|
106
|
-
|
107
|
-
|
108
|
-
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
118
|
-
#
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
130
|
-
#
|
131
|
-
#
|
132
|
-
#
|
133
|
-
#
|
134
|
-
# metadata: nil,
|
135
|
-
# send_remittance_advice: nil,
|
136
|
-
# taxpayer_identifier: nil,
|
137
|
-
# verification_status: nil,
|
138
|
-
# request_options: {},
|
139
|
-
# **
|
140
|
-
# )
|
141
|
-
# super
|
142
|
-
# end
|
143
|
-
|
144
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
80
|
+
optional :verification_status, enum: -> { ModernTreasury::CounterpartyCreateParams::VerificationStatus }
|
81
|
+
|
82
|
+
# @!method initialize(name:, accounting: nil, accounts: nil, email: nil, ledger_type: nil, legal_entity: nil, legal_entity_id: nil, metadata: nil, send_remittance_advice: nil, taxpayer_identifier: nil, verification_status: nil, request_options: {})
|
83
|
+
# Some parameter documentations has been truncated, see
|
84
|
+
# {ModernTreasury::Models::CounterpartyCreateParams} for more details.
|
85
|
+
#
|
86
|
+
# @param name [String, nil] A human friendly name for this counterparty.
|
87
|
+
#
|
88
|
+
# @param accounting [ModernTreasury::Models::CounterpartyCreateParams::Accounting]
|
89
|
+
#
|
90
|
+
# @param accounts [Array<ModernTreasury::Models::CounterpartyCreateParams::Account>] The accounts for this counterparty.
|
91
|
+
#
|
92
|
+
# @param email [String, nil] The counterparty's email.
|
93
|
+
#
|
94
|
+
# @param ledger_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LedgerType] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
95
|
+
#
|
96
|
+
# @param legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity]
|
97
|
+
#
|
98
|
+
# @param legal_entity_id [String, nil] The id of the legal entity.
|
99
|
+
#
|
100
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
101
|
+
#
|
102
|
+
# @param send_remittance_advice [Boolean] Send an email to the counterparty whenever an associated payment order is sent t
|
103
|
+
#
|
104
|
+
# @param taxpayer_identifier [String] Either a valid SSN or EIN.
|
105
|
+
#
|
106
|
+
# @param verification_status [Symbol, ModernTreasury::Models::CounterpartyCreateParams::VerificationStatus] The verification status of the counterparty.
|
107
|
+
#
|
108
|
+
# @param request_options [ModernTreasury::RequestOptions, Hash{Symbol=>Object}]
|
145
109
|
|
146
110
|
class Accounting < ModernTreasury::Internal::Type::BaseModel
|
147
|
-
# @!attribute
|
111
|
+
# @!attribute type
|
148
112
|
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
149
113
|
# or `vendor`.
|
150
114
|
#
|
151
115
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type, nil]
|
152
|
-
optional :type, enum: -> { ModernTreasury::
|
116
|
+
optional :type, enum: -> { ModernTreasury::CounterpartyCreateParams::Accounting::Type }
|
153
117
|
|
154
|
-
# @!
|
155
|
-
#
|
156
|
-
#
|
157
|
-
|
158
|
-
#
|
159
|
-
# # @param type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type]
|
160
|
-
# #
|
161
|
-
# def initialize(type: nil, **) = super
|
162
|
-
|
163
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
118
|
+
# @!method initialize(type: nil)
|
119
|
+
# Some parameter documentations has been truncated, see
|
120
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::Accounting} for more details.
|
121
|
+
#
|
122
|
+
# @param type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Accounting::Type] An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
164
123
|
|
165
124
|
# An optional type to auto-sync the counterparty to your ledger. Either `customer`
|
166
125
|
# or `vendor`.
|
@@ -172,46 +131,35 @@ module ModernTreasury
|
|
172
131
|
CUSTOMER = :customer
|
173
132
|
VENDOR = :vendor
|
174
133
|
|
175
|
-
|
176
|
-
|
177
|
-
# @!parse
|
178
|
-
# # @return [Array<Symbol>]
|
179
|
-
# def self.values; end
|
134
|
+
# @!method self.values
|
135
|
+
# @return [Array<Symbol>]
|
180
136
|
end
|
181
137
|
end
|
182
138
|
|
183
139
|
class Account < ModernTreasury::Internal::Type::BaseModel
|
184
|
-
# @!attribute
|
140
|
+
# @!attribute account_details
|
185
141
|
#
|
186
142
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>, nil]
|
187
143
|
optional :account_details,
|
188
|
-
-> {
|
189
|
-
|
190
|
-
|
191
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
|
192
|
-
# attr_writer :account_details
|
144
|
+
-> {
|
145
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::AccountDetail]
|
146
|
+
}
|
193
147
|
|
194
|
-
# @!attribute
|
148
|
+
# @!attribute account_type
|
195
149
|
# Can be `checking`, `savings` or `other`.
|
196
150
|
#
|
197
151
|
# @return [Symbol, ModernTreasury::Models::ExternalAccountType, nil]
|
198
|
-
optional :account_type, enum: -> { ModernTreasury::
|
199
|
-
|
200
|
-
# @!parse
|
201
|
-
# # @return [Symbol, ModernTreasury::Models::ExternalAccountType]
|
202
|
-
# attr_writer :account_type
|
152
|
+
optional :account_type, enum: -> { ModernTreasury::ExternalAccountType }
|
203
153
|
|
204
|
-
# @!attribute
|
154
|
+
# @!attribute contact_details
|
205
155
|
#
|
206
156
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>, nil]
|
207
157
|
optional :contact_details,
|
208
|
-
-> {
|
158
|
+
-> {
|
159
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::ContactDetail]
|
160
|
+
}
|
209
161
|
|
210
|
-
# @!
|
211
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
|
212
|
-
# attr_writer :contact_details
|
213
|
-
|
214
|
-
# @!attribute [r] ledger_account
|
162
|
+
# @!attribute ledger_account
|
215
163
|
# Specifies a ledger account object that will be created with the external
|
216
164
|
# account. The resulting ledger account is linked to the external account for
|
217
165
|
# auto-ledgering Payment objects. See
|
@@ -219,23 +167,15 @@ module ModernTreasury
|
|
219
167
|
# for more details.
|
220
168
|
#
|
221
169
|
# @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount, nil]
|
222
|
-
optional :ledger_account, -> { ModernTreasury::
|
223
|
-
|
224
|
-
# @!parse
|
225
|
-
# # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount]
|
226
|
-
# attr_writer :ledger_account
|
170
|
+
optional :ledger_account, -> { ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount }
|
227
171
|
|
228
|
-
# @!attribute
|
172
|
+
# @!attribute metadata
|
229
173
|
# Additional data represented as key-value pairs. Both the key and value must be
|
230
174
|
# strings.
|
231
175
|
#
|
232
176
|
# @return [Hash{Symbol=>String}, nil]
|
233
177
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
234
178
|
|
235
|
-
# @!parse
|
236
|
-
# # @return [Hash{Symbol=>String}]
|
237
|
-
# attr_writer :metadata
|
238
|
-
|
239
179
|
# @!attribute name
|
240
180
|
# A nickname for the external account. This is only for internal usage and won't
|
241
181
|
# affect any payments
|
@@ -243,97 +183,73 @@ module ModernTreasury
|
|
243
183
|
# @return [String, nil]
|
244
184
|
optional :name, String, nil?: true
|
245
185
|
|
246
|
-
# @!attribute
|
186
|
+
# @!attribute party_address
|
247
187
|
# Required if receiving wire payments.
|
248
188
|
#
|
249
189
|
# @return [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress, nil]
|
250
|
-
optional :party_address, -> { ModernTreasury::
|
251
|
-
|
252
|
-
# @!parse
|
253
|
-
# # @return [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress]
|
254
|
-
# attr_writer :party_address
|
190
|
+
optional :party_address, -> { ModernTreasury::CounterpartyCreateParams::Account::PartyAddress }
|
255
191
|
|
256
|
-
# @!attribute
|
192
|
+
# @!attribute party_identifier
|
257
193
|
#
|
258
194
|
# @return [String, nil]
|
259
195
|
optional :party_identifier, String
|
260
196
|
|
261
|
-
# @!
|
262
|
-
# # @return [String]
|
263
|
-
# attr_writer :party_identifier
|
264
|
-
|
265
|
-
# @!attribute [r] party_name
|
197
|
+
# @!attribute party_name
|
266
198
|
# If this value isn't provided, it will be inherited from the counterparty's name.
|
267
199
|
#
|
268
200
|
# @return [String, nil]
|
269
201
|
optional :party_name, String
|
270
202
|
|
271
|
-
# @!parse
|
272
|
-
# # @return [String]
|
273
|
-
# attr_writer :party_name
|
274
|
-
|
275
203
|
# @!attribute party_type
|
276
204
|
# Either `individual` or `business`.
|
277
205
|
#
|
278
206
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil]
|
279
207
|
optional :party_type,
|
280
|
-
enum: -> { ModernTreasury::
|
208
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::Account::PartyType },
|
281
209
|
nil?: true
|
282
210
|
|
283
|
-
# @!attribute
|
211
|
+
# @!attribute plaid_processor_token
|
284
212
|
# If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
285
213
|
# you can pass the processor token in this field.
|
286
214
|
#
|
287
215
|
# @return [String, nil]
|
288
216
|
optional :plaid_processor_token, String
|
289
217
|
|
290
|
-
# @!
|
291
|
-
# # @return [String]
|
292
|
-
# attr_writer :plaid_processor_token
|
293
|
-
|
294
|
-
# @!attribute [r] routing_details
|
218
|
+
# @!attribute routing_details
|
295
219
|
#
|
296
220
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>, nil]
|
297
221
|
optional :routing_details,
|
298
|
-
-> {
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
#
|
303
|
-
|
304
|
-
#
|
305
|
-
#
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
#
|
310
|
-
#
|
311
|
-
#
|
312
|
-
#
|
313
|
-
#
|
314
|
-
#
|
315
|
-
#
|
316
|
-
#
|
317
|
-
#
|
318
|
-
#
|
319
|
-
#
|
320
|
-
#
|
321
|
-
#
|
322
|
-
#
|
323
|
-
#
|
324
|
-
#
|
325
|
-
#
|
326
|
-
#
|
327
|
-
#
|
328
|
-
#
|
329
|
-
# plaid_processor_token: nil,
|
330
|
-
# routing_details: nil,
|
331
|
-
# **
|
332
|
-
# )
|
333
|
-
# super
|
334
|
-
# end
|
335
|
-
|
336
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
222
|
+
-> {
|
223
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail]
|
224
|
+
}
|
225
|
+
|
226
|
+
# @!method initialize(account_details: nil, account_type: nil, contact_details: nil, ledger_account: nil, metadata: nil, name: nil, party_address: nil, party_identifier: nil, party_name: nil, party_type: nil, plaid_processor_token: nil, routing_details: nil)
|
227
|
+
# Some parameter documentations has been truncated, see
|
228
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::Account} for more details.
|
229
|
+
#
|
230
|
+
# @param account_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail>]
|
231
|
+
#
|
232
|
+
# @param account_type [Symbol, ModernTreasury::Models::ExternalAccountType] Can be `checking`, `savings` or `other`.
|
233
|
+
#
|
234
|
+
# @param contact_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail>]
|
235
|
+
#
|
236
|
+
# @param ledger_account [ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount] Specifies a ledger account object that will be created with the external account
|
237
|
+
#
|
238
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
239
|
+
#
|
240
|
+
# @param name [String, nil] A nickname for the external account. This is only for internal usage and won't a
|
241
|
+
#
|
242
|
+
# @param party_address [ModernTreasury::Models::CounterpartyCreateParams::Account::PartyAddress] Required if receiving wire payments.
|
243
|
+
#
|
244
|
+
# @param party_identifier [String]
|
245
|
+
#
|
246
|
+
# @param party_name [String] If this value isn't provided, it will be inherited from the counterparty's name.
|
247
|
+
#
|
248
|
+
# @param party_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::PartyType, nil] Either `individual` or `business`.
|
249
|
+
#
|
250
|
+
# @param plaid_processor_token [String] If you've enabled the Modern Treasury + Plaid integration in your Plaid account,
|
251
|
+
#
|
252
|
+
# @param routing_details [Array<ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail>]
|
337
253
|
|
338
254
|
class AccountDetail < ModernTreasury::Internal::Type::BaseModel
|
339
255
|
# @!attribute account_number
|
@@ -341,74 +257,59 @@ module ModernTreasury
|
|
341
257
|
# @return [String]
|
342
258
|
required :account_number, String
|
343
259
|
|
344
|
-
# @!attribute
|
260
|
+
# @!attribute account_number_type
|
345
261
|
#
|
346
262
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType, nil]
|
347
263
|
optional :account_number_type,
|
348
|
-
enum: -> {
|
264
|
+
enum: -> {
|
265
|
+
ModernTreasury::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType
|
266
|
+
}
|
349
267
|
|
350
|
-
# @!
|
351
|
-
#
|
352
|
-
#
|
353
|
-
|
354
|
-
# @!parse
|
355
|
-
# # @param account_number [String]
|
356
|
-
# # @param account_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
|
357
|
-
# #
|
358
|
-
# def initialize(account_number:, account_number_type: nil, **) = super
|
359
|
-
|
360
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
268
|
+
# @!method initialize(account_number:, account_number_type: nil)
|
269
|
+
# @param account_number [String]
|
270
|
+
# @param account_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail::AccountNumberType]
|
361
271
|
|
362
272
|
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::AccountDetail#account_number_type
|
363
273
|
module AccountNumberType
|
364
274
|
extend ModernTreasury::Internal::Type::Enum
|
365
275
|
|
366
276
|
AU_NUMBER = :au_number
|
277
|
+
BASE_ADDRESS = :base_address
|
367
278
|
CLABE = :clabe
|
279
|
+
ETHEREUM_ADDRESS = :ethereum_address
|
368
280
|
HK_NUMBER = :hk_number
|
369
281
|
IBAN = :iban
|
370
282
|
ID_NUMBER = :id_number
|
371
283
|
NZ_NUMBER = :nz_number
|
372
284
|
OTHER = :other
|
373
285
|
PAN = :pan
|
286
|
+
POLYGON_ADDRESS = :polygon_address
|
374
287
|
SG_NUMBER = :sg_number
|
288
|
+
SOLANA_ADDRESS = :solana_address
|
375
289
|
WALLET_ADDRESS = :wallet_address
|
376
290
|
|
377
|
-
|
378
|
-
|
379
|
-
# @!parse
|
380
|
-
# # @return [Array<Symbol>]
|
381
|
-
# def self.values; end
|
291
|
+
# @!method self.values
|
292
|
+
# @return [Array<Symbol>]
|
382
293
|
end
|
383
294
|
end
|
384
295
|
|
385
296
|
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
386
|
-
# @!attribute
|
297
|
+
# @!attribute contact_identifier
|
387
298
|
#
|
388
299
|
# @return [String, nil]
|
389
300
|
optional :contact_identifier, String
|
390
301
|
|
391
|
-
# @!
|
392
|
-
# # @return [String]
|
393
|
-
# attr_writer :contact_identifier
|
394
|
-
|
395
|
-
# @!attribute [r] contact_identifier_type
|
302
|
+
# @!attribute contact_identifier_type
|
396
303
|
#
|
397
304
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType, nil]
|
398
305
|
optional :contact_identifier_type,
|
399
|
-
enum: -> {
|
400
|
-
|
401
|
-
|
402
|
-
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
|
403
|
-
# attr_writer :contact_identifier_type
|
404
|
-
|
405
|
-
# @!parse
|
406
|
-
# # @param contact_identifier [String]
|
407
|
-
# # @param contact_identifier_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
|
408
|
-
# #
|
409
|
-
# def initialize(contact_identifier: nil, contact_identifier_type: nil, **) = super
|
306
|
+
enum: -> {
|
307
|
+
ModernTreasury::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType
|
308
|
+
}
|
410
309
|
|
411
|
-
#
|
310
|
+
# @!method initialize(contact_identifier: nil, contact_identifier_type: nil)
|
311
|
+
# @param contact_identifier [String]
|
312
|
+
# @param contact_identifier_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::ContactIdentifierType]
|
412
313
|
|
413
314
|
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail#contact_identifier_type
|
414
315
|
module ContactIdentifierType
|
@@ -418,11 +319,8 @@ module ModernTreasury
|
|
418
319
|
PHONE_NUMBER = :phone_number
|
419
320
|
WEBSITE = :website
|
420
321
|
|
421
|
-
|
422
|
-
|
423
|
-
# @!parse
|
424
|
-
# # @return [Array<Symbol>]
|
425
|
-
# def self.values; end
|
322
|
+
# @!method self.values
|
323
|
+
# @return [Array<Symbol>]
|
426
324
|
end
|
427
325
|
end
|
428
326
|
|
@@ -450,7 +348,7 @@ module ModernTreasury
|
|
450
348
|
# The normal balance of the ledger account.
|
451
349
|
#
|
452
350
|
# @return [Symbol, ModernTreasury::Models::TransactionDirection]
|
453
|
-
required :normal_balance, enum: -> { ModernTreasury::
|
351
|
+
required :normal_balance, enum: -> { ModernTreasury::TransactionDirection }
|
454
352
|
|
455
353
|
# @!attribute currency_exponent
|
456
354
|
# The currency exponent of the ledger account.
|
@@ -464,87 +362,68 @@ module ModernTreasury
|
|
464
362
|
# @return [String, nil]
|
465
363
|
optional :description, String, nil?: true
|
466
364
|
|
467
|
-
# @!attribute
|
365
|
+
# @!attribute ledger_account_category_ids
|
468
366
|
# The array of ledger account category ids that this ledger account should be a
|
469
367
|
# child of.
|
470
368
|
#
|
471
369
|
# @return [Array<String>, nil]
|
472
370
|
optional :ledger_account_category_ids, ModernTreasury::Internal::Type::ArrayOf[String]
|
473
371
|
|
474
|
-
# @!
|
475
|
-
# # @return [Array<String>]
|
476
|
-
# attr_writer :ledger_account_category_ids
|
477
|
-
|
478
|
-
# @!attribute [r] ledgerable_id
|
372
|
+
# @!attribute ledgerable_id
|
479
373
|
# If the ledger account links to another object in Modern Treasury, the id will be
|
480
374
|
# populated here, otherwise null.
|
481
375
|
#
|
482
376
|
# @return [String, nil]
|
483
377
|
optional :ledgerable_id, String
|
484
378
|
|
485
|
-
# @!
|
486
|
-
# # @return [String]
|
487
|
-
# attr_writer :ledgerable_id
|
488
|
-
|
489
|
-
# @!attribute [r] ledgerable_type
|
379
|
+
# @!attribute ledgerable_type
|
490
380
|
# If the ledger account links to another object in Modern Treasury, the type will
|
491
381
|
# be populated here, otherwise null. The value is one of internal_account or
|
492
382
|
# external_account.
|
493
383
|
#
|
494
384
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType, nil]
|
495
385
|
optional :ledgerable_type,
|
496
|
-
enum: -> {
|
497
|
-
|
498
|
-
|
499
|
-
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType]
|
500
|
-
# attr_writer :ledgerable_type
|
386
|
+
enum: -> {
|
387
|
+
ModernTreasury::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType
|
388
|
+
}
|
501
389
|
|
502
|
-
# @!attribute
|
390
|
+
# @!attribute metadata
|
503
391
|
# Additional data represented as key-value pairs. Both the key and value must be
|
504
392
|
# strings.
|
505
393
|
#
|
506
394
|
# @return [Hash{Symbol=>String}, nil]
|
507
395
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
508
396
|
|
509
|
-
# @!
|
510
|
-
#
|
511
|
-
#
|
512
|
-
|
513
|
-
#
|
514
|
-
#
|
515
|
-
#
|
516
|
-
#
|
517
|
-
#
|
518
|
-
#
|
519
|
-
#
|
520
|
-
#
|
521
|
-
#
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
#
|
526
|
-
#
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
#
|
538
|
-
#
|
539
|
-
# ledgerable_id: nil,
|
540
|
-
# ledgerable_type: nil,
|
541
|
-
# metadata: nil,
|
542
|
-
# **
|
543
|
-
# )
|
544
|
-
# super
|
545
|
-
# end
|
546
|
-
|
547
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
397
|
+
# @!method initialize(currency:, ledger_id:, name:, normal_balance:, currency_exponent: nil, description: nil, ledger_account_category_ids: nil, ledgerable_id: nil, ledgerable_type: nil, metadata: nil)
|
398
|
+
# Some parameter documentations has been truncated, see
|
399
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount} for
|
400
|
+
# more details.
|
401
|
+
#
|
402
|
+
# Specifies a ledger account object that will be created with the external
|
403
|
+
# account. The resulting ledger account is linked to the external account for
|
404
|
+
# auto-ledgering Payment objects. See
|
405
|
+
# https://docs.moderntreasury.com/docs/linking-to-other-modern-treasury-objects
|
406
|
+
# for more details.
|
407
|
+
#
|
408
|
+
# @param currency [String] The currency of the ledger account.
|
409
|
+
#
|
410
|
+
# @param ledger_id [String] The id of the ledger that this account belongs to.
|
411
|
+
#
|
412
|
+
# @param name [String] The name of the ledger account.
|
413
|
+
#
|
414
|
+
# @param normal_balance [Symbol, ModernTreasury::Models::TransactionDirection] The normal balance of the ledger account.
|
415
|
+
#
|
416
|
+
# @param currency_exponent [Integer, nil] The currency exponent of the ledger account.
|
417
|
+
#
|
418
|
+
# @param description [String, nil] The description of the ledger account.
|
419
|
+
#
|
420
|
+
# @param ledger_account_category_ids [Array<String>] The array of ledger account category ids that this ledger account should be a ch
|
421
|
+
#
|
422
|
+
# @param ledgerable_id [String] If the ledger account links to another object in Modern Treasury, the id will be
|
423
|
+
#
|
424
|
+
# @param ledgerable_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::LedgerableType] If the ledger account links to another object in Modern Treasury, the type will
|
425
|
+
#
|
426
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
548
427
|
|
549
428
|
# If the ledger account links to another object in Modern Treasury, the type will
|
550
429
|
# be populated here, otherwise null. The value is one of internal_account or
|
@@ -559,11 +438,8 @@ module ModernTreasury
|
|
559
438
|
INTERNAL_ACCOUNT = :internal_account
|
560
439
|
VIRTUAL_ACCOUNT = :virtual_account
|
561
440
|
|
562
|
-
|
563
|
-
|
564
|
-
# @!parse
|
565
|
-
# # @return [Array<Symbol>]
|
566
|
-
# def self.values; end
|
441
|
+
# @!method self.values
|
442
|
+
# @return [Array<Symbol>]
|
567
443
|
end
|
568
444
|
end
|
569
445
|
|
@@ -603,19 +479,20 @@ module ModernTreasury
|
|
603
479
|
# @return [String, nil]
|
604
480
|
optional :region, String, nil?: true
|
605
481
|
|
606
|
-
# @!
|
607
|
-
#
|
608
|
-
#
|
609
|
-
#
|
610
|
-
#
|
611
|
-
#
|
612
|
-
#
|
613
|
-
#
|
614
|
-
#
|
615
|
-
#
|
616
|
-
#
|
617
|
-
|
618
|
-
#
|
482
|
+
# @!method initialize(country: nil, line1: nil, line2: nil, locality: nil, postal_code: nil, region: nil)
|
483
|
+
# Required if receiving wire payments.
|
484
|
+
#
|
485
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
486
|
+
#
|
487
|
+
# @param line1 [String, nil]
|
488
|
+
#
|
489
|
+
# @param line2 [String, nil]
|
490
|
+
#
|
491
|
+
# @param locality [String, nil] Locality or City.
|
492
|
+
#
|
493
|
+
# @param postal_code [String, nil] The postal code of the address.
|
494
|
+
#
|
495
|
+
# @param region [String, nil] Region or State.
|
619
496
|
end
|
620
497
|
|
621
498
|
# Either `individual` or `business`.
|
@@ -627,11 +504,8 @@ module ModernTreasury
|
|
627
504
|
BUSINESS = :business
|
628
505
|
INDIVIDUAL = :individual
|
629
506
|
|
630
|
-
|
631
|
-
|
632
|
-
# @!parse
|
633
|
-
# # @return [Array<Symbol>]
|
634
|
-
# def self.values; end
|
507
|
+
# @!method self.values
|
508
|
+
# @return [Array<Symbol>]
|
635
509
|
end
|
636
510
|
|
637
511
|
class RoutingDetail < ModernTreasury::Internal::Type::BaseModel
|
@@ -644,26 +518,20 @@ module ModernTreasury
|
|
644
518
|
#
|
645
519
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
646
520
|
required :routing_number_type,
|
647
|
-
enum: -> {
|
521
|
+
enum: -> {
|
522
|
+
ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType
|
523
|
+
}
|
648
524
|
|
649
|
-
# @!attribute
|
525
|
+
# @!attribute payment_type
|
650
526
|
#
|
651
527
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType, nil]
|
652
528
|
optional :payment_type,
|
653
|
-
enum: -> { ModernTreasury::
|
529
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::Account::RoutingDetail::PaymentType }
|
654
530
|
|
655
|
-
# @!
|
656
|
-
#
|
657
|
-
#
|
658
|
-
|
659
|
-
# @!parse
|
660
|
-
# # @param routing_number [String]
|
661
|
-
# # @param routing_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
662
|
-
# # @param payment_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
|
663
|
-
# #
|
664
|
-
# def initialize(routing_number:, routing_number_type:, payment_type: nil, **) = super
|
665
|
-
|
666
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
531
|
+
# @!method initialize(routing_number:, routing_number_type:, payment_type: nil)
|
532
|
+
# @param routing_number [String]
|
533
|
+
# @param routing_number_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::RoutingNumberType]
|
534
|
+
# @param payment_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail::PaymentType]
|
667
535
|
|
668
536
|
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail#routing_number_type
|
669
537
|
module RoutingNumberType
|
@@ -691,11 +559,8 @@ module ModernTreasury
|
|
691
559
|
SWIFT = :swift
|
692
560
|
ZA_NATIONAL_CLEARING_CODE = :za_national_clearing_code
|
693
561
|
|
694
|
-
|
695
|
-
|
696
|
-
# @!parse
|
697
|
-
# # @return [Array<Symbol>]
|
698
|
-
# def self.values; end
|
562
|
+
# @!method self.values
|
563
|
+
# @return [Array<Symbol>]
|
699
564
|
end
|
700
565
|
|
701
566
|
# @see ModernTreasury::Models::CounterpartyCreateParams::Account::RoutingDetail#payment_type
|
@@ -705,6 +570,7 @@ module ModernTreasury
|
|
705
570
|
ACH = :ach
|
706
571
|
AU_BECS = :au_becs
|
707
572
|
BACS = :bacs
|
573
|
+
BASE = :base
|
708
574
|
BOOK = :book
|
709
575
|
CARD = :card
|
710
576
|
CHATS = :chats
|
@@ -712,6 +578,7 @@ module ModernTreasury
|
|
712
578
|
CROSS_BORDER = :cross_border
|
713
579
|
DK_NETS = :dk_nets
|
714
580
|
EFT = :eft
|
581
|
+
ETHEREUM = :ethereum
|
715
582
|
HU_ICS = :hu_ics
|
716
583
|
INTERAC = :interac
|
717
584
|
MASAV = :masav
|
@@ -720,6 +587,7 @@ module ModernTreasury
|
|
720
587
|
NICS = :nics
|
721
588
|
NZ_BECS = :nz_becs
|
722
589
|
PL_ELIXIR = :pl_elixir
|
590
|
+
POLYGON = :polygon
|
723
591
|
PROVXCHANGE = :provxchange
|
724
592
|
RO_SENT = :ro_sent
|
725
593
|
RTP = :rtp
|
@@ -730,14 +598,12 @@ module ModernTreasury
|
|
730
598
|
SIC = :sic
|
731
599
|
SIGNET = :signet
|
732
600
|
SKNBI = :sknbi
|
601
|
+
SOLANA = :solana
|
733
602
|
WIRE = :wire
|
734
603
|
ZENGIN = :zengin
|
735
604
|
|
736
|
-
|
737
|
-
|
738
|
-
# @!parse
|
739
|
-
# # @return [Array<Symbol>]
|
740
|
-
# def self.values; end
|
605
|
+
# @!method self.values
|
606
|
+
# @return [Array<Symbol>]
|
741
607
|
end
|
742
608
|
end
|
743
609
|
end
|
@@ -752,11 +618,8 @@ module ModernTreasury
|
|
752
618
|
CUSTOMER = :customer
|
753
619
|
VENDOR = :vendor
|
754
620
|
|
755
|
-
|
756
|
-
|
757
|
-
# @!parse
|
758
|
-
# # @return [Array<Symbol>]
|
759
|
-
# def self.values; end
|
621
|
+
# @!method self.values
|
622
|
+
# @return [Array<Symbol>]
|
760
623
|
end
|
761
624
|
|
762
625
|
class LegalEntity < ModernTreasury::Internal::Type::BaseModel
|
@@ -765,23 +628,21 @@ module ModernTreasury
|
|
765
628
|
#
|
766
629
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType]
|
767
630
|
required :legal_entity_type,
|
768
|
-
enum: -> { ModernTreasury::
|
631
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityType }
|
769
632
|
|
770
|
-
# @!attribute
|
633
|
+
# @!attribute addresses
|
771
634
|
# A list of addresses for the entity.
|
772
635
|
#
|
773
636
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>, nil]
|
774
637
|
optional :addresses,
|
775
|
-
-> {
|
776
|
-
|
777
|
-
|
778
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>]
|
779
|
-
# attr_writer :addresses
|
638
|
+
-> {
|
639
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::Address]
|
640
|
+
}
|
780
641
|
|
781
642
|
# @!attribute bank_settings
|
782
643
|
#
|
783
644
|
# @return [ModernTreasury::Models::BankSettings, nil]
|
784
|
-
optional :bank_settings, -> { ModernTreasury::
|
645
|
+
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
785
646
|
|
786
647
|
# @!attribute business_name
|
787
648
|
# The business's legal business name.
|
@@ -798,7 +659,7 @@ module ModernTreasury
|
|
798
659
|
# @!attribute compliance_details
|
799
660
|
#
|
800
661
|
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
801
|
-
optional :compliance_details, -> { ModernTreasury::
|
662
|
+
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
802
663
|
|
803
664
|
# @!attribute date_formed
|
804
665
|
# A business's formation date (YYYY-MM-DD).
|
@@ -812,15 +673,11 @@ module ModernTreasury
|
|
812
673
|
# @return [Date, nil]
|
813
674
|
optional :date_of_birth, Date, nil?: true
|
814
675
|
|
815
|
-
# @!attribute
|
676
|
+
# @!attribute doing_business_as_names
|
816
677
|
#
|
817
678
|
# @return [Array<String>, nil]
|
818
679
|
optional :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
|
819
680
|
|
820
|
-
# @!parse
|
821
|
-
# # @return [Array<String>]
|
822
|
-
# attr_writer :doing_business_as_names
|
823
|
-
|
824
681
|
# @!attribute email
|
825
682
|
# The entity's primary email.
|
826
683
|
#
|
@@ -833,27 +690,23 @@ module ModernTreasury
|
|
833
690
|
# @return [String, nil]
|
834
691
|
optional :first_name, String, nil?: true
|
835
692
|
|
836
|
-
# @!attribute
|
693
|
+
# @!attribute identifications
|
837
694
|
# A list of identifications for the legal entity.
|
838
695
|
#
|
839
696
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>, nil]
|
840
697
|
optional :identifications,
|
841
|
-
-> {
|
698
|
+
-> {
|
699
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification]
|
700
|
+
}
|
842
701
|
|
843
|
-
# @!
|
844
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>]
|
845
|
-
# attr_writer :identifications
|
846
|
-
|
847
|
-
# @!attribute [r] industry_classifications
|
702
|
+
# @!attribute industry_classifications
|
848
703
|
# A list of industry classifications for the legal entity.
|
849
704
|
#
|
850
705
|
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
851
706
|
optional :industry_classifications,
|
852
|
-
-> {
|
853
|
-
|
854
|
-
|
855
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
856
|
-
# attr_writer :industry_classifications
|
707
|
+
-> {
|
708
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
709
|
+
}
|
857
710
|
|
858
711
|
# @!attribute last_name
|
859
712
|
# An individual's last name.
|
@@ -866,7 +719,9 @@ module ModernTreasury
|
|
866
719
|
#
|
867
720
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil]
|
868
721
|
optional :legal_entity_associations,
|
869
|
-
-> {
|
722
|
+
-> {
|
723
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]
|
724
|
+
},
|
870
725
|
nil?: true
|
871
726
|
|
872
727
|
# @!attribute legal_structure
|
@@ -874,35 +729,29 @@ module ModernTreasury
|
|
874
729
|
#
|
875
730
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil]
|
876
731
|
optional :legal_structure,
|
877
|
-
enum: -> { ModernTreasury::
|
732
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalStructure },
|
878
733
|
nil?: true
|
879
734
|
|
880
|
-
# @!attribute
|
735
|
+
# @!attribute metadata
|
881
736
|
# Additional data represented as key-value pairs. Both the key and value must be
|
882
737
|
# strings.
|
883
738
|
#
|
884
739
|
# @return [Hash{Symbol=>String}, nil]
|
885
740
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
886
741
|
|
887
|
-
# @!parse
|
888
|
-
# # @return [Hash{Symbol=>String}]
|
889
|
-
# attr_writer :metadata
|
890
|
-
|
891
742
|
# @!attribute middle_name
|
892
743
|
# An individual's middle name.
|
893
744
|
#
|
894
745
|
# @return [String, nil]
|
895
746
|
optional :middle_name, String, nil?: true
|
896
747
|
|
897
|
-
# @!attribute
|
748
|
+
# @!attribute phone_numbers
|
898
749
|
#
|
899
750
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>, nil]
|
900
751
|
optional :phone_numbers,
|
901
|
-
-> {
|
902
|
-
|
903
|
-
|
904
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
|
905
|
-
# attr_writer :phone_numbers
|
752
|
+
-> {
|
753
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::PhoneNumber]
|
754
|
+
}
|
906
755
|
|
907
756
|
# @!attribute politically_exposed_person
|
908
757
|
# Whether the individual is a politically exposed person.
|
@@ -927,7 +776,7 @@ module ModernTreasury
|
|
927
776
|
#
|
928
777
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil]
|
929
778
|
optional :risk_rating,
|
930
|
-
enum: -> { ModernTreasury::
|
779
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::RiskRating },
|
931
780
|
nil?: true
|
932
781
|
|
933
782
|
# @!attribute suffix
|
@@ -939,9 +788,7 @@ module ModernTreasury
|
|
939
788
|
# @!attribute wealth_and_employment_details
|
940
789
|
#
|
941
790
|
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
942
|
-
optional :wealth_and_employment_details,
|
943
|
-
-> { ModernTreasury::Models::WealthAndEmploymentDetails },
|
944
|
-
nil?: true
|
791
|
+
optional :wealth_and_employment_details, -> { ModernTreasury::WealthAndEmploymentDetails }, nil?: true
|
945
792
|
|
946
793
|
# @!attribute website
|
947
794
|
# The entity's primary website URL.
|
@@ -949,67 +796,62 @@ module ModernTreasury
|
|
949
796
|
# @return [String, nil]
|
950
797
|
optional :website, String, nil?: true
|
951
798
|
|
952
|
-
# @!
|
953
|
-
#
|
954
|
-
#
|
955
|
-
#
|
956
|
-
#
|
957
|
-
#
|
958
|
-
#
|
959
|
-
#
|
960
|
-
#
|
961
|
-
#
|
962
|
-
#
|
963
|
-
#
|
964
|
-
#
|
965
|
-
#
|
966
|
-
#
|
967
|
-
#
|
968
|
-
#
|
969
|
-
#
|
970
|
-
#
|
971
|
-
#
|
972
|
-
#
|
973
|
-
#
|
974
|
-
#
|
975
|
-
#
|
976
|
-
#
|
977
|
-
#
|
978
|
-
#
|
979
|
-
#
|
980
|
-
#
|
981
|
-
#
|
982
|
-
#
|
983
|
-
#
|
984
|
-
#
|
985
|
-
#
|
986
|
-
#
|
987
|
-
#
|
988
|
-
#
|
989
|
-
#
|
990
|
-
#
|
991
|
-
#
|
992
|
-
#
|
993
|
-
#
|
994
|
-
#
|
995
|
-
#
|
996
|
-
#
|
997
|
-
#
|
998
|
-
#
|
999
|
-
#
|
1000
|
-
#
|
1001
|
-
#
|
1002
|
-
#
|
1003
|
-
#
|
1004
|
-
#
|
1005
|
-
#
|
1006
|
-
#
|
1007
|
-
#
|
1008
|
-
# )
|
1009
|
-
# super
|
1010
|
-
# end
|
1011
|
-
|
1012
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
799
|
+
# @!method initialize(legal_entity_type:, addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_entity_associations: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil)
|
800
|
+
# Some parameter documentations has been truncated, see
|
801
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity} for more
|
802
|
+
# details.
|
803
|
+
#
|
804
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityType] The type of legal entity.
|
805
|
+
#
|
806
|
+
# @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address>] A list of addresses for the entity.
|
807
|
+
#
|
808
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
809
|
+
#
|
810
|
+
# @param business_name [String, nil] The business's legal business name.
|
811
|
+
#
|
812
|
+
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
813
|
+
#
|
814
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
815
|
+
#
|
816
|
+
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
817
|
+
#
|
818
|
+
# @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
|
819
|
+
#
|
820
|
+
# @param doing_business_as_names [Array<String>]
|
821
|
+
#
|
822
|
+
# @param email [String, nil] The entity's primary email.
|
823
|
+
#
|
824
|
+
# @param first_name [String, nil] An individual's first name.
|
825
|
+
#
|
826
|
+
# @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification>] A list of identifications for the legal entity.
|
827
|
+
#
|
828
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
829
|
+
#
|
830
|
+
# @param last_name [String, nil] An individual's last name.
|
831
|
+
#
|
832
|
+
# @param legal_entity_associations [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation>, nil] The legal entity associations and its child legal entities.
|
833
|
+
#
|
834
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalStructure, nil] The business's legal structure.
|
835
|
+
#
|
836
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
837
|
+
#
|
838
|
+
# @param middle_name [String, nil] An individual's middle name.
|
839
|
+
#
|
840
|
+
# @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::PhoneNumber>]
|
841
|
+
#
|
842
|
+
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
843
|
+
#
|
844
|
+
# @param preferred_name [String, nil] An individual's preferred name.
|
845
|
+
#
|
846
|
+
# @param prefix [String, nil] An individual's prefix.
|
847
|
+
#
|
848
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
849
|
+
#
|
850
|
+
# @param suffix [String, nil] An individual's suffix.
|
851
|
+
#
|
852
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
853
|
+
#
|
854
|
+
# @param website [String, nil] The entity's primary website URL.
|
1013
855
|
|
1014
856
|
# The type of legal entity.
|
1015
857
|
#
|
@@ -1020,11 +862,8 @@ module ModernTreasury
|
|
1020
862
|
BUSINESS = :business
|
1021
863
|
INDIVIDUAL = :individual
|
1022
864
|
|
1023
|
-
|
1024
|
-
|
1025
|
-
# @!parse
|
1026
|
-
# # @return [Array<Symbol>]
|
1027
|
-
# def self.values; end
|
865
|
+
# @!method self.values
|
866
|
+
# @return [Array<Symbol>]
|
1028
867
|
end
|
1029
868
|
|
1030
869
|
class Address < ModernTreasury::Internal::Type::BaseModel
|
@@ -1057,34 +896,34 @@ module ModernTreasury
|
|
1057
896
|
# @return [String, nil]
|
1058
897
|
required :region, String, nil?: true
|
1059
898
|
|
1060
|
-
# @!attribute
|
899
|
+
# @!attribute address_types
|
1061
900
|
# The types of this address.
|
1062
901
|
#
|
1063
902
|
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>, nil]
|
1064
903
|
optional :address_types,
|
1065
|
-
-> {
|
1066
|
-
|
1067
|
-
|
1068
|
-
# # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>]
|
1069
|
-
# attr_writer :address_types
|
904
|
+
-> {
|
905
|
+
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::Address::AddressType]
|
906
|
+
}
|
1070
907
|
|
1071
908
|
# @!attribute line2
|
1072
909
|
#
|
1073
910
|
# @return [String, nil]
|
1074
911
|
optional :line2, String, nil?: true
|
1075
912
|
|
1076
|
-
# @!
|
1077
|
-
#
|
1078
|
-
#
|
1079
|
-
#
|
1080
|
-
#
|
1081
|
-
#
|
1082
|
-
#
|
1083
|
-
#
|
1084
|
-
#
|
1085
|
-
#
|
1086
|
-
|
1087
|
-
#
|
913
|
+
# @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
|
914
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
915
|
+
#
|
916
|
+
# @param line1 [String, nil]
|
917
|
+
#
|
918
|
+
# @param locality [String, nil] Locality or City.
|
919
|
+
#
|
920
|
+
# @param postal_code [String, nil] The postal code of the address.
|
921
|
+
#
|
922
|
+
# @param region [String, nil] Region or State.
|
923
|
+
#
|
924
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::AddressType>] The types of this address.
|
925
|
+
#
|
926
|
+
# @param line2 [String, nil]
|
1088
927
|
|
1089
928
|
module AddressType
|
1090
929
|
extend ModernTreasury::Internal::Type::Enum
|
@@ -1095,11 +934,8 @@ module ModernTreasury
|
|
1095
934
|
PO_BOX = :po_box
|
1096
935
|
RESIDENTIAL = :residential
|
1097
936
|
|
1098
|
-
|
1099
|
-
|
1100
|
-
# @!parse
|
1101
|
-
# # @return [Array<Symbol>]
|
1102
|
-
# def self.values; end
|
937
|
+
# @!method self.values
|
938
|
+
# @return [Array<Symbol>]
|
1103
939
|
end
|
1104
940
|
end
|
1105
941
|
|
@@ -1115,7 +951,14 @@ module ModernTreasury
|
|
1115
951
|
#
|
1116
952
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType]
|
1117
953
|
required :id_type,
|
1118
|
-
enum: -> { ModernTreasury::
|
954
|
+
enum: -> { ModernTreasury::CounterpartyCreateParams::LegalEntity::Identification::IDType }
|
955
|
+
|
956
|
+
# @!attribute expiration_date
|
957
|
+
# The date when the Identification is no longer considered valid by the issuing
|
958
|
+
# authority.
|
959
|
+
#
|
960
|
+
# @return [Date, nil]
|
961
|
+
optional :expiration_date, Date, nil?: true
|
1119
962
|
|
1120
963
|
# @!attribute issuing_country
|
1121
964
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
@@ -1124,14 +967,26 @@ module ModernTreasury
|
|
1124
967
|
# @return [String, nil]
|
1125
968
|
optional :issuing_country, String, nil?: true
|
1126
969
|
|
1127
|
-
# @!
|
1128
|
-
#
|
1129
|
-
#
|
1130
|
-
#
|
1131
|
-
|
1132
|
-
# def initialize(id_number:, id_type:, issuing_country: nil, **) = super
|
970
|
+
# @!attribute issuing_region
|
971
|
+
# The region in which the identifcation was issued.
|
972
|
+
#
|
973
|
+
# @return [String, nil]
|
974
|
+
optional :issuing_region, String, nil?: true
|
1133
975
|
|
1134
|
-
#
|
976
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
977
|
+
# Some parameter documentations has been truncated, see
|
978
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification}
|
979
|
+
# for more details.
|
980
|
+
#
|
981
|
+
# @param id_number [String] The ID number of identification document.
|
982
|
+
#
|
983
|
+
# @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::IDType] The type of ID number.
|
984
|
+
#
|
985
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
986
|
+
#
|
987
|
+
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
988
|
+
#
|
989
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
1135
990
|
|
1136
991
|
# The type of ID number.
|
1137
992
|
#
|
@@ -1147,6 +1002,7 @@ module ModernTreasury
|
|
1147
1002
|
CL_RUT = :cl_rut
|
1148
1003
|
CO_CEDULAS = :co_cedulas
|
1149
1004
|
CO_NIT = :co_nit
|
1005
|
+
DRIVERS_LICENSE = :drivers_license
|
1150
1006
|
HN_ID = :hn_id
|
1151
1007
|
HN_RTN = :hn_rtn
|
1152
1008
|
IN_LEI = :in_lei
|
@@ -1161,11 +1017,8 @@ module ModernTreasury
|
|
1161
1017
|
US_SSN = :us_ssn
|
1162
1018
|
VN_TIN = :vn_tin
|
1163
1019
|
|
1164
|
-
|
1165
|
-
|
1166
|
-
# @!parse
|
1167
|
-
# # @return [Array<Symbol>]
|
1168
|
-
# def self.values; end
|
1020
|
+
# @!method self.values
|
1021
|
+
# @return [Array<Symbol>]
|
1169
1022
|
end
|
1170
1023
|
end
|
1171
1024
|
|
@@ -1174,33 +1027,25 @@ module ModernTreasury
|
|
1174
1027
|
#
|
1175
1028
|
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1176
1029
|
required :relationship_types,
|
1177
|
-
->
|
1178
|
-
ModernTreasury::Internal::Type::ArrayOf[
|
1179
|
-
|
1180
|
-
]
|
1181
|
-
end
|
1030
|
+
-> {
|
1031
|
+
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType]
|
1032
|
+
}
|
1182
1033
|
|
1183
|
-
# @!attribute
|
1034
|
+
# @!attribute child_legal_entity
|
1184
1035
|
# The child legal entity.
|
1185
1036
|
#
|
1186
1037
|
# @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity, nil]
|
1187
1038
|
optional :child_legal_entity,
|
1188
|
-
-> {
|
1189
|
-
|
1190
|
-
|
1191
|
-
# # @return [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity]
|
1192
|
-
# attr_writer :child_legal_entity
|
1039
|
+
-> {
|
1040
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity
|
1041
|
+
}
|
1193
1042
|
|
1194
|
-
# @!attribute
|
1043
|
+
# @!attribute child_legal_entity_id
|
1195
1044
|
# The ID of the child legal entity.
|
1196
1045
|
#
|
1197
1046
|
# @return [String, nil]
|
1198
1047
|
optional :child_legal_entity_id, String
|
1199
1048
|
|
1200
|
-
# @!parse
|
1201
|
-
# # @return [String]
|
1202
|
-
# attr_writer :child_legal_entity_id
|
1203
|
-
|
1204
1049
|
# @!attribute ownership_percentage
|
1205
1050
|
# The child entity's ownership percentage iff they are a beneficial owner.
|
1206
1051
|
#
|
@@ -1213,25 +1058,16 @@ module ModernTreasury
|
|
1213
1058
|
# @return [String, nil]
|
1214
1059
|
optional :title, String, nil?: true
|
1215
1060
|
|
1216
|
-
# @!
|
1217
|
-
#
|
1218
|
-
#
|
1219
|
-
#
|
1220
|
-
#
|
1221
|
-
#
|
1222
|
-
#
|
1223
|
-
#
|
1224
|
-
#
|
1225
|
-
#
|
1226
|
-
# child_legal_entity_id: nil,
|
1227
|
-
# ownership_percentage: nil,
|
1228
|
-
# title: nil,
|
1229
|
-
# **
|
1230
|
-
# )
|
1231
|
-
# super
|
1232
|
-
# end
|
1233
|
-
|
1234
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
1061
|
+
# @!method initialize(relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil)
|
1062
|
+
# @param relationship_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
1063
|
+
#
|
1064
|
+
# @param child_legal_entity [ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity] The child legal entity.
|
1065
|
+
#
|
1066
|
+
# @param child_legal_entity_id [String] The ID of the child legal entity.
|
1067
|
+
#
|
1068
|
+
# @param ownership_percentage [Integer, nil] The child entity's ownership percentage iff they are a beneficial owner.
|
1069
|
+
#
|
1070
|
+
# @param title [String, nil] The job title of the child entity at the parent entity.
|
1235
1071
|
|
1236
1072
|
# A list of relationship types for how the child entity relates to parent entity.
|
1237
1073
|
module RelationshipType
|
@@ -1240,34 +1076,25 @@ module ModernTreasury
|
|
1240
1076
|
BENEFICIAL_OWNER = :beneficial_owner
|
1241
1077
|
CONTROL_PERSON = :control_person
|
1242
1078
|
|
1243
|
-
|
1244
|
-
|
1245
|
-
# @!parse
|
1246
|
-
# # @return [Array<Symbol>]
|
1247
|
-
# def self.values; end
|
1079
|
+
# @!method self.values
|
1080
|
+
# @return [Array<Symbol>]
|
1248
1081
|
end
|
1249
1082
|
|
1250
1083
|
# @see ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation#child_legal_entity
|
1251
1084
|
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
1252
|
-
# @!attribute
|
1085
|
+
# @!attribute addresses
|
1253
1086
|
# A list of addresses for the entity.
|
1254
1087
|
#
|
1255
1088
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
1256
1089
|
optional :addresses,
|
1257
|
-
->
|
1258
|
-
ModernTreasury::Internal::Type::ArrayOf[
|
1259
|
-
|
1260
|
-
]
|
1261
|
-
end
|
1262
|
-
|
1263
|
-
# @!parse
|
1264
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>]
|
1265
|
-
# attr_writer :addresses
|
1090
|
+
-> {
|
1091
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]
|
1092
|
+
}
|
1266
1093
|
|
1267
1094
|
# @!attribute bank_settings
|
1268
1095
|
#
|
1269
1096
|
# @return [ModernTreasury::Models::BankSettings, nil]
|
1270
|
-
optional :bank_settings, -> { ModernTreasury::
|
1097
|
+
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
1271
1098
|
|
1272
1099
|
# @!attribute business_name
|
1273
1100
|
# The business's legal business name.
|
@@ -1284,7 +1111,7 @@ module ModernTreasury
|
|
1284
1111
|
# @!attribute compliance_details
|
1285
1112
|
#
|
1286
1113
|
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
1287
|
-
optional :compliance_details, -> { ModernTreasury::
|
1114
|
+
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
1288
1115
|
|
1289
1116
|
# @!attribute date_formed
|
1290
1117
|
# A business's formation date (YYYY-MM-DD).
|
@@ -1298,15 +1125,11 @@ module ModernTreasury
|
|
1298
1125
|
# @return [Date, nil]
|
1299
1126
|
optional :date_of_birth, Date, nil?: true
|
1300
1127
|
|
1301
|
-
# @!attribute
|
1128
|
+
# @!attribute doing_business_as_names
|
1302
1129
|
#
|
1303
1130
|
# @return [Array<String>, nil]
|
1304
1131
|
optional :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
|
1305
1132
|
|
1306
|
-
# @!parse
|
1307
|
-
# # @return [Array<String>]
|
1308
|
-
# attr_writer :doing_business_as_names
|
1309
|
-
|
1310
1133
|
# @!attribute email
|
1311
1134
|
# The entity's primary email.
|
1312
1135
|
#
|
@@ -1319,31 +1142,25 @@ module ModernTreasury
|
|
1319
1142
|
# @return [String, nil]
|
1320
1143
|
optional :first_name, String, nil?: true
|
1321
1144
|
|
1322
|
-
# @!attribute
|
1145
|
+
# @!attribute identifications
|
1323
1146
|
# A list of identifications for the legal entity.
|
1324
1147
|
#
|
1325
1148
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
1326
1149
|
optional :identifications,
|
1327
1150
|
-> do
|
1328
1151
|
ModernTreasury::Internal::Type::ArrayOf[
|
1329
|
-
ModernTreasury::
|
1152
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
|
1330
1153
|
]
|
1331
1154
|
end
|
1332
1155
|
|
1333
|
-
# @!
|
1334
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>]
|
1335
|
-
# attr_writer :identifications
|
1336
|
-
|
1337
|
-
# @!attribute [r] industry_classifications
|
1156
|
+
# @!attribute industry_classifications
|
1338
1157
|
# A list of industry classifications for the legal entity.
|
1339
1158
|
#
|
1340
1159
|
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
1341
1160
|
optional :industry_classifications,
|
1342
|
-
-> {
|
1343
|
-
|
1344
|
-
|
1345
|
-
# # @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>]
|
1346
|
-
# attr_writer :industry_classifications
|
1161
|
+
-> {
|
1162
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
1163
|
+
}
|
1347
1164
|
|
1348
1165
|
# @!attribute last_name
|
1349
1166
|
# An individual's last name.
|
@@ -1351,56 +1168,48 @@ module ModernTreasury
|
|
1351
1168
|
# @return [String, nil]
|
1352
1169
|
optional :last_name, String, nil?: true
|
1353
1170
|
|
1354
|
-
# @!attribute
|
1171
|
+
# @!attribute legal_entity_type
|
1355
1172
|
# The type of legal entity.
|
1356
1173
|
#
|
1357
1174
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
1358
1175
|
optional :legal_entity_type,
|
1359
|
-
enum: -> {
|
1360
|
-
|
1361
|
-
|
1362
|
-
# # @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType]
|
1363
|
-
# attr_writer :legal_entity_type
|
1176
|
+
enum: -> {
|
1177
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
|
1178
|
+
}
|
1364
1179
|
|
1365
1180
|
# @!attribute legal_structure
|
1366
1181
|
# The business's legal structure.
|
1367
1182
|
#
|
1368
1183
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
1369
1184
|
optional :legal_structure,
|
1370
|
-
enum: -> {
|
1185
|
+
enum: -> {
|
1186
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure
|
1187
|
+
},
|
1371
1188
|
nil?: true
|
1372
1189
|
|
1373
|
-
# @!attribute
|
1190
|
+
# @!attribute metadata
|
1374
1191
|
# Additional data represented as key-value pairs. Both the key and value must be
|
1375
1192
|
# strings.
|
1376
1193
|
#
|
1377
1194
|
# @return [Hash{Symbol=>String}, nil]
|
1378
1195
|
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
1379
1196
|
|
1380
|
-
# @!parse
|
1381
|
-
# # @return [Hash{Symbol=>String}]
|
1382
|
-
# attr_writer :metadata
|
1383
|
-
|
1384
1197
|
# @!attribute middle_name
|
1385
1198
|
# An individual's middle name.
|
1386
1199
|
#
|
1387
1200
|
# @return [String, nil]
|
1388
1201
|
optional :middle_name, String, nil?: true
|
1389
1202
|
|
1390
|
-
# @!attribute
|
1203
|
+
# @!attribute phone_numbers
|
1391
1204
|
#
|
1392
1205
|
# @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
1393
1206
|
optional :phone_numbers,
|
1394
1207
|
-> do
|
1395
1208
|
ModernTreasury::Internal::Type::ArrayOf[
|
1396
|
-
ModernTreasury::
|
1209
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
|
1397
1210
|
]
|
1398
1211
|
end
|
1399
1212
|
|
1400
|
-
# @!parse
|
1401
|
-
# # @return [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
1402
|
-
# attr_writer :phone_numbers
|
1403
|
-
|
1404
1213
|
# @!attribute politically_exposed_person
|
1405
1214
|
# Whether the individual is a politically exposed person.
|
1406
1215
|
#
|
@@ -1424,7 +1233,9 @@ module ModernTreasury
|
|
1424
1233
|
#
|
1425
1234
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
1426
1235
|
optional :risk_rating,
|
1427
|
-
enum: -> {
|
1236
|
+
enum: -> {
|
1237
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating
|
1238
|
+
},
|
1428
1239
|
nil?: true
|
1429
1240
|
|
1430
1241
|
# @!attribute suffix
|
@@ -1437,7 +1248,9 @@ module ModernTreasury
|
|
1437
1248
|
#
|
1438
1249
|
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
1439
1250
|
optional :wealth_and_employment_details,
|
1440
|
-
-> {
|
1251
|
+
-> {
|
1252
|
+
ModernTreasury::WealthAndEmploymentDetails
|
1253
|
+
},
|
1441
1254
|
nil?: true
|
1442
1255
|
|
1443
1256
|
# @!attribute website
|
@@ -1446,67 +1259,62 @@ module ModernTreasury
|
|
1446
1259
|
# @return [String, nil]
|
1447
1260
|
optional :website, String, nil?: true
|
1448
1261
|
|
1449
|
-
# @!
|
1450
|
-
#
|
1451
|
-
#
|
1452
|
-
#
|
1453
|
-
#
|
1454
|
-
#
|
1455
|
-
#
|
1456
|
-
#
|
1457
|
-
#
|
1458
|
-
#
|
1459
|
-
#
|
1460
|
-
#
|
1461
|
-
#
|
1462
|
-
#
|
1463
|
-
#
|
1464
|
-
#
|
1465
|
-
#
|
1466
|
-
#
|
1467
|
-
#
|
1468
|
-
#
|
1469
|
-
#
|
1470
|
-
#
|
1471
|
-
#
|
1472
|
-
#
|
1473
|
-
#
|
1474
|
-
#
|
1475
|
-
#
|
1476
|
-
#
|
1477
|
-
#
|
1478
|
-
#
|
1479
|
-
#
|
1480
|
-
#
|
1481
|
-
#
|
1482
|
-
#
|
1483
|
-
#
|
1484
|
-
#
|
1485
|
-
#
|
1486
|
-
#
|
1487
|
-
#
|
1488
|
-
#
|
1489
|
-
#
|
1490
|
-
#
|
1491
|
-
#
|
1492
|
-
#
|
1493
|
-
#
|
1494
|
-
#
|
1495
|
-
#
|
1496
|
-
#
|
1497
|
-
#
|
1498
|
-
#
|
1499
|
-
#
|
1500
|
-
#
|
1501
|
-
#
|
1502
|
-
#
|
1503
|
-
#
|
1504
|
-
#
|
1505
|
-
# )
|
1506
|
-
# super
|
1507
|
-
# end
|
1508
|
-
|
1509
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
1262
|
+
# @!method initialize(addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_entity_type: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil)
|
1263
|
+
# Some parameter documentations has been truncated, see
|
1264
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity}
|
1265
|
+
# for more details.
|
1266
|
+
#
|
1267
|
+
# The child legal entity.
|
1268
|
+
#
|
1269
|
+
# @param addresses [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
1270
|
+
#
|
1271
|
+
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
1272
|
+
#
|
1273
|
+
# @param business_name [String, nil] The business's legal business name.
|
1274
|
+
#
|
1275
|
+
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
1276
|
+
#
|
1277
|
+
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
1278
|
+
#
|
1279
|
+
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
1280
|
+
#
|
1281
|
+
# @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
|
1282
|
+
#
|
1283
|
+
# @param doing_business_as_names [Array<String>]
|
1284
|
+
#
|
1285
|
+
# @param email [String, nil] The entity's primary email.
|
1286
|
+
#
|
1287
|
+
# @param first_name [String, nil] An individual's first name.
|
1288
|
+
#
|
1289
|
+
# @param identifications [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
1290
|
+
#
|
1291
|
+
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
1292
|
+
#
|
1293
|
+
# @param last_name [String, nil] An individual's last name.
|
1294
|
+
#
|
1295
|
+
# @param legal_entity_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
1296
|
+
#
|
1297
|
+
# @param legal_structure [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
1298
|
+
#
|
1299
|
+
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
1300
|
+
#
|
1301
|
+
# @param middle_name [String, nil] An individual's middle name.
|
1302
|
+
#
|
1303
|
+
# @param phone_numbers [Array<ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
1304
|
+
#
|
1305
|
+
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
1306
|
+
#
|
1307
|
+
# @param preferred_name [String, nil] An individual's preferred name.
|
1308
|
+
#
|
1309
|
+
# @param prefix [String, nil] An individual's prefix.
|
1310
|
+
#
|
1311
|
+
# @param risk_rating [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
1312
|
+
#
|
1313
|
+
# @param suffix [String, nil] An individual's suffix.
|
1314
|
+
#
|
1315
|
+
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
1316
|
+
#
|
1317
|
+
# @param website [String, nil] The entity's primary website URL.
|
1510
1318
|
|
1511
1319
|
class Address < ModernTreasury::Internal::Type::BaseModel
|
1512
1320
|
# @!attribute country
|
@@ -1538,38 +1346,36 @@ module ModernTreasury
|
|
1538
1346
|
# @return [String, nil]
|
1539
1347
|
required :region, String, nil?: true
|
1540
1348
|
|
1541
|
-
# @!attribute
|
1349
|
+
# @!attribute address_types
|
1542
1350
|
# The types of this address.
|
1543
1351
|
#
|
1544
1352
|
# @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
1545
1353
|
optional :address_types,
|
1546
1354
|
-> do
|
1547
1355
|
ModernTreasury::Internal::Type::ArrayOf[
|
1548
|
-
enum: ModernTreasury::
|
1356
|
+
enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
|
1549
1357
|
]
|
1550
1358
|
end
|
1551
1359
|
|
1552
|
-
# @!parse
|
1553
|
-
# # @return [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>]
|
1554
|
-
# attr_writer :address_types
|
1555
|
-
|
1556
1360
|
# @!attribute line2
|
1557
1361
|
#
|
1558
1362
|
# @return [String, nil]
|
1559
1363
|
optional :line2, String, nil?: true
|
1560
1364
|
|
1561
|
-
# @!
|
1562
|
-
#
|
1563
|
-
#
|
1564
|
-
#
|
1565
|
-
#
|
1566
|
-
#
|
1567
|
-
#
|
1568
|
-
#
|
1569
|
-
#
|
1570
|
-
#
|
1571
|
-
|
1572
|
-
#
|
1365
|
+
# @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
|
1366
|
+
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
1367
|
+
#
|
1368
|
+
# @param line1 [String, nil]
|
1369
|
+
#
|
1370
|
+
# @param locality [String, nil] Locality or City.
|
1371
|
+
#
|
1372
|
+
# @param postal_code [String, nil] The postal code of the address.
|
1373
|
+
#
|
1374
|
+
# @param region [String, nil] Region or State.
|
1375
|
+
#
|
1376
|
+
# @param address_types [Array<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
1377
|
+
#
|
1378
|
+
# @param line2 [String, nil]
|
1573
1379
|
|
1574
1380
|
module AddressType
|
1575
1381
|
extend ModernTreasury::Internal::Type::Enum
|
@@ -1580,11 +1386,8 @@ module ModernTreasury
|
|
1580
1386
|
PO_BOX = :po_box
|
1581
1387
|
RESIDENTIAL = :residential
|
1582
1388
|
|
1583
|
-
|
1584
|
-
|
1585
|
-
# @!parse
|
1586
|
-
# # @return [Array<Symbol>]
|
1587
|
-
# def self.values; end
|
1389
|
+
# @!method self.values
|
1390
|
+
# @return [Array<Symbol>]
|
1588
1391
|
end
|
1589
1392
|
end
|
1590
1393
|
|
@@ -1600,7 +1403,16 @@ module ModernTreasury
|
|
1600
1403
|
#
|
1601
1404
|
# @return [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
1602
1405
|
required :id_type,
|
1603
|
-
enum: -> {
|
1406
|
+
enum: -> {
|
1407
|
+
ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
|
1408
|
+
}
|
1409
|
+
|
1410
|
+
# @!attribute expiration_date
|
1411
|
+
# The date when the Identification is no longer considered valid by the issuing
|
1412
|
+
# authority.
|
1413
|
+
#
|
1414
|
+
# @return [Date, nil]
|
1415
|
+
optional :expiration_date, Date, nil?: true
|
1604
1416
|
|
1605
1417
|
# @!attribute issuing_country
|
1606
1418
|
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
@@ -1609,14 +1421,26 @@ module ModernTreasury
|
|
1609
1421
|
# @return [String, nil]
|
1610
1422
|
optional :issuing_country, String, nil?: true
|
1611
1423
|
|
1612
|
-
# @!
|
1613
|
-
#
|
1614
|
-
#
|
1615
|
-
#
|
1616
|
-
|
1617
|
-
# def initialize(id_number:, id_type:, issuing_country: nil, **) = super
|
1424
|
+
# @!attribute issuing_region
|
1425
|
+
# The region in which the identifcation was issued.
|
1426
|
+
#
|
1427
|
+
# @return [String, nil]
|
1428
|
+
optional :issuing_region, String, nil?: true
|
1618
1429
|
|
1619
|
-
#
|
1430
|
+
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
1431
|
+
# Some parameter documentations has been truncated, see
|
1432
|
+
# {ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification}
|
1433
|
+
# for more details.
|
1434
|
+
#
|
1435
|
+
# @param id_number [String] The ID number of identification document.
|
1436
|
+
#
|
1437
|
+
# @param id_type [Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
1438
|
+
#
|
1439
|
+
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
1440
|
+
#
|
1441
|
+
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
1442
|
+
#
|
1443
|
+
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
1620
1444
|
|
1621
1445
|
# The type of ID number.
|
1622
1446
|
#
|
@@ -1632,6 +1456,7 @@ module ModernTreasury
|
|
1632
1456
|
CL_RUT = :cl_rut
|
1633
1457
|
CO_CEDULAS = :co_cedulas
|
1634
1458
|
CO_NIT = :co_nit
|
1459
|
+
DRIVERS_LICENSE = :drivers_license
|
1635
1460
|
HN_ID = :hn_id
|
1636
1461
|
HN_RTN = :hn_rtn
|
1637
1462
|
IN_LEI = :in_lei
|
@@ -1646,11 +1471,8 @@ module ModernTreasury
|
|
1646
1471
|
US_SSN = :us_ssn
|
1647
1472
|
VN_TIN = :vn_tin
|
1648
1473
|
|
1649
|
-
|
1650
|
-
|
1651
|
-
# @!parse
|
1652
|
-
# # @return [Array<Symbol>]
|
1653
|
-
# def self.values; end
|
1474
|
+
# @!method self.values
|
1475
|
+
# @return [Array<Symbol>]
|
1654
1476
|
end
|
1655
1477
|
end
|
1656
1478
|
|
@@ -1663,11 +1485,8 @@ module ModernTreasury
|
|
1663
1485
|
BUSINESS = :business
|
1664
1486
|
INDIVIDUAL = :individual
|
1665
1487
|
|
1666
|
-
|
1667
|
-
|
1668
|
-
# @!parse
|
1669
|
-
# # @return [Array<Symbol>]
|
1670
|
-
# def self.values; end
|
1488
|
+
# @!method self.values
|
1489
|
+
# @return [Array<Symbol>]
|
1671
1490
|
end
|
1672
1491
|
|
1673
1492
|
# The business's legal structure.
|
@@ -1683,31 +1502,20 @@ module ModernTreasury
|
|
1683
1502
|
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
1684
1503
|
TRUST = :trust
|
1685
1504
|
|
1686
|
-
|
1687
|
-
|
1688
|
-
# @!parse
|
1689
|
-
# # @return [Array<Symbol>]
|
1690
|
-
# def self.values; end
|
1505
|
+
# @!method self.values
|
1506
|
+
# @return [Array<Symbol>]
|
1691
1507
|
end
|
1692
1508
|
|
1693
1509
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
1694
|
-
# @!attribute
|
1510
|
+
# @!attribute phone_number
|
1695
1511
|
#
|
1696
1512
|
# @return [String, nil]
|
1697
1513
|
optional :phone_number, String
|
1698
1514
|
|
1699
|
-
# @!
|
1700
|
-
#
|
1701
|
-
#
|
1702
|
-
|
1703
|
-
# @!parse
|
1704
|
-
# # A list of phone numbers in E.164 format.
|
1705
|
-
# #
|
1706
|
-
# # @param phone_number [String]
|
1707
|
-
# #
|
1708
|
-
# def initialize(phone_number: nil, **) = super
|
1709
|
-
|
1710
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
1515
|
+
# @!method initialize(phone_number: nil)
|
1516
|
+
# A list of phone numbers in E.164 format.
|
1517
|
+
#
|
1518
|
+
# @param phone_number [String]
|
1711
1519
|
end
|
1712
1520
|
|
1713
1521
|
# The risk rating of the legal entity. One of low, medium, high.
|
@@ -1720,11 +1528,8 @@ module ModernTreasury
|
|
1720
1528
|
MEDIUM = :medium
|
1721
1529
|
HIGH = :high
|
1722
1530
|
|
1723
|
-
|
1724
|
-
|
1725
|
-
# @!parse
|
1726
|
-
# # @return [Array<Symbol>]
|
1727
|
-
# def self.values; end
|
1531
|
+
# @!method self.values
|
1532
|
+
# @return [Array<Symbol>]
|
1728
1533
|
end
|
1729
1534
|
end
|
1730
1535
|
end
|
@@ -1742,31 +1547,20 @@ module ModernTreasury
|
|
1742
1547
|
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
1743
1548
|
TRUST = :trust
|
1744
1549
|
|
1745
|
-
|
1746
|
-
|
1747
|
-
# @!parse
|
1748
|
-
# # @return [Array<Symbol>]
|
1749
|
-
# def self.values; end
|
1550
|
+
# @!method self.values
|
1551
|
+
# @return [Array<Symbol>]
|
1750
1552
|
end
|
1751
1553
|
|
1752
1554
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
1753
|
-
# @!attribute
|
1555
|
+
# @!attribute phone_number
|
1754
1556
|
#
|
1755
1557
|
# @return [String, nil]
|
1756
1558
|
optional :phone_number, String
|
1757
1559
|
|
1758
|
-
# @!
|
1759
|
-
#
|
1760
|
-
#
|
1761
|
-
|
1762
|
-
# @!parse
|
1763
|
-
# # A list of phone numbers in E.164 format.
|
1764
|
-
# #
|
1765
|
-
# # @param phone_number [String]
|
1766
|
-
# #
|
1767
|
-
# def initialize(phone_number: nil, **) = super
|
1768
|
-
|
1769
|
-
# def initialize: (Hash | ModernTreasury::Internal::Type::BaseModel) -> void
|
1560
|
+
# @!method initialize(phone_number: nil)
|
1561
|
+
# A list of phone numbers in E.164 format.
|
1562
|
+
#
|
1563
|
+
# @param phone_number [String]
|
1770
1564
|
end
|
1771
1565
|
|
1772
1566
|
# The risk rating of the legal entity. One of low, medium, high.
|
@@ -1779,11 +1573,8 @@ module ModernTreasury
|
|
1779
1573
|
MEDIUM = :medium
|
1780
1574
|
HIGH = :high
|
1781
1575
|
|
1782
|
-
|
1783
|
-
|
1784
|
-
# @!parse
|
1785
|
-
# # @return [Array<Symbol>]
|
1786
|
-
# def self.values; end
|
1576
|
+
# @!method self.values
|
1577
|
+
# @return [Array<Symbol>]
|
1787
1578
|
end
|
1788
1579
|
end
|
1789
1580
|
|
@@ -1796,11 +1587,8 @@ module ModernTreasury
|
|
1796
1587
|
UNVERIFIED = :unverified
|
1797
1588
|
VERIFIED = :verified
|
1798
1589
|
|
1799
|
-
|
1800
|
-
|
1801
|
-
# @!parse
|
1802
|
-
# # @return [Array<Symbol>]
|
1803
|
-
# def self.values; end
|
1590
|
+
# @!method self.values
|
1591
|
+
# @return [Array<Symbol>]
|
1804
1592
|
end
|
1805
1593
|
end
|
1806
1594
|
end
|