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.
42 43 44 |
# File 'lib/finch_api/resources/hris/payments.rb', line 42 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 36 37 |
# File 'lib/finch_api/resources/hris/payments.rb', line 25 def list(params) parsed, = FinchAPI::HRIS::PaymentListParams.dump_request(params) query = FinchAPI::Internal::Util.encode_query_params(parsed) @client.request( method: :get, path: "employer/payment", query: query, page: FinchAPI::Internal::SinglePage, model: FinchAPI::HRIS::Payment, security: {bearer_auth: true}, options: ) end |