LeaveValidationErrorCode
The business reasons a leave request can be rejected.
enum LeaveValidationErrorCode {
EMPLOYEE_NOT_FOUND
EMPLOYEE_OFFBOARDED
INVALID_DATE_RANGE
OVERLAPPING_LEAVE
NOTE_TOO_LONG
}
Values
LeaveValidationErrorCode.EMPLOYEE_NOT_FOUND
No employee of this merchant has the supplied id.
LeaveValidationErrorCode.EMPLOYEE_OFFBOARDED
The employee has been offboarded and can no longer book time off.
LeaveValidationErrorCode.INVALID_DATE_RANGE
The last day of the absence falls before the first day.
LeaveValidationErrorCode.OVERLAPPING_LEAVE
The employee already has leave booked that overlaps these dates.
LeaveValidationErrorCode.NOTE_TOO_LONG
The supplied note is longer than the 500 characters that are stored.
Member Of
LeaveValidationError object