public static enum Storefront.CheckoutErrorCode extends java.lang.Enum<Storefront.CheckoutErrorCode>
| Enum Constant and Description |
|---|
ALREADY_COMPLETED
Checkout is already completed.
|
BAD_DOMAIN
Input email contains an invalid domain name.
|
BLANK
Input value is blank.
|
CART_DOES_NOT_MEET_DISCOUNT_REQUIREMENTS_NOTICE
Cart does not meet discount requirements notice.
|
CUSTOMER_ALREADY_USED_ONCE_PER_CUSTOMER_DISCOUNT_NOTICE
Customer already used once per customer discount notice.
|
DISCOUNT_ALREADY_APPLIED
Discount already applied.
|
DISCOUNT_DISABLED
Discount disabled.
|
DISCOUNT_EXPIRED
Discount expired.
|
DISCOUNT_LIMIT_REACHED
Discount limit reached.
|
DISCOUNT_NOT_FOUND
Discount not found.
|
EMPTY
Checkout is already completed.
|
GIFT_CARD_ALREADY_APPLIED
Gift card has already been applied.
|
GIFT_CARD_CODE_INVALID
Gift card code is invalid.
|
GIFT_CARD_CURRENCY_MISMATCH
Gift card currency does not match checkout currency.
|
GIFT_CARD_DEPLETED
Gift card has no funds left.
|
GIFT_CARD_DISABLED
Gift card is disabled.
|
GIFT_CARD_EXPIRED
Gift card is expired.
|
GIFT_CARD_NOT_FOUND
Gift card was not found.
|
GIFT_CARD_UNUSABLE
Gift card cannot be applied to a checkout that contains a gift card.
|
GREATER_THAN_OR_EQUAL_TO
Input value should be greater than or equal to minimum allowed value.
|
INVALID
Input value is invalid.
|
INVALID_FOR_COUNTRY
Input Zip is invalid for country provided.
|
INVALID_FOR_COUNTRY_AND_PROVINCE
Input Zip is invalid for country and province provided.
|
INVALID_PROVINCE_IN_COUNTRY
Invalid province in country.
|
INVALID_REGION_IN_COUNTRY
Invalid region in country.
|
INVALID_STATE_IN_COUNTRY
Invalid state in country.
|
LESS_THAN
Input value should be less than maximum allowed value.
|
LESS_THAN_OR_EQUAL_TO
Input value should be less or equal to maximum allowed value.
|
LINE_ITEM_NOT_FOUND
Line item was not found in checkout.
|
LOCKED
Checkout is locked.
|
MISSING_PAYMENT_INPUT
Missing payment input.
|
NOT_ENOUGH_IN_STOCK
Not enough in stock.
|
NOT_SUPPORTED
Input value is not supported.
|
PRESENT
Input value is not present.
|
SHIPPING_RATE_EXPIRED
Shipping rate expired.
|
TOO_LONG
Input value is too long.
|
TOTAL_PRICE_MISMATCH
The amount of the payment does not match the value to be paid.
|
UNABLE_TO_APPLY
Unable to apply discount.
|
UNKNOWN_VALUE |
| Modifier and Type | Method and Description |
|---|---|
static Storefront.CheckoutErrorCode |
fromGraphQl(java.lang.String value) |
java.lang.String |
toString() |
static Storefront.CheckoutErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Storefront.CheckoutErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Storefront.CheckoutErrorCode ALREADY_COMPLETED
public static final Storefront.CheckoutErrorCode BAD_DOMAIN
public static final Storefront.CheckoutErrorCode BLANK
public static final Storefront.CheckoutErrorCode CART_DOES_NOT_MEET_DISCOUNT_REQUIREMENTS_NOTICE
public static final Storefront.CheckoutErrorCode CUSTOMER_ALREADY_USED_ONCE_PER_CUSTOMER_DISCOUNT_NOTICE
public static final Storefront.CheckoutErrorCode DISCOUNT_ALREADY_APPLIED
public static final Storefront.CheckoutErrorCode DISCOUNT_DISABLED
public static final Storefront.CheckoutErrorCode DISCOUNT_EXPIRED
public static final Storefront.CheckoutErrorCode DISCOUNT_LIMIT_REACHED
public static final Storefront.CheckoutErrorCode DISCOUNT_NOT_FOUND
public static final Storefront.CheckoutErrorCode EMPTY
public static final Storefront.CheckoutErrorCode GIFT_CARD_ALREADY_APPLIED
public static final Storefront.CheckoutErrorCode GIFT_CARD_CODE_INVALID
public static final Storefront.CheckoutErrorCode GIFT_CARD_CURRENCY_MISMATCH
public static final Storefront.CheckoutErrorCode GIFT_CARD_DEPLETED
public static final Storefront.CheckoutErrorCode GIFT_CARD_DISABLED
public static final Storefront.CheckoutErrorCode GIFT_CARD_EXPIRED
public static final Storefront.CheckoutErrorCode GIFT_CARD_NOT_FOUND
public static final Storefront.CheckoutErrorCode GIFT_CARD_UNUSABLE
public static final Storefront.CheckoutErrorCode GREATER_THAN_OR_EQUAL_TO
public static final Storefront.CheckoutErrorCode INVALID
public static final Storefront.CheckoutErrorCode INVALID_FOR_COUNTRY
public static final Storefront.CheckoutErrorCode INVALID_FOR_COUNTRY_AND_PROVINCE
public static final Storefront.CheckoutErrorCode INVALID_PROVINCE_IN_COUNTRY
public static final Storefront.CheckoutErrorCode INVALID_REGION_IN_COUNTRY
public static final Storefront.CheckoutErrorCode INVALID_STATE_IN_COUNTRY
public static final Storefront.CheckoutErrorCode LESS_THAN
public static final Storefront.CheckoutErrorCode LESS_THAN_OR_EQUAL_TO
public static final Storefront.CheckoutErrorCode LINE_ITEM_NOT_FOUND
public static final Storefront.CheckoutErrorCode LOCKED
public static final Storefront.CheckoutErrorCode MISSING_PAYMENT_INPUT
public static final Storefront.CheckoutErrorCode NOT_ENOUGH_IN_STOCK
public static final Storefront.CheckoutErrorCode NOT_SUPPORTED
public static final Storefront.CheckoutErrorCode PRESENT
public static final Storefront.CheckoutErrorCode SHIPPING_RATE_EXPIRED
public static final Storefront.CheckoutErrorCode TOO_LONG
public static final Storefront.CheckoutErrorCode TOTAL_PRICE_MISMATCH
public static final Storefront.CheckoutErrorCode UNABLE_TO_APPLY
public static final Storefront.CheckoutErrorCode UNKNOWN_VALUE
public static Storefront.CheckoutErrorCode[] values()
for (Storefront.CheckoutErrorCode c : Storefront.CheckoutErrorCode.values()) System.out.println(c);
public static Storefront.CheckoutErrorCode 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.CheckoutErrorCode fromGraphQl(java.lang.String value)
public java.lang.String toString()
toString in class java.lang.Enum<Storefront.CheckoutErrorCode>