Package com.six.timapi
Class Convenience
- java.lang.Object
-
- com.six.timapi.Convenience
-
public class Convenience extends Object
Convenience functions for TIM API use.
-
-
Constructor Summary
Constructors Constructor Description Convenience()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
needsSignature(Cvm cvm)
Determine if a Cvm method is used requiring a signature capture.static PrintData
processPrintReceipts(Terminal terminal, PrintData printData)
Process print data if containing fields creating final transaction receipts.
-
-
-
Method Detail
-
needsSignature
public static boolean needsSignature(Cvm cvm)
Determine if a Cvm method is used requiring a signature capture.- Returns:
- true if cvm is any of:
-
processPrintReceipts
public static PrintData processPrintReceipts(Terminal terminal, PrintData printData)
Process print data if containing fields creating final transaction receipts. If print field data is present the receipt formatter of the terminal instance is used to create final receipts stored back into the print data instance. If print field data is absent this method does nothing.- Parameters:
terminal
- Terminal containing receipt formatter to use. If receipt formatter is null no receipts are generated even if print fields data is present.printData
- Print data containing receipts to print. Can be null if print data is absent for convenience with transaction responses.- Returns:
- Print data with receipts ready to print or null if printData is null.
-
-