public static enum Storefront.DiscountApplicationTargetSelection extends java.lang.Enum<Storefront.DiscountApplicationTargetSelection>
| Enum Constant and Description |
|---|
ALL
The discount is allocated onto all the lines.
|
ENTITLED
The discount is allocated onto only the lines that it's entitled for.
|
EXPLICIT
The discount is allocated onto explicitly chosen lines.
|
UNKNOWN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.DiscountApplicationTargetSelection |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.DiscountApplicationTargetSelection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.DiscountApplicationTargetSelection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.DiscountApplicationTargetSelection ALL
public static final Storefront.DiscountApplicationTargetSelection ENTITLED
public static final Storefront.DiscountApplicationTargetSelection EXPLICIT
public static final Storefront.DiscountApplicationTargetSelection UNKNOWN_VALUE
public static Storefront.DiscountApplicationTargetSelection[] values()
for (Storefront.DiscountApplicationTargetSelection c : Storefront.DiscountApplicationTargetSelection.values()) System.out.println(c);
public static Storefront.DiscountApplicationTargetSelection 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 static Storefront.DiscountApplicationTargetSelection fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.DiscountApplicationTargetSelection>