Class LeaveApplication

java.lang.Object
com.xero.models.payrollau.LeaveApplication

public class LeaveApplication
extends Object
LeaveApplication
  • Constructor Details

    • LeaveApplication

      public LeaveApplication()
  • Method Details

    • leaveApplicationID

      public LeaveApplication leaveApplicationID​(UUID leaveApplicationID)
    • getLeaveApplicationID

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

      public void setLeaveApplicationID​(UUID leaveApplicationID)
    • employeeID

      public LeaveApplication employeeID​(UUID employeeID)
    • getEmployeeID

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

      public void setEmployeeID​(UUID employeeID)
    • leaveTypeID

      public LeaveApplication leaveTypeID​(UUID leaveTypeID)
    • getLeaveTypeID

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

      public void setLeaveTypeID​(UUID leaveTypeID)
    • title

      public LeaveApplication title​(String title)
    • getTitle

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

      public void setTitle​(String title)
    • startDate

      public LeaveApplication startDate​(String startDate)
    • getStartDate

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

      public org.threeten.bp.LocalDate getStartDateAsDate()
    • setStartDate

      public void setStartDate​(String startDate)
    • setStartDate

      public void setStartDate​(org.threeten.bp.LocalDate startDate)
    • endDate

      public LeaveApplication endDate​(String endDate)
    • getEndDate

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

      public org.threeten.bp.LocalDate getEndDateAsDate()
    • setEndDate

      public void setEndDate​(String endDate)
    • setEndDate

      public void setEndDate​(org.threeten.bp.LocalDate endDate)
    • description

      public LeaveApplication description​(String description)
    • getDescription

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

      public void setDescription​(String description)
    • leavePeriods

      public LeaveApplication leavePeriods​(List<LeavePeriod> leavePeriods)
    • addLeavePeriodsItem

      public LeaveApplication addLeavePeriodsItem​(LeavePeriod leavePeriodsItem)
    • getLeavePeriods

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

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

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

      public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
    • validationErrors

      public LeaveApplication validationErrors​(List<ValidationError> validationErrors)
    • addValidationErrorsItem

      public LeaveApplication addValidationErrorsItem​(ValidationError validationErrorsItem)
    • getValidationErrors

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

      public void setValidationErrors​(List<ValidationError> validationErrors)
    • equals

      public boolean equals​(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object