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

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

Parameters:

  • id (String) (defaults to: nil)

    A stable Finch id for the document.

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

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

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

    The type of document.

  • url (String) (defaults to: nil)

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

  • year (Float, nil) (defaults to: nil)

    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, nil)


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

optional :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

optional :individual_id, String, nil?: true

#typeSymbol, ...

The type of document.



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

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

#urlString?

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

Returns:

  • (String, nil)


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

optional :url, String

#yearFloat?

The year the document applies to, if available.

Returns:

  • (Float, nil)


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

optional :year, Float, nil?: true