public enum LineItemDiscountType extends Enum<LineItemDiscountType>
Java class for LineItemDiscountType.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="LineItemDiscountType">
<restriction base="{http://www.w3.org/2001/XMLSchema}string">
<enumeration value="ABSOLUTE_VALUE"/>
<enumeration value="PERCENTAGE"/>
</restriction>
</simpleType>
| Enum Constant and Description |
|---|
ABSOLUTE_VALUE
An absolute value will be discounted from the line item's cost.
|
PERCENTAGE
A percentage of the cost will be applied as discount for booking the line
item.
|
| Modifier and Type | Method and Description |
|---|---|
static LineItemDiscountType |
fromValue(String v) |
String |
value() |
static LineItemDiscountType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LineItemDiscountType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LineItemDiscountType ABSOLUTE_VALUE
public static final LineItemDiscountType PERCENTAGE
public static LineItemDiscountType[] values()
for (LineItemDiscountType c : LineItemDiscountType.values()) System.out.println(c);
public static LineItemDiscountType 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 String value()
public static LineItemDiscountType fromValue(String v)
Copyright © 2018. All Rights Reserved.