modern_treasury 0.1.0.pre.alpha.22 → 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 +38 -0
- data/README.md +1 -1
- data/lib/modern_treasury/client.rb +0 -12
- data/lib/modern_treasury/internal/transport/base_client.rb +1 -1
- data/lib/modern_treasury/internal/type/base_model.rb +4 -4
- 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 +144 -1505
- 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 +37 -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 +18 -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/internal_account.rb +3 -95
- 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/invoice.rb +3 -81
- 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 +9 -141
- data/lib/modern_treasury/models/ledger_account_balance_monitor.rb +3 -182
- data/lib/modern_treasury/models/ledger_account_category.rb +3 -175
- data/lib/modern_treasury/models/ledger_account_category_list_params.rb +9 -5
- 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_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 +13 -102
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +24 -477
- data/lib/modern_treasury/models/payment_order_create_params.rb +24 -479
- data/lib/modern_treasury/models/payment_order_update_params.rb +21 -248
- data/lib/modern_treasury/models/payment_orders/reversal_create_params.rb +3 -232
- data/lib/modern_treasury/models/payment_reference.rb +7 -1
- data/lib/modern_treasury/models/return_list_params.rb +5 -6
- data/lib/modern_treasury/models/return_object.rb +7 -3
- data/lib/modern_treasury/models/routing_detail.rb +3 -93
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +3 -55
- data/lib/modern_treasury/models/transaction.rb +5 -73
- data/lib/modern_treasury/models/transactions/transaction_line_item.rb +0 -1
- data/lib/modern_treasury/models/virtual_account_create_params.rb +3 -117
- data/lib/modern_treasury/models.rb +31 -6
- 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.rb +34 -0
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/ledger_account_categories.rb +1 -1
- data/lib/modern_treasury/resources/ledger_accounts.rb +1 -1
- 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 +5 -5
- data/lib/modern_treasury/resources/returns.rb +1 -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 -6
- data/rbi/modern_treasury/client.rbi +0 -9
- data/rbi/modern_treasury/internal/transport/base_client.rbi +1 -1
- 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 +701 -3140
- 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 +47 -1718
- 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 +20 -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/internal_account.rbi +4 -115
- 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/invoice.rbi +3 -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 +12 -218
- data/rbi/modern_treasury/models/ledger_account_balance_monitor.rbi +4 -303
- data/rbi/modern_treasury/models/ledger_account_category.rbi +4 -301
- data/rbi/modern_treasury/models/ledger_account_category_list_params.rbi +14 -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_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 +43 -159
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +28 -882
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +28 -887
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +24 -460
- data/rbi/modern_treasury/models/payment_orders/reversal_create_params.rbi +4 -415
- data/rbi/modern_treasury/models/payment_reference.rbi +35 -5
- data/rbi/modern_treasury/models/return_list_params.rbi +6 -11
- data/rbi/modern_treasury/models/return_object.rbi +35 -12
- data/rbi/modern_treasury/models/routing_detail.rbi +4 -113
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +4 -87
- data/rbi/modern_treasury/models/transaction.rbi +14 -103
- data/rbi/modern_treasury/models/transactions/transaction_line_item.rbi +0 -5
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +4 -203
- data/rbi/modern_treasury/models.rbi +36 -6
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -2
- 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.rbi +24 -0
- data/rbi/modern_treasury/resources/invoices.rbi +2 -8
- data/rbi/modern_treasury/resources/ledger_account_categories.rbi +7 -3
- data/rbi/modern_treasury/resources/ledger_accounts.rbi +1 -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 +5 -8
- data/rbi/modern_treasury/resources/returns.rbi +2 -2
- data/rbi/modern_treasury/resources/virtual_accounts.rbi +1 -2
- data/sig/modern_treasury/client.rbs +0 -6
- data/sig/modern_treasury/internal/transport/base_client.rbs +1 -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 +88 -1089
- 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 +49 -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 +23 -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/internal_account.rbs +4 -71
- 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/invoice.rbs +4 -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 +12 -123
- data/sig/modern_treasury/models/ledger_account_balance_monitor.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category.rbs +4 -142
- data/sig/modern_treasury/models/ledger_account_category_list_params.rbs +5 -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_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 +22 -69
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +35 -380
- data/sig/modern_treasury/models/payment_order_create_params.rbs +35 -384
- data/sig/modern_treasury/models/payment_order_update_params.rbs +29 -207
- data/sig/modern_treasury/models/payment_orders/reversal_create_params.rbs +6 -173
- data/sig/modern_treasury/models/payment_reference.rbs +14 -2
- data/sig/modern_treasury/models/return_list_params.rbs +1 -6
- data/sig/modern_treasury/models/return_object.rbs +15 -10
- data/sig/modern_treasury/models/routing_detail.rbs +4 -71
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +6 -48
- data/sig/modern_treasury/models/transaction.rbs +8 -53
- data/sig/modern_treasury/models/transactions/transaction_line_item.rbs +0 -2
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +6 -95
- data/sig/modern_treasury/models.rbs +30 -6
- 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.rbs +7 -0
- data/sig/modern_treasury/resources/invoices.rbs +2 -2
- data/sig/modern_treasury/resources/ledger_account_categories.rbs +1 -1
- data/sig/modern_treasury/resources/ledger_accounts.rbs +1 -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 +5 -5
- data/sig/modern_treasury/resources/virtual_accounts.rbs +1 -1
- metadata +52 -22
- 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 -14
- data/lib/modern_treasury/resources/ledgerable_events.rb +0 -14
- data/lib/modern_treasury/resources/paper_items.rb +0 -68
- 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 -12
- data/rbi/modern_treasury/resources/ledgerable_events.rbi +0 -12
- data/rbi/modern_treasury/resources/paper_items.rbi +0 -51
- 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 -7
- data/sig/modern_treasury/resources/ledgerable_events.rbs +0 -7
- data/sig/modern_treasury/resources/paper_items.rbs +0 -21
|
@@ -40,7 +40,7 @@ module ModernTreasury
|
|
|
40
40
|
|
|
41
41
|
type legal_entity =
|
|
42
42
|
{
|
|
43
|
-
addresses: ::Array[ModernTreasury::
|
|
43
|
+
addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
|
|
44
44
|
bank_settings: ModernTreasury::BankSettings?,
|
|
45
45
|
business_name: String?,
|
|
46
46
|
citizenship_country: String?,
|
|
@@ -50,7 +50,7 @@ module ModernTreasury
|
|
|
50
50
|
doing_business_as_names: ::Array[String],
|
|
51
51
|
email: String?,
|
|
52
52
|
first_name: String?,
|
|
53
|
-
identifications: ::Array[ModernTreasury::
|
|
53
|
+
identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
|
|
54
54
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
55
55
|
last_name: String?,
|
|
56
56
|
legal_entity_associations: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation]?,
|
|
@@ -69,11 +69,11 @@ module ModernTreasury
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
class LegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
72
|
-
attr_reader addresses: ::Array[ModernTreasury::
|
|
72
|
+
attr_reader addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest]?
|
|
73
73
|
|
|
74
74
|
def addresses=: (
|
|
75
|
-
::Array[ModernTreasury::
|
|
76
|
-
) -> ::Array[ModernTreasury::
|
|
75
|
+
::Array[ModernTreasury::LegalEntityAddressCreateRequest]
|
|
76
|
+
) -> ::Array[ModernTreasury::LegalEntityAddressCreateRequest]
|
|
77
77
|
|
|
78
78
|
attr_accessor bank_settings: ModernTreasury::BankSettings?
|
|
79
79
|
|
|
@@ -95,11 +95,11 @@ module ModernTreasury
|
|
|
95
95
|
|
|
96
96
|
attr_accessor first_name: String?
|
|
97
97
|
|
|
98
|
-
attr_reader identifications: ::Array[ModernTreasury::
|
|
98
|
+
attr_reader identifications: ::Array[ModernTreasury::IdentificationCreateRequest]?
|
|
99
99
|
|
|
100
100
|
def identifications=: (
|
|
101
|
-
::Array[ModernTreasury::
|
|
102
|
-
) -> ::Array[ModernTreasury::
|
|
101
|
+
::Array[ModernTreasury::IdentificationCreateRequest]
|
|
102
|
+
) -> ::Array[ModernTreasury::IdentificationCreateRequest]
|
|
103
103
|
|
|
104
104
|
attr_reader industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]?
|
|
105
105
|
|
|
@@ -146,7 +146,7 @@ module ModernTreasury
|
|
|
146
146
|
attr_accessor website: String?
|
|
147
147
|
|
|
148
148
|
def initialize: (
|
|
149
|
-
?addresses: ::Array[ModernTreasury::
|
|
149
|
+
?addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
|
|
150
150
|
?bank_settings: ModernTreasury::BankSettings?,
|
|
151
151
|
?business_name: String?,
|
|
152
152
|
?citizenship_country: String?,
|
|
@@ -156,7 +156,7 @@ module ModernTreasury
|
|
|
156
156
|
?doing_business_as_names: ::Array[String],
|
|
157
157
|
?email: String?,
|
|
158
158
|
?first_name: String?,
|
|
159
|
-
?identifications: ::Array[ModernTreasury::
|
|
159
|
+
?identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
|
|
160
160
|
?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
161
161
|
?last_name: String?,
|
|
162
162
|
?legal_entity_associations: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation]?,
|
|
@@ -175,7 +175,7 @@ module ModernTreasury
|
|
|
175
175
|
) -> void
|
|
176
176
|
|
|
177
177
|
def to_hash: -> {
|
|
178
|
-
addresses: ::Array[ModernTreasury::
|
|
178
|
+
addresses: ::Array[ModernTreasury::LegalEntityAddressCreateRequest],
|
|
179
179
|
bank_settings: ModernTreasury::BankSettings?,
|
|
180
180
|
business_name: String?,
|
|
181
181
|
citizenship_country: String?,
|
|
@@ -185,7 +185,7 @@ module ModernTreasury
|
|
|
185
185
|
doing_business_as_names: ::Array[String],
|
|
186
186
|
email: String?,
|
|
187
187
|
first_name: String?,
|
|
188
|
-
identifications: ::Array[ModernTreasury::
|
|
188
|
+
identifications: ::Array[ModernTreasury::IdentificationCreateRequest],
|
|
189
189
|
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
190
190
|
last_name: String?,
|
|
191
191
|
legal_entity_associations: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation]?,
|
|
@@ -203,166 +203,10 @@ module ModernTreasury
|
|
|
203
203
|
website: String?
|
|
204
204
|
}
|
|
205
205
|
|
|
206
|
-
type address =
|
|
207
|
-
{
|
|
208
|
-
country: String?,
|
|
209
|
-
:line1 => String?,
|
|
210
|
-
locality: String?,
|
|
211
|
-
postal_code: String?,
|
|
212
|
-
region: String?,
|
|
213
|
-
address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::address_type],
|
|
214
|
-
:line2 => String?
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
218
|
-
attr_accessor country: String?
|
|
219
|
-
|
|
220
|
-
attr_accessor line1: String?
|
|
221
|
-
|
|
222
|
-
attr_accessor locality: String?
|
|
223
|
-
|
|
224
|
-
attr_accessor postal_code: String?
|
|
225
|
-
|
|
226
|
-
attr_accessor region: String?
|
|
227
|
-
|
|
228
|
-
attr_reader address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::address_type]?
|
|
229
|
-
|
|
230
|
-
def address_types=: (
|
|
231
|
-
::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::address_type]
|
|
232
|
-
) -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::address_type]
|
|
233
|
-
|
|
234
|
-
attr_accessor line2: String?
|
|
235
|
-
|
|
236
|
-
def initialize: (
|
|
237
|
-
country: String?,
|
|
238
|
-
line1: String?,
|
|
239
|
-
locality: String?,
|
|
240
|
-
postal_code: String?,
|
|
241
|
-
region: String?,
|
|
242
|
-
?address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::address_type],
|
|
243
|
-
?line2: String?
|
|
244
|
-
) -> void
|
|
245
|
-
|
|
246
|
-
def to_hash: -> {
|
|
247
|
-
country: String?,
|
|
248
|
-
:line1 => String?,
|
|
249
|
-
locality: String?,
|
|
250
|
-
postal_code: String?,
|
|
251
|
-
region: String?,
|
|
252
|
-
address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::address_type],
|
|
253
|
-
:line2 => String?
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
type address_type =
|
|
257
|
-
:business | :mailing | :other | :po_box | :residential
|
|
258
|
-
|
|
259
|
-
module AddressType
|
|
260
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
261
|
-
|
|
262
|
-
BUSINESS: :business
|
|
263
|
-
MAILING: :mailing
|
|
264
|
-
OTHER: :other
|
|
265
|
-
PO_BOX: :po_box
|
|
266
|
-
RESIDENTIAL: :residential
|
|
267
|
-
|
|
268
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::address_type]
|
|
269
|
-
end
|
|
270
|
-
end
|
|
271
|
-
|
|
272
|
-
type identification =
|
|
273
|
-
{
|
|
274
|
-
id_number: String,
|
|
275
|
-
id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification::id_type,
|
|
276
|
-
expiration_date: Date?,
|
|
277
|
-
issuing_country: String?,
|
|
278
|
-
issuing_region: String?
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
282
|
-
attr_accessor id_number: String
|
|
283
|
-
|
|
284
|
-
attr_accessor id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification::id_type
|
|
285
|
-
|
|
286
|
-
attr_accessor expiration_date: Date?
|
|
287
|
-
|
|
288
|
-
attr_accessor issuing_country: String?
|
|
289
|
-
|
|
290
|
-
attr_accessor issuing_region: String?
|
|
291
|
-
|
|
292
|
-
def initialize: (
|
|
293
|
-
id_number: String,
|
|
294
|
-
id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification::id_type,
|
|
295
|
-
?expiration_date: Date?,
|
|
296
|
-
?issuing_country: String?,
|
|
297
|
-
?issuing_region: String?
|
|
298
|
-
) -> void
|
|
299
|
-
|
|
300
|
-
def to_hash: -> {
|
|
301
|
-
id_number: String,
|
|
302
|
-
id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification::id_type,
|
|
303
|
-
expiration_date: Date?,
|
|
304
|
-
issuing_country: String?,
|
|
305
|
-
issuing_region: String?
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
type id_type =
|
|
309
|
-
:ar_cuil
|
|
310
|
-
| :ar_cuit
|
|
311
|
-
| :br_cnpj
|
|
312
|
-
| :br_cpf
|
|
313
|
-
| :cl_run
|
|
314
|
-
| :cl_rut
|
|
315
|
-
| :co_cedulas
|
|
316
|
-
| :co_nit
|
|
317
|
-
| :drivers_license
|
|
318
|
-
| :hn_id
|
|
319
|
-
| :hn_rtn
|
|
320
|
-
| :in_lei
|
|
321
|
-
| :kr_brn
|
|
322
|
-
| :kr_crn
|
|
323
|
-
| :kr_rrn
|
|
324
|
-
| :passport
|
|
325
|
-
| :sa_tin
|
|
326
|
-
| :sa_vat
|
|
327
|
-
| :us_ein
|
|
328
|
-
| :us_itin
|
|
329
|
-
| :us_ssn
|
|
330
|
-
| :vn_tin
|
|
331
|
-
|
|
332
|
-
module IDType
|
|
333
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
334
|
-
|
|
335
|
-
AR_CUIL: :ar_cuil
|
|
336
|
-
AR_CUIT: :ar_cuit
|
|
337
|
-
BR_CNPJ: :br_cnpj
|
|
338
|
-
BR_CPF: :br_cpf
|
|
339
|
-
CL_RUN: :cl_run
|
|
340
|
-
CL_RUT: :cl_rut
|
|
341
|
-
CO_CEDULAS: :co_cedulas
|
|
342
|
-
CO_NIT: :co_nit
|
|
343
|
-
DRIVERS_LICENSE: :drivers_license
|
|
344
|
-
HN_ID: :hn_id
|
|
345
|
-
HN_RTN: :hn_rtn
|
|
346
|
-
IN_LEI: :in_lei
|
|
347
|
-
KR_BRN: :kr_brn
|
|
348
|
-
KR_CRN: :kr_crn
|
|
349
|
-
KR_RRN: :kr_rrn
|
|
350
|
-
PASSPORT: :passport
|
|
351
|
-
SA_TIN: :sa_tin
|
|
352
|
-
SA_VAT: :sa_vat
|
|
353
|
-
US_EIN: :us_ein
|
|
354
|
-
US_ITIN: :us_itin
|
|
355
|
-
US_SSN: :us_ssn
|
|
356
|
-
VN_TIN: :vn_tin
|
|
357
|
-
|
|
358
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification::id_type]
|
|
359
|
-
end
|
|
360
|
-
end
|
|
361
|
-
|
|
362
206
|
type legal_entity_association =
|
|
363
207
|
{
|
|
364
208
|
relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
|
|
365
|
-
child_legal_entity: ModernTreasury::
|
|
209
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
366
210
|
child_legal_entity_id: String,
|
|
367
211
|
ownership_percentage: Integer?,
|
|
368
212
|
title: String?
|
|
@@ -371,11 +215,11 @@ module ModernTreasury
|
|
|
371
215
|
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
|
372
216
|
attr_accessor relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
|
|
373
217
|
|
|
374
|
-
attr_reader child_legal_entity: ModernTreasury::
|
|
218
|
+
attr_reader child_legal_entity: ModernTreasury::ChildLegalEntityCreate?
|
|
375
219
|
|
|
376
220
|
def child_legal_entity=: (
|
|
377
|
-
ModernTreasury::
|
|
378
|
-
) -> ModernTreasury::
|
|
221
|
+
ModernTreasury::ChildLegalEntityCreate
|
|
222
|
+
) -> ModernTreasury::ChildLegalEntityCreate
|
|
379
223
|
|
|
380
224
|
attr_reader child_legal_entity_id: String?
|
|
381
225
|
|
|
@@ -387,7 +231,7 @@ module ModernTreasury
|
|
|
387
231
|
|
|
388
232
|
def initialize: (
|
|
389
233
|
relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
|
|
390
|
-
?child_legal_entity: ModernTreasury::
|
|
234
|
+
?child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
391
235
|
?child_legal_entity_id: String,
|
|
392
236
|
?ownership_percentage: Integer?,
|
|
393
237
|
?title: String?
|
|
@@ -395,395 +239,24 @@ module ModernTreasury
|
|
|
395
239
|
|
|
396
240
|
def to_hash: -> {
|
|
397
241
|
relationship_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type],
|
|
398
|
-
child_legal_entity: ModernTreasury::
|
|
242
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
399
243
|
child_legal_entity_id: String,
|
|
400
244
|
ownership_percentage: Integer?,
|
|
401
245
|
title: String?
|
|
402
246
|
}
|
|
403
247
|
|
|
404
|
-
type relationship_type =
|
|
248
|
+
type relationship_type =
|
|
249
|
+
:authorized_signer | :beneficial_owner | :control_person
|
|
405
250
|
|
|
406
251
|
module RelationshipType
|
|
407
252
|
extend ModernTreasury::Internal::Type::Enum
|
|
408
253
|
|
|
254
|
+
AUTHORIZED_SIGNER: :authorized_signer
|
|
409
255
|
BENEFICIAL_OWNER: :beneficial_owner
|
|
410
256
|
CONTROL_PERSON: :control_person
|
|
411
257
|
|
|
412
258
|
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::relationship_type]
|
|
413
259
|
end
|
|
414
|
-
|
|
415
|
-
type child_legal_entity =
|
|
416
|
-
{
|
|
417
|
-
addresses: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
418
|
-
bank_settings: ModernTreasury::BankSettings?,
|
|
419
|
-
business_name: String?,
|
|
420
|
-
citizenship_country: String?,
|
|
421
|
-
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
422
|
-
date_formed: Date?,
|
|
423
|
-
date_of_birth: Date?,
|
|
424
|
-
doing_business_as_names: ::Array[String],
|
|
425
|
-
email: String?,
|
|
426
|
-
first_name: String?,
|
|
427
|
-
identifications: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
428
|
-
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
429
|
-
last_name: String?,
|
|
430
|
-
legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
431
|
-
legal_structure: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
432
|
-
metadata: ::Hash[Symbol, String],
|
|
433
|
-
middle_name: String?,
|
|
434
|
-
phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
435
|
-
politically_exposed_person: bool?,
|
|
436
|
-
preferred_name: String?,
|
|
437
|
-
prefix: String?,
|
|
438
|
-
risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
439
|
-
suffix: String?,
|
|
440
|
-
wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
|
|
441
|
-
website: String?
|
|
442
|
-
}
|
|
443
|
-
|
|
444
|
-
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
445
|
-
attr_reader addresses: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]?
|
|
446
|
-
|
|
447
|
-
def addresses=: (
|
|
448
|
-
::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]
|
|
449
|
-
) -> ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address]
|
|
450
|
-
|
|
451
|
-
attr_accessor bank_settings: ModernTreasury::BankSettings?
|
|
452
|
-
|
|
453
|
-
attr_accessor business_name: String?
|
|
454
|
-
|
|
455
|
-
attr_accessor citizenship_country: String?
|
|
456
|
-
|
|
457
|
-
attr_accessor compliance_details: ModernTreasury::LegalEntityComplianceDetail?
|
|
458
|
-
|
|
459
|
-
attr_accessor date_formed: Date?
|
|
460
|
-
|
|
461
|
-
attr_accessor date_of_birth: Date?
|
|
462
|
-
|
|
463
|
-
attr_reader doing_business_as_names: ::Array[String]?
|
|
464
|
-
|
|
465
|
-
def doing_business_as_names=: (::Array[String]) -> ::Array[String]
|
|
466
|
-
|
|
467
|
-
attr_accessor email: String?
|
|
468
|
-
|
|
469
|
-
attr_accessor first_name: String?
|
|
470
|
-
|
|
471
|
-
attr_reader identifications: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification]?
|
|
472
|
-
|
|
473
|
-
def identifications=: (
|
|
474
|
-
::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification]
|
|
475
|
-
) -> ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification]
|
|
476
|
-
|
|
477
|
-
attr_reader industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification]?
|
|
478
|
-
|
|
479
|
-
def industry_classifications=: (
|
|
480
|
-
::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
481
|
-
) -> ::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
482
|
-
|
|
483
|
-
attr_accessor last_name: String?
|
|
484
|
-
|
|
485
|
-
attr_reader legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type?
|
|
486
|
-
|
|
487
|
-
def legal_entity_type=: (
|
|
488
|
-
ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type
|
|
489
|
-
) -> ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type
|
|
490
|
-
|
|
491
|
-
attr_accessor legal_structure: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?
|
|
492
|
-
|
|
493
|
-
attr_reader metadata: ::Hash[Symbol, String]?
|
|
494
|
-
|
|
495
|
-
def metadata=: (::Hash[Symbol, String]) -> ::Hash[Symbol, String]
|
|
496
|
-
|
|
497
|
-
attr_accessor middle_name: String?
|
|
498
|
-
|
|
499
|
-
attr_reader phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]?
|
|
500
|
-
|
|
501
|
-
def phone_numbers=: (
|
|
502
|
-
::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
|
503
|
-
) -> ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber]
|
|
504
|
-
|
|
505
|
-
attr_accessor politically_exposed_person: bool?
|
|
506
|
-
|
|
507
|
-
attr_accessor preferred_name: String?
|
|
508
|
-
|
|
509
|
-
attr_accessor prefix: String?
|
|
510
|
-
|
|
511
|
-
attr_accessor risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?
|
|
512
|
-
|
|
513
|
-
attr_accessor suffix: String?
|
|
514
|
-
|
|
515
|
-
attr_accessor wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?
|
|
516
|
-
|
|
517
|
-
attr_accessor website: String?
|
|
518
|
-
|
|
519
|
-
def initialize: (
|
|
520
|
-
?addresses: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
521
|
-
?bank_settings: ModernTreasury::BankSettings?,
|
|
522
|
-
?business_name: String?,
|
|
523
|
-
?citizenship_country: String?,
|
|
524
|
-
?compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
525
|
-
?date_formed: Date?,
|
|
526
|
-
?date_of_birth: Date?,
|
|
527
|
-
?doing_business_as_names: ::Array[String],
|
|
528
|
-
?email: String?,
|
|
529
|
-
?first_name: String?,
|
|
530
|
-
?identifications: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
531
|
-
?industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
532
|
-
?last_name: String?,
|
|
533
|
-
?legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
534
|
-
?legal_structure: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
535
|
-
?metadata: ::Hash[Symbol, String],
|
|
536
|
-
?middle_name: String?,
|
|
537
|
-
?phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
538
|
-
?politically_exposed_person: bool?,
|
|
539
|
-
?preferred_name: String?,
|
|
540
|
-
?prefix: String?,
|
|
541
|
-
?risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
542
|
-
?suffix: String?,
|
|
543
|
-
?wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
|
|
544
|
-
?website: String?
|
|
545
|
-
) -> void
|
|
546
|
-
|
|
547
|
-
def to_hash: -> {
|
|
548
|
-
addresses: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address],
|
|
549
|
-
bank_settings: ModernTreasury::BankSettings?,
|
|
550
|
-
business_name: String?,
|
|
551
|
-
citizenship_country: String?,
|
|
552
|
-
compliance_details: ModernTreasury::LegalEntityComplianceDetail?,
|
|
553
|
-
date_formed: Date?,
|
|
554
|
-
date_of_birth: Date?,
|
|
555
|
-
doing_business_as_names: ::Array[String],
|
|
556
|
-
email: String?,
|
|
557
|
-
first_name: String?,
|
|
558
|
-
identifications: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification],
|
|
559
|
-
industry_classifications: ::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
560
|
-
last_name: String?,
|
|
561
|
-
legal_entity_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type,
|
|
562
|
-
legal_structure: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure?,
|
|
563
|
-
metadata: ::Hash[Symbol, String],
|
|
564
|
-
middle_name: String?,
|
|
565
|
-
phone_numbers: ::Array[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber],
|
|
566
|
-
politically_exposed_person: bool?,
|
|
567
|
-
preferred_name: String?,
|
|
568
|
-
prefix: String?,
|
|
569
|
-
risk_rating: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating?,
|
|
570
|
-
suffix: String?,
|
|
571
|
-
wealth_and_employment_details: ModernTreasury::WealthAndEmploymentDetails?,
|
|
572
|
-
website: String?
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
type address =
|
|
576
|
-
{
|
|
577
|
-
country: String?,
|
|
578
|
-
:line1 => String?,
|
|
579
|
-
locality: String?,
|
|
580
|
-
postal_code: String?,
|
|
581
|
-
region: String?,
|
|
582
|
-
address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
583
|
-
:line2 => String?
|
|
584
|
-
}
|
|
585
|
-
|
|
586
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
587
|
-
attr_accessor country: String?
|
|
588
|
-
|
|
589
|
-
attr_accessor line1: String?
|
|
590
|
-
|
|
591
|
-
attr_accessor locality: String?
|
|
592
|
-
|
|
593
|
-
attr_accessor postal_code: String?
|
|
594
|
-
|
|
595
|
-
attr_accessor region: String?
|
|
596
|
-
|
|
597
|
-
attr_reader address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]?
|
|
598
|
-
|
|
599
|
-
def address_types=: (
|
|
600
|
-
::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
601
|
-
) -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
602
|
-
|
|
603
|
-
attr_accessor line2: String?
|
|
604
|
-
|
|
605
|
-
def initialize: (
|
|
606
|
-
country: String?,
|
|
607
|
-
line1: String?,
|
|
608
|
-
locality: String?,
|
|
609
|
-
postal_code: String?,
|
|
610
|
-
region: String?,
|
|
611
|
-
?address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
612
|
-
?line2: String?
|
|
613
|
-
) -> void
|
|
614
|
-
|
|
615
|
-
def to_hash: -> {
|
|
616
|
-
country: String?,
|
|
617
|
-
:line1 => String?,
|
|
618
|
-
locality: String?,
|
|
619
|
-
postal_code: String?,
|
|
620
|
-
region: String?,
|
|
621
|
-
address_types: ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type],
|
|
622
|
-
:line2 => String?
|
|
623
|
-
}
|
|
624
|
-
|
|
625
|
-
type address_type =
|
|
626
|
-
:business | :mailing | :other | :po_box | :residential
|
|
627
|
-
|
|
628
|
-
module AddressType
|
|
629
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
630
|
-
|
|
631
|
-
BUSINESS: :business
|
|
632
|
-
MAILING: :mailing
|
|
633
|
-
OTHER: :other
|
|
634
|
-
PO_BOX: :po_box
|
|
635
|
-
RESIDENTIAL: :residential
|
|
636
|
-
|
|
637
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::address_type]
|
|
638
|
-
end
|
|
639
|
-
end
|
|
640
|
-
|
|
641
|
-
type identification =
|
|
642
|
-
{
|
|
643
|
-
id_number: String,
|
|
644
|
-
id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
645
|
-
expiration_date: Date?,
|
|
646
|
-
issuing_country: String?,
|
|
647
|
-
issuing_region: String?
|
|
648
|
-
}
|
|
649
|
-
|
|
650
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
651
|
-
attr_accessor id_number: String
|
|
652
|
-
|
|
653
|
-
attr_accessor id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type
|
|
654
|
-
|
|
655
|
-
attr_accessor expiration_date: Date?
|
|
656
|
-
|
|
657
|
-
attr_accessor issuing_country: String?
|
|
658
|
-
|
|
659
|
-
attr_accessor issuing_region: String?
|
|
660
|
-
|
|
661
|
-
def initialize: (
|
|
662
|
-
id_number: String,
|
|
663
|
-
id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
664
|
-
?expiration_date: Date?,
|
|
665
|
-
?issuing_country: String?,
|
|
666
|
-
?issuing_region: String?
|
|
667
|
-
) -> void
|
|
668
|
-
|
|
669
|
-
def to_hash: -> {
|
|
670
|
-
id_number: String,
|
|
671
|
-
id_type: ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type,
|
|
672
|
-
expiration_date: Date?,
|
|
673
|
-
issuing_country: String?,
|
|
674
|
-
issuing_region: String?
|
|
675
|
-
}
|
|
676
|
-
|
|
677
|
-
type id_type =
|
|
678
|
-
:ar_cuil
|
|
679
|
-
| :ar_cuit
|
|
680
|
-
| :br_cnpj
|
|
681
|
-
| :br_cpf
|
|
682
|
-
| :cl_run
|
|
683
|
-
| :cl_rut
|
|
684
|
-
| :co_cedulas
|
|
685
|
-
| :co_nit
|
|
686
|
-
| :drivers_license
|
|
687
|
-
| :hn_id
|
|
688
|
-
| :hn_rtn
|
|
689
|
-
| :in_lei
|
|
690
|
-
| :kr_brn
|
|
691
|
-
| :kr_crn
|
|
692
|
-
| :kr_rrn
|
|
693
|
-
| :passport
|
|
694
|
-
| :sa_tin
|
|
695
|
-
| :sa_vat
|
|
696
|
-
| :us_ein
|
|
697
|
-
| :us_itin
|
|
698
|
-
| :us_ssn
|
|
699
|
-
| :vn_tin
|
|
700
|
-
|
|
701
|
-
module IDType
|
|
702
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
703
|
-
|
|
704
|
-
AR_CUIL: :ar_cuil
|
|
705
|
-
AR_CUIT: :ar_cuit
|
|
706
|
-
BR_CNPJ: :br_cnpj
|
|
707
|
-
BR_CPF: :br_cpf
|
|
708
|
-
CL_RUN: :cl_run
|
|
709
|
-
CL_RUT: :cl_rut
|
|
710
|
-
CO_CEDULAS: :co_cedulas
|
|
711
|
-
CO_NIT: :co_nit
|
|
712
|
-
DRIVERS_LICENSE: :drivers_license
|
|
713
|
-
HN_ID: :hn_id
|
|
714
|
-
HN_RTN: :hn_rtn
|
|
715
|
-
IN_LEI: :in_lei
|
|
716
|
-
KR_BRN: :kr_brn
|
|
717
|
-
KR_CRN: :kr_crn
|
|
718
|
-
KR_RRN: :kr_rrn
|
|
719
|
-
PASSPORT: :passport
|
|
720
|
-
SA_TIN: :sa_tin
|
|
721
|
-
SA_VAT: :sa_vat
|
|
722
|
-
US_EIN: :us_ein
|
|
723
|
-
US_ITIN: :us_itin
|
|
724
|
-
US_SSN: :us_ssn
|
|
725
|
-
VN_TIN: :vn_tin
|
|
726
|
-
|
|
727
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::id_type]
|
|
728
|
-
end
|
|
729
|
-
end
|
|
730
|
-
|
|
731
|
-
type legal_entity_type = :business | :individual
|
|
732
|
-
|
|
733
|
-
module LegalEntityType
|
|
734
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
735
|
-
|
|
736
|
-
BUSINESS: :business
|
|
737
|
-
INDIVIDUAL: :individual
|
|
738
|
-
|
|
739
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_entity_type]
|
|
740
|
-
end
|
|
741
|
-
|
|
742
|
-
type legal_structure =
|
|
743
|
-
:corporation
|
|
744
|
-
| :llc
|
|
745
|
-
| :non_profit
|
|
746
|
-
| :partnership
|
|
747
|
-
| :sole_proprietorship
|
|
748
|
-
| :trust
|
|
749
|
-
|
|
750
|
-
module LegalStructure
|
|
751
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
752
|
-
|
|
753
|
-
CORPORATION: :corporation
|
|
754
|
-
LLC: :llc
|
|
755
|
-
NON_PROFIT: :non_profit
|
|
756
|
-
PARTNERSHIP: :partnership
|
|
757
|
-
SOLE_PROPRIETORSHIP: :sole_proprietorship
|
|
758
|
-
TRUST: :trust
|
|
759
|
-
|
|
760
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::legal_structure]
|
|
761
|
-
end
|
|
762
|
-
|
|
763
|
-
type phone_number = { phone_number: String }
|
|
764
|
-
|
|
765
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
766
|
-
attr_reader phone_number: String?
|
|
767
|
-
|
|
768
|
-
def phone_number=: (String) -> String
|
|
769
|
-
|
|
770
|
-
def initialize: (?phone_number: String) -> void
|
|
771
|
-
|
|
772
|
-
def to_hash: -> { phone_number: String }
|
|
773
|
-
end
|
|
774
|
-
|
|
775
|
-
type risk_rating = :low | :medium | :high
|
|
776
|
-
|
|
777
|
-
module RiskRating
|
|
778
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
779
|
-
|
|
780
|
-
LOW: :low
|
|
781
|
-
MEDIUM: :medium
|
|
782
|
-
HIGH: :high
|
|
783
|
-
|
|
784
|
-
def self?.values: -> ::Array[ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::risk_rating]
|
|
785
|
-
end
|
|
786
|
-
end
|
|
787
260
|
end
|
|
788
261
|
|
|
789
262
|
type legal_entity_type = :business | :individual
|