Package com.adyen.model.checkout
Enum CheckoutBalanceCheckResponse.ResultCodeEnum
- java.lang.Object
-
- java.lang.Enum<CheckoutBalanceCheckResponse.ResultCodeEnum>
-
- com.adyen.model.checkout.CheckoutBalanceCheckResponse.ResultCodeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<CheckoutBalanceCheckResponse.ResultCodeEnum>
- Enclosing class:
- CheckoutBalanceCheckResponse
public static enum CheckoutBalanceCheckResponse.ResultCodeEnum extends Enum<CheckoutBalanceCheckResponse.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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCheckoutBalanceCheckResponse.ResultCodeEnum.Adapter
-
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 CheckoutBalanceCheckResponse.ResultCodeEnumfromValue(String value)StringgetValue()StringtoString()static CheckoutBalanceCheckResponse.ResultCodeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static CheckoutBalanceCheckResponse.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 CheckoutBalanceCheckResponse.ResultCodeEnum SUCCESS
-
NOTENOUGHBALANCE
public static final CheckoutBalanceCheckResponse.ResultCodeEnum NOTENOUGHBALANCE
-
FAILED
public static final CheckoutBalanceCheckResponse.ResultCodeEnum FAILED
-
-
Method Detail
-
values
public static CheckoutBalanceCheckResponse.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 (CheckoutBalanceCheckResponse.ResultCodeEnum c : CheckoutBalanceCheckResponse.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 CheckoutBalanceCheckResponse.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<CheckoutBalanceCheckResponse.ResultCodeEnum>
-
fromValue
public static CheckoutBalanceCheckResponse.ResultCodeEnum fromValue(String value)
-
-