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
|
@@ -38,10 +38,10 @@ module ModernTreasury
|
|
|
38
38
|
# @!attribute addresses
|
|
39
39
|
# A list of addresses for the entity.
|
|
40
40
|
#
|
|
41
|
-
# @return [Array<ModernTreasury::Models::
|
|
41
|
+
# @return [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>, nil]
|
|
42
42
|
optional :addresses,
|
|
43
43
|
-> {
|
|
44
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::
|
|
44
|
+
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityAddressCreateRequest]
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
# @!attribute bank_settings
|
|
@@ -98,11 +98,9 @@ module ModernTreasury
|
|
|
98
98
|
# @!attribute identifications
|
|
99
99
|
# A list of identifications for the legal entity.
|
|
100
100
|
#
|
|
101
|
-
# @return [Array<ModernTreasury::Models::
|
|
101
|
+
# @return [Array<ModernTreasury::Models::IdentificationCreateRequest>, nil]
|
|
102
102
|
optional :identifications,
|
|
103
|
-
-> {
|
|
104
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification]
|
|
105
|
-
}
|
|
103
|
+
-> { ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::IdentificationCreateRequest] }
|
|
106
104
|
|
|
107
105
|
# @!attribute industry_classifications
|
|
108
106
|
# A list of industry classifications for the legal entity.
|
|
@@ -215,7 +213,7 @@ module ModernTreasury
|
|
|
215
213
|
#
|
|
216
214
|
# The legal entity.
|
|
217
215
|
#
|
|
218
|
-
# @param addresses [Array<ModernTreasury::Models::
|
|
216
|
+
# @param addresses [Array<ModernTreasury::Models::LegalEntityAddressCreateRequest>] A list of addresses for the entity.
|
|
219
217
|
#
|
|
220
218
|
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
|
221
219
|
#
|
|
@@ -235,7 +233,7 @@ module ModernTreasury
|
|
|
235
233
|
#
|
|
236
234
|
# @param first_name [String, nil] An individual's first name.
|
|
237
235
|
#
|
|
238
|
-
# @param identifications [Array<ModernTreasury::Models::
|
|
236
|
+
# @param identifications [Array<ModernTreasury::Models::IdentificationCreateRequest>] A list of identifications for the legal entity.
|
|
239
237
|
#
|
|
240
238
|
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
|
241
239
|
#
|
|
@@ -267,164 +265,6 @@ module ModernTreasury
|
|
|
267
265
|
#
|
|
268
266
|
# @param website [String, nil] The entity's primary website URL.
|
|
269
267
|
|
|
270
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
271
|
-
# @!attribute country
|
|
272
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
273
|
-
#
|
|
274
|
-
# @return [String, nil]
|
|
275
|
-
required :country, String, nil?: true
|
|
276
|
-
|
|
277
|
-
# @!attribute line1
|
|
278
|
-
#
|
|
279
|
-
# @return [String, nil]
|
|
280
|
-
required :line1, String, nil?: true
|
|
281
|
-
|
|
282
|
-
# @!attribute locality
|
|
283
|
-
# Locality or City.
|
|
284
|
-
#
|
|
285
|
-
# @return [String, nil]
|
|
286
|
-
required :locality, String, nil?: true
|
|
287
|
-
|
|
288
|
-
# @!attribute postal_code
|
|
289
|
-
# The postal code of the address.
|
|
290
|
-
#
|
|
291
|
-
# @return [String, nil]
|
|
292
|
-
required :postal_code, String, nil?: true
|
|
293
|
-
|
|
294
|
-
# @!attribute region
|
|
295
|
-
# Region or State.
|
|
296
|
-
#
|
|
297
|
-
# @return [String, nil]
|
|
298
|
-
required :region, String, nil?: true
|
|
299
|
-
|
|
300
|
-
# @!attribute address_types
|
|
301
|
-
# The types of this address.
|
|
302
|
-
#
|
|
303
|
-
# @return [Array<Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType>, nil]
|
|
304
|
-
optional :address_types,
|
|
305
|
-
-> {
|
|
306
|
-
ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType]
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
# @!attribute line2
|
|
310
|
-
#
|
|
311
|
-
# @return [String, nil]
|
|
312
|
-
optional :line2, String, nil?: true
|
|
313
|
-
|
|
314
|
-
# @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
|
|
315
|
-
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
316
|
-
#
|
|
317
|
-
# @param line1 [String, nil]
|
|
318
|
-
#
|
|
319
|
-
# @param locality [String, nil] Locality or City.
|
|
320
|
-
#
|
|
321
|
-
# @param postal_code [String, nil] The postal code of the address.
|
|
322
|
-
#
|
|
323
|
-
# @param region [String, nil] Region or State.
|
|
324
|
-
#
|
|
325
|
-
# @param address_types [Array<Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Address::AddressType>] The types of this address.
|
|
326
|
-
#
|
|
327
|
-
# @param line2 [String, nil]
|
|
328
|
-
|
|
329
|
-
module AddressType
|
|
330
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
331
|
-
|
|
332
|
-
BUSINESS = :business
|
|
333
|
-
MAILING = :mailing
|
|
334
|
-
OTHER = :other
|
|
335
|
-
PO_BOX = :po_box
|
|
336
|
-
RESIDENTIAL = :residential
|
|
337
|
-
|
|
338
|
-
# @!method self.values
|
|
339
|
-
# @return [Array<Symbol>]
|
|
340
|
-
end
|
|
341
|
-
end
|
|
342
|
-
|
|
343
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
344
|
-
# @!attribute id_number
|
|
345
|
-
# The ID number of identification document.
|
|
346
|
-
#
|
|
347
|
-
# @return [String]
|
|
348
|
-
required :id_number, String
|
|
349
|
-
|
|
350
|
-
# @!attribute id_type
|
|
351
|
-
# The type of ID number.
|
|
352
|
-
#
|
|
353
|
-
# @return [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType]
|
|
354
|
-
required :id_type,
|
|
355
|
-
enum: -> {
|
|
356
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
# @!attribute expiration_date
|
|
360
|
-
# The date when the Identification is no longer considered valid by the issuing
|
|
361
|
-
# authority.
|
|
362
|
-
#
|
|
363
|
-
# @return [Date, nil]
|
|
364
|
-
optional :expiration_date, Date, nil?: true
|
|
365
|
-
|
|
366
|
-
# @!attribute issuing_country
|
|
367
|
-
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
368
|
-
# identification
|
|
369
|
-
#
|
|
370
|
-
# @return [String, nil]
|
|
371
|
-
optional :issuing_country, String, nil?: true
|
|
372
|
-
|
|
373
|
-
# @!attribute issuing_region
|
|
374
|
-
# The region in which the identifcation was issued.
|
|
375
|
-
#
|
|
376
|
-
# @return [String, nil]
|
|
377
|
-
optional :issuing_region, String, nil?: true
|
|
378
|
-
|
|
379
|
-
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
|
380
|
-
# Some parameter documentations has been truncated, see
|
|
381
|
-
# {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification}
|
|
382
|
-
# for more details.
|
|
383
|
-
#
|
|
384
|
-
# @param id_number [String] The ID number of identification document.
|
|
385
|
-
#
|
|
386
|
-
# @param id_type [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification::IDType] The type of ID number.
|
|
387
|
-
#
|
|
388
|
-
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
|
389
|
-
#
|
|
390
|
-
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
|
391
|
-
#
|
|
392
|
-
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
|
393
|
-
|
|
394
|
-
# The type of ID number.
|
|
395
|
-
#
|
|
396
|
-
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::Identification#id_type
|
|
397
|
-
module IDType
|
|
398
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
399
|
-
|
|
400
|
-
AR_CUIL = :ar_cuil
|
|
401
|
-
AR_CUIT = :ar_cuit
|
|
402
|
-
BR_CNPJ = :br_cnpj
|
|
403
|
-
BR_CPF = :br_cpf
|
|
404
|
-
CL_RUN = :cl_run
|
|
405
|
-
CL_RUT = :cl_rut
|
|
406
|
-
CO_CEDULAS = :co_cedulas
|
|
407
|
-
CO_NIT = :co_nit
|
|
408
|
-
DRIVERS_LICENSE = :drivers_license
|
|
409
|
-
HN_ID = :hn_id
|
|
410
|
-
HN_RTN = :hn_rtn
|
|
411
|
-
IN_LEI = :in_lei
|
|
412
|
-
KR_BRN = :kr_brn
|
|
413
|
-
KR_CRN = :kr_crn
|
|
414
|
-
KR_RRN = :kr_rrn
|
|
415
|
-
PASSPORT = :passport
|
|
416
|
-
SA_TIN = :sa_tin
|
|
417
|
-
SA_VAT = :sa_vat
|
|
418
|
-
US_EIN = :us_ein
|
|
419
|
-
US_ITIN = :us_itin
|
|
420
|
-
US_SSN = :us_ssn
|
|
421
|
-
VN_TIN = :vn_tin
|
|
422
|
-
|
|
423
|
-
# @!method self.values
|
|
424
|
-
# @return [Array<Symbol>]
|
|
425
|
-
end
|
|
426
|
-
end
|
|
427
|
-
|
|
428
268
|
class LegalEntityAssociation < ModernTreasury::Internal::Type::BaseModel
|
|
429
269
|
# @!attribute relationship_types
|
|
430
270
|
#
|
|
@@ -439,11 +279,8 @@ module ModernTreasury
|
|
|
439
279
|
# @!attribute child_legal_entity
|
|
440
280
|
# The child legal entity.
|
|
441
281
|
#
|
|
442
|
-
# @return [ModernTreasury::Models::
|
|
443
|
-
optional :child_legal_entity,
|
|
444
|
-
-> {
|
|
445
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity
|
|
446
|
-
}
|
|
282
|
+
# @return [ModernTreasury::Models::ChildLegalEntityCreate, nil]
|
|
283
|
+
optional :child_legal_entity, -> { ModernTreasury::ChildLegalEntityCreate }
|
|
447
284
|
|
|
448
285
|
# @!attribute child_legal_entity_id
|
|
449
286
|
# The ID of the child legal entity.
|
|
@@ -466,7 +303,7 @@ module ModernTreasury
|
|
|
466
303
|
# @!method initialize(relationship_types:, child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil)
|
|
467
304
|
# @param relationship_types [Array<Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>]
|
|
468
305
|
#
|
|
469
|
-
# @param child_legal_entity [ModernTreasury::Models::
|
|
306
|
+
# @param child_legal_entity [ModernTreasury::Models::ChildLegalEntityCreate] The child legal entity.
|
|
470
307
|
#
|
|
471
308
|
# @param child_legal_entity_id [String] The ID of the child legal entity.
|
|
472
309
|
#
|
|
@@ -478,467 +315,13 @@ module ModernTreasury
|
|
|
478
315
|
module RelationshipType
|
|
479
316
|
extend ModernTreasury::Internal::Type::Enum
|
|
480
317
|
|
|
318
|
+
AUTHORIZED_SIGNER = :authorized_signer
|
|
481
319
|
BENEFICIAL_OWNER = :beneficial_owner
|
|
482
320
|
CONTROL_PERSON = :control_person
|
|
483
321
|
|
|
484
322
|
# @!method self.values
|
|
485
323
|
# @return [Array<Symbol>]
|
|
486
324
|
end
|
|
487
|
-
|
|
488
|
-
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation#child_legal_entity
|
|
489
|
-
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
490
|
-
# @!attribute addresses
|
|
491
|
-
# A list of addresses for the entity.
|
|
492
|
-
#
|
|
493
|
-
# @return [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>, nil]
|
|
494
|
-
optional :addresses,
|
|
495
|
-
-> do
|
|
496
|
-
ModernTreasury::Internal::Type::ArrayOf[
|
|
497
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address
|
|
498
|
-
]
|
|
499
|
-
end
|
|
500
|
-
|
|
501
|
-
# @!attribute bank_settings
|
|
502
|
-
#
|
|
503
|
-
# @return [ModernTreasury::Models::BankSettings, nil]
|
|
504
|
-
optional :bank_settings, -> { ModernTreasury::BankSettings }, nil?: true
|
|
505
|
-
|
|
506
|
-
# @!attribute business_name
|
|
507
|
-
# The business's legal business name.
|
|
508
|
-
#
|
|
509
|
-
# @return [String, nil]
|
|
510
|
-
optional :business_name, String, nil?: true
|
|
511
|
-
|
|
512
|
-
# @!attribute citizenship_country
|
|
513
|
-
# The country of citizenship for an individual.
|
|
514
|
-
#
|
|
515
|
-
# @return [String, nil]
|
|
516
|
-
optional :citizenship_country, String, nil?: true
|
|
517
|
-
|
|
518
|
-
# @!attribute compliance_details
|
|
519
|
-
#
|
|
520
|
-
# @return [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
521
|
-
optional :compliance_details, -> { ModernTreasury::LegalEntityComplianceDetail }, nil?: true
|
|
522
|
-
|
|
523
|
-
# @!attribute date_formed
|
|
524
|
-
# A business's formation date (YYYY-MM-DD).
|
|
525
|
-
#
|
|
526
|
-
# @return [Date, nil]
|
|
527
|
-
optional :date_formed, Date, nil?: true
|
|
528
|
-
|
|
529
|
-
# @!attribute date_of_birth
|
|
530
|
-
# An individual's date of birth (YYYY-MM-DD).
|
|
531
|
-
#
|
|
532
|
-
# @return [Date, nil]
|
|
533
|
-
optional :date_of_birth, Date, nil?: true
|
|
534
|
-
|
|
535
|
-
# @!attribute doing_business_as_names
|
|
536
|
-
#
|
|
537
|
-
# @return [Array<String>, nil]
|
|
538
|
-
optional :doing_business_as_names, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
539
|
-
|
|
540
|
-
# @!attribute email
|
|
541
|
-
# The entity's primary email.
|
|
542
|
-
#
|
|
543
|
-
# @return [String, nil]
|
|
544
|
-
optional :email, String, nil?: true
|
|
545
|
-
|
|
546
|
-
# @!attribute first_name
|
|
547
|
-
# An individual's first name.
|
|
548
|
-
#
|
|
549
|
-
# @return [String, nil]
|
|
550
|
-
optional :first_name, String, nil?: true
|
|
551
|
-
|
|
552
|
-
# @!attribute identifications
|
|
553
|
-
# A list of identifications for the legal entity.
|
|
554
|
-
#
|
|
555
|
-
# @return [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>, nil]
|
|
556
|
-
optional :identifications,
|
|
557
|
-
-> do
|
|
558
|
-
ModernTreasury::Internal::Type::ArrayOf[
|
|
559
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification
|
|
560
|
-
]
|
|
561
|
-
end
|
|
562
|
-
|
|
563
|
-
# @!attribute industry_classifications
|
|
564
|
-
# A list of industry classifications for the legal entity.
|
|
565
|
-
#
|
|
566
|
-
# @return [Array<ModernTreasury::Models::LegalEntityIndustryClassification>, nil]
|
|
567
|
-
optional :industry_classifications,
|
|
568
|
-
-> {
|
|
569
|
-
ModernTreasury::Internal::Type::ArrayOf[ModernTreasury::LegalEntityIndustryClassification]
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
# @!attribute last_name
|
|
573
|
-
# An individual's last name.
|
|
574
|
-
#
|
|
575
|
-
# @return [String, nil]
|
|
576
|
-
optional :last_name, String, nil?: true
|
|
577
|
-
|
|
578
|
-
# @!attribute legal_entity_type
|
|
579
|
-
# The type of legal entity.
|
|
580
|
-
#
|
|
581
|
-
# @return [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType, nil]
|
|
582
|
-
optional :legal_entity_type,
|
|
583
|
-
enum: -> {
|
|
584
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
# @!attribute legal_structure
|
|
588
|
-
# The business's legal structure.
|
|
589
|
-
#
|
|
590
|
-
# @return [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil]
|
|
591
|
-
optional :legal_structure,
|
|
592
|
-
enum: -> {
|
|
593
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure
|
|
594
|
-
},
|
|
595
|
-
nil?: true
|
|
596
|
-
|
|
597
|
-
# @!attribute metadata
|
|
598
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
599
|
-
# strings.
|
|
600
|
-
#
|
|
601
|
-
# @return [Hash{Symbol=>String}, nil]
|
|
602
|
-
optional :metadata, ModernTreasury::Internal::Type::HashOf[String]
|
|
603
|
-
|
|
604
|
-
# @!attribute middle_name
|
|
605
|
-
# An individual's middle name.
|
|
606
|
-
#
|
|
607
|
-
# @return [String, nil]
|
|
608
|
-
optional :middle_name, String, nil?: true
|
|
609
|
-
|
|
610
|
-
# @!attribute phone_numbers
|
|
611
|
-
#
|
|
612
|
-
# @return [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>, nil]
|
|
613
|
-
optional :phone_numbers,
|
|
614
|
-
-> do
|
|
615
|
-
ModernTreasury::Internal::Type::ArrayOf[
|
|
616
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber
|
|
617
|
-
]
|
|
618
|
-
end
|
|
619
|
-
|
|
620
|
-
# @!attribute politically_exposed_person
|
|
621
|
-
# Whether the individual is a politically exposed person.
|
|
622
|
-
#
|
|
623
|
-
# @return [Boolean, nil]
|
|
624
|
-
optional :politically_exposed_person, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
625
|
-
|
|
626
|
-
# @!attribute preferred_name
|
|
627
|
-
# An individual's preferred name.
|
|
628
|
-
#
|
|
629
|
-
# @return [String, nil]
|
|
630
|
-
optional :preferred_name, String, nil?: true
|
|
631
|
-
|
|
632
|
-
# @!attribute prefix
|
|
633
|
-
# An individual's prefix.
|
|
634
|
-
#
|
|
635
|
-
# @return [String, nil]
|
|
636
|
-
optional :prefix, String, nil?: true
|
|
637
|
-
|
|
638
|
-
# @!attribute risk_rating
|
|
639
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
|
640
|
-
#
|
|
641
|
-
# @return [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil]
|
|
642
|
-
optional :risk_rating,
|
|
643
|
-
enum: -> {
|
|
644
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating
|
|
645
|
-
},
|
|
646
|
-
nil?: true
|
|
647
|
-
|
|
648
|
-
# @!attribute suffix
|
|
649
|
-
# An individual's suffix.
|
|
650
|
-
#
|
|
651
|
-
# @return [String, nil]
|
|
652
|
-
optional :suffix, String, nil?: true
|
|
653
|
-
|
|
654
|
-
# @!attribute wealth_and_employment_details
|
|
655
|
-
#
|
|
656
|
-
# @return [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
|
657
|
-
optional :wealth_and_employment_details,
|
|
658
|
-
-> {
|
|
659
|
-
ModernTreasury::WealthAndEmploymentDetails
|
|
660
|
-
},
|
|
661
|
-
nil?: true
|
|
662
|
-
|
|
663
|
-
# @!attribute website
|
|
664
|
-
# The entity's primary website URL.
|
|
665
|
-
#
|
|
666
|
-
# @return [String, nil]
|
|
667
|
-
optional :website, String, nil?: true
|
|
668
|
-
|
|
669
|
-
# @!method initialize(addresses: nil, bank_settings: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, date_formed: nil, date_of_birth: nil, doing_business_as_names: nil, email: nil, first_name: nil, identifications: nil, industry_classifications: nil, last_name: nil, legal_entity_type: nil, legal_structure: nil, metadata: nil, middle_name: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, risk_rating: nil, suffix: nil, wealth_and_employment_details: nil, website: nil)
|
|
670
|
-
# Some parameter documentations has been truncated, see
|
|
671
|
-
# {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity}
|
|
672
|
-
# for more details.
|
|
673
|
-
#
|
|
674
|
-
# The child legal entity.
|
|
675
|
-
#
|
|
676
|
-
# @param addresses [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address>] A list of addresses for the entity.
|
|
677
|
-
#
|
|
678
|
-
# @param bank_settings [ModernTreasury::Models::BankSettings, nil]
|
|
679
|
-
#
|
|
680
|
-
# @param business_name [String, nil] The business's legal business name.
|
|
681
|
-
#
|
|
682
|
-
# @param citizenship_country [String, nil] The country of citizenship for an individual.
|
|
683
|
-
#
|
|
684
|
-
# @param compliance_details [ModernTreasury::Models::LegalEntityComplianceDetail, nil]
|
|
685
|
-
#
|
|
686
|
-
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
|
687
|
-
#
|
|
688
|
-
# @param date_of_birth [Date, nil] An individual's date of birth (YYYY-MM-DD).
|
|
689
|
-
#
|
|
690
|
-
# @param doing_business_as_names [Array<String>]
|
|
691
|
-
#
|
|
692
|
-
# @param email [String, nil] The entity's primary email.
|
|
693
|
-
#
|
|
694
|
-
# @param first_name [String, nil] An individual's first name.
|
|
695
|
-
#
|
|
696
|
-
# @param identifications [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification>] A list of identifications for the legal entity.
|
|
697
|
-
#
|
|
698
|
-
# @param industry_classifications [Array<ModernTreasury::Models::LegalEntityIndustryClassification>] A list of industry classifications for the legal entity.
|
|
699
|
-
#
|
|
700
|
-
# @param last_name [String, nil] An individual's last name.
|
|
701
|
-
#
|
|
702
|
-
# @param legal_entity_type [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalEntityType] The type of legal entity.
|
|
703
|
-
#
|
|
704
|
-
# @param legal_structure [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::LegalStructure, nil] The business's legal structure.
|
|
705
|
-
#
|
|
706
|
-
# @param metadata [Hash{Symbol=>String}] Additional data represented as key-value pairs. Both the key and value must be s
|
|
707
|
-
#
|
|
708
|
-
# @param middle_name [String, nil] An individual's middle name.
|
|
709
|
-
#
|
|
710
|
-
# @param phone_numbers [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::PhoneNumber>]
|
|
711
|
-
#
|
|
712
|
-
# @param politically_exposed_person [Boolean, nil] Whether the individual is a politically exposed person.
|
|
713
|
-
#
|
|
714
|
-
# @param preferred_name [String, nil] An individual's preferred name.
|
|
715
|
-
#
|
|
716
|
-
# @param prefix [String, nil] An individual's prefix.
|
|
717
|
-
#
|
|
718
|
-
# @param risk_rating [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::RiskRating, nil] The risk rating of the legal entity. One of low, medium, high.
|
|
719
|
-
#
|
|
720
|
-
# @param suffix [String, nil] An individual's suffix.
|
|
721
|
-
#
|
|
722
|
-
# @param wealth_and_employment_details [ModernTreasury::Models::WealthAndEmploymentDetails, nil]
|
|
723
|
-
#
|
|
724
|
-
# @param website [String, nil] The entity's primary website URL.
|
|
725
|
-
|
|
726
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
727
|
-
# @!attribute country
|
|
728
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
729
|
-
#
|
|
730
|
-
# @return [String, nil]
|
|
731
|
-
required :country, String, nil?: true
|
|
732
|
-
|
|
733
|
-
# @!attribute line1
|
|
734
|
-
#
|
|
735
|
-
# @return [String, nil]
|
|
736
|
-
required :line1, String, nil?: true
|
|
737
|
-
|
|
738
|
-
# @!attribute locality
|
|
739
|
-
# Locality or City.
|
|
740
|
-
#
|
|
741
|
-
# @return [String, nil]
|
|
742
|
-
required :locality, String, nil?: true
|
|
743
|
-
|
|
744
|
-
# @!attribute postal_code
|
|
745
|
-
# The postal code of the address.
|
|
746
|
-
#
|
|
747
|
-
# @return [String, nil]
|
|
748
|
-
required :postal_code, String, nil?: true
|
|
749
|
-
|
|
750
|
-
# @!attribute region
|
|
751
|
-
# Region or State.
|
|
752
|
-
#
|
|
753
|
-
# @return [String, nil]
|
|
754
|
-
required :region, String, nil?: true
|
|
755
|
-
|
|
756
|
-
# @!attribute address_types
|
|
757
|
-
# The types of this address.
|
|
758
|
-
#
|
|
759
|
-
# @return [Array<Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>, nil]
|
|
760
|
-
optional :address_types,
|
|
761
|
-
-> do
|
|
762
|
-
ModernTreasury::Internal::Type::ArrayOf[
|
|
763
|
-
enum: ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType
|
|
764
|
-
]
|
|
765
|
-
end
|
|
766
|
-
|
|
767
|
-
# @!attribute line2
|
|
768
|
-
#
|
|
769
|
-
# @return [String, nil]
|
|
770
|
-
optional :line2, String, nil?: true
|
|
771
|
-
|
|
772
|
-
# @!method initialize(country:, line1:, locality:, postal_code:, region:, address_types: nil, line2: nil)
|
|
773
|
-
# @param country [String, nil] Country code conforms to [ISO 3166-1 alpha-2]
|
|
774
|
-
#
|
|
775
|
-
# @param line1 [String, nil]
|
|
776
|
-
#
|
|
777
|
-
# @param locality [String, nil] Locality or City.
|
|
778
|
-
#
|
|
779
|
-
# @param postal_code [String, nil] The postal code of the address.
|
|
780
|
-
#
|
|
781
|
-
# @param region [String, nil] Region or State.
|
|
782
|
-
#
|
|
783
|
-
# @param address_types [Array<Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Address::AddressType>] The types of this address.
|
|
784
|
-
#
|
|
785
|
-
# @param line2 [String, nil]
|
|
786
|
-
|
|
787
|
-
module AddressType
|
|
788
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
789
|
-
|
|
790
|
-
BUSINESS = :business
|
|
791
|
-
MAILING = :mailing
|
|
792
|
-
OTHER = :other
|
|
793
|
-
PO_BOX = :po_box
|
|
794
|
-
RESIDENTIAL = :residential
|
|
795
|
-
|
|
796
|
-
# @!method self.values
|
|
797
|
-
# @return [Array<Symbol>]
|
|
798
|
-
end
|
|
799
|
-
end
|
|
800
|
-
|
|
801
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
802
|
-
# @!attribute id_number
|
|
803
|
-
# The ID number of identification document.
|
|
804
|
-
#
|
|
805
|
-
# @return [String]
|
|
806
|
-
required :id_number, String
|
|
807
|
-
|
|
808
|
-
# @!attribute id_type
|
|
809
|
-
# The type of ID number.
|
|
810
|
-
#
|
|
811
|
-
# @return [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType]
|
|
812
|
-
required :id_type,
|
|
813
|
-
enum: -> {
|
|
814
|
-
ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType
|
|
815
|
-
}
|
|
816
|
-
|
|
817
|
-
# @!attribute expiration_date
|
|
818
|
-
# The date when the Identification is no longer considered valid by the issuing
|
|
819
|
-
# authority.
|
|
820
|
-
#
|
|
821
|
-
# @return [Date, nil]
|
|
822
|
-
optional :expiration_date, Date, nil?: true
|
|
823
|
-
|
|
824
|
-
# @!attribute issuing_country
|
|
825
|
-
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
826
|
-
# identification
|
|
827
|
-
#
|
|
828
|
-
# @return [String, nil]
|
|
829
|
-
optional :issuing_country, String, nil?: true
|
|
830
|
-
|
|
831
|
-
# @!attribute issuing_region
|
|
832
|
-
# The region in which the identifcation was issued.
|
|
833
|
-
#
|
|
834
|
-
# @return [String, nil]
|
|
835
|
-
optional :issuing_region, String, nil?: true
|
|
836
|
-
|
|
837
|
-
# @!method initialize(id_number:, id_type:, expiration_date: nil, issuing_country: nil, issuing_region: nil)
|
|
838
|
-
# Some parameter documentations has been truncated, see
|
|
839
|
-
# {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification}
|
|
840
|
-
# for more details.
|
|
841
|
-
#
|
|
842
|
-
# @param id_number [String] The ID number of identification document.
|
|
843
|
-
#
|
|
844
|
-
# @param id_type [Symbol, ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification::IDType] The type of ID number.
|
|
845
|
-
#
|
|
846
|
-
# @param expiration_date [Date, nil] The date when the Identification is no longer considered valid by the issuing au
|
|
847
|
-
#
|
|
848
|
-
# @param issuing_country [String, nil] The ISO 3166-1 alpha-2 country code of the country that issued the identificatio
|
|
849
|
-
#
|
|
850
|
-
# @param issuing_region [String, nil] The region in which the identifcation was issued.
|
|
851
|
-
|
|
852
|
-
# The type of ID number.
|
|
853
|
-
#
|
|
854
|
-
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity::Identification#id_type
|
|
855
|
-
module IDType
|
|
856
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
857
|
-
|
|
858
|
-
AR_CUIL = :ar_cuil
|
|
859
|
-
AR_CUIT = :ar_cuit
|
|
860
|
-
BR_CNPJ = :br_cnpj
|
|
861
|
-
BR_CPF = :br_cpf
|
|
862
|
-
CL_RUN = :cl_run
|
|
863
|
-
CL_RUT = :cl_rut
|
|
864
|
-
CO_CEDULAS = :co_cedulas
|
|
865
|
-
CO_NIT = :co_nit
|
|
866
|
-
DRIVERS_LICENSE = :drivers_license
|
|
867
|
-
HN_ID = :hn_id
|
|
868
|
-
HN_RTN = :hn_rtn
|
|
869
|
-
IN_LEI = :in_lei
|
|
870
|
-
KR_BRN = :kr_brn
|
|
871
|
-
KR_CRN = :kr_crn
|
|
872
|
-
KR_RRN = :kr_rrn
|
|
873
|
-
PASSPORT = :passport
|
|
874
|
-
SA_TIN = :sa_tin
|
|
875
|
-
SA_VAT = :sa_vat
|
|
876
|
-
US_EIN = :us_ein
|
|
877
|
-
US_ITIN = :us_itin
|
|
878
|
-
US_SSN = :us_ssn
|
|
879
|
-
VN_TIN = :vn_tin
|
|
880
|
-
|
|
881
|
-
# @!method self.values
|
|
882
|
-
# @return [Array<Symbol>]
|
|
883
|
-
end
|
|
884
|
-
end
|
|
885
|
-
|
|
886
|
-
# The type of legal entity.
|
|
887
|
-
#
|
|
888
|
-
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_entity_type
|
|
889
|
-
module LegalEntityType
|
|
890
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
891
|
-
|
|
892
|
-
BUSINESS = :business
|
|
893
|
-
INDIVIDUAL = :individual
|
|
894
|
-
|
|
895
|
-
# @!method self.values
|
|
896
|
-
# @return [Array<Symbol>]
|
|
897
|
-
end
|
|
898
|
-
|
|
899
|
-
# The business's legal structure.
|
|
900
|
-
#
|
|
901
|
-
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#legal_structure
|
|
902
|
-
module LegalStructure
|
|
903
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
904
|
-
|
|
905
|
-
CORPORATION = :corporation
|
|
906
|
-
LLC = :llc
|
|
907
|
-
NON_PROFIT = :non_profit
|
|
908
|
-
PARTNERSHIP = :partnership
|
|
909
|
-
SOLE_PROPRIETORSHIP = :sole_proprietorship
|
|
910
|
-
TRUST = :trust
|
|
911
|
-
|
|
912
|
-
# @!method self.values
|
|
913
|
-
# @return [Array<Symbol>]
|
|
914
|
-
end
|
|
915
|
-
|
|
916
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
917
|
-
# @!attribute phone_number
|
|
918
|
-
#
|
|
919
|
-
# @return [String, nil]
|
|
920
|
-
optional :phone_number, String
|
|
921
|
-
|
|
922
|
-
# @!method initialize(phone_number: nil)
|
|
923
|
-
# A list of phone numbers in E.164 format.
|
|
924
|
-
#
|
|
925
|
-
# @param phone_number [String]
|
|
926
|
-
end
|
|
927
|
-
|
|
928
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
|
929
|
-
#
|
|
930
|
-
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::LegalEntityAssociation::ChildLegalEntity#risk_rating
|
|
931
|
-
module RiskRating
|
|
932
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
933
|
-
|
|
934
|
-
LOW = :low
|
|
935
|
-
MEDIUM = :medium
|
|
936
|
-
HIGH = :high
|
|
937
|
-
|
|
938
|
-
# @!method self.values
|
|
939
|
-
# @return [Array<Symbol>]
|
|
940
|
-
end
|
|
941
|
-
end
|
|
942
325
|
end
|
|
943
326
|
|
|
944
327
|
# The type of legal entity.
|