Enum PaymentServiceExceptionCodes
- java.lang.Object
-
- java.lang.Enum<PaymentServiceExceptionCodes>
-
- com.hybris.cis.client.payment.exception.PaymentServiceExceptionCodes
-
- All Implemented Interfaces:
StandardServiceExceptionCode,java.io.Serializable,java.lang.Comparable<PaymentServiceExceptionCodes>
public enum PaymentServiceExceptionCodes extends java.lang.Enum<PaymentServiceExceptionCodes> implements StandardServiceExceptionCode
Payment api service exception codes (range 4000 - 4999).
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMOUNT_INVALID"The amount requested is invalid".AMOUNT_MISSING"The amount requested is missing".CARD_ACCOUNTNUMBER_INVALID"The card number is invalid".CARD_ACCOUNTNUMBER_MISSING"The card number is missing".CARD_EXP_DATE_INVALIDThe expiration date is invalid".CARD_EXP_DATE_MISSING"The expiration date is missing".CARD_TYPE_INVALID"The card type is invalid".CARD_TYPE_MISSING"The card type is missing".CVV_NUMBER_REJECTED"The CV number was rejected.".GENERAL_DECLINE_OF_CARD"An unhandled critical error code was returned by the psp ".INVALID_BILLING_ADDRESS"The billing address is invalid".INVALID_CAPTURE_TYPE"The capture type is not valid".INVALID_ORDER_STATUS_UPDATE"The order status update is not valid".MISSING_CUSTOMER_EMAIL"The customer email is missing".SIGNATURE_VERIFICATION_FAILED"Signature verification failed for request".UNKNOWN_CRITICAL_ERROR"An unhandled critical error code was returned by the psp ".UNKNOWN_UNCRITICAL_ERROR"An unhandled uncritical error code was returned by the psp ".UNREADABLE_REQUEST"Unreadable request was send".
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCode()java.lang.StringgetMessage()java.lang.StringtoString()static PaymentServiceExceptionCodesvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static PaymentServiceExceptionCodes[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CARD_TYPE_INVALID
public static final PaymentServiceExceptionCodes CARD_TYPE_INVALID
"The card type is invalid".
-
CARD_ACCOUNTNUMBER_INVALID
public static final PaymentServiceExceptionCodes CARD_ACCOUNTNUMBER_INVALID
"The card number is invalid".
-
CARD_EXP_DATE_INVALID
public static final PaymentServiceExceptionCodes CARD_EXP_DATE_INVALID
The expiration date is invalid".
-
AMOUNT_INVALID
public static final PaymentServiceExceptionCodes AMOUNT_INVALID
"The amount requested is invalid".
-
AMOUNT_MISSING
public static final PaymentServiceExceptionCodes AMOUNT_MISSING
"The amount requested is missing".
-
CARD_TYPE_MISSING
public static final PaymentServiceExceptionCodes CARD_TYPE_MISSING
"The card type is missing".
-
CARD_ACCOUNTNUMBER_MISSING
public static final PaymentServiceExceptionCodes CARD_ACCOUNTNUMBER_MISSING
"The card number is missing".
-
CARD_EXP_DATE_MISSING
public static final PaymentServiceExceptionCodes CARD_EXP_DATE_MISSING
"The expiration date is missing".
-
SIGNATURE_VERIFICATION_FAILED
public static final PaymentServiceExceptionCodes SIGNATURE_VERIFICATION_FAILED
"Signature verification failed for request".
-
INVALID_ORDER_STATUS_UPDATE
public static final PaymentServiceExceptionCodes INVALID_ORDER_STATUS_UPDATE
"The order status update is not valid".
-
INVALID_CAPTURE_TYPE
public static final PaymentServiceExceptionCodes INVALID_CAPTURE_TYPE
"The capture type is not valid".
-
MISSING_CUSTOMER_EMAIL
public static final PaymentServiceExceptionCodes MISSING_CUSTOMER_EMAIL
"The customer email is missing".
-
INVALID_BILLING_ADDRESS
public static final PaymentServiceExceptionCodes INVALID_BILLING_ADDRESS
"The billing address is invalid".
-
UNKNOWN_UNCRITICAL_ERROR
public static final PaymentServiceExceptionCodes UNKNOWN_UNCRITICAL_ERROR
"An unhandled uncritical error code was returned by the psp ".
-
UNKNOWN_CRITICAL_ERROR
public static final PaymentServiceExceptionCodes UNKNOWN_CRITICAL_ERROR
"An unhandled critical error code was returned by the psp ".
-
GENERAL_DECLINE_OF_CARD
public static final PaymentServiceExceptionCodes GENERAL_DECLINE_OF_CARD
"An unhandled critical error code was returned by the psp ".
-
CVV_NUMBER_REJECTED
public static final PaymentServiceExceptionCodes CVV_NUMBER_REJECTED
"The CV number was rejected.".
-
UNREADABLE_REQUEST
public static final PaymentServiceExceptionCodes UNREADABLE_REQUEST
"Unreadable request was send".
-
-
Method Detail
-
values
public static PaymentServiceExceptionCodes[] 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 (PaymentServiceExceptionCodes c : PaymentServiceExceptionCodes.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentServiceExceptionCodes valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getCode
public int getCode()
- Specified by:
getCodein interfaceStandardServiceExceptionCode
-
getMessage
public java.lang.String getMessage()
- Specified by:
getMessagein interfaceStandardServiceExceptionCode
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Enum<PaymentServiceExceptionCodes>
-
-