Package com.adyen.model.payment
Enum Installments.PlanEnum
- java.lang.Object
-
- java.lang.Enum<Installments.PlanEnum>
-
- com.adyen.model.payment.Installments.PlanEnum
-
- All Implemented Interfaces:
Serializable,Comparable<Installments.PlanEnum>
- Enclosing class:
- Installments
public static enum Installments.PlanEnum extends Enum<Installments.PlanEnum>
The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). By default, this is set to **regular**. Possible values: * **regular** * **revolving**
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Installments.PlanEnumfromValue(String value)StringgetValue()StringtoString()static Installments.PlanEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static Installments.PlanEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
REGULAR
public static final Installments.PlanEnum REGULAR
-
REVOLVING
public static final Installments.PlanEnum REVOLVING
-
-
Method Detail
-
values
public static Installments.PlanEnum[] 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 (Installments.PlanEnum c : Installments.PlanEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Installments.PlanEnum 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<Installments.PlanEnum>
-
fromValue
public static Installments.PlanEnum fromValue(String value)
-
-