Package com.adyen.model.checkout
Enum LineItem.TaxCategoryEnum
- java.lang.Object
-
- java.lang.Enum<LineItem.TaxCategoryEnum>
-
- com.adyen.model.checkout.LineItem.TaxCategoryEnum
-
- All Implemented Interfaces:
Serializable,Comparable<LineItem.TaxCategoryEnum>
- Enclosing class:
- LineItem
public static enum LineItem.TaxCategoryEnum extends Enum<LineItem.TaxCategoryEnum>
Tax category: High, Low, None, Zero
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classLineItem.TaxCategoryEnum.Adapter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LineItem.TaxCategoryEnumfromValue(String text)StringgetValue()StringtoString()static LineItem.TaxCategoryEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static LineItem.TaxCategoryEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
HIGH
public static final LineItem.TaxCategoryEnum HIGH
-
LOW
public static final LineItem.TaxCategoryEnum LOW
-
NONE
public static final LineItem.TaxCategoryEnum NONE
-
ZERO
public static final LineItem.TaxCategoryEnum ZERO
-
-
Method Detail
-
values
public static LineItem.TaxCategoryEnum[] 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 (LineItem.TaxCategoryEnum c : LineItem.TaxCategoryEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineItem.TaxCategoryEnum 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
-
fromValue
public static LineItem.TaxCategoryEnum fromValue(String text)
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<LineItem.TaxCategoryEnum>
-
-