Enum Class CardValidationError
- All Implemented Interfaces:
Serializable,Comparable<CardValidationError>,Constable
Noteworthy errors captured at card validation time. Card Validation is the process of verifying that the correct card
information has been provided. All these errors should be recoverable by the user, so therefore each error should be
mapped to a helpful error message.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic CardValidationErrorReturns the enum constant of this class with the specified name.static CardValidationError[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INVALID_NUMBER
-
LUHN_CHECK_FAILED
-
INVALID_ISSUE_NUMBER
-
INVALID_ISSUE_DATE
-
INVALID_EXPIRY_DATE
-
INVALID_CURRENCY
-
MISSING_CV2
-
INVALID_CV2_LENGTH
-
INVALID_CV2_FORMAT
-
UNSUPPORTED_CARD_SCHEME
-
INCORRECT_CARD_SCHEME
-
MISSING_CARD_SCHEME
-
UNKNOWN_CARD_SCHEME
-
INVALID_NAME
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-