Class: FinchAPI::Models::HRIS::DocumentResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/finch_api/models/hris/document_response.rb

Defined Under Namespace

Modules: Type

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(id: , individual_id: , type: , url: , year: ) ⇒ Object

Some parameter documentations has been truncated, see FinchAPI::Models::HRIS::DocumentResponse for more details.

Parameters:

  • id (String) (defaults to: )

    A stable Finch id for the document.

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

    The ID of the individual associated with the document. This will be null for emp

  • type (Symbol, FinchAPI::Models::HRIS::DocumentResponse::Type) (defaults to: )

    The type of document.

  • url (String) (defaults to: )

    A URL to access the document. Format: ‘api.tryfinch.com/employer/documen

  • year (Float) (defaults to: )

    The year the document applies to, if available.



# File 'lib/finch_api/models/hris/document_response.rb', line 39

Instance Attribute Details

#idString

A stable Finch id for the document.

Returns:

  • (String)


11
# File 'lib/finch_api/models/hris/document_response.rb', line 11

required :id, String

#individual_idString?

The ID of the individual associated with the document. This will be null for employer-level documents.

Returns:

  • (String, nil)


18
# File 'lib/finch_api/models/hris/document_response.rb', line 18

required :individual_id, String, nil?: true

#typeSymbol, FinchAPI::Models::HRIS::DocumentResponse::Type

The type of document.



24
# File 'lib/finch_api/models/hris/document_response.rb', line 24

required :type, enum: -> { FinchAPI::HRIS::DocumentResponse::Type }

#urlString

A URL to access the document. Format: ‘api.tryfinch.com/employer/documents/:document_id`.

Returns:

  • (String)


31
# File 'lib/finch_api/models/hris/document_response.rb', line 31

required :url, String

#yearFloat

The year the document applies to, if available.

Returns:

  • (Float)


37
# File 'lib/finch_api/models/hris/document_response.rb', line 37

required :year, Float