Class: FinchAPI::Resources::HRIS::Payments
- Inherits:
-
Object
- Object
- FinchAPI::Resources::HRIS::Payments
- Defined in:
- lib/finch_api/resources/hris/payments.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ Payments
constructor
private
A new instance of Payments.
-
#list(end_date: , start_date: , entity_ids: nil, request_options: {}) ⇒ FinchAPI::Internal::SinglePage<FinchAPI::Models::HRIS::Payment>
Some parameter documentations has been truncated, see Models::HRIS::PaymentListParams for more details.
Constructor Details
#initialize(client:) ⇒ Payments
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Payments.
40 41 42 |
# File 'lib/finch_api/resources/hris/payments.rb', line 40 def initialize(client:) @client = client end |
Instance Method Details
#list(end_date: , start_date: , entity_ids: nil, request_options: {}) ⇒ FinchAPI::Internal::SinglePage<FinchAPI::Models::HRIS::Payment>
Some parameter documentations has been truncated, see Models::HRIS::PaymentListParams for more details.
Read payroll and contractor related payments by the company.
25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/finch_api/resources/hris/payments.rb', line 25 def list(params) parsed, = FinchAPI::HRIS::PaymentListParams.dump_request(params) @client.request( method: :get, path: "employer/payment", query: parsed, page: FinchAPI::Internal::SinglePage, model: FinchAPI::HRIS::Payment, options: ) end |