modern_treasury 0.27.0 → 0.29.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 +63 -0
- data/README.md +6 -6
- data/lib/modern_treasury/client.rb +14 -0
- data/lib/modern_treasury/internal/transport/base_client.rb +5 -0
- data/lib/modern_treasury/models/address.rb +6 -4
- data/lib/modern_treasury/models/address_request.rb +9 -4
- data/lib/modern_treasury/models/bulk_request_create_params.rb +104 -64
- data/lib/modern_treasury/models/child_legal_entity.rb +142 -14
- data/lib/modern_treasury/models/child_legal_entity_create.rb +48 -8
- data/lib/modern_treasury/models/connection_legal_entity_create_params.rb +52 -8
- data/lib/modern_treasury/models/counterparty_collect_account_params.rb +0 -2
- data/lib/modern_treasury/models/counterparty_create_params.rb +52 -17
- data/lib/modern_treasury/models/currency.rb +0 -2
- data/lib/modern_treasury/models/document.rb +1 -73
- data/lib/modern_treasury/models/document_create_params.rb +11 -11
- data/lib/modern_treasury/models/document_list_params.rb +11 -11
- data/lib/modern_treasury/models/expected_payment.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_create_params.rb +2 -3
- data/lib/modern_treasury/models/expected_payment_list_params.rb +3 -12
- data/lib/modern_treasury/models/expected_payment_type.rb +1 -9
- data/lib/modern_treasury/models/expected_payment_update_params.rb +2 -3
- data/lib/modern_treasury/models/external_account_create_params.rb +0 -9
- data/lib/modern_treasury/models/external_account_verify_params.rb +0 -7
- data/lib/modern_treasury/models/external_account_verify_response.rb +0 -7
- data/lib/modern_treasury/models/hold_list_params.rb +8 -11
- data/lib/modern_treasury/models/identification_create_request.rb +77 -0
- data/lib/modern_treasury/models/incoming_payment_detail.rb +3 -9
- data/lib/modern_treasury/models/incoming_payment_detail_create_async_params.rb +0 -2
- data/lib/modern_treasury/models/incoming_payment_detail_list_params.rb +3 -7
- data/lib/modern_treasury/models/internal_account.rb +12 -8
- data/lib/modern_treasury/models/internal_account_create_params.rb +66 -34
- data/lib/modern_treasury/models/internal_account_list_params.rb +0 -7
- data/lib/modern_treasury/models/internal_account_update_account_capability_response.rb +0 -7
- data/lib/modern_treasury/models/internal_accounts/balance_report.rb +15 -6
- data/lib/modern_treasury/models/internal_accounts/balance_report_create_params.rb +21 -10
- data/lib/modern_treasury/models/invoice.rb +33 -18
- data/lib/modern_treasury/models/invoice_create_params.rb +32 -16
- data/lib/modern_treasury/models/invoice_update_params.rb +32 -16
- data/lib/modern_treasury/models/ledger_balance.rb +22 -1
- data/lib/modern_treasury/models/ledger_entry.rb +10 -1
- data/lib/modern_treasury/models/ledger_entry_create_request.rb +20 -9
- data/lib/modern_treasury/models/ledger_transaction_create_partial_post_params.rb +70 -9
- data/lib/modern_treasury/models/ledger_transactions/ledger_transaction_version.rb +10 -1
- data/lib/modern_treasury/models/legal_entity.rb +142 -14
- data/lib/modern_treasury/models/legal_entity_address_create_request.rb +20 -5
- data/lib/modern_treasury/models/legal_entity_association.rb +2 -3
- data/lib/modern_treasury/models/legal_entity_create_params.rb +47 -8
- data/lib/modern_treasury/models/legal_entity_update_params.rb +47 -8
- data/lib/modern_treasury/models/legal_entity_wealth_employment_detail.rb +3 -2
- data/lib/modern_treasury/models/payment_order.rb +6 -9
- data/lib/modern_treasury/models/payment_order_create_async_params.rb +18 -21
- data/lib/modern_treasury/models/payment_order_create_params.rb +29 -32
- data/lib/modern_treasury/models/payment_order_list_params.rb +0 -7
- data/lib/modern_treasury/models/payment_order_subtype.rb +2 -3
- data/lib/modern_treasury/models/payment_order_type.rb +2 -10
- data/lib/modern_treasury/models/payment_order_update_params.rb +4 -14
- data/lib/modern_treasury/models/payment_reference.rb +2 -4
- data/lib/modern_treasury/models/reconciliation_rule.rb +3 -12
- data/lib/modern_treasury/models/return_object.rb +8 -7
- data/lib/modern_treasury/models/routing_detail.rb +0 -9
- data/lib/modern_treasury/models/routing_detail_create_params.rb +0 -9
- data/lib/modern_treasury/models/routing_number_lookup_request.rb +0 -7
- data/lib/modern_treasury/models/third_party_verification.rb +2 -0
- data/lib/modern_treasury/models/transaction.rb +17 -15
- data/lib/modern_treasury/models/transaction_create_params.rb +23 -21
- data/lib/modern_treasury/models/validation_validate_routing_number_params.rb +0 -2
- data/lib/modern_treasury/models/virtual_account_create_params.rb +0 -9
- data/lib/modern_treasury/models/wealth_and_employment_details.rb +3 -2
- data/lib/modern_treasury/resources/bulk_requests.rb +1 -1
- data/lib/modern_treasury/resources/expected_payments.rb +3 -3
- data/lib/modern_treasury/resources/holds.rb +3 -3
- data/lib/modern_treasury/resources/incoming_payment_details.rb +1 -1
- data/lib/modern_treasury/resources/internal_accounts.rb +10 -6
- data/lib/modern_treasury/resources/invoices.rb +2 -2
- data/lib/modern_treasury/resources/legal_entities.rb +11 -7
- data/lib/modern_treasury/resources/payment_orders.rb +5 -5
- data/lib/modern_treasury/resources/transactions.rb +5 -3
- data/lib/modern_treasury/version.rb +1 -1
- data/rbi/modern_treasury/models/address.rbi +8 -4
- data/rbi/modern_treasury/models/address_request.rbi +8 -4
- data/rbi/modern_treasury/models/bulk_request_create_params.rbi +147 -178
- data/rbi/modern_treasury/models/child_legal_entity.rbi +487 -18
- data/rbi/modern_treasury/models/child_legal_entity_create.rbi +85 -9
- data/rbi/modern_treasury/models/connection_legal_entity_create_params.rbi +91 -9
- data/rbi/modern_treasury/models/counterparty_collect_account_params.rbi +0 -10
- data/rbi/modern_treasury/models/counterparty_create_params.rbi +91 -54
- data/rbi/modern_treasury/models/currency.rbi +0 -2
- data/rbi/modern_treasury/models/document.rbi +0 -87
- data/rbi/modern_treasury/models/document_create_params.rbi +22 -22
- data/rbi/modern_treasury/models/document_list_params.rbi +22 -22
- data/rbi/modern_treasury/models/expected_payment.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_create_params.rbi +2 -4
- data/rbi/modern_treasury/models/expected_payment_list_params.rbi +3 -41
- data/rbi/modern_treasury/models/expected_payment_type.rbi +1 -12
- data/rbi/modern_treasury/models/expected_payment_update_params.rbi +2 -4
- data/rbi/modern_treasury/models/external_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/external_account_verify_params.rbi +0 -35
- data/rbi/modern_treasury/models/external_account_verify_response.rbi +0 -35
- data/rbi/modern_treasury/models/hold_list_params.rbi +8 -13
- data/rbi/modern_treasury/models/identification_create_request.rbi +385 -0
- data/rbi/modern_treasury/models/incoming_payment_detail.rbi +3 -26
- data/rbi/modern_treasury/models/incoming_payment_detail_create_async_params.rbi +0 -10
- data/rbi/modern_treasury/models/incoming_payment_detail_list_params.rbi +3 -16
- data/rbi/modern_treasury/models/internal_account.rbi +14 -35
- data/rbi/modern_treasury/models/internal_account_create_params.rbi +131 -63
- data/rbi/modern_treasury/models/internal_account_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/internal_account_update_account_capability_response.rbi +0 -35
- data/rbi/modern_treasury/models/internal_accounts/balance_report.rbi +17 -7
- data/rbi/modern_treasury/models/internal_accounts/balance_report_create_params.rbi +32 -15
- data/rbi/modern_treasury/models/invoice.rbi +30 -18
- data/rbi/modern_treasury/models/invoice_create_params.rbi +28 -18
- data/rbi/modern_treasury/models/invoice_update_params.rbi +28 -18
- data/rbi/modern_treasury/models/ledger_balance.rbi +21 -3
- data/rbi/modern_treasury/models/ledger_entry.rbi +10 -0
- data/rbi/modern_treasury/models/ledger_entry_create_request.rbi +27 -10
- data/rbi/modern_treasury/models/ledger_transaction_create_partial_post_params.rbi +90 -13
- data/rbi/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbi +10 -0
- data/rbi/modern_treasury/models/legal_entity.rbi +486 -18
- data/rbi/modern_treasury/models/legal_entity_address_create_request.rbi +26 -7
- data/rbi/modern_treasury/models/legal_entity_association.rbi +2 -4
- data/rbi/modern_treasury/models/legal_entity_create_params.rbi +85 -9
- data/rbi/modern_treasury/models/legal_entity_update_params.rbi +85 -9
- data/rbi/modern_treasury/models/legal_entity_wealth_employment_detail.rbi +4 -2
- data/rbi/modern_treasury/models/payment_order.rbi +16 -28
- data/rbi/modern_treasury/models/payment_order_create_async_params.rbi +18 -61
- data/rbi/modern_treasury/models/payment_order_create_params.rbi +40 -83
- data/rbi/modern_treasury/models/payment_order_list_params.rbi +0 -35
- data/rbi/modern_treasury/models/payment_order_subtype.rbi +3 -4
- data/rbi/modern_treasury/models/payment_order_type.rbi +2 -11
- data/rbi/modern_treasury/models/payment_order_update_params.rbi +6 -53
- data/rbi/modern_treasury/models/payment_reference.rbi +10 -20
- data/rbi/modern_treasury/models/reconciliation_rule.rbi +3 -29
- data/rbi/modern_treasury/models/return_object.rbi +19 -25
- data/rbi/modern_treasury/models/routing_detail.rbi +0 -42
- data/rbi/modern_treasury/models/routing_detail_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/routing_number_lookup_request.rbi +0 -35
- data/rbi/modern_treasury/models/third_party_verification.rbi +10 -0
- data/rbi/modern_treasury/models/transaction.rbi +24 -24
- data/rbi/modern_treasury/models/transaction_create_params.rbi +33 -52
- data/rbi/modern_treasury/models/validation_validate_routing_number_params.rbi +0 -10
- data/rbi/modern_treasury/models/virtual_account_create_params.rbi +0 -45
- data/rbi/modern_treasury/models/wealth_and_employment_details.rbi +4 -2
- data/rbi/modern_treasury/resources/bulk_requests.rbi +2 -1
- data/rbi/modern_treasury/resources/expected_payments.rbi +3 -6
- data/rbi/modern_treasury/resources/holds.rbi +3 -5
- data/rbi/modern_treasury/resources/incoming_payment_details.rbi +1 -2
- data/rbi/modern_treasury/resources/internal_accounts.rbi +21 -8
- data/rbi/modern_treasury/resources/invoices.rbi +4 -6
- data/rbi/modern_treasury/resources/legal_entities.rbi +21 -9
- data/rbi/modern_treasury/resources/payment_orders.rbi +11 -14
- data/rbi/modern_treasury/resources/transactions.rbi +11 -7
- data/sig/modern_treasury/models/bulk_request_create_params.rbs +63 -60
- data/sig/modern_treasury/models/child_legal_entity.rbs +183 -2
- data/sig/modern_treasury/models/child_legal_entity_create.rbs +21 -0
- data/sig/modern_treasury/models/connection_legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/counterparty_collect_account_params.rbs +0 -4
- data/sig/modern_treasury/models/counterparty_create_params.rbs +21 -18
- data/sig/modern_treasury/models/currency.rbs +0 -4
- data/sig/modern_treasury/models/document.rbs +0 -57
- data/sig/modern_treasury/models/document_create_params.rbs +22 -22
- data/sig/modern_treasury/models/document_list_params.rbs +22 -22
- data/sig/modern_treasury/models/expected_payment_list_params.rbs +0 -14
- data/sig/modern_treasury/models/expected_payment_type.rbs +0 -14
- data/sig/modern_treasury/models/external_account_create_params.rbs +0 -18
- data/sig/modern_treasury/models/external_account_verify_params.rbs +0 -14
- data/sig/modern_treasury/models/external_account_verify_response.rbs +0 -14
- data/sig/modern_treasury/models/identification_create_request.rbs +154 -0
- data/sig/modern_treasury/models/incoming_payment_detail.rbs +0 -8
- data/sig/modern_treasury/models/incoming_payment_detail_create_async_params.rbs +0 -4
- data/sig/modern_treasury/models/incoming_payment_detail_list_params.rbs +0 -4
- data/sig/modern_treasury/models/internal_account.rbs +5 -14
- data/sig/modern_treasury/models/internal_account_create_params.rbs +43 -26
- data/sig/modern_treasury/models/internal_account_list_params.rbs +0 -14
- data/sig/modern_treasury/models/internal_account_update_account_capability_response.rbs +0 -14
- data/sig/modern_treasury/models/internal_accounts/balance_report.rbs +9 -4
- data/sig/modern_treasury/models/internal_accounts/balance_report_create_params.rbs +17 -8
- data/sig/modern_treasury/models/ledger_balance.rbs +18 -3
- data/sig/modern_treasury/models/ledger_entry.rbs +5 -0
- data/sig/modern_treasury/models/ledger_entry_create_request.rbs +14 -5
- data/sig/modern_treasury/models/ledger_transaction_create_partial_post_params.rbs +42 -8
- data/sig/modern_treasury/models/ledger_transactions/ledger_transaction_version.rbs +5 -0
- data/sig/modern_treasury/models/legal_entity.rbs +183 -2
- data/sig/modern_treasury/models/legal_entity_address_create_request.rbs +10 -3
- data/sig/modern_treasury/models/legal_entity_create_params.rbs +21 -0
- data/sig/modern_treasury/models/legal_entity_update_params.rbs +21 -0
- data/sig/modern_treasury/models/payment_order.rbs +4 -8
- data/sig/modern_treasury/models/payment_order_create_async_params.rbs +5 -23
- data/sig/modern_treasury/models/payment_order_create_params.rbs +27 -45
- data/sig/modern_treasury/models/payment_order_list_params.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_subtype.rbs +4 -6
- data/sig/modern_treasury/models/payment_order_type.rbs +0 -14
- data/sig/modern_treasury/models/payment_order_update_params.rbs +0 -18
- data/sig/modern_treasury/models/payment_reference.rbs +4 -8
- data/sig/modern_treasury/models/reconciliation_rule.rbs +0 -14
- data/sig/modern_treasury/models/return_object.rbs +12 -10
- data/sig/modern_treasury/models/routing_detail.rbs +0 -18
- data/sig/modern_treasury/models/routing_detail_create_params.rbs +0 -18
- data/sig/modern_treasury/models/routing_number_lookup_request.rbs +0 -14
- data/sig/modern_treasury/models/third_party_verification.rbs +4 -1
- data/sig/modern_treasury/models/transaction.rbs +7 -16
- data/sig/modern_treasury/models/transaction_create_params.rbs +14 -19
- data/sig/modern_treasury/models/validation_validate_routing_number_params.rbs +0 -4
- data/sig/modern_treasury/models/virtual_account_create_params.rbs +0 -18
- data/sig/modern_treasury/resources/internal_accounts.rbs +4 -2
- data/sig/modern_treasury/resources/legal_entities.rbs +2 -0
- data/sig/modern_treasury/resources/payment_orders.rbs +2 -2
- data/sig/modern_treasury/resources/transactions.rbs +2 -1
- metadata +2 -2
|
@@ -45,8 +45,8 @@ module ModernTreasury
|
|
|
45
45
|
required :compliance_details, ModernTreasury::Internal::Type::Unknown, nil?: true
|
|
46
46
|
|
|
47
47
|
# @!attribute country_of_incorporation
|
|
48
|
-
# The country
|
|
49
|
-
#
|
|
48
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
49
|
+
# code (e.g. US).
|
|
50
50
|
#
|
|
51
51
|
# @return [String, nil]
|
|
52
52
|
required :country_of_incorporation, String, nil?: true
|
|
@@ -185,8 +185,8 @@ module ModernTreasury
|
|
|
185
185
|
required :object, String
|
|
186
186
|
|
|
187
187
|
# @!attribute operating_jurisdictions
|
|
188
|
-
# A list of countries where the business operates
|
|
189
|
-
# codes).
|
|
188
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
189
|
+
# codes (e.g. ["US", "CA"]).
|
|
190
190
|
#
|
|
191
191
|
# @return [Array<String>]
|
|
192
192
|
required :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
@@ -254,6 +254,12 @@ module ModernTreasury
|
|
|
254
254
|
# @return [String, nil]
|
|
255
255
|
required :suffix, String, nil?: true
|
|
256
256
|
|
|
257
|
+
# @!attribute terms_of_use
|
|
258
|
+
# Acceptance of terms of use by the legal entity.
|
|
259
|
+
#
|
|
260
|
+
# @return [ModernTreasury::Models::ChildLegalEntity::TermsOfUse, nil]
|
|
261
|
+
required :terms_of_use, -> { ModernTreasury::ChildLegalEntity::TermsOfUse }, nil?: true
|
|
262
|
+
|
|
257
263
|
# @!attribute third_party_verification
|
|
258
264
|
# @deprecated
|
|
259
265
|
#
|
|
@@ -293,7 +299,7 @@ module ModernTreasury
|
|
|
293
299
|
# @return [String, nil]
|
|
294
300
|
required :website, String, nil?: true
|
|
295
301
|
|
|
296
|
-
# @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:)
|
|
302
|
+
# @!method initialize(id:, addresses:, bank_settings:, business_description:, business_name:, citizenship_country:, compliance_details:, country_of_incorporation:, created_at:, date_formed:, date_of_birth:, discarded_at:, documents:, doing_business_as_names:, email:, expected_activity_volume:, external_id:, first_name:, identifications:, industry_classifications:, intended_use:, last_name:, legal_entity_associations:, legal_entity_type:, legal_structure:, listed_exchange:, live_mode:, metadata:, middle_name:, object:, operating_jurisdictions:, phone_numbers:, politically_exposed_person:, preferred_name:, prefix:, primary_social_media_sites:, regulators:, risk_rating:, service_provider_legal_entity_id:, status:, suffix:, terms_of_use:, third_party_verification:, third_party_verifications:, ticker_symbol:, updated_at:, wealth_and_employment_details:, website:)
|
|
297
303
|
# Some parameter documentations has been truncated, see
|
|
298
304
|
# {ModernTreasury::Models::ChildLegalEntity} for more details.
|
|
299
305
|
#
|
|
@@ -311,7 +317,7 @@ module ModernTreasury
|
|
|
311
317
|
#
|
|
312
318
|
# @param compliance_details [Object, nil]
|
|
313
319
|
#
|
|
314
|
-
# @param country_of_incorporation [String, nil] The country
|
|
320
|
+
# @param country_of_incorporation [String, nil] The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
315
321
|
#
|
|
316
322
|
# @param created_at [Time]
|
|
317
323
|
#
|
|
@@ -357,7 +363,7 @@ module ModernTreasury
|
|
|
357
363
|
#
|
|
358
364
|
# @param object [String]
|
|
359
365
|
#
|
|
360
|
-
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates
|
|
366
|
+
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates, as ISO 3166-1 alpha-2 country c
|
|
361
367
|
#
|
|
362
368
|
# @param phone_numbers [Array<ModernTreasury::Models::ChildLegalEntity::PhoneNumber>]
|
|
363
369
|
#
|
|
@@ -379,6 +385,8 @@ module ModernTreasury
|
|
|
379
385
|
#
|
|
380
386
|
# @param suffix [String, nil] An individual's suffix.
|
|
381
387
|
#
|
|
388
|
+
# @param terms_of_use [ModernTreasury::Models::ChildLegalEntity::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
|
|
389
|
+
#
|
|
382
390
|
# @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
|
|
383
391
|
#
|
|
384
392
|
# @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
|
|
@@ -438,7 +446,8 @@ module ModernTreasury
|
|
|
438
446
|
required :live_mode, ModernTreasury::Internal::Type::Boolean
|
|
439
447
|
|
|
440
448
|
# @!attribute locality
|
|
441
|
-
# Locality or City.
|
|
449
|
+
# Locality or City. Use the full city name rather than an abbreviation (e.g. San
|
|
450
|
+
# Francisco).
|
|
442
451
|
#
|
|
443
452
|
# @return [String, nil]
|
|
444
453
|
required :locality, String, nil?: true
|
|
@@ -454,8 +463,16 @@ module ModernTreasury
|
|
|
454
463
|
# @return [String, nil]
|
|
455
464
|
required :postal_code, String, nil?: true
|
|
456
465
|
|
|
466
|
+
# @!attribute primary
|
|
467
|
+
# Whether this address is the primary address for the legal entity. Optional; when
|
|
468
|
+
# omitted it is inferred from the address types.
|
|
469
|
+
#
|
|
470
|
+
# @return [Boolean, nil]
|
|
471
|
+
required :primary, ModernTreasury::Internal::Type::Boolean, nil?: true
|
|
472
|
+
|
|
457
473
|
# @!attribute region
|
|
458
|
-
# Region or State.
|
|
474
|
+
# Region or State. This field is free-form; for US states, we recommend a
|
|
475
|
+
# two-letter code (e.g. CA). Full state names are also accepted.
|
|
459
476
|
#
|
|
460
477
|
# @return [String, nil]
|
|
461
478
|
required :region, String, nil?: true
|
|
@@ -465,7 +482,7 @@ module ModernTreasury
|
|
|
465
482
|
# @return [Time]
|
|
466
483
|
required :updated_at, Time
|
|
467
484
|
|
|
468
|
-
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, region:, updated_at:)
|
|
485
|
+
# @!method initialize(id:, address_types:, country:, created_at:, discarded_at:, line1:, line2:, live_mode:, locality:, object:, postal_code:, primary:, region:, updated_at:)
|
|
469
486
|
# Some parameter documentations has been truncated, see
|
|
470
487
|
# {ModernTreasury::Models::ChildLegalEntity::Address} for more details.
|
|
471
488
|
#
|
|
@@ -485,13 +502,15 @@ module ModernTreasury
|
|
|
485
502
|
#
|
|
486
503
|
# @param live_mode [Boolean] This field will be true if this object exists in the live environment or false i
|
|
487
504
|
#
|
|
488
|
-
# @param locality [String, nil] Locality or City.
|
|
505
|
+
# @param locality [String, nil] Locality or City. Use the full city name rather than an abbreviation (e.g. San F
|
|
489
506
|
#
|
|
490
507
|
# @param object [String]
|
|
491
508
|
#
|
|
492
509
|
# @param postal_code [String, nil] The postal code of the address.
|
|
493
510
|
#
|
|
494
|
-
# @param
|
|
511
|
+
# @param primary [Boolean, nil] Whether this address is the primary address for the legal entity. Optional; when
|
|
512
|
+
#
|
|
513
|
+
# @param region [String, nil] Region or State. This field is free-form; for US states, we recommend a two-lett
|
|
495
514
|
#
|
|
496
515
|
# @param updated_at [Time]
|
|
497
516
|
|
|
@@ -499,6 +518,7 @@ module ModernTreasury
|
|
|
499
518
|
extend ModernTreasury::Internal::Type::Enum
|
|
500
519
|
|
|
501
520
|
BUSINESS = :business
|
|
521
|
+
BUSINESS_PHYSICAL = :business_physical
|
|
502
522
|
BUSINESS_REGISTERED = :business_registered
|
|
503
523
|
MAILING = :mailing
|
|
504
524
|
OTHER = :other
|
|
@@ -608,27 +628,104 @@ module ModernTreasury
|
|
|
608
628
|
|
|
609
629
|
AR_CUIL = :ar_cuil
|
|
610
630
|
AR_CUIT = :ar_cuit
|
|
631
|
+
AT_ATIN = :at_atin
|
|
632
|
+
AT_VAT = :at_vat
|
|
633
|
+
AU_ABN = :au_abn
|
|
634
|
+
AU_TFN = :au_tfn
|
|
635
|
+
BE_ENT = :be_ent
|
|
636
|
+
BE_NRN = :be_nrn
|
|
611
637
|
BR_CNPJ = :br_cnpj
|
|
612
638
|
BR_CPF = :br_cpf
|
|
639
|
+
CA_BN = :ca_bn
|
|
613
640
|
CA_SIN = :ca_sin
|
|
641
|
+
CH_AHV = :ch_ahv
|
|
642
|
+
CH_UID = :ch_uid
|
|
614
643
|
CL_RUN = :cl_run
|
|
615
644
|
CL_RUT = :cl_rut
|
|
616
645
|
CO_CEDULAS = :co_cedulas
|
|
617
646
|
CO_NIT = :co_nit
|
|
647
|
+
CY_TIN = :cy_tin
|
|
648
|
+
CZ_ICO = :cz_ico
|
|
649
|
+
CZ_RC = :cz_rc
|
|
650
|
+
DE_STID = :de_stid
|
|
651
|
+
DE_STNR = :de_stnr
|
|
652
|
+
DE_VAT = :de_vat
|
|
653
|
+
DK_CPR = :dk_cpr
|
|
654
|
+
DK_CVR = :dk_cvr
|
|
618
655
|
DRIVERS_LICENSE = :drivers_license
|
|
656
|
+
EE_IK = :ee_ik
|
|
657
|
+
EE_RK = :ee_rk
|
|
658
|
+
ES_NIE = :es_nie
|
|
659
|
+
ES_NIF = :es_nif
|
|
660
|
+
FI_HETU = :fi_hetu
|
|
661
|
+
FI_YTJ = :fi_ytj
|
|
662
|
+
FR_NIF = :fr_nif
|
|
663
|
+
FR_SIREN = :fr_siren
|
|
664
|
+
FR_VAT = :fr_vat
|
|
665
|
+
GB_NINO = :gb_nino
|
|
666
|
+
GB_UTR = :gb_utr
|
|
667
|
+
GB_VAT = :gb_vat
|
|
668
|
+
GENERIC_INTERNATIONAL = :generic_international
|
|
669
|
+
GR_VAT = :gr_vat
|
|
670
|
+
HK_BRN = :hk_brn
|
|
671
|
+
HK_HKID = :hk_hkid
|
|
619
672
|
HN_ID = :hn_id
|
|
620
673
|
HN_RTN = :hn_rtn
|
|
674
|
+
HR_OIB = :hr_oib
|
|
675
|
+
HU_ADJ = :hu_adj
|
|
676
|
+
HU_ANUM = :hu_anum
|
|
621
677
|
IE_PPS = :ie_pps
|
|
678
|
+
IE_TRN = :ie_trn
|
|
622
679
|
IN_LEI = :in_lei
|
|
680
|
+
IS_KNT = :is_knt
|
|
681
|
+
IT_CF = :it_cf
|
|
682
|
+
IT_PIVA = :it_piva
|
|
683
|
+
JP_HB = :jp_hb
|
|
684
|
+
JP_MN = :jp_mn
|
|
623
685
|
KR_BRN = :kr_brn
|
|
624
686
|
KR_CRN = :kr_crn
|
|
625
687
|
KR_RRN = :kr_rrn
|
|
688
|
+
LI_PEID = :li_peid
|
|
689
|
+
LT_AK = :lt_ak
|
|
690
|
+
LT_JAK = :lt_jak
|
|
691
|
+
LU_MTC = :lu_mtc
|
|
692
|
+
LU_VAT = :lu_vat
|
|
693
|
+
LV_PK = :lv_pk
|
|
694
|
+
LV_RN = :lv_rn
|
|
695
|
+
MT_TIN = :mt_tin
|
|
696
|
+
MT_VAT = :mt_vat
|
|
697
|
+
MX_CURP = :mx_curp
|
|
698
|
+
MX_INE = :mx_ine
|
|
699
|
+
MX_RFC = :mx_rfc
|
|
700
|
+
NATIONAL_ID = :national_id
|
|
701
|
+
NL_BSN = :nl_bsn
|
|
702
|
+
NL_BTW = :nl_btw
|
|
703
|
+
NL_RSIN = :nl_rsin
|
|
704
|
+
NO_FDN = :no_fdn
|
|
705
|
+
NO_MVA = :no_mva
|
|
706
|
+
NO_ORGNR = :no_orgnr
|
|
707
|
+
NZ_IRD = :nz_ird
|
|
626
708
|
PASSPORT = :passport
|
|
709
|
+
PL_NIP = :pl_nip
|
|
710
|
+
PL_PESEL = :pl_pesel
|
|
711
|
+
PT_NIF = :pt_nif
|
|
712
|
+
RO_CNP = :ro_cnp
|
|
713
|
+
RO_CUI = :ro_cui
|
|
627
714
|
SA_TIN = :sa_tin
|
|
628
715
|
SA_VAT = :sa_vat
|
|
716
|
+
SE_ORGNR = :se_orgnr
|
|
717
|
+
SE_PNMR = :se_pnmr
|
|
718
|
+
SG_FIN = :sg_fin
|
|
719
|
+
SG_NRIC = :sg_nric
|
|
720
|
+
SG_UEN = :sg_uen
|
|
721
|
+
SI_DAV = :si_dav
|
|
722
|
+
SI_TIN = :si_tin
|
|
723
|
+
SK_ICO = :sk_ico
|
|
724
|
+
SK_RC = :sk_rc
|
|
629
725
|
US_EIN = :us_ein
|
|
630
726
|
US_ITIN = :us_itin
|
|
631
727
|
US_SSN = :us_ssn
|
|
728
|
+
UY_RUT = :uy_rut
|
|
632
729
|
VN_TIN = :vn_tin
|
|
633
730
|
|
|
634
731
|
# @!method self.values
|
|
@@ -644,7 +741,6 @@ module ModernTreasury
|
|
|
644
741
|
|
|
645
742
|
BUSINESS = :business
|
|
646
743
|
INDIVIDUAL = :individual
|
|
647
|
-
JOINT = :joint
|
|
648
744
|
|
|
649
745
|
# @!method self.values
|
|
650
746
|
# @return [Array<Symbol>]
|
|
@@ -669,14 +765,20 @@ module ModernTreasury
|
|
|
669
765
|
|
|
670
766
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
671
767
|
# @!attribute phone_number
|
|
768
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
769
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
770
|
+
# +12025551234.
|
|
672
771
|
#
|
|
673
772
|
# @return [String, nil]
|
|
674
773
|
optional :phone_number, String
|
|
675
774
|
|
|
676
775
|
# @!method initialize(phone_number: nil)
|
|
776
|
+
# Some parameter documentations has been truncated, see
|
|
777
|
+
# {ModernTreasury::Models::ChildLegalEntity::PhoneNumber} for more details.
|
|
778
|
+
#
|
|
677
779
|
# A list of phone numbers in E.164 format.
|
|
678
780
|
#
|
|
679
|
-
# @param phone_number [String]
|
|
781
|
+
# @param phone_number [String] A phone number in E.164 format. This format is strictly validated: include a lea
|
|
680
782
|
end
|
|
681
783
|
|
|
682
784
|
class Regulator < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -739,6 +841,32 @@ module ModernTreasury
|
|
|
739
841
|
# @!method self.values
|
|
740
842
|
# @return [Array<Symbol>]
|
|
741
843
|
end
|
|
844
|
+
|
|
845
|
+
# @see ModernTreasury::Models::ChildLegalEntity#terms_of_use
|
|
846
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
847
|
+
# @!attribute accepted_at
|
|
848
|
+
# The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
849
|
+
#
|
|
850
|
+
# @return [Time, nil]
|
|
851
|
+
optional :accepted_at, Time
|
|
852
|
+
|
|
853
|
+
# @!attribute ip_address
|
|
854
|
+
# The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
855
|
+
# IPv6 formats.
|
|
856
|
+
#
|
|
857
|
+
# @return [String, nil]
|
|
858
|
+
optional :ip_address, String
|
|
859
|
+
|
|
860
|
+
# @!method initialize(accepted_at: nil, ip_address: nil)
|
|
861
|
+
# Some parameter documentations has been truncated, see
|
|
862
|
+
# {ModernTreasury::Models::ChildLegalEntity::TermsOfUse} for more details.
|
|
863
|
+
#
|
|
864
|
+
# Acceptance of terms of use by the legal entity.
|
|
865
|
+
#
|
|
866
|
+
# @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
867
|
+
#
|
|
868
|
+
# @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
869
|
+
end
|
|
742
870
|
end
|
|
743
871
|
end
|
|
744
872
|
end
|
|
@@ -50,8 +50,8 @@ module ModernTreasury
|
|
|
50
50
|
optional :connection_id, String, nil?: true
|
|
51
51
|
|
|
52
52
|
# @!attribute country_of_incorporation
|
|
53
|
-
# The country
|
|
54
|
-
#
|
|
53
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
54
|
+
# code (e.g. US).
|
|
55
55
|
#
|
|
56
56
|
# @return [String, nil]
|
|
57
57
|
optional :country_of_incorporation, String, nil?: true
|
|
@@ -177,8 +177,8 @@ module ModernTreasury
|
|
|
177
177
|
optional :middle_name, String, nil?: true
|
|
178
178
|
|
|
179
179
|
# @!attribute operating_jurisdictions
|
|
180
|
-
# A list of countries where the business operates
|
|
181
|
-
# codes).
|
|
180
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
181
|
+
# codes (e.g. ["US", "CA"]).
|
|
182
182
|
#
|
|
183
183
|
# @return [Array<String>, nil]
|
|
184
184
|
optional :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
@@ -241,6 +241,12 @@ module ModernTreasury
|
|
|
241
241
|
# @return [String, nil]
|
|
242
242
|
optional :suffix, String, nil?: true
|
|
243
243
|
|
|
244
|
+
# @!attribute terms_of_use
|
|
245
|
+
# Acceptance of terms of use by the legal entity.
|
|
246
|
+
#
|
|
247
|
+
# @return [ModernTreasury::Models::ChildLegalEntityCreate::TermsOfUse, nil]
|
|
248
|
+
optional :terms_of_use, -> { ModernTreasury::ChildLegalEntityCreate::TermsOfUse }, nil?: true
|
|
249
|
+
|
|
244
250
|
# @!attribute third_party_verification
|
|
245
251
|
# @deprecated
|
|
246
252
|
#
|
|
@@ -275,7 +281,7 @@ module ModernTreasury
|
|
|
275
281
|
# @return [String, nil]
|
|
276
282
|
optional :website, String, nil?: true
|
|
277
283
|
|
|
278
|
-
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
284
|
+
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
279
285
|
# Some parameter documentations has been truncated, see
|
|
280
286
|
# {ModernTreasury::Models::ChildLegalEntityCreate} for more details.
|
|
281
287
|
#
|
|
@@ -293,7 +299,7 @@ module ModernTreasury
|
|
|
293
299
|
#
|
|
294
300
|
# @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
|
|
295
301
|
#
|
|
296
|
-
# @param country_of_incorporation [String, nil] The country
|
|
302
|
+
# @param country_of_incorporation [String, nil] The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
297
303
|
#
|
|
298
304
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
|
299
305
|
#
|
|
@@ -331,7 +337,7 @@ module ModernTreasury
|
|
|
331
337
|
#
|
|
332
338
|
# @param middle_name [String, nil] An individual's middle name.
|
|
333
339
|
#
|
|
334
|
-
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates
|
|
340
|
+
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates, as ISO 3166-1 alpha-2 country c
|
|
335
341
|
#
|
|
336
342
|
# @param phone_numbers [Array<ModernTreasury::Models::ChildLegalEntityCreate::PhoneNumber>]
|
|
337
343
|
#
|
|
@@ -351,6 +357,8 @@ module ModernTreasury
|
|
|
351
357
|
#
|
|
352
358
|
# @param suffix [String, nil] An individual's suffix.
|
|
353
359
|
#
|
|
360
|
+
# @param terms_of_use [ModernTreasury::Models::ChildLegalEntityCreate::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
|
|
361
|
+
#
|
|
354
362
|
# @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
|
|
355
363
|
#
|
|
356
364
|
# @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
|
|
@@ -438,14 +446,20 @@ module ModernTreasury
|
|
|
438
446
|
|
|
439
447
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
440
448
|
# @!attribute phone_number
|
|
449
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
450
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
451
|
+
# +12025551234.
|
|
441
452
|
#
|
|
442
453
|
# @return [String, nil]
|
|
443
454
|
optional :phone_number, String
|
|
444
455
|
|
|
445
456
|
# @!method initialize(phone_number: nil)
|
|
457
|
+
# Some parameter documentations has been truncated, see
|
|
458
|
+
# {ModernTreasury::Models::ChildLegalEntityCreate::PhoneNumber} for more details.
|
|
459
|
+
#
|
|
446
460
|
# A list of phone numbers in E.164 format.
|
|
447
461
|
#
|
|
448
|
-
# @param phone_number [String]
|
|
462
|
+
# @param phone_number [String] A phone number in E.164 format. This format is strictly validated: include a lea
|
|
449
463
|
end
|
|
450
464
|
|
|
451
465
|
class Regulator < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -492,6 +506,32 @@ module ModernTreasury
|
|
|
492
506
|
# @!method self.values
|
|
493
507
|
# @return [Array<Symbol>]
|
|
494
508
|
end
|
|
509
|
+
|
|
510
|
+
# @see ModernTreasury::Models::ChildLegalEntityCreate#terms_of_use
|
|
511
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
512
|
+
# @!attribute accepted_at
|
|
513
|
+
# The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
514
|
+
#
|
|
515
|
+
# @return [Time, nil]
|
|
516
|
+
optional :accepted_at, Time
|
|
517
|
+
|
|
518
|
+
# @!attribute ip_address
|
|
519
|
+
# The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
520
|
+
# IPv6 formats.
|
|
521
|
+
#
|
|
522
|
+
# @return [String, nil]
|
|
523
|
+
optional :ip_address, String
|
|
524
|
+
|
|
525
|
+
# @!method initialize(accepted_at: nil, ip_address: nil)
|
|
526
|
+
# Some parameter documentations has been truncated, see
|
|
527
|
+
# {ModernTreasury::Models::ChildLegalEntityCreate::TermsOfUse} for more details.
|
|
528
|
+
#
|
|
529
|
+
# Acceptance of terms of use by the legal entity.
|
|
530
|
+
#
|
|
531
|
+
# @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
532
|
+
#
|
|
533
|
+
# @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
534
|
+
end
|
|
495
535
|
end
|
|
496
536
|
end
|
|
497
537
|
end
|
|
@@ -82,8 +82,8 @@ module ModernTreasury
|
|
|
82
82
|
optional :connection_id, String, nil?: true
|
|
83
83
|
|
|
84
84
|
# @!attribute country_of_incorporation
|
|
85
|
-
# The country
|
|
86
|
-
#
|
|
85
|
+
# The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
86
|
+
# code (e.g. US).
|
|
87
87
|
#
|
|
88
88
|
# @return [String, nil]
|
|
89
89
|
optional :country_of_incorporation, String, nil?: true
|
|
@@ -208,8 +208,8 @@ module ModernTreasury
|
|
|
208
208
|
optional :middle_name, String, nil?: true
|
|
209
209
|
|
|
210
210
|
# @!attribute operating_jurisdictions
|
|
211
|
-
# A list of countries where the business operates
|
|
212
|
-
# codes).
|
|
211
|
+
# A list of countries where the business operates, as ISO 3166-1 alpha-2 country
|
|
212
|
+
# codes (e.g. ["US", "CA"]).
|
|
213
213
|
#
|
|
214
214
|
# @return [Array<String>, nil]
|
|
215
215
|
optional :operating_jurisdictions, ModernTreasury::Internal::Type::ArrayOf[String]
|
|
@@ -274,6 +274,14 @@ module ModernTreasury
|
|
|
274
274
|
# @return [String, nil]
|
|
275
275
|
optional :suffix, String, nil?: true
|
|
276
276
|
|
|
277
|
+
# @!attribute terms_of_use
|
|
278
|
+
# Acceptance of terms of use by the legal entity.
|
|
279
|
+
#
|
|
280
|
+
# @return [ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse, nil]
|
|
281
|
+
optional :terms_of_use,
|
|
282
|
+
-> { ModernTreasury::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse },
|
|
283
|
+
nil?: true
|
|
284
|
+
|
|
277
285
|
# @!attribute third_party_verification
|
|
278
286
|
# @deprecated
|
|
279
287
|
#
|
|
@@ -308,7 +316,7 @@ module ModernTreasury
|
|
|
308
316
|
# @return [String, nil]
|
|
309
317
|
optional :website, String, nil?: true
|
|
310
318
|
|
|
311
|
-
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
319
|
+
# @!method initialize(addresses: nil, bank_settings: nil, business_description: nil, business_name: nil, citizenship_country: nil, compliance_details: nil, connection_id: nil, country_of_incorporation: nil, date_formed: nil, date_of_birth: nil, documents: nil, doing_business_as_names: nil, email: nil, expected_activity_volume: nil, external_id: nil, first_name: nil, identifications: nil, industry_classifications: nil, intended_use: nil, last_name: nil, legal_entity_associations: nil, legal_entity_type: nil, legal_structure: nil, listed_exchange: nil, metadata: nil, middle_name: nil, operating_jurisdictions: nil, phone_numbers: nil, politically_exposed_person: nil, preferred_name: nil, prefix: nil, primary_social_media_sites: nil, regulators: nil, risk_rating: nil, service_provider_legal_entity_id: nil, suffix: nil, terms_of_use: nil, third_party_verification: nil, third_party_verifications: nil, ticker_symbol: nil, wealth_and_employment_details: nil, website: nil)
|
|
312
320
|
# Some parameter documentations has been truncated, see
|
|
313
321
|
# {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity} for
|
|
314
322
|
# more details.
|
|
@@ -329,7 +337,7 @@ module ModernTreasury
|
|
|
329
337
|
#
|
|
330
338
|
# @param connection_id [String, nil] The connection ID for the connection the legal entity is associated with. Defaul
|
|
331
339
|
#
|
|
332
|
-
# @param country_of_incorporation [String, nil] The country
|
|
340
|
+
# @param country_of_incorporation [String, nil] The country where the business is incorporated, as an ISO 3166-1 alpha-2 country
|
|
333
341
|
#
|
|
334
342
|
# @param date_formed [Date, nil] A business's formation date (YYYY-MM-DD).
|
|
335
343
|
#
|
|
@@ -367,7 +375,7 @@ module ModernTreasury
|
|
|
367
375
|
#
|
|
368
376
|
# @param middle_name [String, nil] An individual's middle name.
|
|
369
377
|
#
|
|
370
|
-
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates
|
|
378
|
+
# @param operating_jurisdictions [Array<String>] A list of countries where the business operates, as ISO 3166-1 alpha-2 country c
|
|
371
379
|
#
|
|
372
380
|
# @param phone_numbers [Array<ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::PhoneNumber>]
|
|
373
381
|
#
|
|
@@ -387,6 +395,8 @@ module ModernTreasury
|
|
|
387
395
|
#
|
|
388
396
|
# @param suffix [String, nil] An individual's suffix.
|
|
389
397
|
#
|
|
398
|
+
# @param terms_of_use [ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse, nil] Acceptance of terms of use by the legal entity.
|
|
399
|
+
#
|
|
390
400
|
# @param third_party_verification [ModernTreasury::Models::ThirdPartyVerification, nil] Deprecated. Use `third_party_verifications` instead.
|
|
391
401
|
#
|
|
392
402
|
# @param third_party_verifications [Array<ModernTreasury::Models::ThirdPartyVerification>] A list of third-party verifications run by external vendors.
|
|
@@ -475,14 +485,21 @@ module ModernTreasury
|
|
|
475
485
|
|
|
476
486
|
class PhoneNumber < ModernTreasury::Internal::Type::BaseModel
|
|
477
487
|
# @!attribute phone_number
|
|
488
|
+
# A phone number in E.164 format. This format is strictly validated: include a
|
|
489
|
+
# leading + and country code, followed by digits only (no spaces or dashes), e.g.
|
|
490
|
+
# +12025551234.
|
|
478
491
|
#
|
|
479
492
|
# @return [String, nil]
|
|
480
493
|
optional :phone_number, String
|
|
481
494
|
|
|
482
495
|
# @!method initialize(phone_number: nil)
|
|
496
|
+
# Some parameter documentations has been truncated, see
|
|
497
|
+
# {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::PhoneNumber}
|
|
498
|
+
# for more details.
|
|
499
|
+
#
|
|
483
500
|
# A list of phone numbers in E.164 format.
|
|
484
501
|
#
|
|
485
|
-
# @param phone_number [String]
|
|
502
|
+
# @param phone_number [String] A phone number in E.164 format. This format is strictly validated: include a lea
|
|
486
503
|
end
|
|
487
504
|
|
|
488
505
|
class Regulator < ModernTreasury::Internal::Type::BaseModel
|
|
@@ -530,6 +547,33 @@ module ModernTreasury
|
|
|
530
547
|
# @!method self.values
|
|
531
548
|
# @return [Array<Symbol>]
|
|
532
549
|
end
|
|
550
|
+
|
|
551
|
+
# @see ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity#terms_of_use
|
|
552
|
+
class TermsOfUse < ModernTreasury::Internal::Type::BaseModel
|
|
553
|
+
# @!attribute accepted_at
|
|
554
|
+
# The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
555
|
+
#
|
|
556
|
+
# @return [Time, nil]
|
|
557
|
+
optional :accepted_at, Time
|
|
558
|
+
|
|
559
|
+
# @!attribute ip_address
|
|
560
|
+
# The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
561
|
+
# IPv6 formats.
|
|
562
|
+
#
|
|
563
|
+
# @return [String, nil]
|
|
564
|
+
optional :ip_address, String
|
|
565
|
+
|
|
566
|
+
# @!method initialize(accepted_at: nil, ip_address: nil)
|
|
567
|
+
# Some parameter documentations has been truncated, see
|
|
568
|
+
# {ModernTreasury::Models::ConnectionLegalEntityCreateParams::LegalEntity::TermsOfUse}
|
|
569
|
+
# for more details.
|
|
570
|
+
#
|
|
571
|
+
# Acceptance of terms of use by the legal entity.
|
|
572
|
+
#
|
|
573
|
+
# @param accepted_at [Time] The ISO 8601 timestamp indicating when the terms of use were accepted.
|
|
574
|
+
#
|
|
575
|
+
# @param ip_address [String] The IP address from which the terms of use were accepted. Supports both IPv4 and
|
|
576
|
+
end
|
|
533
577
|
end
|
|
534
578
|
end
|
|
535
579
|
end
|
|
@@ -92,9 +92,7 @@ module ModernTreasury
|
|
|
92
92
|
SE_BANKGIRO_CLEARING_CODE = :seBankgiroClearingCode
|
|
93
93
|
NZ_NATIONAL_CLEARING_CODE = :nzNationalClearingCode
|
|
94
94
|
HK_INTERBANK_CLEARING_CODE = :hkInterbankClearingCode
|
|
95
|
-
HU_INTERBANK_CLEARING_CODE = :huInterbankClearingCode
|
|
96
95
|
DK_INTERBANK_CLEARING_CODE = :dkInterbankClearingCode
|
|
97
|
-
ID_SKNBI_CODE = :idSknbiCode
|
|
98
96
|
ZA_NATIONAL_CLEARING_CODE = :zaNationalClearingCode
|
|
99
97
|
|
|
100
98
|
# @!method self.values
|