Package io.electrum.suv.api.models
Enum ErrorDetail.ErrorType
- java.lang.Object
-
- java.lang.Enum<ErrorDetail.ErrorType>
-
- io.electrum.suv.api.models.ErrorDetail.ErrorType
-
- All Implemented Interfaces:
Serializable,Comparable<ErrorDetail.ErrorType>
- Enclosing class:
- ErrorDetail
public static enum ErrorDetail.ErrorType extends Enum<ErrorDetail.ErrorType>
The type of error that occurred
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ErrorDetail.ErrorTypefromValue(String text)StringtoString()static ErrorDetail.ErrorTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ErrorDetail.ErrorType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DUPLICATE_RECORD
public static final ErrorDetail.ErrorType DUPLICATE_RECORD
-
FORMAT_ERROR
public static final ErrorDetail.ErrorType FORMAT_ERROR
-
FUNCTION_NOT_SUPPORTED
public static final ErrorDetail.ErrorType FUNCTION_NOT_SUPPORTED
-
GENERAL_ERROR
public static final ErrorDetail.ErrorType GENERAL_ERROR
-
INVALID_AMOUNT
public static final ErrorDetail.ErrorType INVALID_AMOUNT
-
ROUTING_ERROR
public static final ErrorDetail.ErrorType ROUTING_ERROR
-
TRANSACTION_NOT_SUPPORTED
public static final ErrorDetail.ErrorType TRANSACTION_NOT_SUPPORTED
-
UNABLE_TO_LOCATE_RECORD
public static final ErrorDetail.ErrorType UNABLE_TO_LOCATE_RECORD
-
UPSTREAM_UNAVAILABLE
public static final ErrorDetail.ErrorType UPSTREAM_UNAVAILABLE
-
VOUCHER_ALREADY_REDEEMED
public static final ErrorDetail.ErrorType VOUCHER_ALREADY_REDEEMED
-
VOUCHER_ALREADY_PROVISIONED
public static final ErrorDetail.ErrorType VOUCHER_ALREADY_PROVISIONED
-
VOUCHER_ALREADY_CONFIRMED
public static final ErrorDetail.ErrorType VOUCHER_ALREADY_CONFIRMED
-
VOUCHER_ALREADY_REVERSED
public static final ErrorDetail.ErrorType VOUCHER_ALREADY_REVERSED
-
VOUCHER_ALREADY_REFUNDED
public static final ErrorDetail.ErrorType VOUCHER_ALREADY_REFUNDED
-
VOUCHER_NOT_REFUNDED
public static final ErrorDetail.ErrorType VOUCHER_NOT_REFUNDED
-
VOUCHER_NOT_REDEEMABLE
public static final ErrorDetail.ErrorType VOUCHER_NOT_REDEEMABLE
-
VOUCHER_NOT_REDEEMED
public static final ErrorDetail.ErrorType VOUCHER_NOT_REDEEMED
-
VOUCHER_STATUS_UNKNOWN
public static final ErrorDetail.ErrorType VOUCHER_STATUS_UNKNOWN
-
REDEMPTION_ALREADY_CONFIRMED
public static final ErrorDetail.ErrorType REDEMPTION_ALREADY_CONFIRMED
-
REDEMPTION_NOT_CONFIRMED
public static final ErrorDetail.ErrorType REDEMPTION_NOT_CONFIRMED
-
REDEMPTION_ALREADY_REVERSED
public static final ErrorDetail.ErrorType REDEMPTION_ALREADY_REVERSED
-
REFUND_ALREADY_CONFIRMED
public static final ErrorDetail.ErrorType REFUND_ALREADY_CONFIRMED
-
REFUND_ALREADY_REVERSED
public static final ErrorDetail.ErrorType REFUND_ALREADY_REVERSED
-
INVALID_MERCHANT
public static final ErrorDetail.ErrorType INVALID_MERCHANT
-
INVALID_VOUCHER
public static final ErrorDetail.ErrorType INVALID_VOUCHER
-
AUTHENTICATION_ERROR
public static final ErrorDetail.ErrorType AUTHENTICATION_ERROR
-
INSUFFICIENT_AMOUNT
public static final ErrorDetail.ErrorType INSUFFICIENT_AMOUNT
-
DO_NOT_HONOUR
public static final ErrorDetail.ErrorType DO_NOT_HONOUR
-
OUT_OF_STOCK
public static final ErrorDetail.ErrorType OUT_OF_STOCK
-
INVALID_PRODUCT
public static final ErrorDetail.ErrorType INVALID_PRODUCT
-
-
Method Detail
-
values
public static ErrorDetail.ErrorType[] 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 (ErrorDetail.ErrorType c : ErrorDetail.ErrorType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ErrorDetail.ErrorType 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
-
fromValue
public static ErrorDetail.ErrorType fromValue(String text)
-
toString
public String toString()
- Overrides:
toStringin classEnum<ErrorDetail.ErrorType>
-
-