/// <summary> /// Find Matching Clock Off Roster Shift /// </summary> /// <remarks> /// If a roster shift exists that could match for this employee to clock off at this time /// given kiosk settings for shift matching, returns that shift. /// Otherwise, the Shift result will be null. /// Note that if the time matches a shift exactly, the Shift result will also be null. /// </remarks> public Task <MyRosterShiftMatchingResultModel> FindMatchingClockOffRosterShiftAsync(int businessId, int employeeId, FindMatchingClockOffRosterShiftQueryModel request, CancellationToken cancellationToken = default) { return(ApiRequestAsync <MyRosterShiftMatchingResultModel>($"/business/{businessId}/rostershift/{employeeId}/matchingclockoff?kioskId={request.KioskId}&dateUtc={request.DateUtc.ToString("yyyy-MM-ddTHH:mm:ss")}", Method.GET, cancellationToken)); }
/// <summary> /// Find Matching Clock Off Roster Shift /// </summary> /// <remarks> /// If a roster shift exists that could match for this employee to clock off at this time /// given kiosk settings for shift matching, returns that shift. /// Otherwise, the Shift result will be null. /// Note that if the time matches a shift exactly, the Shift result will also be null. /// </remarks> public MyRosterShiftMatchingResultModel FindMatchingClockOffRosterShift(int businessId, int employeeId, FindMatchingClockOffRosterShiftQueryModel request) { return(ApiRequest <MyRosterShiftMatchingResultModel>($"/business/{businessId}/rostershift/{employeeId}/matchingclockoff?kioskId={request.KioskId}&dateUtc={request.DateUtc.ToString("yyyy-MM-ddTHH:mm:ss")}", Method.GET)); }