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