Class: Increase::Models::Entity::GovernmentAuthority

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/increase/models/entity.rb

Overview

Defined Under Namespace

Modules: Category Classes: Address, AuthorizedPerson

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(authorized_person_id: , name: ) ⇒ Object

Parameters:

  • authorized_person_id (String) (defaults to: )

    The identifier of this authorized person.

  • name (String) (defaults to: )

    The person’s legal name.



# File 'lib/increase/models/entity.rb', line 520

Instance Attribute Details

#addressIncrease::Models::Entity::GovernmentAuthority::Address

The government authority’s address.



487
# File 'lib/increase/models/entity.rb', line 487

required :address, -> { Increase::Entity::GovernmentAuthority::Address }

#authorized_personsArray<Increase::Models::Entity::GovernmentAuthority::AuthorizedPerson>

The identifying details of authorized persons of the government authority.



493
494
# File 'lib/increase/models/entity.rb', line 493

required :authorized_persons,
-> { Increase::Internal::Type::ArrayOf[Increase::Entity::GovernmentAuthority::AuthorizedPerson] }

#categorySymbol, Increase::Models::Entity::GovernmentAuthority::Category

The category of the government authority.



500
# File 'lib/increase/models/entity.rb', line 500

required :category, enum: -> { Increase::Entity::GovernmentAuthority::Category }

#nameString

The government authority’s name.

Returns:

  • (String)


506
# File 'lib/increase/models/entity.rb', line 506

required :name, String

#tax_identifierString?

The Employer Identification Number (EIN) of the government authority.

Returns:

  • (String, nil)


512
# File 'lib/increase/models/entity.rb', line 512

required :tax_identifier, String, nil?: true

#websiteString?

The government authority’s website.

Returns:

  • (String, nil)


518
# File 'lib/increase/models/entity.rb', line 518

required :website, String, nil?: true