public static enum Storefront.OrderCancelReason extends java.lang.Enum<Storefront.OrderCancelReason>
| Enum Constant and Description |
|---|
CUSTOMER
The customer wanted to cancel the order.
|
DECLINED
Payment was declined.
|
FRAUD
The order was fraudulent.
|
INVENTORY
There was insufficient inventory.
|
OTHER
The order was canceled for an unlisted reason.
|
UNKNOWN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.OrderCancelReason |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.OrderCancelReason |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.OrderCancelReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.OrderCancelReason CUSTOMER
public static final Storefront.OrderCancelReason DECLINED
public static final Storefront.OrderCancelReason FRAUD
public static final Storefront.OrderCancelReason INVENTORY
public static final Storefront.OrderCancelReason OTHER
public static final Storefront.OrderCancelReason UNKNOWN_VALUE
public static Storefront.OrderCancelReason[] values()
for (Storefront.OrderCancelReason c : Storefront.OrderCancelReason.values()) System.out.println(c);
public static Storefront.OrderCancelReason 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.OrderCancelReason fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.OrderCancelReason>