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
|
@@ -29,19 +29,12 @@ module ModernTreasury
|
|
|
29
29
|
attr_accessor :relationship_types
|
|
30
30
|
|
|
31
31
|
# The child legal entity.
|
|
32
|
-
sig
|
|
33
|
-
returns(
|
|
34
|
-
T.nilable(
|
|
35
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity
|
|
36
|
-
)
|
|
37
|
-
)
|
|
38
|
-
end
|
|
32
|
+
sig { returns(T.nilable(ModernTreasury::ChildLegalEntityCreate)) }
|
|
39
33
|
attr_reader :child_legal_entity
|
|
40
34
|
|
|
41
35
|
sig do
|
|
42
36
|
params(
|
|
43
|
-
child_legal_entity:
|
|
44
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::OrHash
|
|
37
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash
|
|
45
38
|
).void
|
|
46
39
|
end
|
|
47
40
|
attr_writer :child_legal_entity
|
|
@@ -68,8 +61,7 @@ module ModernTreasury
|
|
|
68
61
|
T::Array[
|
|
69
62
|
ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
|
|
70
63
|
],
|
|
71
|
-
child_legal_entity:
|
|
72
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::OrHash,
|
|
64
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate::OrHash,
|
|
73
65
|
child_legal_entity_id: String,
|
|
74
66
|
ownership_percentage: T.nilable(Integer),
|
|
75
67
|
title: T.nilable(String),
|
|
@@ -101,8 +93,7 @@ module ModernTreasury
|
|
|
101
93
|
T::Array[
|
|
102
94
|
ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::OrSymbol
|
|
103
95
|
],
|
|
104
|
-
child_legal_entity:
|
|
105
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity,
|
|
96
|
+
child_legal_entity: ModernTreasury::ChildLegalEntityCreate,
|
|
106
97
|
child_legal_entity_id: String,
|
|
107
98
|
ownership_percentage: T.nilable(Integer),
|
|
108
99
|
title: T.nilable(String),
|
|
@@ -126,6 +117,11 @@ module ModernTreasury
|
|
|
126
117
|
end
|
|
127
118
|
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
128
119
|
|
|
120
|
+
AUTHORIZED_SIGNER =
|
|
121
|
+
T.let(
|
|
122
|
+
:authorized_signer,
|
|
123
|
+
ModernTreasury::LegalEntityAssociationCreateParams::RelationshipType::TaggedSymbol
|
|
124
|
+
)
|
|
129
125
|
BENEFICIAL_OWNER =
|
|
130
126
|
T.let(
|
|
131
127
|
:beneficial_owner,
|
|
@@ -147,910 +143,6 @@ module ModernTreasury
|
|
|
147
143
|
def self.values
|
|
148
144
|
end
|
|
149
145
|
end
|
|
150
|
-
|
|
151
|
-
class ChildLegalEntity < ModernTreasury::Internal::Type::BaseModel
|
|
152
|
-
OrHash =
|
|
153
|
-
T.type_alias do
|
|
154
|
-
T.any(
|
|
155
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity,
|
|
156
|
-
ModernTreasury::Internal::AnyHash
|
|
157
|
-
)
|
|
158
|
-
end
|
|
159
|
-
|
|
160
|
-
# A list of addresses for the entity.
|
|
161
|
-
sig do
|
|
162
|
-
returns(
|
|
163
|
-
T.nilable(
|
|
164
|
-
T::Array[
|
|
165
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address
|
|
166
|
-
]
|
|
167
|
-
)
|
|
168
|
-
)
|
|
169
|
-
end
|
|
170
|
-
attr_reader :addresses
|
|
171
|
-
|
|
172
|
-
sig do
|
|
173
|
-
params(
|
|
174
|
-
addresses:
|
|
175
|
-
T::Array[
|
|
176
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::OrHash
|
|
177
|
-
]
|
|
178
|
-
).void
|
|
179
|
-
end
|
|
180
|
-
attr_writer :addresses
|
|
181
|
-
|
|
182
|
-
sig { returns(T.nilable(ModernTreasury::BankSettings)) }
|
|
183
|
-
attr_reader :bank_settings
|
|
184
|
-
|
|
185
|
-
sig do
|
|
186
|
-
params(
|
|
187
|
-
bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash)
|
|
188
|
-
).void
|
|
189
|
-
end
|
|
190
|
-
attr_writer :bank_settings
|
|
191
|
-
|
|
192
|
-
# The business's legal business name.
|
|
193
|
-
sig { returns(T.nilable(String)) }
|
|
194
|
-
attr_accessor :business_name
|
|
195
|
-
|
|
196
|
-
# The country of citizenship for an individual.
|
|
197
|
-
sig { returns(T.nilable(String)) }
|
|
198
|
-
attr_accessor :citizenship_country
|
|
199
|
-
|
|
200
|
-
sig { returns(T.nilable(ModernTreasury::LegalEntityComplianceDetail)) }
|
|
201
|
-
attr_reader :compliance_details
|
|
202
|
-
|
|
203
|
-
sig do
|
|
204
|
-
params(
|
|
205
|
-
compliance_details:
|
|
206
|
-
T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash)
|
|
207
|
-
).void
|
|
208
|
-
end
|
|
209
|
-
attr_writer :compliance_details
|
|
210
|
-
|
|
211
|
-
# A business's formation date (YYYY-MM-DD).
|
|
212
|
-
sig { returns(T.nilable(Date)) }
|
|
213
|
-
attr_accessor :date_formed
|
|
214
|
-
|
|
215
|
-
# An individual's date of birth (YYYY-MM-DD).
|
|
216
|
-
sig { returns(T.nilable(Date)) }
|
|
217
|
-
attr_accessor :date_of_birth
|
|
218
|
-
|
|
219
|
-
sig { returns(T.nilable(T::Array[String])) }
|
|
220
|
-
attr_reader :doing_business_as_names
|
|
221
|
-
|
|
222
|
-
sig { params(doing_business_as_names: T::Array[String]).void }
|
|
223
|
-
attr_writer :doing_business_as_names
|
|
224
|
-
|
|
225
|
-
# The entity's primary email.
|
|
226
|
-
sig { returns(T.nilable(String)) }
|
|
227
|
-
attr_accessor :email
|
|
228
|
-
|
|
229
|
-
# An individual's first name.
|
|
230
|
-
sig { returns(T.nilable(String)) }
|
|
231
|
-
attr_accessor :first_name
|
|
232
|
-
|
|
233
|
-
# A list of identifications for the legal entity.
|
|
234
|
-
sig do
|
|
235
|
-
returns(
|
|
236
|
-
T.nilable(
|
|
237
|
-
T::Array[
|
|
238
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification
|
|
239
|
-
]
|
|
240
|
-
)
|
|
241
|
-
)
|
|
242
|
-
end
|
|
243
|
-
attr_reader :identifications
|
|
244
|
-
|
|
245
|
-
sig do
|
|
246
|
-
params(
|
|
247
|
-
identifications:
|
|
248
|
-
T::Array[
|
|
249
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::OrHash
|
|
250
|
-
]
|
|
251
|
-
).void
|
|
252
|
-
end
|
|
253
|
-
attr_writer :identifications
|
|
254
|
-
|
|
255
|
-
# A list of industry classifications for the legal entity.
|
|
256
|
-
sig do
|
|
257
|
-
returns(
|
|
258
|
-
T.nilable(
|
|
259
|
-
T::Array[ModernTreasury::LegalEntityIndustryClassification]
|
|
260
|
-
)
|
|
261
|
-
)
|
|
262
|
-
end
|
|
263
|
-
attr_reader :industry_classifications
|
|
264
|
-
|
|
265
|
-
sig do
|
|
266
|
-
params(
|
|
267
|
-
industry_classifications:
|
|
268
|
-
T::Array[
|
|
269
|
-
ModernTreasury::LegalEntityIndustryClassification::OrHash
|
|
270
|
-
]
|
|
271
|
-
).void
|
|
272
|
-
end
|
|
273
|
-
attr_writer :industry_classifications
|
|
274
|
-
|
|
275
|
-
# An individual's last name.
|
|
276
|
-
sig { returns(T.nilable(String)) }
|
|
277
|
-
attr_accessor :last_name
|
|
278
|
-
|
|
279
|
-
# The type of legal entity.
|
|
280
|
-
sig do
|
|
281
|
-
returns(
|
|
282
|
-
T.nilable(
|
|
283
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType::OrSymbol
|
|
284
|
-
)
|
|
285
|
-
)
|
|
286
|
-
end
|
|
287
|
-
attr_reader :legal_entity_type
|
|
288
|
-
|
|
289
|
-
sig do
|
|
290
|
-
params(
|
|
291
|
-
legal_entity_type:
|
|
292
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType::OrSymbol
|
|
293
|
-
).void
|
|
294
|
-
end
|
|
295
|
-
attr_writer :legal_entity_type
|
|
296
|
-
|
|
297
|
-
# The business's legal structure.
|
|
298
|
-
sig do
|
|
299
|
-
returns(
|
|
300
|
-
T.nilable(
|
|
301
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::OrSymbol
|
|
302
|
-
)
|
|
303
|
-
)
|
|
304
|
-
end
|
|
305
|
-
attr_accessor :legal_structure
|
|
306
|
-
|
|
307
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
308
|
-
# strings.
|
|
309
|
-
sig { returns(T.nilable(T::Hash[Symbol, String])) }
|
|
310
|
-
attr_reader :metadata
|
|
311
|
-
|
|
312
|
-
sig { params(metadata: T::Hash[Symbol, String]).void }
|
|
313
|
-
attr_writer :metadata
|
|
314
|
-
|
|
315
|
-
# An individual's middle name.
|
|
316
|
-
sig { returns(T.nilable(String)) }
|
|
317
|
-
attr_accessor :middle_name
|
|
318
|
-
|
|
319
|
-
sig do
|
|
320
|
-
returns(
|
|
321
|
-
T.nilable(
|
|
322
|
-
T::Array[
|
|
323
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::PhoneNumber
|
|
324
|
-
]
|
|
325
|
-
)
|
|
326
|
-
)
|
|
327
|
-
end
|
|
328
|
-
attr_reader :phone_numbers
|
|
329
|
-
|
|
330
|
-
sig do
|
|
331
|
-
params(
|
|
332
|
-
phone_numbers:
|
|
333
|
-
T::Array[
|
|
334
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::PhoneNumber::OrHash
|
|
335
|
-
]
|
|
336
|
-
).void
|
|
337
|
-
end
|
|
338
|
-
attr_writer :phone_numbers
|
|
339
|
-
|
|
340
|
-
# Whether the individual is a politically exposed person.
|
|
341
|
-
sig { returns(T.nilable(T::Boolean)) }
|
|
342
|
-
attr_accessor :politically_exposed_person
|
|
343
|
-
|
|
344
|
-
# An individual's preferred name.
|
|
345
|
-
sig { returns(T.nilable(String)) }
|
|
346
|
-
attr_accessor :preferred_name
|
|
347
|
-
|
|
348
|
-
# An individual's prefix.
|
|
349
|
-
sig { returns(T.nilable(String)) }
|
|
350
|
-
attr_accessor :prefix
|
|
351
|
-
|
|
352
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
|
353
|
-
sig do
|
|
354
|
-
returns(
|
|
355
|
-
T.nilable(
|
|
356
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating::OrSymbol
|
|
357
|
-
)
|
|
358
|
-
)
|
|
359
|
-
end
|
|
360
|
-
attr_accessor :risk_rating
|
|
361
|
-
|
|
362
|
-
# An individual's suffix.
|
|
363
|
-
sig { returns(T.nilable(String)) }
|
|
364
|
-
attr_accessor :suffix
|
|
365
|
-
|
|
366
|
-
sig { returns(T.nilable(ModernTreasury::WealthAndEmploymentDetails)) }
|
|
367
|
-
attr_reader :wealth_and_employment_details
|
|
368
|
-
|
|
369
|
-
sig do
|
|
370
|
-
params(
|
|
371
|
-
wealth_and_employment_details:
|
|
372
|
-
T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash)
|
|
373
|
-
).void
|
|
374
|
-
end
|
|
375
|
-
attr_writer :wealth_and_employment_details
|
|
376
|
-
|
|
377
|
-
# The entity's primary website URL.
|
|
378
|
-
sig { returns(T.nilable(String)) }
|
|
379
|
-
attr_accessor :website
|
|
380
|
-
|
|
381
|
-
# The child legal entity.
|
|
382
|
-
sig do
|
|
383
|
-
params(
|
|
384
|
-
addresses:
|
|
385
|
-
T::Array[
|
|
386
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::OrHash
|
|
387
|
-
],
|
|
388
|
-
bank_settings: T.nilable(ModernTreasury::BankSettings::OrHash),
|
|
389
|
-
business_name: T.nilable(String),
|
|
390
|
-
citizenship_country: T.nilable(String),
|
|
391
|
-
compliance_details:
|
|
392
|
-
T.nilable(ModernTreasury::LegalEntityComplianceDetail::OrHash),
|
|
393
|
-
date_formed: T.nilable(Date),
|
|
394
|
-
date_of_birth: T.nilable(Date),
|
|
395
|
-
doing_business_as_names: T::Array[String],
|
|
396
|
-
email: T.nilable(String),
|
|
397
|
-
first_name: T.nilable(String),
|
|
398
|
-
identifications:
|
|
399
|
-
T::Array[
|
|
400
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::OrHash
|
|
401
|
-
],
|
|
402
|
-
industry_classifications:
|
|
403
|
-
T::Array[
|
|
404
|
-
ModernTreasury::LegalEntityIndustryClassification::OrHash
|
|
405
|
-
],
|
|
406
|
-
last_name: T.nilable(String),
|
|
407
|
-
legal_entity_type:
|
|
408
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType::OrSymbol,
|
|
409
|
-
legal_structure:
|
|
410
|
-
T.nilable(
|
|
411
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::OrSymbol
|
|
412
|
-
),
|
|
413
|
-
metadata: T::Hash[Symbol, String],
|
|
414
|
-
middle_name: T.nilable(String),
|
|
415
|
-
phone_numbers:
|
|
416
|
-
T::Array[
|
|
417
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::PhoneNumber::OrHash
|
|
418
|
-
],
|
|
419
|
-
politically_exposed_person: T.nilable(T::Boolean),
|
|
420
|
-
preferred_name: T.nilable(String),
|
|
421
|
-
prefix: T.nilable(String),
|
|
422
|
-
risk_rating:
|
|
423
|
-
T.nilable(
|
|
424
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating::OrSymbol
|
|
425
|
-
),
|
|
426
|
-
suffix: T.nilable(String),
|
|
427
|
-
wealth_and_employment_details:
|
|
428
|
-
T.nilable(ModernTreasury::WealthAndEmploymentDetails::OrHash),
|
|
429
|
-
website: T.nilable(String)
|
|
430
|
-
).returns(T.attached_class)
|
|
431
|
-
end
|
|
432
|
-
def self.new(
|
|
433
|
-
# A list of addresses for the entity.
|
|
434
|
-
addresses: nil,
|
|
435
|
-
bank_settings: nil,
|
|
436
|
-
# The business's legal business name.
|
|
437
|
-
business_name: nil,
|
|
438
|
-
# The country of citizenship for an individual.
|
|
439
|
-
citizenship_country: nil,
|
|
440
|
-
compliance_details: nil,
|
|
441
|
-
# A business's formation date (YYYY-MM-DD).
|
|
442
|
-
date_formed: nil,
|
|
443
|
-
# An individual's date of birth (YYYY-MM-DD).
|
|
444
|
-
date_of_birth: nil,
|
|
445
|
-
doing_business_as_names: nil,
|
|
446
|
-
# The entity's primary email.
|
|
447
|
-
email: nil,
|
|
448
|
-
# An individual's first name.
|
|
449
|
-
first_name: nil,
|
|
450
|
-
# A list of identifications for the legal entity.
|
|
451
|
-
identifications: nil,
|
|
452
|
-
# A list of industry classifications for the legal entity.
|
|
453
|
-
industry_classifications: nil,
|
|
454
|
-
# An individual's last name.
|
|
455
|
-
last_name: nil,
|
|
456
|
-
# The type of legal entity.
|
|
457
|
-
legal_entity_type: nil,
|
|
458
|
-
# The business's legal structure.
|
|
459
|
-
legal_structure: nil,
|
|
460
|
-
# Additional data represented as key-value pairs. Both the key and value must be
|
|
461
|
-
# strings.
|
|
462
|
-
metadata: nil,
|
|
463
|
-
# An individual's middle name.
|
|
464
|
-
middle_name: nil,
|
|
465
|
-
phone_numbers: nil,
|
|
466
|
-
# Whether the individual is a politically exposed person.
|
|
467
|
-
politically_exposed_person: nil,
|
|
468
|
-
# An individual's preferred name.
|
|
469
|
-
preferred_name: nil,
|
|
470
|
-
# An individual's prefix.
|
|
471
|
-
prefix: nil,
|
|
472
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
|
473
|
-
risk_rating: nil,
|
|
474
|
-
# An individual's suffix.
|
|
475
|
-
suffix: nil,
|
|
476
|
-
wealth_and_employment_details: nil,
|
|
477
|
-
# The entity's primary website URL.
|
|
478
|
-
website: nil
|
|
479
|
-
)
|
|
480
|
-
end
|
|
481
|
-
|
|
482
|
-
sig do
|
|
483
|
-
override.returns(
|
|
484
|
-
{
|
|
485
|
-
addresses:
|
|
486
|
-
T::Array[
|
|
487
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address
|
|
488
|
-
],
|
|
489
|
-
bank_settings: T.nilable(ModernTreasury::BankSettings),
|
|
490
|
-
business_name: T.nilable(String),
|
|
491
|
-
citizenship_country: T.nilable(String),
|
|
492
|
-
compliance_details:
|
|
493
|
-
T.nilable(ModernTreasury::LegalEntityComplianceDetail),
|
|
494
|
-
date_formed: T.nilable(Date),
|
|
495
|
-
date_of_birth: T.nilable(Date),
|
|
496
|
-
doing_business_as_names: T::Array[String],
|
|
497
|
-
email: T.nilable(String),
|
|
498
|
-
first_name: T.nilable(String),
|
|
499
|
-
identifications:
|
|
500
|
-
T::Array[
|
|
501
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification
|
|
502
|
-
],
|
|
503
|
-
industry_classifications:
|
|
504
|
-
T::Array[ModernTreasury::LegalEntityIndustryClassification],
|
|
505
|
-
last_name: T.nilable(String),
|
|
506
|
-
legal_entity_type:
|
|
507
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType::OrSymbol,
|
|
508
|
-
legal_structure:
|
|
509
|
-
T.nilable(
|
|
510
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::OrSymbol
|
|
511
|
-
),
|
|
512
|
-
metadata: T::Hash[Symbol, String],
|
|
513
|
-
middle_name: T.nilable(String),
|
|
514
|
-
phone_numbers:
|
|
515
|
-
T::Array[
|
|
516
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::PhoneNumber
|
|
517
|
-
],
|
|
518
|
-
politically_exposed_person: T.nilable(T::Boolean),
|
|
519
|
-
preferred_name: T.nilable(String),
|
|
520
|
-
prefix: T.nilable(String),
|
|
521
|
-
risk_rating:
|
|
522
|
-
T.nilable(
|
|
523
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating::OrSymbol
|
|
524
|
-
),
|
|
525
|
-
suffix: T.nilable(String),
|
|
526
|
-
wealth_and_employment_details:
|
|
527
|
-
T.nilable(ModernTreasury::WealthAndEmploymentDetails),
|
|
528
|
-
website: T.nilable(String)
|
|
529
|
-
}
|
|
530
|
-
)
|
|
531
|
-
end
|
|
532
|
-
def to_hash
|
|
533
|
-
end
|
|
534
|
-
|
|
535
|
-
class Address < ModernTreasury::Internal::Type::BaseModel
|
|
536
|
-
OrHash =
|
|
537
|
-
T.type_alias do
|
|
538
|
-
T.any(
|
|
539
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address,
|
|
540
|
-
ModernTreasury::Internal::AnyHash
|
|
541
|
-
)
|
|
542
|
-
end
|
|
543
|
-
|
|
544
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
545
|
-
sig { returns(T.nilable(String)) }
|
|
546
|
-
attr_accessor :country
|
|
547
|
-
|
|
548
|
-
sig { returns(T.nilable(String)) }
|
|
549
|
-
attr_accessor :line1
|
|
550
|
-
|
|
551
|
-
# Locality or City.
|
|
552
|
-
sig { returns(T.nilable(String)) }
|
|
553
|
-
attr_accessor :locality
|
|
554
|
-
|
|
555
|
-
# The postal code of the address.
|
|
556
|
-
sig { returns(T.nilable(String)) }
|
|
557
|
-
attr_accessor :postal_code
|
|
558
|
-
|
|
559
|
-
# Region or State.
|
|
560
|
-
sig { returns(T.nilable(String)) }
|
|
561
|
-
attr_accessor :region
|
|
562
|
-
|
|
563
|
-
# The types of this address.
|
|
564
|
-
sig do
|
|
565
|
-
returns(
|
|
566
|
-
T.nilable(
|
|
567
|
-
T::Array[
|
|
568
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::OrSymbol
|
|
569
|
-
]
|
|
570
|
-
)
|
|
571
|
-
)
|
|
572
|
-
end
|
|
573
|
-
attr_reader :address_types
|
|
574
|
-
|
|
575
|
-
sig do
|
|
576
|
-
params(
|
|
577
|
-
address_types:
|
|
578
|
-
T::Array[
|
|
579
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::OrSymbol
|
|
580
|
-
]
|
|
581
|
-
).void
|
|
582
|
-
end
|
|
583
|
-
attr_writer :address_types
|
|
584
|
-
|
|
585
|
-
sig { returns(T.nilable(String)) }
|
|
586
|
-
attr_accessor :line2
|
|
587
|
-
|
|
588
|
-
sig do
|
|
589
|
-
params(
|
|
590
|
-
country: T.nilable(String),
|
|
591
|
-
line1: T.nilable(String),
|
|
592
|
-
locality: T.nilable(String),
|
|
593
|
-
postal_code: T.nilable(String),
|
|
594
|
-
region: T.nilable(String),
|
|
595
|
-
address_types:
|
|
596
|
-
T::Array[
|
|
597
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::OrSymbol
|
|
598
|
-
],
|
|
599
|
-
line2: T.nilable(String)
|
|
600
|
-
).returns(T.attached_class)
|
|
601
|
-
end
|
|
602
|
-
def self.new(
|
|
603
|
-
# Country code conforms to [ISO 3166-1 alpha-2]
|
|
604
|
-
country:,
|
|
605
|
-
line1:,
|
|
606
|
-
# Locality or City.
|
|
607
|
-
locality:,
|
|
608
|
-
# The postal code of the address.
|
|
609
|
-
postal_code:,
|
|
610
|
-
# Region or State.
|
|
611
|
-
region:,
|
|
612
|
-
# The types of this address.
|
|
613
|
-
address_types: nil,
|
|
614
|
-
line2: nil
|
|
615
|
-
)
|
|
616
|
-
end
|
|
617
|
-
|
|
618
|
-
sig do
|
|
619
|
-
override.returns(
|
|
620
|
-
{
|
|
621
|
-
country: T.nilable(String),
|
|
622
|
-
line1: T.nilable(String),
|
|
623
|
-
locality: T.nilable(String),
|
|
624
|
-
postal_code: T.nilable(String),
|
|
625
|
-
region: T.nilable(String),
|
|
626
|
-
address_types:
|
|
627
|
-
T::Array[
|
|
628
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::OrSymbol
|
|
629
|
-
],
|
|
630
|
-
line2: T.nilable(String)
|
|
631
|
-
}
|
|
632
|
-
)
|
|
633
|
-
end
|
|
634
|
-
def to_hash
|
|
635
|
-
end
|
|
636
|
-
|
|
637
|
-
module AddressType
|
|
638
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
639
|
-
|
|
640
|
-
TaggedSymbol =
|
|
641
|
-
T.type_alias do
|
|
642
|
-
T.all(
|
|
643
|
-
Symbol,
|
|
644
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType
|
|
645
|
-
)
|
|
646
|
-
end
|
|
647
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
648
|
-
|
|
649
|
-
BUSINESS =
|
|
650
|
-
T.let(
|
|
651
|
-
:business,
|
|
652
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
|
653
|
-
)
|
|
654
|
-
MAILING =
|
|
655
|
-
T.let(
|
|
656
|
-
:mailing,
|
|
657
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
|
658
|
-
)
|
|
659
|
-
OTHER =
|
|
660
|
-
T.let(
|
|
661
|
-
:other,
|
|
662
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
|
663
|
-
)
|
|
664
|
-
PO_BOX =
|
|
665
|
-
T.let(
|
|
666
|
-
:po_box,
|
|
667
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
|
668
|
-
)
|
|
669
|
-
RESIDENTIAL =
|
|
670
|
-
T.let(
|
|
671
|
-
:residential,
|
|
672
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
|
673
|
-
)
|
|
674
|
-
|
|
675
|
-
sig do
|
|
676
|
-
override.returns(
|
|
677
|
-
T::Array[
|
|
678
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Address::AddressType::TaggedSymbol
|
|
679
|
-
]
|
|
680
|
-
)
|
|
681
|
-
end
|
|
682
|
-
def self.values
|
|
683
|
-
end
|
|
684
|
-
end
|
|
685
|
-
end
|
|
686
|
-
|
|
687
|
-
class Identification < ModernTreasury::Internal::Type::BaseModel
|
|
688
|
-
OrHash =
|
|
689
|
-
T.type_alias do
|
|
690
|
-
T.any(
|
|
691
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification,
|
|
692
|
-
ModernTreasury::Internal::AnyHash
|
|
693
|
-
)
|
|
694
|
-
end
|
|
695
|
-
|
|
696
|
-
# The ID number of identification document.
|
|
697
|
-
sig { returns(String) }
|
|
698
|
-
attr_accessor :id_number
|
|
699
|
-
|
|
700
|
-
# The type of ID number.
|
|
701
|
-
sig do
|
|
702
|
-
returns(
|
|
703
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::OrSymbol
|
|
704
|
-
)
|
|
705
|
-
end
|
|
706
|
-
attr_accessor :id_type
|
|
707
|
-
|
|
708
|
-
# The date when the Identification is no longer considered valid by the issuing
|
|
709
|
-
# authority.
|
|
710
|
-
sig { returns(T.nilable(Date)) }
|
|
711
|
-
attr_accessor :expiration_date
|
|
712
|
-
|
|
713
|
-
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
714
|
-
# identification
|
|
715
|
-
sig { returns(T.nilable(String)) }
|
|
716
|
-
attr_accessor :issuing_country
|
|
717
|
-
|
|
718
|
-
# The region in which the identifcation was issued.
|
|
719
|
-
sig { returns(T.nilable(String)) }
|
|
720
|
-
attr_accessor :issuing_region
|
|
721
|
-
|
|
722
|
-
sig do
|
|
723
|
-
params(
|
|
724
|
-
id_number: String,
|
|
725
|
-
id_type:
|
|
726
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::OrSymbol,
|
|
727
|
-
expiration_date: T.nilable(Date),
|
|
728
|
-
issuing_country: T.nilable(String),
|
|
729
|
-
issuing_region: T.nilable(String)
|
|
730
|
-
).returns(T.attached_class)
|
|
731
|
-
end
|
|
732
|
-
def self.new(
|
|
733
|
-
# The ID number of identification document.
|
|
734
|
-
id_number:,
|
|
735
|
-
# The type of ID number.
|
|
736
|
-
id_type:,
|
|
737
|
-
# The date when the Identification is no longer considered valid by the issuing
|
|
738
|
-
# authority.
|
|
739
|
-
expiration_date: nil,
|
|
740
|
-
# The ISO 3166-1 alpha-2 country code of the country that issued the
|
|
741
|
-
# identification
|
|
742
|
-
issuing_country: nil,
|
|
743
|
-
# The region in which the identifcation was issued.
|
|
744
|
-
issuing_region: nil
|
|
745
|
-
)
|
|
746
|
-
end
|
|
747
|
-
|
|
748
|
-
sig do
|
|
749
|
-
override.returns(
|
|
750
|
-
{
|
|
751
|
-
id_number: String,
|
|
752
|
-
id_type:
|
|
753
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::OrSymbol,
|
|
754
|
-
expiration_date: T.nilable(Date),
|
|
755
|
-
issuing_country: T.nilable(String),
|
|
756
|
-
issuing_region: T.nilable(String)
|
|
757
|
-
}
|
|
758
|
-
)
|
|
759
|
-
end
|
|
760
|
-
def to_hash
|
|
761
|
-
end
|
|
762
|
-
|
|
763
|
-
# The type of ID number.
|
|
764
|
-
module IDType
|
|
765
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
766
|
-
|
|
767
|
-
TaggedSymbol =
|
|
768
|
-
T.type_alias do
|
|
769
|
-
T.all(
|
|
770
|
-
Symbol,
|
|
771
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType
|
|
772
|
-
)
|
|
773
|
-
end
|
|
774
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
775
|
-
|
|
776
|
-
AR_CUIL =
|
|
777
|
-
T.let(
|
|
778
|
-
:ar_cuil,
|
|
779
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
780
|
-
)
|
|
781
|
-
AR_CUIT =
|
|
782
|
-
T.let(
|
|
783
|
-
:ar_cuit,
|
|
784
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
785
|
-
)
|
|
786
|
-
BR_CNPJ =
|
|
787
|
-
T.let(
|
|
788
|
-
:br_cnpj,
|
|
789
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
790
|
-
)
|
|
791
|
-
BR_CPF =
|
|
792
|
-
T.let(
|
|
793
|
-
:br_cpf,
|
|
794
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
795
|
-
)
|
|
796
|
-
CL_RUN =
|
|
797
|
-
T.let(
|
|
798
|
-
:cl_run,
|
|
799
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
800
|
-
)
|
|
801
|
-
CL_RUT =
|
|
802
|
-
T.let(
|
|
803
|
-
:cl_rut,
|
|
804
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
805
|
-
)
|
|
806
|
-
CO_CEDULAS =
|
|
807
|
-
T.let(
|
|
808
|
-
:co_cedulas,
|
|
809
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
810
|
-
)
|
|
811
|
-
CO_NIT =
|
|
812
|
-
T.let(
|
|
813
|
-
:co_nit,
|
|
814
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
815
|
-
)
|
|
816
|
-
DRIVERS_LICENSE =
|
|
817
|
-
T.let(
|
|
818
|
-
:drivers_license,
|
|
819
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
820
|
-
)
|
|
821
|
-
HN_ID =
|
|
822
|
-
T.let(
|
|
823
|
-
:hn_id,
|
|
824
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
825
|
-
)
|
|
826
|
-
HN_RTN =
|
|
827
|
-
T.let(
|
|
828
|
-
:hn_rtn,
|
|
829
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
830
|
-
)
|
|
831
|
-
IN_LEI =
|
|
832
|
-
T.let(
|
|
833
|
-
:in_lei,
|
|
834
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
835
|
-
)
|
|
836
|
-
KR_BRN =
|
|
837
|
-
T.let(
|
|
838
|
-
:kr_brn,
|
|
839
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
840
|
-
)
|
|
841
|
-
KR_CRN =
|
|
842
|
-
T.let(
|
|
843
|
-
:kr_crn,
|
|
844
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
845
|
-
)
|
|
846
|
-
KR_RRN =
|
|
847
|
-
T.let(
|
|
848
|
-
:kr_rrn,
|
|
849
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
850
|
-
)
|
|
851
|
-
PASSPORT =
|
|
852
|
-
T.let(
|
|
853
|
-
:passport,
|
|
854
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
855
|
-
)
|
|
856
|
-
SA_TIN =
|
|
857
|
-
T.let(
|
|
858
|
-
:sa_tin,
|
|
859
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
860
|
-
)
|
|
861
|
-
SA_VAT =
|
|
862
|
-
T.let(
|
|
863
|
-
:sa_vat,
|
|
864
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
865
|
-
)
|
|
866
|
-
US_EIN =
|
|
867
|
-
T.let(
|
|
868
|
-
:us_ein,
|
|
869
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
870
|
-
)
|
|
871
|
-
US_ITIN =
|
|
872
|
-
T.let(
|
|
873
|
-
:us_itin,
|
|
874
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
875
|
-
)
|
|
876
|
-
US_SSN =
|
|
877
|
-
T.let(
|
|
878
|
-
:us_ssn,
|
|
879
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
880
|
-
)
|
|
881
|
-
VN_TIN =
|
|
882
|
-
T.let(
|
|
883
|
-
:vn_tin,
|
|
884
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
885
|
-
)
|
|
886
|
-
|
|
887
|
-
sig do
|
|
888
|
-
override.returns(
|
|
889
|
-
T::Array[
|
|
890
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::Identification::IDType::TaggedSymbol
|
|
891
|
-
]
|
|
892
|
-
)
|
|
893
|
-
end
|
|
894
|
-
def self.values
|
|
895
|
-
end
|
|
896
|
-
end
|
|
897
|
-
end
|
|
898
|
-
|
|
899
|
-
# The type of legal entity.
|
|
900
|
-
module LegalEntityType
|
|
901
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
902
|
-
|
|
903
|
-
TaggedSymbol =
|
|
904
|
-
T.type_alias do
|
|
905
|
-
T.all(
|
|
906
|
-
Symbol,
|
|
907
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType
|
|
908
|
-
)
|
|
909
|
-
end
|
|
910
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
911
|
-
|
|
912
|
-
BUSINESS =
|
|
913
|
-
T.let(
|
|
914
|
-
:business,
|
|
915
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType::TaggedSymbol
|
|
916
|
-
)
|
|
917
|
-
INDIVIDUAL =
|
|
918
|
-
T.let(
|
|
919
|
-
:individual,
|
|
920
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType::TaggedSymbol
|
|
921
|
-
)
|
|
922
|
-
|
|
923
|
-
sig do
|
|
924
|
-
override.returns(
|
|
925
|
-
T::Array[
|
|
926
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalEntityType::TaggedSymbol
|
|
927
|
-
]
|
|
928
|
-
)
|
|
929
|
-
end
|
|
930
|
-
def self.values
|
|
931
|
-
end
|
|
932
|
-
end
|
|
933
|
-
|
|
934
|
-
# The business's legal structure.
|
|
935
|
-
module LegalStructure
|
|
936
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
937
|
-
|
|
938
|
-
TaggedSymbol =
|
|
939
|
-
T.type_alias do
|
|
940
|
-
T.all(
|
|
941
|
-
Symbol,
|
|
942
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure
|
|
943
|
-
)
|
|
944
|
-
end
|
|
945
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
946
|
-
|
|
947
|
-
CORPORATION =
|
|
948
|
-
T.let(
|
|
949
|
-
:corporation,
|
|
950
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::TaggedSymbol
|
|
951
|
-
)
|
|
952
|
-
LLC =
|
|
953
|
-
T.let(
|
|
954
|
-
:llc,
|
|
955
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::TaggedSymbol
|
|
956
|
-
)
|
|
957
|
-
NON_PROFIT =
|
|
958
|
-
T.let(
|
|
959
|
-
:non_profit,
|
|
960
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::TaggedSymbol
|
|
961
|
-
)
|
|
962
|
-
PARTNERSHIP =
|
|
963
|
-
T.let(
|
|
964
|
-
:partnership,
|
|
965
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::TaggedSymbol
|
|
966
|
-
)
|
|
967
|
-
SOLE_PROPRIETORSHIP =
|
|
968
|
-
T.let(
|
|
969
|
-
:sole_proprietorship,
|
|
970
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::TaggedSymbol
|
|
971
|
-
)
|
|
972
|
-
TRUST =
|
|
973
|
-
T.let(
|
|
974
|
-
:trust,
|
|
975
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::TaggedSymbol
|
|
976
|
-
)
|
|
977
|
-
|
|
978
|
-
sig do
|
|
979
|
-
override.returns(
|
|
980
|
-
T::Array[
|
|
981
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::LegalStructure::TaggedSymbol
|
|
982
|
-
]
|
|
983
|
-
)
|
|
984
|
-
end
|
|
985
|
-
def self.values
|
|
986
|
-
end
|
|
987
|
-
end
|
|
988
|
-
|
|
989
|
-
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
990
|
-
OrHash =
|
|
991
|
-
T.type_alias do
|
|
992
|
-
T.any(
|
|
993
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::PhoneNumber,
|
|
994
|
-
ModernTreasury::Internal::AnyHash
|
|
995
|
-
)
|
|
996
|
-
end
|
|
997
|
-
|
|
998
|
-
sig { returns(T.nilable(String)) }
|
|
999
|
-
attr_reader :phone_number
|
|
1000
|
-
|
|
1001
|
-
sig { params(phone_number: String).void }
|
|
1002
|
-
attr_writer :phone_number
|
|
1003
|
-
|
|
1004
|
-
# A list of phone numbers in E.164 format.
|
|
1005
|
-
sig { params(phone_number: String).returns(T.attached_class) }
|
|
1006
|
-
def self.new(phone_number: nil)
|
|
1007
|
-
end
|
|
1008
|
-
|
|
1009
|
-
sig { override.returns({ phone_number: String }) }
|
|
1010
|
-
def to_hash
|
|
1011
|
-
end
|
|
1012
|
-
end
|
|
1013
|
-
|
|
1014
|
-
# The risk rating of the legal entity. One of low, medium, high.
|
|
1015
|
-
module RiskRating
|
|
1016
|
-
extend ModernTreasury::Internal::Type::Enum
|
|
1017
|
-
|
|
1018
|
-
TaggedSymbol =
|
|
1019
|
-
T.type_alias do
|
|
1020
|
-
T.all(
|
|
1021
|
-
Symbol,
|
|
1022
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating
|
|
1023
|
-
)
|
|
1024
|
-
end
|
|
1025
|
-
OrSymbol = T.type_alias { T.any(Symbol, String) }
|
|
1026
|
-
|
|
1027
|
-
LOW =
|
|
1028
|
-
T.let(
|
|
1029
|
-
:low,
|
|
1030
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating::TaggedSymbol
|
|
1031
|
-
)
|
|
1032
|
-
MEDIUM =
|
|
1033
|
-
T.let(
|
|
1034
|
-
:medium,
|
|
1035
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating::TaggedSymbol
|
|
1036
|
-
)
|
|
1037
|
-
HIGH =
|
|
1038
|
-
T.let(
|
|
1039
|
-
:high,
|
|
1040
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating::TaggedSymbol
|
|
1041
|
-
)
|
|
1042
|
-
|
|
1043
|
-
sig do
|
|
1044
|
-
override.returns(
|
|
1045
|
-
T::Array[
|
|
1046
|
-
ModernTreasury::LegalEntityAssociationCreateParams::ChildLegalEntity::RiskRating::TaggedSymbol
|
|
1047
|
-
]
|
|
1048
|
-
)
|
|
1049
|
-
end
|
|
1050
|
-
def self.values
|
|
1051
|
-
end
|
|
1052
|
-
end
|
|
1053
|
-
end
|
|
1054
146
|
end
|
|
1055
147
|
end
|
|
1056
148
|
end
|