public static enum CommerceDiscountTarget.Type extends java.lang.Enum<CommerceDiscountTarget.Type>
Enum Constant and Description |
---|
APPLY_TO_PRODUCT |
APPLY_TO_SHIPPING |
APPLY_TO_SKU |
APPLY_TO_SUBTOTAL |
APPLY_TO_TOTAL |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getValue() |
java.lang.String |
toString() |
static CommerceDiscountTarget.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CommerceDiscountTarget.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CommerceDiscountTarget.Type APPLY_TO_PRODUCT
public static final CommerceDiscountTarget.Type APPLY_TO_SHIPPING
public static final CommerceDiscountTarget.Type APPLY_TO_SKU
public static final CommerceDiscountTarget.Type APPLY_TO_SUBTOTAL
public static final CommerceDiscountTarget.Type APPLY_TO_TOTAL
public static CommerceDiscountTarget.Type[] values()
for (CommerceDiscountTarget.Type c : CommerceDiscountTarget.Type.values()) System.out.println(c);
public static CommerceDiscountTarget.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getValue()
public java.lang.String toString()
toString
in class java.lang.Enum<CommerceDiscountTarget.Type>