Class: ModernTreasury::Models::LegalEntityAssociationCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/modern_treasury/models/legal_entity_association_create_params.rb

Overview

Defined Under Namespace

Modules: RelationshipType

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

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(parent_legal_entity_id: , relationship_types: , child_legal_entity: nil, child_legal_entity_id: nil, ownership_percentage: nil, title: nil, request_options: {}) ⇒ Object

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

Parameters:

  • 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::LegalEntityAssociationCreateParams::RelationshipType>) (defaults to: )
  • child_legal_entity (ModernTreasury::Models::ChildLegalEntityCreate) (defaults to: nil)

    The child legal entity.

  • child_legal_entity_id (String) (defaults to: nil)

    The ID of the child legal entity.

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

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

  • title (String, nil) (defaults to: nil)

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

  • request_options (ModernTreasury::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/modern_treasury/models/legal_entity_association_create_params.rb', line 47


Instance Attribute Details

The child legal entity.



27
# File 'lib/modern_treasury/models/legal_entity_association_create_params.rb', line 27

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

The ID of the child legal entity.

Returns:

  • (String, nil)


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

optional :child_legal_entity_id, String

#ownership_percentageInteger?

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

Returns:

  • (Integer, nil)


39
# File 'lib/modern_treasury/models/legal_entity_association_create_params.rb', line 39

optional :ownership_percentage, Integer, nil?: true

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

Returns:

  • (String)


15
# File 'lib/modern_treasury/models/legal_entity_association_create_params.rb', line 15

required :parent_legal_entity_id, String

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



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

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

#titleString?

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

Returns:

  • (String, nil)


45
# File 'lib/modern_treasury/models/legal_entity_association_create_params.rb', line 45

optional :title, String, nil?: true