public enum DefaultCheckoutFailureTypes extends Enum<DefaultCheckoutFailureTypes> implements CheckoutFailureType
checkoutFailureTypes
used to categorize the reason
that a checkout submission failed.Enum Constant and Description |
---|
DUPLICATE_REQUEST_ID
The current checkout request ID is a duplicate within the cart's checkout IDs
|
FAILED_INVENTORY_CHECK
An inventory check against the cart's items failed.
|
FAILED_PAYMENT_CONFIRMATION
The confirmation of the cart's payment(s) failed.
|
INTERNAL_ERROR
Represents an unexpected error during the processing of the checkout submission.
|
INVALID_CAMPAIGN_CODE_USAGE
If the cart is using campaign codes, the usage of those codes must still be valid when the
customer attempts to checkout.
|
INVALID_CART_FULFILLMENT_CONFIG
There is invalid fulfillment data and therefore it is unclear how each cart item should be
fulfilled once the checkout is complete.
|
INVALID_CART_FULFILLMENT_MISSING
There is missing fulfillment data and therefore it is unclear how each cart item should be
fulfilled once the checkout is complete.
|
INVALID_CART_ITEM_CONFIG
There is invalid or missing cart item information and therefore it is unclear what the
customer is attempting to purchase.
|
INVALID_CART_PRICING
The cart and all of its items must have finalized pricing before the checkout can be
processed.
|
INVALID_CART_STATUS
The cart is in an invalid status to complete checkout.
|
INVALID_OFFER_OR_OFFER_CODE_USAGE
If the cart is using offers or offer codes, the usage of those offers or offer codes must
still be valid when the customer attempts to checkout.
|
INVALID_PAYMENT_CONFIG
The cart must have valid payments and the sum of those payment amounts must be equal to the
order total.
|
PAYMENT_REQUIRES_3DS_VERIFICATION
The confirmation of the cart's payment(s) failed because 3DS verification is required.
|
STALE_CART_PRICING_HIGHER
The cart pricing is out of date and the latest prices are higher than they previously were.
|
STALE_CART_PRICING_LOWER
The cart pricing is out of date and the latest prices are lower than they previously were.
|
Modifier and Type | Method and Description |
---|---|
String |
getMessagePath() |
static boolean |
isInternalError(String failureType) |
static boolean |
isInvalidCampaignCodeUsageFailure(String failureType) |
static boolean |
isInvalidCartFulfillmentConfigFailure(String failureType) |
static boolean |
isInvalidCartFulfillmentMissingFailure(String failureType) |
static boolean |
isInvalidCartItemConfigFailure(String failureType) |
static boolean |
isInvalidCartPricingFailure(String failureType) |
static boolean |
isInvalidCartStatusFailure(String failureType) |
static boolean |
isInvalidOfferOrOfferCodeUsageFailure(String failureType) |
static boolean |
isInvalidPaymentConfigFailure(String failureType) |
static boolean |
isPaymentConfirmationFailure(String failureType) |
static DefaultCheckoutFailureTypes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DefaultCheckoutFailureTypes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
name
public static final DefaultCheckoutFailureTypes INTERNAL_ERROR
public static final DefaultCheckoutFailureTypes DUPLICATE_REQUEST_ID
public static final DefaultCheckoutFailureTypes INVALID_CART_STATUS
public static final DefaultCheckoutFailureTypes INVALID_CART_ITEM_CONFIG
public static final DefaultCheckoutFailureTypes INVALID_CART_FULFILLMENT_CONFIG
public static final DefaultCheckoutFailureTypes INVALID_CART_FULFILLMENT_MISSING
public static final DefaultCheckoutFailureTypes INVALID_CART_PRICING
public static final DefaultCheckoutFailureTypes STALE_CART_PRICING_HIGHER
public static final DefaultCheckoutFailureTypes STALE_CART_PRICING_LOWER
public static final DefaultCheckoutFailureTypes INVALID_PAYMENT_CONFIG
public static final DefaultCheckoutFailureTypes INVALID_OFFER_OR_OFFER_CODE_USAGE
public static final DefaultCheckoutFailureTypes INVALID_CAMPAIGN_CODE_USAGE
public static final DefaultCheckoutFailureTypes FAILED_INVENTORY_CHECK
public static final DefaultCheckoutFailureTypes PAYMENT_REQUIRES_3DS_VERIFICATION
public static final DefaultCheckoutFailureTypes FAILED_PAYMENT_CONFIRMATION
public static DefaultCheckoutFailureTypes[] values()
for (DefaultCheckoutFailureTypes c : DefaultCheckoutFailureTypes.values()) System.out.println(c);
public static DefaultCheckoutFailureTypes valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic static boolean isInternalError(String failureType)
public static boolean isInvalidCartStatusFailure(String failureType)
public static boolean isInvalidCartItemConfigFailure(String failureType)
public static boolean isInvalidCartFulfillmentConfigFailure(String failureType)
public static boolean isInvalidCartFulfillmentMissingFailure(String failureType)
public static boolean isInvalidCartPricingFailure(String failureType)
public static boolean isInvalidPaymentConfigFailure(String failureType)
public static boolean isInvalidOfferOrOfferCodeUsageFailure(String failureType)
public static boolean isInvalidCampaignCodeUsageFailure(String failureType)
public static boolean isPaymentConfirmationFailure(String failureType)
public String getMessagePath()
getMessagePath
in interface CheckoutFailureType
Copyright © 2021. All rights reserved.