Enum ChargeType

java.lang.Object
java.lang.Enum<ChargeType>
com.xero.models.project.ChargeType
All Implemented Interfaces:
Serializable, Comparable<ChargeType>, java.lang.constant.Constable

public enum ChargeType
extends Enum<ChargeType>
Can be `TIME`, `FIXED` or `NON_CHARGEABLE`, defines how the task will be charged. Use `TIME` when you want to charge per hour and `FIXED` to charge as a fixed amount. If the task will not be charged use `NON_CHARGEABLE`.
  • Enum Constant Details

    • TIME

      public static final ChargeType TIME
    • FIXED

      public static final ChargeType FIXED
    • NON_CHARGEABLE

      public static final ChargeType NON_CHARGEABLE
  • Method Details

    • values

      public static ChargeType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ChargeType 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 name
      NullPointerException - if the argument is null
    • getValue

      public String getValue()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<ChargeType>
    • fromValue

      public static ChargeType fromValue​(String value)