Пример #1
0
 /// <summary>
 /// Discard current shift
 /// </summary>
 /// <remarks>
 /// Discards the current shift for an employee.
 /// If they are on a break, it will be ended automatically.
 /// </remarks>
 public Task DiscardCurrentShiftAsync(int businessId, int kioskId, ClockOffModel request, CancellationToken cancellationToken = default)
 {
     return ApiRequestAsync($"/business/{businessId}/kiosk/{kioskId}/discard", request, Method.POST, cancellationToken);
 }
Пример #2
0
 /// <summary>
 /// Discard current shift
 /// </summary>
 /// <remarks>
 /// Discards the current shift for an employee.
 /// If they are on a break, it will be ended automatically.
 /// </remarks>
 public void DiscardCurrentShift(int businessId, int kioskId, ClockOffModel request)
 {
     ApiRequest($"/business/{businessId}/kiosk/{kioskId}/discard", request, Method.POST);
 }
Пример #3
0
 /// <summary>
 /// Clock Out Employee
 /// </summary>
 /// <remarks>
 /// Clocks out an employee from their existing shift.
 /// If they are on a break, it will be ended automatically.
 /// </remarks>
 public Task ClockOutEmployeeAsync(int businessId, int kioskId, ClockOffModel request, CancellationToken cancellationToken = default)
 {
     return ApiRequestAsync($"/business/{businessId}/kiosk/{kioskId}/clockoff", request, Method.POST, cancellationToken);
 }
Пример #4
0
 /// <summary>
 /// Clock Out Employee
 /// </summary>
 /// <remarks>
 /// Clocks out an employee from their existing shift.
 /// If they are on a break, it will be ended automatically.
 /// </remarks>
 public void ClockOutEmployee(int businessId, int kioskId, ClockOffModel request)
 {
     ApiRequest($"/business/{businessId}/kiosk/{kioskId}/clockoff", request, Method.POST);
 }
Пример #5
0
 public KioskEmployeeModel DiscardShift(int businessId, int kioskId, ClockOffModel model)
 {
     return(ApiRequest <KioskEmployeeModel, ClockOffModel>($"/business/{businessId}/manager/kiosk/{kioskId}/discard", model, Method.POST));
 }
Пример #6
0
 public KioskEmployeeModel ClockOff(int businessId, int kioskId, ClockOffModel model)
 {
     return(ApiRequest <KioskEmployeeModel, ClockOffModel>($"/business/{businessId}/manager/kiosk/{kioskId}/clockoff", model, Method.POST));
 }