Class TimeOffRequest


  • public final class TimeOffRequest
    extends java.lang.Object
    • Method Detail

      • getEmployee

        public java.util.Optional<TimeOffRequestEmployee> getEmployee()
        Returns:
        The employee requesting time off.
      • getApprover

        public java.util.Optional<TimeOffRequestApprover> getApprover()
        Returns:
        The Merge ID of the employee with the ability to approve the time off request.
      • getStatus

        public java.util.Optional<TimeOffRequestStatus> getStatus()
        Returns:
        The status of this time off request.
        • REQUESTED - REQUESTED
        • APPROVED - APPROVED
        • DECLINED - DECLINED
        • CANCELLED - CANCELLED
        • DELETED - DELETED
      • getEmployeeNote

        public java.util.Optional<java.lang.String> getEmployeeNote()
        Returns:
        The employee note for this time off request.
      • getUnits

        public java.util.Optional<TimeOffRequestUnits> getUnits()
        Returns:
        The measurement that the third-party integration uses to count time requested.
        • HOURS - HOURS
        • DAYS - DAYS
      • getAmount

        public java.util.Optional<java.lang.Double> getAmount()
        Returns:
        The time off quantity measured by the prescribed “units”.
      • getRequestType

        public java.util.Optional<TimeOffRequestRequestType> getRequestType()
        Returns:
        The type of time off request.
        • VACATION - VACATION
        • SICK - SICK
        • PERSONAL - PERSONAL
        • JURY_DUTY - JURY_DUTY
        • VOLUNTEER - VOLUNTEER
        • BEREAVEMENT - BEREAVEMENT
      • getStartTime

        public java.util.Optional<java.time.OffsetDateTime> getStartTime()
        Returns:
        The day and time of the start of the time requested off.
      • getEndTime

        public java.util.Optional<java.time.OffsetDateTime> getEndTime()
        Returns:
        The day and time of the end of the time requested off.
      • getIntegrationParams

        public java.util.Optional<java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getIntegrationParams()
      • getLinkedAccountParams

        public java.util.Optional<java.util.Map<java.lang.String,​com.fasterxml.jackson.databind.JsonNode>> getLinkedAccountParams()
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • getAdditionalProperties

        public java.util.Map<java.lang.String,​java.lang.Object> getAdditionalProperties()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object