public static enum Storefront.CartErrorCode extends java.lang.Enum<Storefront.CartErrorCode>
| Enum Constant and Description |
|---|
INVALID
The input value is invalid.
|
INVALID_MERCHANDISE_LINE
Merchandise line was not found in cart.
|
LESS_THAN
The input value should be less than the maximum value allowed.
|
MISSING_DISCOUNT_CODE
Missing discount code.
|
MISSING_NOTE
Missing note.
|
UNKNOWN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.CartErrorCode |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.CartErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.CartErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.CartErrorCode INVALID
public static final Storefront.CartErrorCode INVALID_MERCHANDISE_LINE
public static final Storefront.CartErrorCode LESS_THAN
public static final Storefront.CartErrorCode MISSING_DISCOUNT_CODE
public static final Storefront.CartErrorCode MISSING_NOTE
public static final Storefront.CartErrorCode UNKNOWN_VALUE
public static Storefront.CartErrorCode[] values()
for (Storefront.CartErrorCode c : Storefront.CartErrorCode.values()) System.out.println(c);
public static Storefront.CartErrorCode 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.CartErrorCode fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.CartErrorCode>