Package com.adyen.model.checkout
Enum ModelConfiguration.CardHolderNameEnum
- java.lang.Object
-
- java.lang.Enum<ModelConfiguration.CardHolderNameEnum>
-
- com.adyen.model.checkout.ModelConfiguration.CardHolderNameEnum
-
- All Implemented Interfaces:
Serializable,Comparable<ModelConfiguration.CardHolderNameEnum>
- Enclosing class:
- ModelConfiguration
public static enum ModelConfiguration.CardHolderNameEnum extends Enum<ModelConfiguration.CardHolderNameEnum>
Determines whether the cardholder name should be provided or not. Permitted values: * NONE * OPTIONAL * REQUIRED
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ModelConfiguration.CardHolderNameEnumfromValue(String value)StringgetValue()StringtoString()static ModelConfiguration.CardHolderNameEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static ModelConfiguration.CardHolderNameEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONE
public static final ModelConfiguration.CardHolderNameEnum NONE
-
OPTIONAL
public static final ModelConfiguration.CardHolderNameEnum OPTIONAL
-
REQUIRED
public static final ModelConfiguration.CardHolderNameEnum REQUIRED
-
-
Method Detail
-
values
public static ModelConfiguration.CardHolderNameEnum[] 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 (ModelConfiguration.CardHolderNameEnum c : ModelConfiguration.CardHolderNameEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ModelConfiguration.CardHolderNameEnum 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<ModelConfiguration.CardHolderNameEnum>
-
fromValue
public static ModelConfiguration.CardHolderNameEnum fromValue(String value)
-
-