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

Inherits:
BaseModel
  • Object
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

Constructor Details

#initialize(id: nil, individual_id: nil, type: nil, url: nil, year: nil) ⇒ DocumentResponse

Returns a new instance of DocumentResponse.

Parameters:



7
# File 'lib/finch-api/models/hris/document_response.rb', line 7

def initialize(id: nil, individual_id: nil, type: nil, url: nil, year: nil, **) = super

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)


22
# File 'lib/finch-api/models/hris/document_response.rb', line 22

optional :individual_id, String, nil?: true

#typeSymbol, ...

The type of document.



28
# File 'lib/finch-api/models/hris/document_response.rb', line 28

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

#urlString?

A URL to access the document. Format:

`https://api.tryfinch.com/employer/documents/:document_id`.

Returns:

  • (String, nil)


39
# File 'lib/finch-api/models/hris/document_response.rb', line 39

optional :url, String

#yearFloat?

The year the document applies to, if available.

Returns:

  • (Float, nil)


49
# File 'lib/finch-api/models/hris/document_response.rb', line 49

optional :year, Float, nil?: true