/// <summary> /// Get Shift Periods for Employee /// </summary> /// <remarks> /// Gets the shift periods for the specified employee. /// </remarks> public Task <List <ShiftPeriodModel> > GetShiftPeriodsForEmployeeAsync(int businessId, int employeeId, GetShiftPeriodsModel model, CancellationToken cancellationToken = default) { return(ApiRequestAsync <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employee/{employeeId}/timesheet/shiftperiods", model, Method.POST, cancellationToken)); }
/// <summary> /// Get Shift Periods /// </summary> /// <remarks> /// Gets all the shift periods for the employment agreement with the specified ID. /// </remarks> public Task <List <ShiftPeriodModel> > GetShiftPeriodsAsync(int businessId, int id, GetShiftPeriodsModel model, CancellationToken cancellationToken = default) { return(ApiRequestAsync <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employmentagreement/{id}/shiftperiods", model, Method.POST, cancellationToken)); }
/// <summary> /// Get Shift Periods for Employee /// </summary> /// <remarks> /// Gets the shift periods for the specified employee. /// </remarks> public List <ShiftPeriodModel> GetShiftPeriodsForEmployee(int businessId, int employeeId, GetShiftPeriodsModel model) { return(ApiRequest <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employee/{employeeId}/timesheet/shiftperiods", model, Method.POST)); }
/// <summary> /// Get Shift Periods /// </summary> /// <remarks> /// Gets all the shift periods for the employment agreement with the specified ID. /// </remarks> public List <ShiftPeriodModel> GetShiftPeriods(int businessId, int id, GetShiftPeriodsModel model) { return(ApiRequest <List <ShiftPeriodModel>, GetShiftPeriodsModel>($"/business/{businessId}/employmentagreement/{id}/shiftperiods", model, Method.POST)); }