Package com.adyen.model.storedvalue
Enum StoredValueVoidResponse.ResultCodeEnum
- java.lang.Object
-
- java.lang.Enum<StoredValueVoidResponse.ResultCodeEnum>
-
- com.adyen.model.storedvalue.StoredValueVoidResponse.ResultCodeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<StoredValueVoidResponse.ResultCodeEnum>
- Enclosing class:
- StoredValueVoidResponse
public static enum StoredValueVoidResponse.ResultCodeEnum extends Enum<StoredValueVoidResponse.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 StoredValueVoidResponse.ResultCodeEnumfromValue(String value)StringgetValue()StringtoString()static StoredValueVoidResponse.ResultCodeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static StoredValueVoidResponse.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 StoredValueVoidResponse.ResultCodeEnum SUCCESS
-
REFUSED
public static final StoredValueVoidResponse.ResultCodeEnum REFUSED
-
ERROR
public static final StoredValueVoidResponse.ResultCodeEnum ERROR
-
NOTENOUGHBALANCE
public static final StoredValueVoidResponse.ResultCodeEnum NOTENOUGHBALANCE
-
-
Method Detail
-
values
public static StoredValueVoidResponse.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 (StoredValueVoidResponse.ResultCodeEnum c : StoredValueVoidResponse.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 StoredValueVoidResponse.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<StoredValueVoidResponse.ResultCodeEnum>
-
fromValue
public static StoredValueVoidResponse.ResultCodeEnum fromValue(String value)
-
-