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