Package com.xero.models.payrollnz
Enum EarningsRate.EarningsTypeEnum
- java.lang.Object
-
- java.lang.Enum<EarningsRate.EarningsTypeEnum>
-
- com.xero.models.payrollnz.EarningsRate.EarningsTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<EarningsRate.EarningsTypeEnum>
- Enclosing class:
- EarningsRate
public static enum EarningsRate.EarningsTypeEnum extends Enum<EarningsRate.EarningsTypeEnum>
Indicates how an employee will be paid when taking this type of earning
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWANCEALLOWANCEBACKPAYBACKPAYBONUSBONUSCOMMISSIONCOMMISSIONDISCRETIONARYPAYMENTSDISCRETIONARYPAYMENTSHOLIDAYPAYHOLIDAYPAYLUMPSUMLUMPSUMOTHEREARNINGSOTHEREARNINGSOTHERGROSSEARNINGSOTHERGROSSEARNINGSOVERTIMEEARNINGSOVERTIMEEARNINGSREGULAREARNINGSREGULAREARNINGSSALARYSACRIFICEFORKIWISAVERSALARYSACRIFICEFORKIWISAVERTIPS_DIRECT_TIPS_DIRECT_TIPS_NON_DIRECT_TIPS_NON_DIRECT_WITHHOLDINGINCOMEWITHHOLDINGINCOME
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static EarningsRate.EarningsTypeEnumfromValue(String value)fromValueStringgetValue()getValueStringtoString()toStringstatic EarningsRate.EarningsTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static EarningsRate.EarningsTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOWANCE
public static final EarningsRate.EarningsTypeEnum ALLOWANCE
ALLOWANCE
-
BACKPAY
public static final EarningsRate.EarningsTypeEnum BACKPAY
BACKPAY
-
BONUS
public static final EarningsRate.EarningsTypeEnum BONUS
BONUS
-
COMMISSION
public static final EarningsRate.EarningsTypeEnum COMMISSION
COMMISSION
-
DISCRETIONARYPAYMENTS
public static final EarningsRate.EarningsTypeEnum DISCRETIONARYPAYMENTS
DISCRETIONARYPAYMENTS
-
HOLIDAYPAY
public static final EarningsRate.EarningsTypeEnum HOLIDAYPAY
HOLIDAYPAY
-
LUMPSUM
public static final EarningsRate.EarningsTypeEnum LUMPSUM
LUMPSUM
-
OTHEREARNINGS
public static final EarningsRate.EarningsTypeEnum OTHEREARNINGS
OTHEREARNINGS
-
OTHERGROSSEARNINGS
public static final EarningsRate.EarningsTypeEnum OTHERGROSSEARNINGS
OTHERGROSSEARNINGS
-
OVERTIMEEARNINGS
public static final EarningsRate.EarningsTypeEnum OVERTIMEEARNINGS
OVERTIMEEARNINGS
-
REGULAREARNINGS
public static final EarningsRate.EarningsTypeEnum REGULAREARNINGS
REGULAREARNINGS
-
SALARYSACRIFICEFORKIWISAVER
public static final EarningsRate.EarningsTypeEnum SALARYSACRIFICEFORKIWISAVER
SALARYSACRIFICEFORKIWISAVER
-
TIPS_DIRECT_
public static final EarningsRate.EarningsTypeEnum TIPS_DIRECT_
TIPS_DIRECT_
-
TIPS_NON_DIRECT_
public static final EarningsRate.EarningsTypeEnum TIPS_NON_DIRECT_
TIPS_NON_DIRECT_
-
WITHHOLDINGINCOME
public static final EarningsRate.EarningsTypeEnum WITHHOLDINGINCOME
WITHHOLDINGINCOME
-
-
Method Detail
-
values
public static EarningsRate.EarningsTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (EarningsRate.EarningsTypeEnum c : EarningsRate.EarningsTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EarningsRate.EarningsTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
getValue- Returns:
- String value
-
toString
public String toString()
toString- Overrides:
toStringin classEnum<EarningsRate.EarningsTypeEnum>- Returns:
- String value
-
fromValue
public static EarningsRate.EarningsTypeEnum fromValue(String value)
fromValue- Parameters:
value- String
-
-