Class LeaveType

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

public class LeaveType
extends Object
LeaveType
  • Constructor Details

    • LeaveType

      public LeaveType()
  • Method Details

    • name

      public LeaveType name​(String name)
    • getName

      public String getName()
      Name of the earnings rate (max length = 100)
      Returns:
      name
    • setName

      public void setName​(String name)
    • typeOfUnits

      public LeaveType typeOfUnits​(String typeOfUnits)
    • getTypeOfUnits

      public String getTypeOfUnits()
      The type of units by which leave entitlements are normally tracked. These are typically the same as the type of units used for the employee’s ordinary earnings rate
      Returns:
      typeOfUnits
    • setTypeOfUnits

      public void setTypeOfUnits​(String typeOfUnits)
    • leaveTypeID

      public LeaveType leaveTypeID​(UUID leaveTypeID)
    • getLeaveTypeID

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

      public void setLeaveTypeID​(UUID leaveTypeID)
    • normalEntitlement

      public LeaveType normalEntitlement​(Double normalEntitlement)
    • getNormalEntitlement

      public Double getNormalEntitlement()
      The number of units the employee is entitled to each year
      Returns:
      normalEntitlement
    • setNormalEntitlement

      public void setNormalEntitlement​(Double normalEntitlement)
    • leaveLoadingRate

      public LeaveType leaveLoadingRate​(Double leaveLoadingRate)
    • getLeaveLoadingRate

      public Double getLeaveLoadingRate()
      Enter an amount here if your organisation pays an additional percentage on top of ordinary earnings when your employees take leave (typically 17.5%)
      Returns:
      leaveLoadingRate
    • setLeaveLoadingRate

      public void setLeaveLoadingRate​(Double leaveLoadingRate)
    • getUpdatedDateUTC

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

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

      public LeaveType isPaidLeave​(Boolean isPaidLeave)
    • getIsPaidLeave

      public Boolean getIsPaidLeave()
      Set this to 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()
      Set this if you want a balance for this leave type to be shown on your employee’s payslips
      Returns:
      showOnPayslip
    • setShowOnPayslip

      public void setShowOnPayslip​(Boolean showOnPayslip)
    • currentRecord

      public LeaveType currentRecord​(Boolean currentRecord)
    • getCurrentRecord

      public Boolean getCurrentRecord()
      Is the current record
      Returns:
      currentRecord
    • setCurrentRecord

      public void setCurrentRecord​(Boolean currentRecord)
    • 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