Package com.adyen.model.management
Enum PayAtTable.PaymentInstrumentEnum
- java.lang.Object
-
- java.lang.Enum<PayAtTable.PaymentInstrumentEnum>
-
- com.adyen.model.management.PayAtTable.PaymentInstrumentEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PayAtTable.PaymentInstrumentEnum>
- Enclosing class:
- PayAtTable
public static enum PayAtTable.PaymentInstrumentEnum extends Enum<PayAtTable.PaymentInstrumentEnum>
Sets the allowed payment instrument for Pay at table transactions. Can be: **cash** or **card**. If not set, the terminal presents both options.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PayAtTable.PaymentInstrumentEnumfromValue(String value)StringgetValue()StringtoString()static PayAtTable.PaymentInstrumentEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PayAtTable.PaymentInstrumentEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CASH
public static final PayAtTable.PaymentInstrumentEnum CASH
-
CARD
public static final PayAtTable.PaymentInstrumentEnum CARD
-
-
Method Detail
-
values
public static PayAtTable.PaymentInstrumentEnum[] 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 (PayAtTable.PaymentInstrumentEnum c : PayAtTable.PaymentInstrumentEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PayAtTable.PaymentInstrumentEnum 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<PayAtTable.PaymentInstrumentEnum>
-
fromValue
public static PayAtTable.PaymentInstrumentEnum fromValue(String value)
-
-