public enum TaxCalculationMode extends Enum<TaxCalculationMode> implements SphereEnumeration
Enum Constant and Description |
---|
LINE_ITEM_LEVEL
This calculation mode calculates the taxes after the unit price is multiplied with the quantity.
{@code E.g. |
UNIT_PRICE_LEVEL
This calculation mode calculates the taxes on the unit price before multiplying with the quantity.
{@code E.g. |
Modifier and Type | Method and Description |
---|---|
static TaxCalculationMode |
ofSphereValue(String value) |
static TaxCalculationMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TaxCalculationMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
findBySphereName, name, toSphereName
public static final TaxCalculationMode LINE_ITEM_LEVEL
E.g. ($1.08 * 3 = $3.24) * 1.19 = $3.8556 -> $3.86 rounded
public static final TaxCalculationMode UNIT_PRICE_LEVEL
E.g. ($1.08 * 1.19 = $1.2852 -> $1.29 rounded) * 3 = $3.87
public static TaxCalculationMode[] values()
for (TaxCalculationMode c : TaxCalculationMode.values()) System.out.println(c);
public static TaxCalculationMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static TaxCalculationMode ofSphereValue(String value)