Class: FinchAPI::Resources::HRIS::PayStatements
- Inherits:
-
Object
- Object
- FinchAPI::Resources::HRIS::PayStatements
- Defined in:
- lib/finch-api/resources/hris/pay_statements.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ PayStatements
constructor
A new instance of PayStatements.
-
#retrieve_many(params) ⇒ FinchAPI::ResponsesPage<FinchAPI::Models::HRIS::PayStatementResponse>
Read detailed pay statements for each individual.
Constructor Details
#initialize(client:) ⇒ PayStatements
Returns a new instance of PayStatements.
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.
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, = 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: ) end |