Enum CheckoutStatusCodesEnum
- java.lang.Object
-
- java.lang.Enum<CheckoutStatusCodesEnum>
-
- com.broadleafcommerce.payment.service.gateway.constants.CheckoutStatusCodesEnum
-
- All Implemented Interfaces:
Serializable,Comparable<CheckoutStatusCodesEnum>
public enum CheckoutStatusCodesEnum extends Enum<CheckoutStatusCodesEnum>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BAD_GATEWAYINVALID_DATANETWORK_ERRORNOT_ALLOWEDPAYMENT_NOT_FOUNDTOO_MANY_OR_DUPLICATE_REQUESTSUNAUTHORIZED
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CheckoutStatusCodesEnumgetErrorDetails(Integer statusCode)StringgetMessage()IntegergetStatusCode()com.broadleafcommerce.paymentgateway.domain.enums.TransactionFailureTypegetTransactionFailureType()static CheckoutStatusCodesEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static CheckoutStatusCodesEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NETWORK_ERROR
public static final CheckoutStatusCodesEnum NETWORK_ERROR
-
UNAUTHORIZED
public static final CheckoutStatusCodesEnum UNAUTHORIZED
-
NOT_ALLOWED
public static final CheckoutStatusCodesEnum NOT_ALLOWED
-
PAYMENT_NOT_FOUND
public static final CheckoutStatusCodesEnum PAYMENT_NOT_FOUND
-
INVALID_DATA
public static final CheckoutStatusCodesEnum INVALID_DATA
-
TOO_MANY_OR_DUPLICATE_REQUESTS
public static final CheckoutStatusCodesEnum TOO_MANY_OR_DUPLICATE_REQUESTS
-
BAD_GATEWAY
public static final CheckoutStatusCodesEnum BAD_GATEWAY
-
-
Method Detail
-
values
public static CheckoutStatusCodesEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (CheckoutStatusCodesEnum c : CheckoutStatusCodesEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CheckoutStatusCodesEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getErrorDetails
@Nullable public static CheckoutStatusCodesEnum getErrorDetails(Integer statusCode)
-
getStatusCode
public Integer getStatusCode()
-
getMessage
public String getMessage()
-
getTransactionFailureType
public com.broadleafcommerce.paymentgateway.domain.enums.TransactionFailureType getTransactionFailureType()
-
-