Example #1
0
 /// <summary>
 /// Get Pay Slip Data by Employee ID
 /// </summary>
 /// <remarks>
 /// Gets the pay slip data for an employee in a payrun.
 /// </remarks>
 public Task <MyApiPaySlipModel> GetPaySlipDataByEmployeeIdAsync(int businessId, int employeeId, int payRunId, GetPaySlipDataByEmployeeIdQueryModel request, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <MyApiPaySlipModel>($"/business/{businessId}/payrun/{payRunId}/payslips/{employeeId}?showAllData={request.ShowAllData}", Method.GET, cancellationToken));
 }
Example #2
0
 /// <summary>
 /// Get Pay Slip Data by Employee ID
 /// </summary>
 /// <remarks>
 /// Gets the pay slip data for an employee in a payrun.
 /// </remarks>
 public MyApiPaySlipModel GetPaySlipDataByEmployeeId(int businessId, int employeeId, int payRunId, GetPaySlipDataByEmployeeIdQueryModel request)
 {
     return(ApiRequest <MyApiPaySlipModel>($"/business/{businessId}/payrun/{payRunId}/payslips/{employeeId}?showAllData={request.ShowAllData}", Method.GET));
 }