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