Class: ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/modern_treasury/models/counterparty_create_params.rb

Defined Under Namespace

Modules: RelationshipType

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(relationship_types: , child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil) ⇒ Object

Parameters:



# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 702


Instance Attribute Details

The child legal entity.



682
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 682

optional :child_legal_entity, -> { ModernTreasury::ChildLegalEntityCreate }

The ID of the child legal entity.

Returns:

  • (String, nil)


688
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 688

optional :child_legal_entity_id, String

#ownership_percentageInteger?

The child entity’s ownership percentage iff they are a beneficial owner.

Returns:

  • (Integer, nil)


694
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 694

optional :ownership_percentage, Integer, nil?: true

#relationship_typesArray<Symbol, ModernTreasury::Models::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType>



675
676
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 675

required :relationship_types,
-> { ModernTreasury::Internal::Type::ArrayOf[enum: ModernTreasury::CounterpartyCreateParams::LegalEntity::LegalEntityAssociation::RelationshipType] }

#titleString?

The job title of the child entity at the parent entity.

Returns:

  • (String, nil)


700
# File 'lib/modern_treasury/models/counterparty_create_params.rb', line 700

optional :title, String, nil?: true