modern_treasury 0.1.0.pre.alpha.21 → 0.1.0
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 +1 -1
- data/lib/modern_treasury/client.rb +0 -12
- data/lib/modern_treasury/errors.rb +22 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +11 -3
- data/lib/modern_treasury/internal/type/array_of.rb +6 -1
- data/lib/modern_treasury/internal/type/base_model.rb +81 -27
- data/lib/modern_treasury/internal/type/boolean.rb +7 -1
- data/lib/modern_treasury/internal/type/converter.rb +42 -34
- data/lib/modern_treasury/internal/type/enum.rb +10 -2
- data/lib/modern_treasury/internal/type/file_input.rb +6 -1
- data/lib/modern_treasury/internal/type/hash_of.rb +6 -1
- data/lib/modern_treasury/internal/type/union.rb +12 -7
- data/lib/modern_treasury/internal/type/unknown.rb +7 -1
- data/lib/modern_treasury/models/accounting.rb +30 -0
- data/lib/modern_treasury/models/address.rb +94 -0
- data/lib/modern_treasury/models/address_request.rb +54 -0
- data/lib/modern_treasury/models/bulk_request_create_params.rb +147 -1383
- data/lib/modern_treasury/models/bulk_result.rb +5 -3
- data/lib/modern_treasury/models/child_legal_entity_create.rb +275 -0
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +10 -627
- data/lib/modern_treasury/models/contact_detail.rb +81 -0
- data/lib/modern_treasury/models/contact_detail_create_request.rb +34 -0
- data/lib/modern_treasury/models/counterparty.rb +24 -177
- data/lib/modern_treasury/models/counterparty_create_params.rb +38 -838
- data/lib/modern_treasury/models/counterparty_list_params.rb +9 -1
- data/lib/modern_treasury/models/document.rb +4 -6
- data/lib/modern_treasury/models/document_create_params.rb +0 -2
- data/lib/modern_treasury/models/document_list_params.rb +4 -6
- data/lib/modern_treasury/models/expected_payment.rb +9 -1
- data/lib/modern_treasury/models/expected_payment_create_params.rb +12 -230
- data/lib/modern_treasury/models/expected_payment_list_params.rb +8 -1
- data/lib/modern_treasury/models/expected_payment_update_params.rb +9 -1
- data/lib/modern_treasury/models/external_account.rb +15 -177
- data/lib/modern_treasury/models/external_account_create_params.rb +19 -210
- data/lib/modern_treasury/models/external_account_list_params.rb +9 -1
- data/lib/modern_treasury/models/external_account_update_params.rb +3 -52
- data/lib/modern_treasury/models/foreign_exchange_quote.rb +3 -73
- data/lib/modern_treasury/models/foreign_exchange_rate.rb +71 -0
- data/lib/modern_treasury/models/identification_create_request.rb +86 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +1 -0
- data/lib/modern_treasury/models/internal_account.rb +122 -71
- data/lib/modern_treasury/models/internal_account_create_params.rb +138 -1
- data/lib/modern_treasury/models/internal_account_update_account_capability_params.rb +34 -0
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +131 -0
- data/lib/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rb +23 -0
- data/lib/modern_treasury/models/invoice.rb +13 -82
- data/lib/modern_treasury/models/invoice_create_params.rb +3 -83
- data/lib/modern_treasury/models/invoice_update_params.rb +3 -83
- data/lib/modern_treasury/models/ledger_account.rb +18 -142
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
- data/lib/modern_treasury/models/ledger_account_category.rb +12 -176
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +17 -6
- data/lib/modern_treasury/models/ledger_account_category_retrieve_params.rb +4 -2
- data/lib/modern_treasury/models/ledger_account_create_params.rb +2 -105
- data/lib/modern_treasury/models/ledger_account_create_request.rb +113 -0
- data/lib/modern_treasury/models/ledger_account_list_params.rb +15 -1
- data/lib/modern_treasury/models/ledger_account_statement_create_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_account_statement_retrieve_response.rb +6 -360
- data/lib/modern_treasury/models/ledger_balance.rb +45 -0
- data/lib/modern_treasury/models/ledger_balances.rb +38 -0
- data/lib/modern_treasury/models/ledger_entry.rb +3 -183
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +98 -0
- data/lib/modern_treasury/models/ledger_entry_list_params.rb +48 -8
- data/lib/modern_treasury/models/ledger_transaction.rb +14 -6
- data/lib/modern_treasury/models/ledger_transaction_create_params.rb +2 -212
- data/lib/modern_treasury/models/ledger_transaction_create_request.rb +123 -0
- data/lib/modern_treasury/models/ledger_transaction_create_reversal_params.rb +0 -1
- data/lib/modern_treasury/models/ledger_transaction_list_params.rb +44 -7
- data/lib/modern_treasury/models/ledger_transaction_update_params.rb +5 -104
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +15 -193
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +78 -0
- data/lib/modern_treasury/models/legal_entity_association.rb +1 -0
- data/lib/modern_treasury/models/legal_entity_association_create_params.rb +4 -448
- data/lib/modern_treasury/models/legal_entity_create_params.rb +10 -618
- data/lib/modern_treasury/models/legal_entity_update_params.rb +6 -165
- data/lib/modern_treasury/models/line_item.rb +3 -29
- data/lib/modern_treasury/models/payment_action_list_params.rb +1 -0
- data/lib/modern_treasury/models/payment_order.rb +34 -111
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +32 -484
- data/lib/modern_treasury/models/payment_order_create_params.rb +32 -486
- data/lib/modern_treasury/models/payment_order_list_params.rb +9 -1
- data/lib/modern_treasury/models/payment_order_update_params.rb +30 -255
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
- data/lib/modern_treasury/models/payment_reference.rb +11 -2
- data/lib/modern_treasury/models/return_create_params.rb +75 -1
- data/lib/modern_treasury/models/return_list_params.rb +5 -6
- data/lib/modern_treasury/models/return_object.rb +87 -5
- data/lib/modern_treasury/models/routing_detail.rb +4 -93
- data/lib/modern_treasury/models/routing_detail_create_params.rb +1 -0
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
- data/lib/modern_treasury/models/transaction.rb +6 -73
- data/lib/modern_treasury/models/transaction_create_params.rb +9 -1
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +9 -2
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +1 -0
- data/lib/modern_treasury/models/virtual_account_create_params.rb +4 -117
- data/lib/modern_treasury/models.rb +31 -24
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/counterparties.rb +20 -14
- data/lib/modern_treasury/resources/expected_payments.rb +10 -4
- data/lib/modern_treasury/resources/external_accounts.rb +23 -17
- data/lib/modern_treasury/resources/internal_accounts/balance_reports.rb +2 -2
- data/lib/modern_treasury/resources/internal_accounts.rb +37 -1
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_categories.rb +4 -2
- data/lib/modern_treasury/resources/ledger_accounts.rb +6 -2
- data/lib/modern_treasury/resources/ledger_entries.rb +1 -1
- data/lib/modern_treasury/resources/ledger_transactions.rb +5 -5
- data/lib/modern_treasury/resources/legal_entities.rb +4 -4
- data/lib/modern_treasury/resources/legal_entity_associations.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders/reversals.rb +1 -1
- data/lib/modern_treasury/resources/payment_orders.rb +11 -9
- data/lib/modern_treasury/resources/returns.rb +4 -2
- data/lib/modern_treasury/resources/transactions.rb +3 -1
- data/lib/modern_treasury/resources/virtual_accounts.rb +1 -1
- data/lib/modern_treasury/version.rb +1 -1
- data/lib/modern_treasury.rb +16 -15
- data/rbi/modern_treasury/client.rbi +0 -9
- data/rbi/modern_treasury/errors.rbi +16 -0
- data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
- data/rbi/modern_treasury/internal/type/boolean.rbi +2 -0
- data/rbi/modern_treasury/internal/type/converter.rbi +15 -15
- data/rbi/modern_treasury/internal/type/union.rbi +5 -0
- data/rbi/modern_treasury/internal/type/unknown.rbi +2 -0
- data/rbi/modern_treasury/models/accounting.rbi +48 -0
- data/rbi/modern_treasury/models/address.rbi +107 -0
- data/rbi/modern_treasury/models/address_request.rbi +76 -0
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +802 -3025
- data/rbi/modern_treasury/models/bulk_result.rbi +2 -0
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +511 -0
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +17 -1314
- data/rbi/modern_treasury/models/contact_detail.rbi +124 -0
- data/rbi/modern_treasury/models/contact_detail_create_request.rbi +99 -0
- data/rbi/modern_treasury/models/counterparty.rbi +24 -264
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +60 -1726
- data/rbi/modern_treasury/models/counterparty_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/document.rbi +6 -16
- data/rbi/modern_treasury/models/document_create_params.rbi +0 -10
- data/rbi/modern_treasury/models/document_list_params.rbi +6 -16
- data/rbi/modern_treasury/models/expected_payment.rbi +8 -0
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +12 -419
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +9 -0
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +8 -0
- data/rbi/modern_treasury/models/external_account.rbi +15 -244
- data/rbi/modern_treasury/models/external_account_create_params.rbi +25 -400
- data/rbi/modern_treasury/models/external_account_list_params.rbi +11 -0
- data/rbi/modern_treasury/models/external_account_update_params.rbi +4 -86
- data/rbi/modern_treasury/models/foreign_exchange_quote.rbi +4 -99
- data/rbi/modern_treasury/models/foreign_exchange_rate.rbi +96 -0
- data/rbi/modern_treasury/models/identification_create_request.rbi +212 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +5 -0
- data/rbi/modern_treasury/models/internal_account.rbi +332 -120
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +333 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_params.rbi +54 -0
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +304 -0
- data/rbi/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbi +37 -0
- data/rbi/modern_treasury/models/invoice.rbi +13 -128
- data/rbi/modern_treasury/models/invoice_create_params.rbi +4 -139
- data/rbi/modern_treasury/models/invoice_update_params.rbi +4 -139
- data/rbi/modern_treasury/models/ledger_account.rbi +20 -218
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
- data/rbi/modern_treasury/models/ledger_account_category.rbi +12 -301
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +23 -7
- data/rbi/modern_treasury/models/ledger_account_category_retrieve_params.rbi +6 -3
- data/rbi/modern_treasury/models/ledger_account_create_params.rbi +5 -173
- data/rbi/modern_treasury/models/ledger_account_create_request.rbi +194 -0
- data/rbi/modern_treasury/models/ledger_account_list_params.rbi +22 -0
- data/rbi/modern_treasury/models/ledger_account_statement_create_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_account_statement_retrieve_response.rbi +8 -612
- data/rbi/modern_treasury/models/ledger_balance.rbi +66 -0
- data/rbi/modern_treasury/models/ledger_balances.rbi +75 -0
- data/rbi/modern_treasury/models/ledger_entry.rbi +4 -309
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +137 -0
- data/rbi/modern_treasury/models/ledger_entry_list_params.rbi +99 -16
- data/rbi/modern_treasury/models/ledger_transaction.rbi +17 -11
- data/rbi/modern_treasury/models/ledger_transaction_create_params.rbi +5 -383
- data/rbi/modern_treasury/models/ledger_transaction_create_request.rbi +258 -0
- data/rbi/modern_treasury/models/ledger_transaction_create_reversal_params.rbi +0 -5
- data/rbi/modern_treasury/models/ledger_transaction_list_params.rbi +93 -18
- data/rbi/modern_treasury/models/ledger_transaction_update_params.rbi +7 -158
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +18 -316
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +157 -0
- data/rbi/modern_treasury/models/legal_entity_association.rbi +5 -0
- data/rbi/modern_treasury/models/legal_entity_association_create_params.rbi +9 -917
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +17 -1297
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +8 -378
- data/rbi/modern_treasury/models/line_item.rbi +4 -52
- data/rbi/modern_treasury/models/payment_action_list_params.rbi +5 -0
- data/rbi/modern_treasury/models/payment_order.rbi +81 -172
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +42 -891
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +42 -896
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +14 -0
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +43 -469
- data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
- data/rbi/modern_treasury/models/payment_reference.rbi +54 -9
- data/rbi/modern_treasury/models/return_create_params.rbi +114 -0
- data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
- data/rbi/modern_treasury/models/return_object.rbi +165 -16
- data/rbi/modern_treasury/models/routing_detail.rbi +9 -113
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +5 -0
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
- data/rbi/modern_treasury/models/transaction.rbi +19 -103
- data/rbi/modern_treasury/models/transaction_create_params.rbi +8 -0
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +8 -5
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +5 -0
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +9 -203
- data/rbi/modern_treasury/models.rbi +36 -31
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -1
- data/rbi/modern_treasury/resources/counterparties.rbi +20 -12
- data/rbi/modern_treasury/resources/documents.rbi +2 -2
- data/rbi/modern_treasury/resources/expected_payments.rbi +9 -1
- data/rbi/modern_treasury/resources/external_accounts.rbi +29 -22
- data/rbi/modern_treasury/resources/internal_accounts/balance_reports.rbi +7 -3
- data/rbi/modern_treasury/resources/internal_accounts.rbi +31 -0
- data/rbi/modern_treasury/resources/invoices.rbi +2 -8
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +9 -3
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +5 -1
- data/rbi/modern_treasury/resources/ledger_entries.rbi +9 -2
- data/rbi/modern_treasury/resources/ledger_transactions.rbi +13 -13
- data/rbi/modern_treasury/resources/legal_entities.rbi +4 -8
- data/rbi/modern_treasury/resources/legal_entity_associations.rbi +1 -2
- data/rbi/modern_treasury/resources/payment_orders/reversals.rbi +1 -1
- data/rbi/modern_treasury/resources/payment_orders.rbi +16 -17
- data/rbi/modern_treasury/resources/returns.rbi +8 -2
- data/rbi/modern_treasury/resources/transactions.rbi +3 -0
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
- data/sig/modern_treasury/client.rbs +0 -6
- data/sig/modern_treasury/errors.rbs +9 -0
- data/sig/modern_treasury/internal/transport/base_client.rbs +1 -1
- data/sig/modern_treasury/internal/type/converter.rbs +7 -1
- data/sig/modern_treasury/models/accounting.rbs +15 -0
- data/sig/modern_treasury/models/address.rbs +70 -0
- data/sig/modern_treasury/models/address_request.rbs +45 -0
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +99 -999
- data/sig/modern_treasury/models/bulk_result.rbs +1 -0
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +220 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/contact_detail.rbs +67 -0
- data/sig/modern_treasury/models/contact_detail_create_request.rbs +43 -0
- data/sig/modern_treasury/models/counterparty.rbs +20 -141
- data/sig/modern_treasury/models/counterparty_create_params.rbs +51 -737
- data/sig/modern_treasury/models/counterparty_list_params.rbs +7 -0
- data/sig/modern_treasury/models/document.rbs +0 -4
- data/sig/modern_treasury/models/document_create_params.rbs +0 -4
- data/sig/modern_treasury/models/document_list_params.rbs +0 -4
- data/sig/modern_treasury/models/expected_payment.rbs +5 -0
- data/sig/modern_treasury/models/expected_payment_create_params.rbs +11 -173
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +7 -0
- data/sig/modern_treasury/models/expected_payment_update_params.rbs +5 -0
- data/sig/modern_treasury/models/external_account.rbs +13 -139
- data/sig/modern_treasury/models/external_account_create_params.rbs +25 -189
- data/sig/modern_treasury/models/external_account_list_params.rbs +7 -0
- data/sig/modern_treasury/models/external_account_update_params.rbs +6 -48
- data/sig/modern_treasury/models/foreign_exchange_quote.rbs +4 -51
- data/sig/modern_treasury/models/foreign_exchange_rate.rbs +50 -0
- data/sig/modern_treasury/models/identification_create_request.rbs +93 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +2 -0
- data/sig/modern_treasury/models/internal_account.rbs +148 -71
- data/sig/modern_treasury/models/internal_account_create_params.rbs +143 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_params.rbs +28 -0
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +137 -0
- data/sig/modern_treasury/models/internal_accounts/balance_report_retrieve_params.rbs +10 -0
- data/sig/modern_treasury/models/invoice.rbs +9 -68
- data/sig/modern_treasury/models/invoice_create_params.rbs +6 -70
- data/sig/modern_treasury/models/invoice_update_params.rbs +6 -70
- data/sig/modern_treasury/models/ledger_account.rbs +17 -123
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category.rbs +9 -142
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +12 -5
- data/sig/modern_treasury/models/ledger_account_create_params.rbs +4 -84
- data/sig/modern_treasury/models/ledger_account_create_request.rbs +89 -0
- data/sig/modern_treasury/models/ledger_account_list_params.rbs +16 -0
- data/sig/modern_treasury/models/ledger_account_statement_create_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_account_statement_retrieve_response.rbs +8 -284
- data/sig/modern_treasury/models/ledger_balance.rbs +40 -0
- data/sig/modern_treasury/models/ledger_balances.rbs +30 -0
- data/sig/modern_treasury/models/ledger_entry.rbs +4 -142
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +62 -0
- data/sig/modern_treasury/models/ledger_entry_list_params.rbs +21 -3
- data/sig/modern_treasury/models/ledger_transaction.rbs +5 -2
- data/sig/modern_treasury/models/ledger_transaction_create_params.rbs +4 -165
- data/sig/modern_treasury/models/ledger_transaction_create_request.rbs +109 -0
- data/sig/modern_treasury/models/ledger_transaction_create_reversal_params.rbs +0 -2
- data/sig/modern_treasury/models/ledger_transaction_list_params.rbs +21 -5
- data/sig/modern_treasury/models/ledger_transaction_update_params.rbs +6 -67
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +9 -144
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +68 -0
- data/sig/modern_treasury/models/legal_entity_association.rbs +3 -1
- data/sig/modern_treasury/models/legal_entity_association_create_params.rbs +9 -380
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -548
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +12 -168
- data/sig/modern_treasury/models/line_item.rbs +4 -16
- data/sig/modern_treasury/models/payment_action_list_params.rbs +2 -1
- data/sig/modern_treasury/models/payment_order.rbs +37 -71
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +37 -380
- data/sig/modern_treasury/models/payment_order_create_params.rbs +37 -384
- data/sig/modern_treasury/models/payment_order_list_params.rbs +9 -0
- data/sig/modern_treasury/models/payment_order_update_params.rbs +33 -207
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
- data/sig/modern_treasury/models/payment_reference.rbs +22 -4
- data/sig/modern_treasury/models/return_create_params.rbs +47 -0
- data/sig/modern_treasury/models/return_list_params.rbs +1 -6
- data/sig/modern_treasury/models/return_object.rbs +70 -12
- data/sig/modern_treasury/models/routing_detail.rbs +6 -71
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +2 -0
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
- data/sig/modern_treasury/models/transaction.rbs +10 -53
- data/sig/modern_treasury/models/transaction_create_params.rbs +5 -0
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +5 -2
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +2 -0
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +8 -95
- data/sig/modern_treasury/models.rbs +30 -24
- data/sig/modern_treasury/resources/counterparties.rbs +2 -0
- data/sig/modern_treasury/resources/expected_payments.rbs +4 -1
- data/sig/modern_treasury/resources/external_accounts.rbs +6 -4
- data/sig/modern_treasury/resources/internal_accounts/balance_reports.rbs +1 -1
- data/sig/modern_treasury/resources/internal_accounts.rbs +8 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -2
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +2 -1
- data/sig/modern_treasury/resources/ledger_accounts.rbs +3 -1
- data/sig/modern_treasury/resources/ledger_transactions.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entities.rbs +4 -4
- data/sig/modern_treasury/resources/legal_entity_associations.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders/reversals.rbs +1 -1
- data/sig/modern_treasury/resources/payment_orders.rbs +6 -5
- data/sig/modern_treasury/resources/returns.rbs +1 -0
- data/sig/modern_treasury/resources/transactions.rbs +1 -0
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
- metadata +52 -49
- data/lib/modern_treasury/models/ledger_event_handler.rb +0 -222
- data/lib/modern_treasury/models/ledger_event_handler_create_params.rb +0 -177
- data/lib/modern_treasury/models/ledger_event_handler_delete_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_list_params.rb +0 -58
- data/lib/modern_treasury/models/ledger_event_handler_retrieve_params.rb +0 -14
- data/lib/modern_treasury/models/ledger_event_handler_variable.rb +0 -59
- data/lib/modern_treasury/models/ledgerable_event.rb +0 -92
- data/lib/modern_treasury/models/ledgerable_event_create_params.rb +0 -50
- data/lib/modern_treasury/models/ledgerable_event_retrieve_params.rb +0 -14
- data/lib/modern_treasury/models/paper_item.rb +0 -178
- data/lib/modern_treasury/models/paper_item_list_params.rb +0 -56
- data/lib/modern_treasury/models/paper_item_retrieve_params.rb +0 -14
- data/lib/modern_treasury/resources/ledger_event_handlers.rb +0 -125
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -65
- data/lib/modern_treasury/resources/paper_items.rb +0 -68
- data/rbi/modern_treasury/models/ledger_event_handler.rbi +0 -322
- data/rbi/modern_treasury/models/ledger_event_handler_create_params.rbi +0 -303
- data/rbi/modern_treasury/models/ledger_event_handler_delete_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_list_params.rbi +0 -92
- data/rbi/modern_treasury/models/ledger_event_handler_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/models/ledger_event_handler_variable.rbi +0 -98
- data/rbi/modern_treasury/models/ledgerable_event.rbi +0 -108
- data/rbi/modern_treasury/models/ledgerable_event_create_params.rbi +0 -75
- data/rbi/modern_treasury/models/ledgerable_event_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/models/paper_item.rbi +0 -204
- data/rbi/modern_treasury/models/paper_item_list_params.rbi +0 -88
- data/rbi/modern_treasury/models/paper_item_retrieve_params.rbi +0 -32
- data/rbi/modern_treasury/resources/ledger_event_handlers.rbi +0 -109
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -50
- data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
- data/sig/modern_treasury/models/ledger_event_handler.rbs +0 -149
- data/sig/modern_treasury/models/ledger_event_handler_create_params.rbs +0 -127
- data/sig/modern_treasury/models/ledger_event_handler_delete_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_list_params.rbs +0 -54
- data/sig/modern_treasury/models/ledger_event_handler_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/models/ledger_event_handler_variable.rbs +0 -36
- data/sig/modern_treasury/models/ledgerable_event.rbs +0 -65
- data/sig/modern_treasury/models/ledgerable_event_create_params.rbs +0 -43
- data/sig/modern_treasury/models/ledgerable_event_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/models/paper_item.rbs +0 -122
- data/sig/modern_treasury/models/paper_item_list_params.rbs +0 -54
- data/sig/modern_treasury/models/paper_item_retrieve_params.rbs +0 -15
- data/sig/modern_treasury/resources/ledger_event_handlers.rbs +0 -37
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -20
- data/sig/modern_treasury/resources/paper_items.rbs +0 -21
|
@@ -3,6 +3,7 @@ module ModernTreasury
|
|
|
3
3
|
type counterparty_create_params =
|
|
4
4
|
{
|
|
5
5
|
name: String?,
|
|
6
|
+
body_external_id: String?,
|
|
6
7
|
accounting: ModernTreasury::CounterpartyCreateParams::Accounting,
|
|
7
8
|
accounts: ::Array[ModernTreasury::CounterpartyCreateParams::Account],
|
|
8
9
|
email: String?,
|
|
@@ -22,6 +23,8 @@ module ModernTreasury
|
|
|
22
23
|
|
|
23
24
|
attr_accessor name: String?
|
|
24
25
|
|
|
26
|
+
attr_accessor body_external_id: String?
|
|
27
|
+
|
|
25
28
|
attr_reader accounting: ModernTreasury::CounterpartyCreateParams::Accounting?
|
|
26
29
|
|
|
27
30
|
def accounting=: (
|
|
@@ -70,6 +73,7 @@ module ModernTreasury
|
|
|
70
73
|
|
|
71
74
|
def initialize: (
|
|
72
75
|
name: String?,
|
|
76
|
+
?body_external_id: String?,
|
|
73
77
|
?accounting: ModernTreasury::CounterpartyCreateParams::Accounting,
|
|
74
78
|
?accounts: ::Array[ModernTreasury::CounterpartyCreateParams::Account],
|
|
75
79
|
?email: String?,
|
|
@@ -85,6 +89,7 @@ module ModernTreasury
|
|
|
85
89
|
|
|
86
90
|
def to_hash: -> {
|
|
87
91
|
name: String?,
|
|
92
|
+
body_external_id: String?,
|
|
88
93
|
accounting: ModernTreasury::CounterpartyCreateParams::Accounting,
|
|
89
94
|
accounts: ::Array[ModernTreasury::CounterpartyCreateParams::Account],
|
|
90
95
|
email: String?,
|
|
@@ -134,11 +139,12 @@ module ModernTreasury
|
|
|
134
139
|
{
|
|
135
140
|
account_details: ::Array[ModernTreasury::CounterpartyCreateParams::Account::AccountDetail],
|
|
136
141
|
account_type: ModernTreasury::Models::external_account_type,
|
|
137
|
-
contact_details: ::Array[ModernTreasury::
|
|
138
|
-
|
|
142
|
+
contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest],
|
|
143
|
+
external_id: String?,
|
|
144
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
139
145
|
metadata: ::Hash[Symbol, String],
|
|
140
146
|
name: String?,
|
|
141
|
-
party_address: ModernTreasury::
|
|
147
|
+
party_address: ModernTreasury::AddressRequest,
|
|
142
148
|
party_identifier: String,
|
|
143
149
|
party_name: String,
|
|
144
150
|
party_type: ModernTreasury::Models::CounterpartyCreateParams::Account::party_type?,
|
|
@@ -159,17 +165,19 @@ module ModernTreasury
|
|
|
159
165
|
ModernTreasury::Models::external_account_type
|
|
160
166
|
) -> ModernTreasury::Models::external_account_type
|
|
161
167
|
|
|
162
|
-
attr_reader contact_details: ::Array[ModernTreasury::
|
|
168
|
+
attr_reader contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest]?
|
|
163
169
|
|
|
164
170
|
def contact_details=: (
|
|
165
|
-
::Array[ModernTreasury::
|
|
166
|
-
) -> ::Array[ModernTreasury::
|
|
171
|
+
::Array[ModernTreasury::ContactDetailCreateRequest]
|
|
172
|
+
) -> ::Array[ModernTreasury::ContactDetailCreateRequest]
|
|
173
|
+
|
|
174
|
+
attr_accessor external_id: String?
|
|
167
175
|
|
|
168
|
-
attr_reader ledger_account: ModernTreasury::
|
|
176
|
+
attr_reader ledger_account: ModernTreasury::LedgerAccountCreateRequest?
|
|
169
177
|
|
|
170
178
|
def ledger_account=: (
|
|
171
|
-
ModernTreasury::
|
|
172
|
-
) -> ModernTreasury::
|
|
179
|
+
ModernTreasury::LedgerAccountCreateRequest
|
|
180
|
+
) -> ModernTreasury::LedgerAccountCreateRequest
|
|
173
181
|
|
|
174
182
|
attr_reader metadata: ::Hash[Symbol, String]?
|
|
175
183
|
|
|
@@ -177,11 +185,11 @@ module ModernTreasury
|
|
|
177
185
|
|
|
178
186
|
attr_accessor name: String?
|
|
179
187
|
|
|
180
|
-
attr_reader party_address: ModernTreasury::
|
|
188
|
+
attr_reader party_address: ModernTreasury::AddressRequest?
|
|
181
189
|
|
|
182
190
|
def party_address=: (
|
|
183
|
-
ModernTreasury::
|
|
184
|
-
) -> ModernTreasury::
|
|
191
|
+
ModernTreasury::AddressRequest
|
|
192
|
+
) -> ModernTreasury::AddressRequest
|
|
185
193
|
|
|
186
194
|
attr_reader party_identifier: String?
|
|
187
195
|
|
|
@@ -206,11 +214,12 @@ module ModernTreasury
|
|
|
206
214
|
def initialize: (
|
|
207
215
|
?account_details: ::Array[ModernTreasury::CounterpartyCreateParams::Account::AccountDetail],
|
|
208
216
|
?account_type: ModernTreasury::Models::external_account_type,
|
|
209
|
-
?contact_details: ::Array[ModernTreasury::
|
|
210
|
-
?
|
|
217
|
+
?contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest],
|
|
218
|
+
?external_id: String?,
|
|
219
|
+
?ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
211
220
|
?metadata: ::Hash[Symbol, String],
|
|
212
221
|
?name: String?,
|
|
213
|
-
?party_address: ModernTreasury::
|
|
222
|
+
?party_address: ModernTreasury::AddressRequest,
|
|
214
223
|
?party_identifier: String,
|
|
215
224
|
?party_name: String,
|
|
216
225
|
?party_type: ModernTreasury::Models::CounterpartyCreateParams::Account::party_type?,
|
|
@@ -221,11 +230,12 @@ module ModernTreasury
|
|
|
221
230
|
def to_hash: -> {
|
|
222
231
|
account_details: ::Array[ModernTreasury::CounterpartyCreateParams::Account::AccountDetail],
|
|
223
232
|
account_type: ModernTreasury::Models::external_account_type,
|
|
224
|
-
contact_details: ::Array[ModernTreasury::
|
|
225
|
-
|
|
233
|
+
contact_details: ::Array[ModernTreasury::ContactDetailCreateRequest],
|
|
234
|
+
external_id: String?,
|
|
235
|
+
ledger_account: ModernTreasury::LedgerAccountCreateRequest,
|
|
226
236
|
metadata: ::Hash[Symbol, String],
|
|
227
237
|
name: String?,
|
|
228
|
-
party_address: ModernTreasury::
|
|
238
|
+
party_address: ModernTreasury::AddressRequest,
|
|
229
239
|
party_identifier: String,
|
|
230
240
|
party_name: String,
|
|
231
241
|
party_type: ModernTreasury::Models::CounterpartyCreateParams::Account::party_type?,
|
|
@@ -296,177 +306,6 @@ module ModernTreasury
|
|
|
296
306
|
end
|
|
297
307
|
end
|
|
298
308
|
|
|
299
|
-
type contact_detail =
|
|
300
|
-
{
|
|
301
|
-
contact_identifier: String,
|
|
302
|
-
contact_identifier_type: ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::contact_identifier_type
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
class ContactDetail < ModernTreasury::Internal::Type::BaseModel
|
|
306
|
-
attr_reader contact_identifier: String?
|
|
307
|
-
|
|
308
|
-
def contact_identifier=: (String) -> String
|
|
309
|
-
|
|
310
|
-
attr_reader contact_identifier_type: ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::contact_identifier_type?
|
|
311
|
-
|
|
312
|
-
def contact_identifier_type=: (
|
|
313
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::contact_identifier_type
|
|
314
|
-
) -> ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::contact_identifier_type
|
|
315
|
-
|
|
316
|
-
def initialize: (
|
|
317
|
-
?contact_identifier: String,
|
|
318
|
-
?contact_identifier_type: ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::contact_identifier_type
|
|
319
|
-
) -> void
|
|
320
|
-
|
|
321
|
-
def to_hash: -> {
|
|
322
|
-
contact_identifier: String,
|
|
323
|
-
contact_identifier_type: ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::contact_identifier_type
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
type contact_identifier_type = :email | :phone_number | :website
|
|
327
|
-
|
|
328
|
-
module ContactIdentifierType
|
|
329
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
330
|
-
|
|
331
|
-
EMAIL: :email
|
|
332
|
-
PHONE_NUMBER: :phone_number
|
|
333
|
-
WEBSITE: :website
|
|
334
|
-
|
|
335
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::ContactDetail::contact_identifier_type]
|
|
336
|
-
end
|
|
337
|
-
end
|
|
338
|
-
|
|
339
|
-
type ledger_account =
|
|
340
|
-
{
|
|
341
|
-
currency: String,
|
|
342
|
-
ledger_id: String,
|
|
343
|
-
name: String,
|
|
344
|
-
normal_balance: ModernTreasury::Models::transaction_direction,
|
|
345
|
-
currency_exponent: Integer?,
|
|
346
|
-
description: String?,
|
|
347
|
-
ledger_account_category_ids: ::Array[String],
|
|
348
|
-
ledgerable_id: String,
|
|
349
|
-
ledgerable_type: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::ledgerable_type,
|
|
350
|
-
metadata: ::Hash[Symbol, String]
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
class LedgerAccount < ModernTreasury::Internal::Type::BaseModel
|
|
354
|
-
attr_accessor currency: String
|
|
355
|
-
|
|
356
|
-
attr_accessor ledger_id: String
|
|
357
|
-
|
|
358
|
-
attr_accessor name: String
|
|
359
|
-
|
|
360
|
-
attr_accessor normal_balance: ModernTreasury::Models::transaction_direction
|
|
361
|
-
|
|
362
|
-
attr_accessor currency_exponent: Integer?
|
|
363
|
-
|
|
364
|
-
attr_accessor description: String?
|
|
365
|
-
|
|
366
|
-
attr_reader ledger_account_category_ids: ::Array[String]?
|
|
367
|
-
|
|
368
|
-
def ledger_account_category_ids=: (::Array[String]) -> ::Array[String]
|
|
369
|
-
|
|
370
|
-
attr_reader ledgerable_id: String?
|
|
371
|
-
|
|
372
|
-
def ledgerable_id=: (String) -> String
|
|
373
|
-
|
|
374
|
-
attr_reader ledgerable_type: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::ledgerable_type?
|
|
375
|
-
|
|
376
|
-
def ledgerable_type=: (
|
|
377
|
-
ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::ledgerable_type
|
|
378
|
-
) -> ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::ledgerable_type
|
|
379
|
-
|
|
380
|
-
attr_reader metadata: ::Hash[Symbol, String]?
|
|
381
|
-
|
|
382
|
-
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
383
|
-
|
|
384
|
-
def initialize: (
|
|
385
|
-
currency: String,
|
|
386
|
-
ledger_id: String,
|
|
387
|
-
name: String,
|
|
388
|
-
normal_balance: ModernTreasury::Models::transaction_direction,
|
|
389
|
-
?currency_exponent: Integer?,
|
|
390
|
-
?description: String?,
|
|
391
|
-
?ledger_account_category_ids: ::Array[String],
|
|
392
|
-
?ledgerable_id: String,
|
|
393
|
-
?ledgerable_type: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::ledgerable_type,
|
|
394
|
-
?metadata: ::Hash[Symbol, String]
|
|
395
|
-
) -> void
|
|
396
|
-
|
|
397
|
-
def to_hash: -> {
|
|
398
|
-
currency: String,
|
|
399
|
-
ledger_id: String,
|
|
400
|
-
name: String,
|
|
401
|
-
normal_balance: ModernTreasury::Models::transaction_direction,
|
|
402
|
-
currency_exponent: Integer?,
|
|
403
|
-
description: String?,
|
|
404
|
-
ledger_account_category_ids: ::Array[String],
|
|
405
|
-
ledgerable_id: String,
|
|
406
|
-
ledgerable_type: ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::ledgerable_type,
|
|
407
|
-
metadata: ::Hash[Symbol, String]
|
|
408
|
-
}
|
|
409
|
-
|
|
410
|
-
type ledgerable_type =
|
|
411
|
-
:counterparty
|
|
412
|
-
| :external_account
|
|
413
|
-
| :internal_account
|
|
414
|
-
| :virtual_account
|
|
415
|
-
|
|
416
|
-
module LedgerableType
|
|
417
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
418
|
-
|
|
419
|
-
COUNTERPARTY: :counterparty
|
|
420
|
-
EXTERNAL_ACCOUNT: :external_account
|
|
421
|
-
INTERNAL_ACCOUNT: :internal_account
|
|
422
|
-
VIRTUAL_ACCOUNT: :virtual_account
|
|
423
|
-
|
|
424
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::Account::LedgerAccount::ledgerable_type]
|
|
425
|
-
end
|
|
426
|
-
end
|
|
427
|
-
|
|
428
|
-
type party_address =
|
|
429
|
-
{
|
|
430
|
-
country: String?,
|
|
431
|
-
:line1 => String?,
|
|
432
|
-
:line2 => String?,
|
|
433
|
-
locality: String?,
|
|
434
|
-
postal_code: String?,
|
|
435
|
-
region: String?
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
class PartyAddress < ModernTreasury::Internal::Type::BaseModel
|
|
439
|
-
attr_accessor country: String?
|
|
440
|
-
|
|
441
|
-
attr_accessor line1: String?
|
|
442
|
-
|
|
443
|
-
attr_accessor line2: String?
|
|
444
|
-
|
|
445
|
-
attr_accessor locality: String?
|
|
446
|
-
|
|
447
|
-
attr_accessor postal_code: String?
|
|
448
|
-
|
|
449
|
-
attr_accessor region: String?
|
|
450
|
-
|
|
451
|
-
def initialize: (
|
|
452
|
-
?country: String?,
|
|
453
|
-
?line1: String?,
|
|
454
|
-
?line2: String?,
|
|
455
|
-
?locality: String?,
|
|
456
|
-
?postal_code: String?,
|
|
457
|
-
?region: String?
|
|
458
|
-
) -> void
|
|
459
|
-
|
|
460
|
-
def to_hash: -> {
|
|
461
|
-
country: String?,
|
|
462
|
-
:line1 => String?,
|
|
463
|
-
:line2 => String?,
|
|
464
|
-
locality: String?,
|
|
465
|
-
postal_code: String?,
|
|
466
|
-
region: String?
|
|
467
|
-
}
|
|
468
|
-
end
|
|
469
|
-
|
|
470
309
|
type party_type = :business | :individual
|
|
471
310
|
|
|
472
311
|
module PartyType
|
|
@@ -520,6 +359,7 @@ module ModernTreasury
|
|
|
520
359
|
| :hk_interbank_clearing_code
|
|
521
360
|
| :hu_interbank_clearing_code
|
|
522
361
|
| :id_sknbi_code
|
|
362
|
+
| :il_bank_code
|
|
523
363
|
| :in_ifsc
|
|
524
364
|
| :jp_zengin_code
|
|
525
365
|
| :my_branch_code
|
|
@@ -545,6 +385,7 @@ module ModernTreasury
|
|
|
545
385
|
HK_INTERBANK_CLEARING_CODE: :hk_interbank_clearing_code
|
|
546
386
|
HU_INTERBANK_CLEARING_CODE: :hu_interbank_clearing_code
|
|
547
387
|
ID_SKNBI_CODE: :id_sknbi_code
|
|
388
|
+
IL_BANK_CODE: :il_bank_code
|
|
548
389
|
IN_IFSC: :in_ifsc
|
|
549
390
|
JP_ZENGIN_CODE: :jp_zengin_code
|
|
550
391
|
MY_BRANCH_CODE: :my_branch_code
|
|
@@ -652,7 +493,7 @@ module ModernTreasury
|
|
|
652
493
|
type legal_entity =
|
|
653
494
|
{
|
|
654
495
|
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type,
|
|
655
|
-
addresses: ::Array[ModernTreasury::
|
|
496
|
+
addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
|
|
656
497
|
bank_settings: ModernTreasury::BankSettings?,
|
|
657
498
|
business_name: String?,
|
|
658
499
|
citizenship_country: String?,
|
|
@@ -662,7 +503,7 @@ module ModernTreasury
|
|
|
662
503
|
doing_business_as_names: ::Array[String],
|
|
663
504
|
email: String?,
|
|
664
505
|
first_name: String?,
|
|
665
|
-
identifications: ::Array[ModernTreasury::
|
|
506
|
+
identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
|
|
666
507
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
667
508
|
last_name: String?,
|
|
668
509
|
legal_entity_associations: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]?,
|
|
@@ -682,11 +523,11 @@ module ModernTreasury
|
|
|
682
523
|
class LegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
683
524
|
attr_accessor legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type
|
|
684
525
|
|
|
685
|
-
attr_reader addresses: ::Array[ModernTreasury::
|
|
526
|
+
attr_reader addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest]?
|
|
686
527
|
|
|
687
528
|
def addresses=: (
|
|
688
|
-
::Array[ModernTreasury::
|
|
689
|
-
) -> ::Array[ModernTreasury::
|
|
529
|
+
::Array[ModernTreasury::LegalEntityAddressCreateRequest]
|
|
530
|
+
) -> ::Array[ModernTreasury::LegalEntityAddressCreateRequest]
|
|
690
531
|
|
|
691
532
|
attr_accessor bank_settings: ModernTreasury::BankSettings?
|
|
692
533
|
|
|
@@ -708,11 +549,11 @@ module ModernTreasury
|
|
|
708
549
|
|
|
709
550
|
attr_accessor first_name: String?
|
|
710
551
|
|
|
711
|
-
attr_reader identifications: ::Array[ModernTreasury::
|
|
552
|
+
attr_reader identifications: ::Array[ModernTreasury::IdentificationCreateRequest]?
|
|
712
553
|
|
|
713
554
|
def identifications=: (
|
|
714
|
-
::Array[ModernTreasury::
|
|
715
|
-
) -> ::Array[ModernTreasury::
|
|
555
|
+
::Array[ModernTreasury::IdentificationCreateRequest]
|
|
556
|
+
) -> ::Array[ModernTreasury::IdentificationCreateRequest]
|
|
716
557
|
|
|
717
558
|
attr_reader industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]?
|
|
718
559
|
|
|
@@ -754,7 +595,7 @@ module ModernTreasury
|
|
|
754
595
|
|
|
755
596
|
def initialize: (
|
|
756
597
|
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type,
|
|
757
|
-
?addresses: ::Array[ModernTreasury::
|
|
598
|
+
?addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
|
|
758
599
|
?bank_settings: ModernTreasury::BankSettings?,
|
|
759
600
|
?business_name: String?,
|
|
760
601
|
?citizenship_country: String?,
|
|
@@ -764,7 +605,7 @@ module ModernTreasury
|
|
|
764
605
|
?doing_business_as_names: ::Array[String],
|
|
765
606
|
?email: String?,
|
|
766
607
|
?first_name: String?,
|
|
767
|
-
?identifications: ::Array[ModernTreasury::
|
|
608
|
+
?identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
|
|
768
609
|
?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
769
610
|
?last_name: String?,
|
|
770
611
|
?legal_entity_associations: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]?,
|
|
@@ -783,7 +624,7 @@ module ModernTreasury
|
|
|
783
624
|
|
|
784
625
|
def to_hash: -> {
|
|
785
626
|
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type,
|
|
786
|
-
addresses: ::Array[ModernTreasury::
|
|
627
|
+
addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
|
|
787
628
|
bank_settings: ModernTreasury::BankSettings?,
|
|
788
629
|
business_name: String?,
|
|
789
630
|
citizenship_country: String?,
|
|
@@ -793,7 +634,7 @@ module ModernTreasury
|
|
|
793
634
|
doing_business_as_names: ::Array[String],
|
|
794
635
|
email: String?,
|
|
795
636
|
first_name: String?,
|
|
796
|
-
identifications: ::Array[ModernTreasury::
|
|
637
|
+
identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
|
|
797
638
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
798
639
|
last_name: String?,
|
|
799
640
|
legal_entity_associations: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation]?,
|
|
@@ -821,166 +662,10 @@ module ModernTreasury
|
|
|
821
662
|
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::legal_entity_type]
|
|
822
663
|
end
|
|
823
664
|
|
|
824
|
-
type address =
|
|
825
|
-
{
|
|
826
|
-
country: String?,
|
|
827
|
-
:line1 => String?,
|
|
828
|
-
locality: String?,
|
|
829
|
-
postal_code: String?,
|
|
830
|
-
region: String?,
|
|
831
|
-
address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::address_type],
|
|
832
|
-
:line2 => String?
|
|
833
|
-
}
|
|
834
|
-
|
|
835
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
836
|
-
attr_accessor country: String?
|
|
837
|
-
|
|
838
|
-
attr_accessor line1: String?
|
|
839
|
-
|
|
840
|
-
attr_accessor locality: String?
|
|
841
|
-
|
|
842
|
-
attr_accessor postal_code: String?
|
|
843
|
-
|
|
844
|
-
attr_accessor region: String?
|
|
845
|
-
|
|
846
|
-
attr_reader address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::address_type]?
|
|
847
|
-
|
|
848
|
-
def address_types=: (
|
|
849
|
-
::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::address_type]
|
|
850
|
-
) -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::address_type]
|
|
851
|
-
|
|
852
|
-
attr_accessor line2: String?
|
|
853
|
-
|
|
854
|
-
def initialize: (
|
|
855
|
-
country: String?,
|
|
856
|
-
line1: String?,
|
|
857
|
-
locality: String?,
|
|
858
|
-
postal_code: String?,
|
|
859
|
-
region: String?,
|
|
860
|
-
?address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::address_type],
|
|
861
|
-
?line2: String?
|
|
862
|
-
) -> void
|
|
863
|
-
|
|
864
|
-
def to_hash: -> {
|
|
865
|
-
country: String?,
|
|
866
|
-
:line1 => String?,
|
|
867
|
-
locality: String?,
|
|
868
|
-
postal_code: String?,
|
|
869
|
-
region: String?,
|
|
870
|
-
address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::address_type],
|
|
871
|
-
:line2 => String?
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
type address_type =
|
|
875
|
-
:business | :mailing | :other | :po_box | :residential
|
|
876
|
-
|
|
877
|
-
module AddressType
|
|
878
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
879
|
-
|
|
880
|
-
BUSINESS: :business
|
|
881
|
-
MAILING: :mailing
|
|
882
|
-
OTHER: :other
|
|
883
|
-
PO_BOX: :po_box
|
|
884
|
-
RESIDENTIAL: :residential
|
|
885
|
-
|
|
886
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Address::address_type]
|
|
887
|
-
end
|
|
888
|
-
end
|
|
889
|
-
|
|
890
|
-
type identification =
|
|
891
|
-
{
|
|
892
|
-
id_number: String,
|
|
893
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::id_type,
|
|
894
|
-
expiration_date: Date?,
|
|
895
|
-
issuing_country: String?,
|
|
896
|
-
issuing_region: String?
|
|
897
|
-
}
|
|
898
|
-
|
|
899
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
900
|
-
attr_accessor id_number: String
|
|
901
|
-
|
|
902
|
-
attr_accessor id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::id_type
|
|
903
|
-
|
|
904
|
-
attr_accessor expiration_date: Date?
|
|
905
|
-
|
|
906
|
-
attr_accessor issuing_country: String?
|
|
907
|
-
|
|
908
|
-
attr_accessor issuing_region: String?
|
|
909
|
-
|
|
910
|
-
def initialize: (
|
|
911
|
-
id_number: String,
|
|
912
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::id_type,
|
|
913
|
-
?expiration_date: Date?,
|
|
914
|
-
?issuing_country: String?,
|
|
915
|
-
?issuing_region: String?
|
|
916
|
-
) -> void
|
|
917
|
-
|
|
918
|
-
def to_hash: -> {
|
|
919
|
-
id_number: String,
|
|
920
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::id_type,
|
|
921
|
-
expiration_date: Date?,
|
|
922
|
-
issuing_country: String?,
|
|
923
|
-
issuing_region: String?
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
type id_type =
|
|
927
|
-
:ar_cuil
|
|
928
|
-
| :ar_cuit
|
|
929
|
-
| :br_cnpj
|
|
930
|
-
| :br_cpf
|
|
931
|
-
| :cl_run
|
|
932
|
-
| :cl_rut
|
|
933
|
-
| :co_cedulas
|
|
934
|
-
| :co_nit
|
|
935
|
-
| :drivers_license
|
|
936
|
-
| :hn_id
|
|
937
|
-
| :hn_rtn
|
|
938
|
-
| :in_lei
|
|
939
|
-
| :kr_brn
|
|
940
|
-
| :kr_crn
|
|
941
|
-
| :kr_rrn
|
|
942
|
-
| :passport
|
|
943
|
-
| :sa_tin
|
|
944
|
-
| :sa_vat
|
|
945
|
-
| :us_ein
|
|
946
|
-
| :us_itin
|
|
947
|
-
| :us_ssn
|
|
948
|
-
| :vn_tin
|
|
949
|
-
|
|
950
|
-
module IDType
|
|
951
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
952
|
-
|
|
953
|
-
AR_CUIL: :ar_cuil
|
|
954
|
-
AR_CUIT: :ar_cuit
|
|
955
|
-
BR_CNPJ: :br_cnpj
|
|
956
|
-
BR_CPF: :br_cpf
|
|
957
|
-
CL_RUN: :cl_run
|
|
958
|
-
CL_RUT: :cl_rut
|
|
959
|
-
CO_CEDULAS: :co_cedulas
|
|
960
|
-
CO_NIT: :co_nit
|
|
961
|
-
DRIVERS_LICENSE: :drivers_license
|
|
962
|
-
HN_ID: :hn_id
|
|
963
|
-
HN_RTN: :hn_rtn
|
|
964
|
-
IN_LEI: :in_lei
|
|
965
|
-
KR_BRN: :kr_brn
|
|
966
|
-
KR_CRN: :kr_crn
|
|
967
|
-
KR_RRN: :kr_rrn
|
|
968
|
-
PASSPORT: :passport
|
|
969
|
-
SA_TIN: :sa_tin
|
|
970
|
-
SA_VAT: :sa_vat
|
|
971
|
-
US_EIN: :us_ein
|
|
972
|
-
US_ITIN: :us_itin
|
|
973
|
-
US_SSN: :us_ssn
|
|
974
|
-
VN_TIN: :vn_tin
|
|
975
|
-
|
|
976
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::Identification::id_type]
|
|
977
|
-
end
|
|
978
|
-
end
|
|
979
|
-
|
|
980
665
|
type legal_entity_association =
|
|
981
666
|
{
|
|
982
667
|
relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
|
|
983
|
-
child_legal_entity: ModernTreasury::
|
|
668
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
984
669
|
child_legal_entity_id: String,
|
|
985
670
|
ownership_percentage: Integer?,
|
|
986
671
|
title: String?
|
|
@@ -989,11 +674,11 @@ module ModernTreasury
|
|
|
989
674
|
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
|
990
675
|
attr_accessor relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
|
|
991
676
|
|
|
992
|
-
attr_reader child_legal_entity: ModernTreasury::
|
|
677
|
+
attr_reader child_legal_entity: ModernTreasury::ChildLegalEntityCreate?
|
|
993
678
|
|
|
994
679
|
def child_legal_entity=: (
|
|
995
|
-
ModernTreasury::
|
|
996
|
-
) -> ModernTreasury::
|
|
680
|
+
ModernTreasury::ChildLegalEntityCreate
|
|
681
|
+
) -> ModernTreasury::ChildLegalEntityCreate
|
|
997
682
|
|
|
998
683
|
attr_reader child_legal_entity_id: String?
|
|
999
684
|
|
|
@@ -1005,7 +690,7 @@ module ModernTreasury
|
|
|
1005
690
|
|
|
1006
691
|
def initialize: (
|
|
1007
692
|
relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
|
|
1008
|
-
?child_legal_entity: ModernTreasury::
|
|
693
|
+
?child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
1009
694
|
?child_legal_entity_id: String,
|
|
1010
695
|
?ownership_percentage: Integer?,
|
|
1011
696
|
?title: String?
|
|
@@ -1013,395 +698,24 @@ module ModernTreasury
|
|
|
1013
698
|
|
|
1014
699
|
def to_hash: -> {
|
|
1015
700
|
relationship_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
|
|
1016
|
-
child_legal_entity: ModernTreasury::
|
|
701
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
1017
702
|
child_legal_entity_id: String,
|
|
1018
703
|
ownership_percentage: Integer?,
|
|
1019
704
|
title: String?
|
|
1020
705
|
}
|
|
1021
706
|
|
|
1022
|
-
type relationship_type =
|
|
707
|
+
type relationship_type =
|
|
708
|
+
:authorized_signer | :beneficial_owner | :control_person
|
|
1023
709
|
|
|
1024
710
|
module RelationshipType
|
|
1025
711
|
extend ModernTreasury::Internal::Type::Enum
|
|
1026
712
|
|
|
713
|
+
AUTHORIZED_SIGNER: :authorized_signer
|
|
1027
714
|
BENEFICIAL_OWNER: :beneficial_owner
|
|
1028
715
|
CONTROL_PERSON: :control_person
|
|
1029
716
|
|
|
1030
717
|
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
|
|
1031
718
|
end
|
|
1032
|
-
|
|
1033
|
-
type child_legal_entity =
|
|
1034
|
-
{
|
|
1035
|
-
addresses: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
1036
|
-
bank_settings: ModernTreasury::BankSettings?,
|
|
1037
|
-
business_name: String?,
|
|
1038
|
-
citizenship_country: String?,
|
|
1039
|
-
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
1040
|
-
date_formed: Date?,
|
|
1041
|
-
date_of_birth: Date?,
|
|
1042
|
-
doing_business_as_names: ::Array[String],
|
|
1043
|
-
email: String?,
|
|
1044
|
-
first_name: String?,
|
|
1045
|
-
identifications: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
1046
|
-
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
1047
|
-
last_name: String?,
|
|
1048
|
-
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
1049
|
-
legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
1050
|
-
metadata: ::Hash[Symbol, String],
|
|
1051
|
-
middle_name: String?,
|
|
1052
|
-
phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
1053
|
-
politically_exposed_person: bool?,
|
|
1054
|
-
preferred_name: String?,
|
|
1055
|
-
prefix: String?,
|
|
1056
|
-
risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
1057
|
-
suffix: String?,
|
|
1058
|
-
wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
|
|
1059
|
-
website: String?
|
|
1060
|
-
}
|
|
1061
|
-
|
|
1062
|
-
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
1063
|
-
attr_reader addresses: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]?
|
|
1064
|
-
|
|
1065
|
-
def addresses=: (
|
|
1066
|
-
::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]
|
|
1067
|
-
) -> ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]
|
|
1068
|
-
|
|
1069
|
-
attr_accessor bank_settings: ModernTreasury::BankSettings?
|
|
1070
|
-
|
|
1071
|
-
attr_accessor business_name: String?
|
|
1072
|
-
|
|
1073
|
-
attr_accessor citizenship_country: String?
|
|
1074
|
-
|
|
1075
|
-
attr_accessor compliance_details: ModernTreasury::LegalEntityComplianceDetail?
|
|
1076
|
-
|
|
1077
|
-
attr_accessor date_formed: Date?
|
|
1078
|
-
|
|
1079
|
-
attr_accessor date_of_birth: Date?
|
|
1080
|
-
|
|
1081
|
-
attr_reader doing_business_as_names: ::Array[String]?
|
|
1082
|
-
|
|
1083
|
-
def doing_business_as_names=: (::Array[String]) -> ::Array[String]
|
|
1084
|
-
|
|
1085
|
-
attr_accessor email: String?
|
|
1086
|
-
|
|
1087
|
-
attr_accessor first_name: String?
|
|
1088
|
-
|
|
1089
|
-
attr_reader identifications: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification]?
|
|
1090
|
-
|
|
1091
|
-
def identifications=: (
|
|
1092
|
-
::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification]
|
|
1093
|
-
) -> ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification]
|
|
1094
|
-
|
|
1095
|
-
attr_reader industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]?
|
|
1096
|
-
|
|
1097
|
-
def industry_classifications=: (
|
|
1098
|
-
::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
1099
|
-
) -> ::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
1100
|
-
|
|
1101
|
-
attr_accessor last_name: String?
|
|
1102
|
-
|
|
1103
|
-
attr_reader legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type?
|
|
1104
|
-
|
|
1105
|
-
def legal_entity_type=: (
|
|
1106
|
-
ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type
|
|
1107
|
-
) -> ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type
|
|
1108
|
-
|
|
1109
|
-
attr_accessor legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?
|
|
1110
|
-
|
|
1111
|
-
attr_reader metadata: ::Hash[Symbol, String]?
|
|
1112
|
-
|
|
1113
|
-
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
1114
|
-
|
|
1115
|
-
attr_accessor middle_name: String?
|
|
1116
|
-
|
|
1117
|
-
attr_reader phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]?
|
|
1118
|
-
|
|
1119
|
-
def phone_numbers=: (
|
|
1120
|
-
::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
|
1121
|
-
) -> ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
|
1122
|
-
|
|
1123
|
-
attr_accessor politically_exposed_person: bool?
|
|
1124
|
-
|
|
1125
|
-
attr_accessor preferred_name: String?
|
|
1126
|
-
|
|
1127
|
-
attr_accessor prefix: String?
|
|
1128
|
-
|
|
1129
|
-
attr_accessor risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?
|
|
1130
|
-
|
|
1131
|
-
attr_accessor suffix: String?
|
|
1132
|
-
|
|
1133
|
-
attr_accessor wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?
|
|
1134
|
-
|
|
1135
|
-
attr_accessor website: String?
|
|
1136
|
-
|
|
1137
|
-
def initialize: (
|
|
1138
|
-
?addresses: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
1139
|
-
?bank_settings: ModernTreasury::BankSettings?,
|
|
1140
|
-
?business_name: String?,
|
|
1141
|
-
?citizenship_country: String?,
|
|
1142
|
-
?compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
1143
|
-
?date_formed: Date?,
|
|
1144
|
-
?date_of_birth: Date?,
|
|
1145
|
-
?doing_business_as_names: ::Array[String],
|
|
1146
|
-
?email: String?,
|
|
1147
|
-
?first_name: String?,
|
|
1148
|
-
?identifications: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
1149
|
-
?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
1150
|
-
?last_name: String?,
|
|
1151
|
-
?legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
1152
|
-
?legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
1153
|
-
?metadata: ::Hash[Symbol, String],
|
|
1154
|
-
?middle_name: String?,
|
|
1155
|
-
?phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
1156
|
-
?politically_exposed_person: bool?,
|
|
1157
|
-
?preferred_name: String?,
|
|
1158
|
-
?prefix: String?,
|
|
1159
|
-
?risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
1160
|
-
?suffix: String?,
|
|
1161
|
-
?wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
|
|
1162
|
-
?website: String?
|
|
1163
|
-
) -> void
|
|
1164
|
-
|
|
1165
|
-
def to_hash: -> {
|
|
1166
|
-
addresses: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
1167
|
-
bank_settings: ModernTreasury::BankSettings?,
|
|
1168
|
-
business_name: String?,
|
|
1169
|
-
citizenship_country: String?,
|
|
1170
|
-
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
1171
|
-
date_formed: Date?,
|
|
1172
|
-
date_of_birth: Date?,
|
|
1173
|
-
doing_business_as_names: ::Array[String],
|
|
1174
|
-
email: String?,
|
|
1175
|
-
first_name: String?,
|
|
1176
|
-
identifications: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
1177
|
-
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
1178
|
-
last_name: String?,
|
|
1179
|
-
legal_entity_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
1180
|
-
legal_structure: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
1181
|
-
metadata: ::Hash[Symbol, String],
|
|
1182
|
-
middle_name: String?,
|
|
1183
|
-
phone_numbers: ::Array[ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
1184
|
-
politically_exposed_person: bool?,
|
|
1185
|
-
preferred_name: String?,
|
|
1186
|
-
prefix: String?,
|
|
1187
|
-
risk_rating: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
1188
|
-
suffix: String?,
|
|
1189
|
-
wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
|
|
1190
|
-
website: String?
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
type address =
|
|
1194
|
-
{
|
|
1195
|
-
country: String?,
|
|
1196
|
-
:line1 => String?,
|
|
1197
|
-
locality: String?,
|
|
1198
|
-
postal_code: String?,
|
|
1199
|
-
region: String?,
|
|
1200
|
-
address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
1201
|
-
:line2 => String?
|
|
1202
|
-
}
|
|
1203
|
-
|
|
1204
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
1205
|
-
attr_accessor country: String?
|
|
1206
|
-
|
|
1207
|
-
attr_accessor line1: String?
|
|
1208
|
-
|
|
1209
|
-
attr_accessor locality: String?
|
|
1210
|
-
|
|
1211
|
-
attr_accessor postal_code: String?
|
|
1212
|
-
|
|
1213
|
-
attr_accessor region: String?
|
|
1214
|
-
|
|
1215
|
-
attr_reader address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]?
|
|
1216
|
-
|
|
1217
|
-
def address_types=: (
|
|
1218
|
-
::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
1219
|
-
) -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
1220
|
-
|
|
1221
|
-
attr_accessor line2: String?
|
|
1222
|
-
|
|
1223
|
-
def initialize: (
|
|
1224
|
-
country: String?,
|
|
1225
|
-
line1: String?,
|
|
1226
|
-
locality: String?,
|
|
1227
|
-
postal_code: String?,
|
|
1228
|
-
region: String?,
|
|
1229
|
-
?address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
1230
|
-
?line2: String?
|
|
1231
|
-
) -> void
|
|
1232
|
-
|
|
1233
|
-
def to_hash: -> {
|
|
1234
|
-
country: String?,
|
|
1235
|
-
:line1 => String?,
|
|
1236
|
-
locality: String?,
|
|
1237
|
-
postal_code: String?,
|
|
1238
|
-
region: String?,
|
|
1239
|
-
address_types: ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
1240
|
-
:line2 => String?
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
|
-
type address_type =
|
|
1244
|
-
:business | :mailing | :other | :po_box | :residential
|
|
1245
|
-
|
|
1246
|
-
module AddressType
|
|
1247
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1248
|
-
|
|
1249
|
-
BUSINESS: :business
|
|
1250
|
-
MAILING: :mailing
|
|
1251
|
-
OTHER: :other
|
|
1252
|
-
PO_BOX: :po_box
|
|
1253
|
-
RESIDENTIAL: :residential
|
|
1254
|
-
|
|
1255
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
1256
|
-
end
|
|
1257
|
-
end
|
|
1258
|
-
|
|
1259
|
-
type identification =
|
|
1260
|
-
{
|
|
1261
|
-
id_number: String,
|
|
1262
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
1263
|
-
expiration_date: Date?,
|
|
1264
|
-
issuing_country: String?,
|
|
1265
|
-
issuing_region: String?
|
|
1266
|
-
}
|
|
1267
|
-
|
|
1268
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
1269
|
-
attr_accessor id_number: String
|
|
1270
|
-
|
|
1271
|
-
attr_accessor id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type
|
|
1272
|
-
|
|
1273
|
-
attr_accessor expiration_date: Date?
|
|
1274
|
-
|
|
1275
|
-
attr_accessor issuing_country: String?
|
|
1276
|
-
|
|
1277
|
-
attr_accessor issuing_region: String?
|
|
1278
|
-
|
|
1279
|
-
def initialize: (
|
|
1280
|
-
id_number: String,
|
|
1281
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
1282
|
-
?expiration_date: Date?,
|
|
1283
|
-
?issuing_country: String?,
|
|
1284
|
-
?issuing_region: String?
|
|
1285
|
-
) -> void
|
|
1286
|
-
|
|
1287
|
-
def to_hash: -> {
|
|
1288
|
-
id_number: String,
|
|
1289
|
-
id_type: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
1290
|
-
expiration_date: Date?,
|
|
1291
|
-
issuing_country: String?,
|
|
1292
|
-
issuing_region: String?
|
|
1293
|
-
}
|
|
1294
|
-
|
|
1295
|
-
type id_type =
|
|
1296
|
-
:ar_cuil
|
|
1297
|
-
| :ar_cuit
|
|
1298
|
-
| :br_cnpj
|
|
1299
|
-
| :br_cpf
|
|
1300
|
-
| :cl_run
|
|
1301
|
-
| :cl_rut
|
|
1302
|
-
| :co_cedulas
|
|
1303
|
-
| :co_nit
|
|
1304
|
-
| :drivers_license
|
|
1305
|
-
| :hn_id
|
|
1306
|
-
| :hn_rtn
|
|
1307
|
-
| :in_lei
|
|
1308
|
-
| :kr_brn
|
|
1309
|
-
| :kr_crn
|
|
1310
|
-
| :kr_rrn
|
|
1311
|
-
| :passport
|
|
1312
|
-
| :sa_tin
|
|
1313
|
-
| :sa_vat
|
|
1314
|
-
| :us_ein
|
|
1315
|
-
| :us_itin
|
|
1316
|
-
| :us_ssn
|
|
1317
|
-
| :vn_tin
|
|
1318
|
-
|
|
1319
|
-
module IDType
|
|
1320
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1321
|
-
|
|
1322
|
-
AR_CUIL: :ar_cuil
|
|
1323
|
-
AR_CUIT: :ar_cuit
|
|
1324
|
-
BR_CNPJ: :br_cnpj
|
|
1325
|
-
BR_CPF: :br_cpf
|
|
1326
|
-
CL_RUN: :cl_run
|
|
1327
|
-
CL_RUT: :cl_rut
|
|
1328
|
-
CO_CEDULAS: :co_cedulas
|
|
1329
|
-
CO_NIT: :co_nit
|
|
1330
|
-
DRIVERS_LICENSE: :drivers_license
|
|
1331
|
-
HN_ID: :hn_id
|
|
1332
|
-
HN_RTN: :hn_rtn
|
|
1333
|
-
IN_LEI: :in_lei
|
|
1334
|
-
KR_BRN: :kr_brn
|
|
1335
|
-
KR_CRN: :kr_crn
|
|
1336
|
-
KR_RRN: :kr_rrn
|
|
1337
|
-
PASSPORT: :passport
|
|
1338
|
-
SA_TIN: :sa_tin
|
|
1339
|
-
SA_VAT: :sa_vat
|
|
1340
|
-
US_EIN: :us_ein
|
|
1341
|
-
US_ITIN: :us_itin
|
|
1342
|
-
US_SSN: :us_ssn
|
|
1343
|
-
VN_TIN: :vn_tin
|
|
1344
|
-
|
|
1345
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type]
|
|
1346
|
-
end
|
|
1347
|
-
end
|
|
1348
|
-
|
|
1349
|
-
type legal_entity_type = :business | :individual
|
|
1350
|
-
|
|
1351
|
-
module LegalEntityType
|
|
1352
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1353
|
-
|
|
1354
|
-
BUSINESS: :business
|
|
1355
|
-
INDIVIDUAL: :individual
|
|
1356
|
-
|
|
1357
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type]
|
|
1358
|
-
end
|
|
1359
|
-
|
|
1360
|
-
type legal_structure =
|
|
1361
|
-
:corporation
|
|
1362
|
-
| :llc
|
|
1363
|
-
| :non_profit
|
|
1364
|
-
| :partnership
|
|
1365
|
-
| :sole_proprietorship
|
|
1366
|
-
| :trust
|
|
1367
|
-
|
|
1368
|
-
module LegalStructure
|
|
1369
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1370
|
-
|
|
1371
|
-
CORPORATION: :corporation
|
|
1372
|
-
LLC: :llc
|
|
1373
|
-
NON_PROFIT: :non_profit
|
|
1374
|
-
PARTNERSHIP: :partnership
|
|
1375
|
-
SOLE_PROPRIETORSHIP: :sole_proprietorship
|
|
1376
|
-
TRUST: :trust
|
|
1377
|
-
|
|
1378
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure]
|
|
1379
|
-
end
|
|
1380
|
-
|
|
1381
|
-
type phone_number = { phone_number: String }
|
|
1382
|
-
|
|
1383
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
1384
|
-
attr_reader phone_number: String?
|
|
1385
|
-
|
|
1386
|
-
def phone_number=: (String) -> String
|
|
1387
|
-
|
|
1388
|
-
def initialize: (?phone_number: String) -> void
|
|
1389
|
-
|
|
1390
|
-
def to_hash: -> { phone_number: String }
|
|
1391
|
-
end
|
|
1392
|
-
|
|
1393
|
-
type risk_rating = :low | :medium | :high
|
|
1394
|
-
|
|
1395
|
-
module RiskRating
|
|
1396
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1397
|
-
|
|
1398
|
-
LOW: :low
|
|
1399
|
-
MEDIUM: :medium
|
|
1400
|
-
HIGH: :high
|
|
1401
|
-
|
|
1402
|
-
def self?.values: -> ::Array[ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating]
|
|
1403
|
-
end
|
|
1404
|
-
end
|
|
1405
719
|
end
|
|
1406
720
|
|
|
1407
721
|
type legal_structure =
|