Example #1
0
 /// <summary>
 /// Pay Categories Report
 /// </summary>
 /// <remarks>
 /// Generates a pay categories report.
 /// </remarks>
 public Task <List <AuPayCategoriesModel> > PayCategoriesReportAsync(int businessId, PayCategoriesReportQueryModel request, CancellationToken cancellationToken = default)
 {
     return(ApiRequestAsync <List <AuPayCategoriesModel> >($"/business/{businessId}/report/paycategories?payScheduleId={request.PayScheduleId}&employeeId={request.EmployeeId}&groupByEarningsLocation={request.GroupByEarningsLocation}&fromDate={request.FromDate.ToString("yyyy-MM-ddTHH:mm:ss")}&toDate={request.ToDate.ToString("yyyy-MM-ddTHH:mm:ss")}&locationId={request.LocationId}&employingEntityId={request.EmployingEntityId}", Method.GET, cancellationToken));
 }
Example #2
0
 /// <summary>
 /// Pay Categories Report
 /// </summary>
 /// <remarks>
 /// Generates a pay categories report.
 /// </remarks>
 public List <NzPayCategoriesModel> PayCategoriesReport(int businessId, PayCategoriesReportQueryModel request)
 {
     return(ApiRequest <List <NzPayCategoriesModel> >($"/business/{businessId}/report/paycategories?payScheduleId={request.PayScheduleId}&employeeId={request.EmployeeId}&groupByEarningsLocation={request.GroupByEarningsLocation}&fromDate={request.FromDate.ToString("yyyy-MM-ddTHH:mm:ss")}&toDate={request.ToDate.ToString("yyyy-MM-ddTHH:mm:ss")}&locationId={request.LocationId}&employingEntityId={request.EmployingEntityId}", Method.GET));
 }