Package com.xero.models.payrollnz
Class EarningsRate
java.lang.Object
com.xero.models.payrollnz.EarningsRate
public class EarningsRate extends Object
EarningsRate
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEarningsRate.EarningsTypeEnumIndicates how an employee will be paid when taking this type of earningstatic classEarningsRate.RateTypeEnumIndicates the type of the earning rate -
Constructor Summary
Constructors Constructor Description EarningsRate() -
Method Summary
Modifier and Type Method Description EarningsRatecurrentRecord(Boolean currentRecord)EarningsRateearningsRateID(UUID earningsRateID)EarningsRateearningsType(EarningsRate.EarningsTypeEnum earningsType)booleanequals(Object o)EarningsRateexpenseAccountID(UUID expenseAccountID)EarningsRatefixedAmount(Double fixedAmount)BooleangetCurrentRecord()Indicates whether an earning type is activeUUIDgetEarningsRateID()Xero unique identifier for an earning rateEarningsRate.EarningsTypeEnumgetEarningsType()Indicates how an employee will be paid when taking this type of earningUUIDgetExpenseAccountID()The account that will be used for the earnings rateDoublegetFixedAmount()Optional Fixed Rate Amount.DoublegetMultipleOfOrdinaryEarningsRate()This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate.StringgetName()Name of the earning rateDoublegetRatePerUnit()Default rate per unit (optional).EarningsRate.RateTypeEnumgetRateType()Indicates the type of the earning rateStringgetTypeOfUnits()The type of units used to record earningsinthashCode()EarningsRatemultipleOfOrdinaryEarningsRate(Double multipleOfOrdinaryEarningsRate)EarningsRatename(String name)EarningsRateratePerUnit(Double ratePerUnit)EarningsRaterateType(EarningsRate.RateTypeEnum rateType)voidsetCurrentRecord(Boolean currentRecord)voidsetEarningsRateID(UUID earningsRateID)voidsetEarningsType(EarningsRate.EarningsTypeEnum earningsType)voidsetExpenseAccountID(UUID expenseAccountID)voidsetFixedAmount(Double fixedAmount)voidsetMultipleOfOrdinaryEarningsRate(Double multipleOfOrdinaryEarningsRate)voidsetName(String name)voidsetRatePerUnit(Double ratePerUnit)voidsetRateType(EarningsRate.RateTypeEnum rateType)voidsetTypeOfUnits(String typeOfUnits)StringtoString()EarningsRatetypeOfUnits(String typeOfUnits)
-
Constructor Details
-
EarningsRate
public EarningsRate()
-
-
Method Details
-
earningsRateID
-
getEarningsRateID
Xero unique identifier for an earning rate- Returns:
- earningsRateID
-
setEarningsRateID
-
name
-
getName
Name of the earning rate- Returns:
- name
-
setName
-
earningsType
-
getEarningsType
Indicates how an employee will be paid when taking this type of earning- Returns:
- earningsType
-
setEarningsType
-
rateType
-
getRateType
Indicates the type of the earning rate- Returns:
- rateType
-
setRateType
-
typeOfUnits
-
getTypeOfUnits
The type of units used to record earnings- Returns:
- typeOfUnits
-
setTypeOfUnits
-
currentRecord
-
getCurrentRecord
Indicates whether an earning type is active- Returns:
- currentRecord
-
setCurrentRecord
-
expenseAccountID
-
getExpenseAccountID
The account that will be used for the earnings rate- Returns:
- expenseAccountID
-
setExpenseAccountID
-
ratePerUnit
-
getRatePerUnit
Default rate per unit (optional). Only applicable if RateType is RatePerUnit- Returns:
- ratePerUnit
-
setRatePerUnit
-
multipleOfOrdinaryEarningsRate
-
getMultipleOfOrdinaryEarningsRate
This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate. For example, for time and a half enter 1.5. Only applicable if RateType is MultipleOfOrdinaryEarningsRate- Returns:
- multipleOfOrdinaryEarningsRate
-
setMultipleOfOrdinaryEarningsRate
-
fixedAmount
-
getFixedAmount
Optional Fixed Rate Amount. Applicable for FixedAmount Rate- Returns:
- fixedAmount
-
setFixedAmount
-
equals
-
hashCode
public int hashCode() -
toString
-