public class ConfigByte
extends java.lang.Object
logon command
to
the terminal. The Config-Byte represents a bit field. To delete the configuration use ZVTClient.logoff()
.Config-Byte | Definition |
---|---|
0000 0001 | reserved for further use |
0000 0010 | ECR assumes receipt-printout for payment functions (see also ECR Printing – ECR print-type) 0: payment receipt not printed by ECR 1: payment receipt printed by ECR |
0000 0100 | ECR assumes receipt-printout for administration functions (see also ECR print-type) 0: administration receipt not printed by ECR 1: administration receipt printed by ECR |
0000 1000 | ECR requires intermediate status-Information. The PT sends no intermediate statusinformation if not logged-on. |
0001 0000 | ECR controls payment function 0: Amount input on PT possible 1: Amount input on PT not possible |
0010 0000 | ECR controls administration function 0: Start of administration function on PT possible 1: Start of administration function on PT not possible |
0100 0000 | reserved for further use |
1000 0000 | ECR print-type (see also ECR assumes receipt-printout for payment functions and ECR assumes receipt-printout for administration functions): 0: Terminal will not send the receipt to the cash register. The receipt must be generated from the information in the ZVTResponse 1: Terminal sends receipt to cash register. To get the receipts use ZVTResponse.getMerchantReceipt() or ZVTResponse.getCustomerReceipt() |
setEcrRequestsReceipt(boolean)
and so on.Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getConfigByte() |
static boolean |
isEcrControlsAdministrativeFunctions() |
static boolean |
isEcrControlsPaymentFunctions() |
static boolean |
isEcrPrintsAdministrativeReceipt() |
static boolean |
isEcrPrintsPaymentReceipt() |
static boolean |
isEcrRequestsReceipt() |
static boolean |
isEcrRequiredStatusInformation() |
static void |
setConfigByte(int configByte) |
static void |
setConfigByte(java.lang.String configByte) |
static void |
setEcrControlsAdministrativeFunctions(boolean ecrControlsAdministrativeFunctions) |
static void |
setEcrControlsPaymentFunctions(boolean ecrControlsPaymentFunctions) |
static void |
setEcrPrintsAdministrativeReceipt(boolean ecrPrintsAdministrativeReceipt) |
static void |
setEcrPrintsPaymentReceipt(boolean ecrPrintsPaymentReceipt) |
static void |
setEcrRequestsReceipt(boolean ecrRequestsReceipt) |
static void |
setEcrRequiredStatusInformation(boolean ecrRequiredStatusInformation) |
public static java.lang.String getConfigByte()
public static boolean isEcrControlsAdministrativeFunctions()
public static boolean isEcrControlsPaymentFunctions()
public static boolean isEcrPrintsAdministrativeReceipt()
public static boolean isEcrPrintsPaymentReceipt()
public static boolean isEcrRequestsReceipt()
ZVTResponse.getMerchantReceipt()
or
ZVTResponse.getCustomerReceipt()
public static boolean isEcrRequiredStatusInformation()
IntermediateStatusInformationListener
interface and add a intermediate status information listener. Status informations will distributed in the
IntermediateStatusInformationListener.intermediateStatusInformation(IntermediateStatusInformation)
method.public static void setConfigByte(int configByte)
configByte
- To set the Config-Byte with the calculated hex value as int. eg. ConfigByte.setConfigByte(0xBE);public static void setConfigByte(java.lang.String configByte)
configByte
- To set the Config-Byte with the calculated hex value as string. eg. ConfigByte.setConfigByte("BE");public static void setEcrControlsAdministrativeFunctions(boolean ecrControlsAdministrativeFunctions)
ecrControlsAdministrativeFunctions
- If ecrControlsAdministrativeFunctions is set the start of administrative functions on the terminal is not possible. On the terminal screen "ECR in use" appears.public static void setEcrControlsPaymentFunctions(boolean ecrControlsPaymentFunctions)
ecrControlsPaymentFunctions
- If ecrControlsPaymentFunctions is set the start of payment functions on the terminal is not possible. On the terminal screen "ECR in use" appears.public static void setEcrPrintsAdministrativeReceipt(boolean ecrPrintsAdministrativeReceipt)
ecrPrintsAdministrativeReceipt
- If ecrPrintsAdministrativeReceipt is set, the receipt-printout for administrative functions must be done by the cash register. The terminal will not print a receipt
for these kind of transaction.public static void setEcrPrintsPaymentReceipt(boolean ecrPrintsPaymentReceipt)
ecrPrintsPaymentReceipt
- If ecrPrintsPaymentReceipt is set, the receipt-printout for payment functions must be done by the cash register. The terminal will not print a receipt for these kind
of transaction.public static void setEcrRequestsReceipt(boolean ecrRequestsReceipt)
ecrRequestsReceipt
- If ecrRequestsReceipt is set, the terminal sends the receipts back to the ecr. To get the receipts use ZVTResponse.getMerchantReceipt()
or
ZVTResponse.getCustomerReceipt()
public static void setEcrRequiredStatusInformation(boolean ecrRequiredStatusInformation)
ecrRequiredStatusInformation
- To get intermediate status information set ecrRequiredStatusInformation. Also implement the IntermediateStatusInformationListener
interface and add a
listener. Status informations will distributed in the IntermediateStatusInformationListener.intermediateStatusInformation(IntermediateStatusInformation)
method. The PT sends no intermediate status information if not logged-on (registered).