Class: ModernTreasury::Models::LegalEntityAssociation

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

Overview

Defined Under Namespace

Modules: RelationshipType Classes: ChildLegalEntity

Instance Attribute Summary collapse

Class Method 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(id: , child_legal_entity: , created_at: , discarded_at: , live_mode: , object: , ownership_percentage: , parent_legal_entity_id: , relationship_types: , title: , updated_at: ) ⇒ Object

Some parameter documentations has been truncated, see ModernTreasury::Models::LegalEntityAssociation for more details.

Parameters:

  • id (String) (defaults to: )
  • child_legal_entity (ModernTreasury::Models::LegalEntityAssociation::ChildLegalEntity) (defaults to: )

    The child legal entity.

  • created_at (Time) (defaults to: )
  • discarded_at (Time, nil) (defaults to: )
  • live_mode (Boolean) (defaults to: )

    This field will be true if this object exists in the live environment or false i

  • object (String) (defaults to: )
  • ownership_percentage (Integer, nil) (defaults to: )

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

  • parent_legal_entity_id (String) (defaults to: )

    The ID of the parent legal entity. This must be a business or joint legal entity

  • relationship_types (Array<Symbol, ModernTreasury::Models::LegalEntityAssociation::RelationshipType>) (defaults to: )
  • title (String, nil) (defaults to: )

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

  • updated_at (Time) (defaults to: )


# File 'lib/modern_treasury/models/legal_entity_association.rb', line 70


Instance Attribute Details

The child legal entity.



16
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 16

required :child_legal_entity, -> { ModernTreasury::LegalEntityAssociation::ChildLegalEntity }

#created_atTime

Returns:

  • (Time)


21
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 21

required :created_at, Time

#discarded_atTime?

Returns:

  • (Time, nil)


26
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 26

required :discarded_at, Time, nil?: true

#idString

Returns:

  • (String)


10
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 10

required :id, String

#live_modeBoolean

This field will be true if this object exists in the live environment or false if it exists in the test environment.

Returns:

  • (Boolean)


33
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 33

required :live_mode, ModernTreasury::Internal::Type::Boolean

#objectString

Returns:

  • (String)


38
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 38

required :object, String

#ownership_percentageInteger?

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

Returns:

  • (Integer, nil)


44
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 44

required :ownership_percentage, Integer, nil?: true

The ID of the parent legal entity. This must be a business or joint legal entity.

Returns:

  • (String)


51
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 51

required :parent_legal_entity_id, String

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



56
57
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 56

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

#titleString?

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

Returns:

  • (String, nil)


63
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 63

required :title, String, nil?: true

#updated_atTime

Returns:

  • (Time)


68
# File 'lib/modern_treasury/models/legal_entity_association.rb', line 68

required :updated_at, Time

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/modern_treasury/models/legal_entity_association.rb', line 647