Class EmployeeLeave


  • public class EmployeeLeave
    extends Object
    EmployeeLeave
    • Constructor Detail

      • EmployeeLeave

        public EmployeeLeave()
    • Method Detail

      • leaveID

        public EmployeeLeave leaveID​(UUID leaveID)
        The Xero identifier for LeaveType
        Parameters:
        leaveID - UUID
        Returns:
        EmployeeLeave
      • getLeaveID

        public UUID getLeaveID()
        The Xero identifier for LeaveType
        Returns:
        leaveID
      • setLeaveID

        public void setLeaveID​(UUID leaveID)
        The Xero identifier for LeaveType
        Parameters:
        leaveID - UUID
      • leaveTypeID

        public EmployeeLeave leaveTypeID​(UUID leaveTypeID)
        The Xero identifier for LeaveType
        Parameters:
        leaveTypeID - UUID
        Returns:
        EmployeeLeave
      • getLeaveTypeID

        public UUID getLeaveTypeID()
        The Xero identifier for LeaveType
        Returns:
        leaveTypeID
      • setLeaveTypeID

        public void setLeaveTypeID​(UUID leaveTypeID)
        The Xero identifier for LeaveType
        Parameters:
        leaveTypeID - UUID
      • description

        public EmployeeLeave description​(String description)
        The description of the leave (max length = 50)
        Parameters:
        description - String
        Returns:
        EmployeeLeave
      • getDescription

        public String getDescription()
        The description of the leave (max length = 50)
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        The description of the leave (max length = 50)
        Parameters:
        description - String
      • startDate

        public EmployeeLeave startDate​(org.threeten.bp.LocalDate startDate)
        Start date of the leave (YYYY-MM-DD)
        Parameters:
        startDate - LocalDate
        Returns:
        EmployeeLeave
      • getStartDate

        public org.threeten.bp.LocalDate getStartDate()
        Start date of the leave (YYYY-MM-DD)
        Returns:
        startDate
      • setStartDate

        public void setStartDate​(org.threeten.bp.LocalDate startDate)
        Start date of the leave (YYYY-MM-DD)
        Parameters:
        startDate - LocalDate
      • endDate

        public EmployeeLeave endDate​(org.threeten.bp.LocalDate endDate)
        End date of the leave (YYYY-MM-DD)
        Parameters:
        endDate - LocalDate
        Returns:
        EmployeeLeave
      • getEndDate

        public org.threeten.bp.LocalDate getEndDate()
        End date of the leave (YYYY-MM-DD)
        Returns:
        endDate
      • setEndDate

        public void setEndDate​(org.threeten.bp.LocalDate endDate)
        End date of the leave (YYYY-MM-DD)
        Parameters:
        endDate - LocalDate
      • periods

        public EmployeeLeave periods​(List<LeavePeriod> periods)
        The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.
        Parameters:
        periods - List<LeavePeriod>
        Returns:
        EmployeeLeave
      • addPeriodsItem

        public EmployeeLeave addPeriodsItem​(LeavePeriod periodsItem)
        The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.
        Parameters:
        periodsItem - LeavePeriod
        Returns:
        EmployeeLeave
      • getPeriods

        public List<LeavePeriod> getPeriods()
        The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.
        Returns:
        periods
      • setPeriods

        public void setPeriods​(List<LeavePeriod> periods)
        The leave period information. The StartDate, EndDate and NumberOfUnits needs to be specified when you do not want to calculate NumberOfUnits automatically. Using incorrect period StartDate and EndDate will result in automatic computation of the NumberOfUnits.
        Parameters:
        periods - List<LeavePeriod>
      • updatedDateUTC

        public EmployeeLeave updatedDateUTC​(org.threeten.bp.LocalDateTime updatedDateUTC)
        UTC timestamp of last update to the leave type note
        Parameters:
        updatedDateUTC - LocalDateTime
        Returns:
        EmployeeLeave
      • getUpdatedDateUTC

        public org.threeten.bp.LocalDateTime getUpdatedDateUTC()
        UTC timestamp of last update to the leave type note
        Returns:
        updatedDateUTC
      • setUpdatedDateUTC

        public void setUpdatedDateUTC​(org.threeten.bp.LocalDateTime updatedDateUTC)
        UTC timestamp of last update to the leave type note
        Parameters:
        updatedDateUTC - LocalDateTime
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object