Package com.xero.models.payrollau
Class EarningsRate
- java.lang.Object
-
- com.xero.models.payrollau.EarningsRate
-
public class EarningsRate extends Object
EarningsRate
-
-
Constructor Summary
Constructors Constructor Description EarningsRate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description EarningsRateaccountCode(String accountCode)See AccountsEarningsRateaccrueLeave(Boolean accrueLeave)Indicates that this earnings rate should accrue leave.EarningsRateallowanceType(AllowanceType allowanceType)allowanceTypeEarningsRateamount(Double amount)Optional Amount for FIXEDAMOUNT RateType EarningsRateEarningsRatecurrentRecord(Boolean currentRecord)Is the current recordEarningsRateearningsRateID(UUID earningsRateID)Xero identifierEarningsRateearningsType(EarningsType earningsType)earningsTypeEarningsRateemploymentTerminationPaymentType(EmploymentTerminationPaymentType employmentTerminationPaymentType)employmentTerminationPaymentTypebooleanequals(Object o)StringgetAccountCode()See AccountsBooleangetAccrueLeave()Indicates that this earnings rate should accrue leave.AllowanceTypegetAllowanceType()Get allowanceTypeDoublegetAmount()Optional Amount for FIXEDAMOUNT RateType EarningsRateBooleangetCurrentRecord()Is the current recordUUIDgetEarningsRateID()Xero identifierEarningsTypegetEarningsType()Get earningsTypeEmploymentTerminationPaymentTypegetEmploymentTerminationPaymentType()Get employmentTerminationPaymentTypeBooleangetIsExemptFromSuper()See the ATO website for details of which payments are exempt from SGCBooleangetIsExemptFromTax()Most payments are subject to tax, so you should only set this value if you are sure that a payment is exempt from PAYG withholdingBooleangetIsReportableAsW1()Boolean to determine if the earnings rate is reportable or exempt from W1DoublegetMultiplier()This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate.StringgetName()Name of the earnings rate (max length = 100)StringgetRatePerUnit()Default rate per unit (optional).RateTypegetRateType()Get rateTypeStringgetTypeOfUnits()Type of units used to record earnings (max length = 50).StringgetUpdatedDateUTC()Last modified timestamporg.threeten.bp.OffsetDateTimegetUpdatedDateUTCAsDate()Last modified timestampinthashCode()EarningsRateisExemptFromSuper(Boolean isExemptFromSuper)See the ATO website for details of which payments are exempt from SGCEarningsRateisExemptFromTax(Boolean isExemptFromTax)Most payments are subject to tax, so you should only set this value if you are sure that a payment is exempt from PAYG withholdingEarningsRateisReportableAsW1(Boolean isReportableAsW1)Boolean to determine if the earnings rate is reportable or exempt from W1EarningsRatemultiplier(Double multiplier)This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate.EarningsRatename(String name)Name of the earnings rate (max length = 100)EarningsRateratePerUnit(String ratePerUnit)Default rate per unit (optional).EarningsRaterateType(RateType rateType)rateTypevoidsetAccountCode(String accountCode)See AccountsvoidsetAccrueLeave(Boolean accrueLeave)Indicates that this earnings rate should accrue leave.voidsetAllowanceType(AllowanceType allowanceType)allowanceTypevoidsetAmount(Double amount)Optional Amount for FIXEDAMOUNT RateType EarningsRatevoidsetCurrentRecord(Boolean currentRecord)Is the current recordvoidsetEarningsRateID(UUID earningsRateID)Xero identifiervoidsetEarningsType(EarningsType earningsType)earningsTypevoidsetEmploymentTerminationPaymentType(EmploymentTerminationPaymentType employmentTerminationPaymentType)employmentTerminationPaymentTypevoidsetIsExemptFromSuper(Boolean isExemptFromSuper)See the ATO website for details of which payments are exempt from SGCvoidsetIsExemptFromTax(Boolean isExemptFromTax)Most payments are subject to tax, so you should only set this value if you are sure that a payment is exempt from PAYG withholdingvoidsetIsReportableAsW1(Boolean isReportableAsW1)Boolean to determine if the earnings rate is reportable or exempt from W1voidsetMultiplier(Double multiplier)This is the multiplier used to calculate the rate per unit, based on the employee’s ordinary earnings rate.voidsetName(String name)Name of the earnings rate (max length = 100)voidsetRatePerUnit(String ratePerUnit)Default rate per unit (optional).voidsetRateType(RateType rateType)rateTypevoidsetTypeOfUnits(String typeOfUnits)Type of units used to record earnings (max length = 50).StringtoString()EarningsRatetypeOfUnits(String typeOfUnits)Type of units used to record earnings (max length = 50).
-
-
-
Method Detail
-
name
public EarningsRate name(String name)
Name of the earnings rate (max length = 100)- Parameters:
name- String- Returns:
- EarningsRate
-
getName
public String getName()
Name of the earnings rate (max length = 100)- Returns:
- name
-
setName
public void setName(String name)
Name of the earnings rate (max length = 100)- Parameters:
name- String
-
accountCode
public EarningsRate accountCode(String accountCode)
See Accounts- Parameters:
accountCode- String- Returns:
- EarningsRate
-
getAccountCode
public String getAccountCode()
See Accounts- Returns:
- accountCode
-
setAccountCode
public void setAccountCode(String accountCode)
See Accounts- Parameters:
accountCode- String
-
typeOfUnits
public EarningsRate typeOfUnits(String typeOfUnits)
Type of units used to record earnings (max length = 50). Only When RateType is RATEPERUNIT- Parameters:
typeOfUnits- String- Returns:
- EarningsRate
-
getTypeOfUnits
public String getTypeOfUnits()
Type of units used to record earnings (max length = 50). Only When RateType is RATEPERUNIT- Returns:
- typeOfUnits
-
setTypeOfUnits
public void setTypeOfUnits(String typeOfUnits)
Type of units used to record earnings (max length = 50). Only When RateType is RATEPERUNIT- Parameters:
typeOfUnits- String
-
isExemptFromTax
public EarningsRate isExemptFromTax(Boolean isExemptFromTax)
Most payments are subject to tax, so you should only set this value if you are sure that a payment is exempt from PAYG withholding- Parameters:
isExemptFromTax- Boolean- Returns:
- EarningsRate
-
getIsExemptFromTax
public Boolean getIsExemptFromTax()
Most payments are subject to tax, so you should only set this value if you are sure that a payment is exempt from PAYG withholding- Returns:
- isExemptFromTax
-
setIsExemptFromTax
public void setIsExemptFromTax(Boolean isExemptFromTax)
Most payments are subject to tax, so you should only set this value if you are sure that a payment is exempt from PAYG withholding- Parameters:
isExemptFromTax- Boolean
-
isExemptFromSuper
public EarningsRate isExemptFromSuper(Boolean isExemptFromSuper)
See the ATO website for details of which payments are exempt from SGC- Parameters:
isExemptFromSuper- Boolean- Returns:
- EarningsRate
-
getIsExemptFromSuper
public Boolean getIsExemptFromSuper()
See the ATO website for details of which payments are exempt from SGC- Returns:
- isExemptFromSuper
-
setIsExemptFromSuper
public void setIsExemptFromSuper(Boolean isExemptFromSuper)
See the ATO website for details of which payments are exempt from SGC- Parameters:
isExemptFromSuper- Boolean
-
isReportableAsW1
public EarningsRate isReportableAsW1(Boolean isReportableAsW1)
Boolean to determine if the earnings rate is reportable or exempt from W1- Parameters:
isReportableAsW1- Boolean- Returns:
- EarningsRate
-
getIsReportableAsW1
public Boolean getIsReportableAsW1()
Boolean to determine if the earnings rate is reportable or exempt from W1- Returns:
- isReportableAsW1
-
setIsReportableAsW1
public void setIsReportableAsW1(Boolean isReportableAsW1)
Boolean to determine if the earnings rate is reportable or exempt from W1- Parameters:
isReportableAsW1- Boolean
-
earningsType
public EarningsRate earningsType(EarningsType earningsType)
earningsType- Parameters:
earningsType- EarningsType- Returns:
- EarningsRate
-
getEarningsType
public EarningsType getEarningsType()
Get earningsType- Returns:
- earningsType
-
setEarningsType
public void setEarningsType(EarningsType earningsType)
earningsType- Parameters:
earningsType- EarningsType
-
earningsRateID
public EarningsRate earningsRateID(UUID earningsRateID)
Xero identifier- Parameters:
earningsRateID- UUID- Returns:
- EarningsRate
-
getEarningsRateID
public UUID getEarningsRateID()
Xero identifier- Returns:
- earningsRateID
-
setEarningsRateID
public void setEarningsRateID(UUID earningsRateID)
Xero identifier- Parameters:
earningsRateID- UUID
-
rateType
public EarningsRate rateType(RateType rateType)
rateType- Parameters:
rateType- RateType- Returns:
- EarningsRate
-
getRateType
public RateType getRateType()
Get rateType- Returns:
- rateType
-
setRateType
public void setRateType(RateType rateType)
rateType- Parameters:
rateType- RateType
-
ratePerUnit
public EarningsRate ratePerUnit(String ratePerUnit)
Default rate per unit (optional). Only applicable if RateType is RATEPERUNIT.- Parameters:
ratePerUnit- String- Returns:
- EarningsRate
-
getRatePerUnit
public String getRatePerUnit()
Default rate per unit (optional). Only applicable if RateType is RATEPERUNIT.- Returns:
- ratePerUnit
-
setRatePerUnit
public void setRatePerUnit(String ratePerUnit)
Default rate per unit (optional). Only applicable if RateType is RATEPERUNIT.- Parameters:
ratePerUnit- String
-
multiplier
public EarningsRate multiplier(Double multiplier)
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 MULTIPLE- Parameters:
multiplier- Double- Returns:
- EarningsRate
-
getMultiplier
public Double getMultiplier()
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 MULTIPLE- Returns:
- multiplier
-
setMultiplier
public void setMultiplier(Double multiplier)
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 MULTIPLE- Parameters:
multiplier- Double
-
accrueLeave
public EarningsRate accrueLeave(Boolean accrueLeave)
Indicates that this earnings rate should accrue leave. Only applicable if RateType is MULTIPLE- Parameters:
accrueLeave- Boolean- Returns:
- EarningsRate
-
getAccrueLeave
public Boolean getAccrueLeave()
Indicates that this earnings rate should accrue leave. Only applicable if RateType is MULTIPLE- Returns:
- accrueLeave
-
setAccrueLeave
public void setAccrueLeave(Boolean accrueLeave)
Indicates that this earnings rate should accrue leave. Only applicable if RateType is MULTIPLE- Parameters:
accrueLeave- Boolean
-
amount
public EarningsRate amount(Double amount)
Optional Amount for FIXEDAMOUNT RateType EarningsRate- Parameters:
amount- Double- Returns:
- EarningsRate
-
getAmount
public Double getAmount()
Optional Amount for FIXEDAMOUNT RateType EarningsRate- Returns:
- amount
-
setAmount
public void setAmount(Double amount)
Optional Amount for FIXEDAMOUNT RateType EarningsRate- Parameters:
amount- Double
-
employmentTerminationPaymentType
public EarningsRate employmentTerminationPaymentType(EmploymentTerminationPaymentType employmentTerminationPaymentType)
employmentTerminationPaymentType- Parameters:
employmentTerminationPaymentType- EmploymentTerminationPaymentType- Returns:
- EarningsRate
-
getEmploymentTerminationPaymentType
public EmploymentTerminationPaymentType getEmploymentTerminationPaymentType()
Get employmentTerminationPaymentType- Returns:
- employmentTerminationPaymentType
-
setEmploymentTerminationPaymentType
public void setEmploymentTerminationPaymentType(EmploymentTerminationPaymentType employmentTerminationPaymentType)
employmentTerminationPaymentType- Parameters:
employmentTerminationPaymentType- EmploymentTerminationPaymentType
-
getUpdatedDateUTC
public String getUpdatedDateUTC()
Last modified timestamp- Returns:
- updatedDateUTC
-
getUpdatedDateUTCAsDate
public org.threeten.bp.OffsetDateTime getUpdatedDateUTCAsDate()
Last modified timestamp- Returns:
- OffsetDateTime
-
currentRecord
public EarningsRate currentRecord(Boolean currentRecord)
Is the current record- Parameters:
currentRecord- Boolean- Returns:
- EarningsRate
-
getCurrentRecord
public Boolean getCurrentRecord()
Is the current record- Returns:
- currentRecord
-
setCurrentRecord
public void setCurrentRecord(Boolean currentRecord)
Is the current record- Parameters:
currentRecord- Boolean
-
allowanceType
public EarningsRate allowanceType(AllowanceType allowanceType)
allowanceType- Parameters:
allowanceType- AllowanceType- Returns:
- EarningsRate
-
getAllowanceType
public AllowanceType getAllowanceType()
Get allowanceType- Returns:
- allowanceType
-
setAllowanceType
public void setAllowanceType(AllowanceType allowanceType)
allowanceType- Parameters:
allowanceType- AllowanceType
-
-