Package com.adyen.model.checkout
Enum BalanceCheckResponse.ResultCodeEnum
- java.lang.Object
-
- java.lang.Enum<BalanceCheckResponse.ResultCodeEnum>
-
- com.adyen.model.checkout.BalanceCheckResponse.ResultCodeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<BalanceCheckResponse.ResultCodeEnum>
- Enclosing class:
- BalanceCheckResponse
public static enum BalanceCheckResponse.ResultCodeEnum extends Enum<BalanceCheckResponse.ResultCodeEnum>
The result of the cancellation request. Possible values: * **Success** – Indicates that the balance check was successful. * **NotEnoughBalance** – Commonly indicates that the card did not have enough balance to pay the amount in the request, or that the currency of the balance on the card did not match the currency of the requested amount. * **Failed** – Indicates that the balance check failed.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FAILEDNOTENOUGHBALANCESUCCESS
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BalanceCheckResponse.ResultCodeEnumfromValue(String value)StringgetValue()StringtoString()static BalanceCheckResponse.ResultCodeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static BalanceCheckResponse.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 BalanceCheckResponse.ResultCodeEnum SUCCESS
-
NOTENOUGHBALANCE
public static final BalanceCheckResponse.ResultCodeEnum NOTENOUGHBALANCE
-
FAILED
public static final BalanceCheckResponse.ResultCodeEnum FAILED
-
-
Method Detail
-
values
public static BalanceCheckResponse.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 (BalanceCheckResponse.ResultCodeEnum c : BalanceCheckResponse.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 BalanceCheckResponse.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<BalanceCheckResponse.ResultCodeEnum>
-
fromValue
public static BalanceCheckResponse.ResultCodeEnum fromValue(String value)
-
-