Package com.six.timapi.constants
Enum PrintFormat
- java.lang.Object
-
- java.lang.Enum<PrintFormat>
-
- com.six.timapi.constants.PrintFormat
-
- All Implemented Interfaces:
Serializable,Comparable<PrintFormat>
public enum PrintFormat extends Enum<PrintFormat>
Constants for PrintFormat tag.
Specification: retail.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description FIELDS_ONLYOnly fields are returned for printing, not a generated receipt.NO_PRINTDo not generate any receipts.NORMALReceipts are generated, formatted and sent to the ECR.ON_DEVICEReceipts are generated and printed on the printer attached to the EFT terminal but not returned to the ECR.ON_DEVICE_WITH_FIELDSReceipts are generated and printed on the printer attached to the EFT terminal and receipt fields are returned to the ECR, not generated receipts.ON_DEVICE_WITH_RECEIPTReceipts are generated and printed on the printer attached to the EFT terminal and generated receipts are returned to the ECR.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static PrintFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static PrintFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_PRINT
public static final PrintFormat NO_PRINT
Do not generate any receipts.
Specification: retail.
-
NORMAL
public static final PrintFormat NORMAL
Receipts are generated, formatted and sent to the ECR. (default)
Specification: retail.
-
ON_DEVICE
public static final PrintFormat ON_DEVICE
Receipts are generated and printed on the printer attached to the EFT terminal but not returned to the ECR.
Specification: retail.
-
FIELDS_ONLY
public static final PrintFormat FIELDS_ONLY
Only fields are returned for printing, not a generated receipt.
Specification: retail.
-
ON_DEVICE_WITH_RECEIPT
public static final PrintFormat ON_DEVICE_WITH_RECEIPT
Receipts are generated and printed on the printer attached to the EFT terminal and generated receipts are returned to the ECR.
Specification: retail.
-
ON_DEVICE_WITH_FIELDS
public static final PrintFormat ON_DEVICE_WITH_FIELDS
Receipts are generated and printed on the printer attached to the EFT terminal and receipt fields are returned to the ECR, not generated receipts.
Specification: retail.
-
-
Method Detail
-
values
public static PrintFormat[] 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 (PrintFormat c : PrintFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PrintFormat 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
-
-