Class: Increase::Models::Entity

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

Overview

Defined Under Namespace

Modules: Status, Structure, Type Classes: Corporation, GovernmentAuthority, Joint, NaturalPerson, RiskRating, ThirdPartyVerification, Trust

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: , corporation: , created_at: , description: , details_confirmed_at: , government_authority: , idempotency_key: , joint: , natural_person: , risk_rating: , status: , structure: , supplemental_documents: , third_party_verification: , trust: , type: ) ⇒ Object

Some parameter documentations has been truncated, see Increase::Models::Entity for more details.

Entities are the legal entities that own accounts. They can be people, corporations, partnerships, government authorities, or trusts.

Parameters:



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

Instance Attribute Details

#corporationIncrease::Models::Entity::Corporation?

Details of the corporation entity. Will be present if ‘structure` is equal to `corporation`.



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

required :corporation, -> { Increase::Entity::Corporation }, nil?: true

#created_atTime

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Entity was created.

Returns:

  • (Time)


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

required :created_at, Time

#descriptionString?

The entity’s description for display purposes.

Returns:

  • (String, nil)


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

required :description, String, nil?: true

#details_confirmed_atTime?

The [ISO 8601](en.wikipedia.org/wiki/ISO_8601) time at which the Entity’s details were most recently confirmed.

Returns:

  • (Time, nil)


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

required :details_confirmed_at, Time, nil?: true

#government_authorityIncrease::Models::Entity::GovernmentAuthority?

Details of the government authority entity. Will be present if ‘structure` is equal to `government_authority`.



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

required :government_authority, -> { Increase::Entity::GovernmentAuthority }, nil?: true

#idString

The entity’s identifier.

Returns:

  • (String)


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

required :id, String

#idempotency_keyString?

The idempotency key you chose for this object. This value is unique across Increase and is used to ensure that a request is only processed once. Learn more about [idempotency](increase.com/documentation/idempotency-keys).

Returns:

  • (String, nil)


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

required :idempotency_key, String, nil?: true

#jointIncrease::Models::Entity::Joint?

Details of the joint entity. Will be present if ‘structure` is equal to `joint`.



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

required :joint, -> { Increase::Entity::Joint }, nil?: true

#natural_personIncrease::Models::Entity::NaturalPerson?

Details of the natural person entity. Will be present if ‘structure` is equal to `natural_person`.



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

required :natural_person, -> { Increase::Entity::NaturalPerson }, nil?: true

#risk_ratingIncrease::Models::Entity::RiskRating?

An assessment of the entity’s potential risk of involvement in financial crimes, such as money laundering.



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

required :risk_rating, -> { Increase::Entity::RiskRating }, nil?: true

#statusSymbol, Increase::Models::Entity::Status

The status of the entity.



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

required :status, enum: -> { Increase::Entity::Status }

#structureSymbol, Increase::Models::Entity::Structure

The entity’s legal structure.



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

required :structure, enum: -> { Increase::Entity::Structure }

#supplemental_documentsArray<Increase::Models::EntitySupplementalDocument>

Additional documentation associated with the entity. This is limited to the first 10 documents for an entity. If an entity has more than 10 documents, use the GET /entity_supplemental_documents list endpoint to retrieve them.



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

required :supplemental_documents,
-> { Increase::Internal::Type::ArrayOf[Increase::EntitySupplementalDocument] }

#third_party_verificationIncrease::Models::Entity::ThirdPartyVerification?

If you are using a third-party service for identity verification, you can use this field to associate this Entity with the identifier that represents them in that service.



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

required :third_party_verification, -> { Increase::Entity::ThirdPartyVerification }, nil?: true

#trustIncrease::Models::Entity::Trust?

Details of the trust entity. Will be present if ‘structure` is equal to `trust`.



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

required :trust, -> { Increase::Entity::Trust }, nil?: true

#typeSymbol, Increase::Models::Entity::Type

A constant representing the object’s type. For this resource it will always be ‘entity`.

Returns:



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

required :type, enum: -> { Increase::Entity::Type }

Class Method Details

.valuesArray<Symbol>

Returns:

  • (Array<Symbol>)


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