Class LeaveApplication


  • public class LeaveApplication
    extends Object
    LeaveApplication
    • Constructor Detail

      • LeaveApplication

        public LeaveApplication()
    • Method Detail

      • leaveApplicationID

        public LeaveApplication leaveApplicationID​(UUID leaveApplicationID)
        The Xero identifier for Payroll Employee
        Parameters:
        leaveApplicationID - UUID
        Returns:
        LeaveApplication
      • getLeaveApplicationID

        public UUID getLeaveApplicationID()
        The Xero identifier for Payroll Employee
        Returns:
        leaveApplicationID
      • setLeaveApplicationID

        public void setLeaveApplicationID​(UUID leaveApplicationID)
        The Xero identifier for Payroll Employee
        Parameters:
        leaveApplicationID - UUID
      • employeeID

        public LeaveApplication employeeID​(UUID employeeID)
        The Xero identifier for Payroll Employee
        Parameters:
        employeeID - UUID
        Returns:
        LeaveApplication
      • getEmployeeID

        public UUID getEmployeeID()
        The Xero identifier for Payroll Employee
        Returns:
        employeeID
      • setEmployeeID

        public void setEmployeeID​(UUID employeeID)
        The Xero identifier for Payroll Employee
        Parameters:
        employeeID - UUID
      • leaveTypeID

        public LeaveApplication leaveTypeID​(UUID leaveTypeID)
        The Xero identifier for Leave Type
        Parameters:
        leaveTypeID - UUID
        Returns:
        LeaveApplication
      • getLeaveTypeID

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

        public void setLeaveTypeID​(UUID leaveTypeID)
        The Xero identifier for Leave Type
        Parameters:
        leaveTypeID - UUID
      • title

        public LeaveApplication title​(String title)
        The title of the leave
        Parameters:
        title - String
        Returns:
        LeaveApplication
      • getTitle

        public String getTitle()
        The title of the leave
        Returns:
        title
      • setTitle

        public void setTitle​(String title)
        The title of the leave
        Parameters:
        title - String
      • startDate

        public LeaveApplication startDate​(String startDate)
        Start date of the leave (YYYY-MM-DD)
        Parameters:
        startDate - String
        Returns:
        LeaveApplication
      • getStartDate

        public String getStartDate()
        Start date of the leave (YYYY-MM-DD)
        Returns:
        startDate
      • getStartDateAsDate

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

        public void setStartDate​(String startDate)
        Start date of the leave (YYYY-MM-DD)
        Parameters:
        startDate - String
      • setStartDate

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

        public LeaveApplication endDate​(String endDate)
        End date of the leave (YYYY-MM-DD)
        Parameters:
        endDate - String
        Returns:
        LeaveApplication
      • getEndDate

        public String getEndDate()
        End date of the leave (YYYY-MM-DD)
        Returns:
        endDate
      • getEndDateAsDate

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

        public void setEndDate​(String endDate)
        End date of the leave (YYYY-MM-DD)
        Parameters:
        endDate - String
      • setEndDate

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

        public LeaveApplication description​(String description)
        The Description of the Leave
        Parameters:
        description - String
        Returns:
        LeaveApplication
      • getDescription

        public String getDescription()
        The Description of the Leave
        Returns:
        description
      • setDescription

        public void setDescription​(String description)
        The Description of the Leave
        Parameters:
        description - String
      • leavePeriods

        public LeaveApplication leavePeriods​(List<LeavePeriod> leavePeriods)
        leavePeriods
        Parameters:
        leavePeriods - List<LeavePeriod>
        Returns:
        LeaveApplication
      • addLeavePeriodsItem

        public LeaveApplication addLeavePeriodsItem​(LeavePeriod leavePeriodsItem)
        leavePeriods
        Parameters:
        leavePeriodsItem - LeavePeriod
        Returns:
        LeaveApplication
      • getLeavePeriods

        public List<LeavePeriod> getLeavePeriods()
        Get leavePeriods
        Returns:
        leavePeriods
      • setLeavePeriods

        public void setLeavePeriods​(List<LeavePeriod> leavePeriods)
        leavePeriods
        Parameters:
        leavePeriods - List<LeavePeriod>
      • getUpdatedDateUTC

        public String getUpdatedDateUTC()
        Last modified timestamp
        Returns:
        updatedDateUTC
      • getUpdatedDateUTCAsDate

        public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
        Last modified timestamp
        Returns:
        OffsetDateTime
      • validationErrors

        public LeaveApplication validationErrors​(List<ValidationError> validationErrors)
        Displays array of validation error messages from the API
        Parameters:
        validationErrors - List<ValidationError>
        Returns:
        LeaveApplication
      • addValidationErrorsItem

        public LeaveApplication addValidationErrorsItem​(ValidationError validationErrorsItem)
        Displays array of validation error messages from the API
        Parameters:
        validationErrorsItem - ValidationError
        Returns:
        LeaveApplication
      • getValidationErrors

        public List<ValidationError> getValidationErrors()
        Displays array of validation error messages from the API
        Returns:
        validationErrors
      • setValidationErrors

        public void setValidationErrors​(List<ValidationError> validationErrors)
        Displays array of validation error messages from the API
        Parameters:
        validationErrors - List<ValidationError>
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object