Package com.six.timapi.constants
Enum PaymentProtocol
- java.lang.Object
-
- java.lang.Enum<PaymentProtocol>
-
- com.six.timapi.constants.PaymentProtocol
-
- All Implemented Interfaces:
Serializable
,Comparable<PaymentProtocol>
public enum PaymentProtocol extends Enum<PaymentProtocol>
Specifies the payment protocol used.
The following values are valid:
Specification: retail.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PaymentProtocol
valueOf(String name)
Returns the enum constant of this type with the specified name.static PaymentProtocol[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EP2
public static final PaymentProtocol EP2
EFTPOS 2000 protocol.
Specification: retail.
-
EV
public static final PaymentProtocol EV
EV protocol.
Specification: retail.
-
VM
public static final PaymentProtocol VM
ValueMaster protocol.
Specification: retail.
-
V3CXML
public static final PaymentProtocol V3CXML
3CXml protocol.
Specification: retail.
-
-
Method Detail
-
values
public static PaymentProtocol[] 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 (PaymentProtocol c : PaymentProtocol.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentProtocol 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
-
-