Class: FinchAPI::Resources::HRIS::PayStatements

Inherits:
Object
  • Object
show all
Defined in:
lib/finch-api/resources/hris/pay_statements.rb

Instance Method Summary collapse

Constructor Details

#initialize(client:) ⇒ PayStatements

Returns a new instance of PayStatements.

Parameters:



32
33
34
# File 'lib/finch-api/resources/hris/pay_statements.rb', line 32

def initialize(client:)
  @client = client
end

Instance Method Details

#retrieve_many(params) ⇒ FinchAPI::ResponsesPage<FinchAPI::Models::HRIS::PayStatementResponse>

Read detailed pay statements for each individual.

Deduction and contribution types are supported by the payroll systems that
supports Benefits.

Parameters:

  • params (FinchAPI::Models::HRIS::PayStatementRetrieveManyParams, Hash{Symbol=>Object})

    .

    @option params [Array<FinchAPI::Models::HRIS::PayStatementRetrieveManyParams::Request>] :requests The array of batch requests.

    @option params [FinchAPI::RequestOptions, HashSymbol=>Object, nil] :request_options

Returns:



19
20
21
22
23
24
25
26
27
28
29
# File 'lib/finch-api/resources/hris/pay_statements.rb', line 19

def retrieve_many(params)
  parsed, options = FinchAPI::Models::HRIS::PayStatementRetrieveManyParams.dump_request(params)
  @client.request(
    method: :post,
    path: "employer/pay-statement",
    body: parsed,
    page: FinchAPI::ResponsesPage,
    model: FinchAPI::Models::HRIS::PayStatementResponse,
    options: options
  )
end