Package com.clover.sdk.v3.payments.api
Enum CardEntryMethod
- java.lang.Object
-
- java.lang.Enum<CardEntryMethod>
-
- com.clover.sdk.v3.payments.api.CardEntryMethod
-
- All Implemented Interfaces:
Serializable
,Comparable<CardEntryMethod>
public enum CardEntryMethod extends Enum<CardEntryMethod>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CHIP
Constant referring to Chip Card readerMAG_STRIPE
Constant referring to Magnetic Stripe Card readerMANUAL
Constant referring to manually entering card informationNFC
Constant referring to Contactless NFC Card reader
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Set<CardEntryMethod>
All()
static Set<CardEntryMethod>
CardReaders()
String
getValue()
static Set<CardEntryMethod>
Manual()
static CardEntryMethod
valueOf(String name)
Returns the enum constant of this type with the specified name.static CardEntryMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAG_STRIPE
public static final CardEntryMethod MAG_STRIPE
Constant referring to Magnetic Stripe Card reader
-
CHIP
public static final CardEntryMethod CHIP
Constant referring to Chip Card reader
-
NFC
public static final CardEntryMethod NFC
Constant referring to Contactless NFC Card reader
-
MANUAL
public static final CardEntryMethod MANUAL
Constant referring to manually entering card information
-
-
Method Detail
-
values
public static CardEntryMethod[] 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 (CardEntryMethod c : CardEntryMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CardEntryMethod 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()
-
CardReaders
public static Set<CardEntryMethod> CardReaders()
- Returns:
- - a set of card entry options including CHIP, NFC and MAG_STRIPE
-
Manual
public static Set<CardEntryMethod> Manual()
- Returns:
- - a set containing only the MANUAL card entry option
-
All
public static Set<CardEntryMethod> All()
- Returns:
- - a set containing all card entry options (CHIP, NFC, MAG_STRIPE and MANUAL)
-
-