Class LeaveType

java.lang.Object
com.xero.models.payrollnz.LeaveType

public class LeaveType
extends Object
LeaveType
  • Constructor Details

    • LeaveType

      public LeaveType()
  • Method Details

    • leaveTypeID

      public LeaveType leaveTypeID​(UUID leaveTypeID)
    • getLeaveTypeID

      public UUID getLeaveTypeID()
      Xero unique identifier for the leave type
      Returns:
      leaveTypeID
    • setLeaveTypeID

      public void setLeaveTypeID​(UUID leaveTypeID)
    • name

      public LeaveType name​(String name)
    • getName

      public String getName()
      Name of the leave type
      Returns:
      name
    • setName

      public void setName​(String name)
    • isPaidLeave

      public LeaveType isPaidLeave​(Boolean isPaidLeave)
    • getIsPaidLeave

      public Boolean getIsPaidLeave()
      Indicate that an employee will be paid when taking this type of leave
      Returns:
      isPaidLeave
    • setIsPaidLeave

      public void setIsPaidLeave​(Boolean isPaidLeave)
    • showOnPayslip

      public LeaveType showOnPayslip​(Boolean showOnPayslip)
    • getShowOnPayslip

      public Boolean getShowOnPayslip()
      Indicate that a balance for this leave type to be shown on the employee’s payslips
      Returns:
      showOnPayslip
    • setShowOnPayslip

      public void setShowOnPayslip​(Boolean showOnPayslip)
    • updatedDateUTC

      public LeaveType updatedDateUTC​(org.threeten.bp.LocalDateTime updatedDateUTC)
    • 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)
    • isActive

      public LeaveType isActive​(Boolean isActive)
    • getIsActive

      public Boolean getIsActive()
      Shows whether the leave type is active or not
      Returns:
      isActive
    • setIsActive

      public void setIsActive​(Boolean isActive)
    • 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