Package com.adyen.model.storedvalue
Enum StoredValueBalanceCheckResponse.ResultCodeEnum
- java.lang.Object
-
- java.lang.Enum<StoredValueBalanceCheckResponse.ResultCodeEnum>
-
- com.adyen.model.storedvalue.StoredValueBalanceCheckResponse.ResultCodeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<StoredValueBalanceCheckResponse.ResultCodeEnum>
- Enclosing class:
- StoredValueBalanceCheckResponse
public static enum StoredValueBalanceCheckResponse.ResultCodeEnum extends Enum<StoredValueBalanceCheckResponse.ResultCodeEnum>
The result of the payment. Possible values: * **Success** – The operation has been completed successfully. * **Refused** – The operation was refused. The reason is given in the `refusalReason` field. * **Error** – There was an error when the operation was processed. The reason is given in the `refusalReason` field. * **NotEnoughBalance** – The amount on the payment method is lower than the amount given in the request. Only applicable to balance checks.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ERRORNOTENOUGHBALANCEREFUSEDSUCCESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StoredValueBalanceCheckResponse.ResultCodeEnumfromValue(String value)StringgetValue()StringtoString()static StoredValueBalanceCheckResponse.ResultCodeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static StoredValueBalanceCheckResponse.ResultCodeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SUCCESS
public static final StoredValueBalanceCheckResponse.ResultCodeEnum SUCCESS
-
REFUSED
public static final StoredValueBalanceCheckResponse.ResultCodeEnum REFUSED
-
ERROR
public static final StoredValueBalanceCheckResponse.ResultCodeEnum ERROR
-
NOTENOUGHBALANCE
public static final StoredValueBalanceCheckResponse.ResultCodeEnum NOTENOUGHBALANCE
-
-
Method Detail
-
values
public static StoredValueBalanceCheckResponse.ResultCodeEnum[] 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 (StoredValueBalanceCheckResponse.ResultCodeEnum c : StoredValueBalanceCheckResponse.ResultCodeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StoredValueBalanceCheckResponse.ResultCodeEnum 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
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<StoredValueBalanceCheckResponse.ResultCodeEnum>
-
fromValue
public static StoredValueBalanceCheckResponse.ResultCodeEnum fromValue(String value)
-
-