Interface PaymentDelegate
- All Superinterfaces:
BasePaymentDelegate
,EJournalDelegate
,ErrorDelegate
,PrinterOutputDelegate
,SignatureDelegate
,TerminalOutputDelegate
public interface PaymentDelegate
extends BasePaymentDelegate, TerminalOutputDelegate, PrinterOutputDelegate, EJournalDelegate, SignatureDelegate
-
Nested Class Summary
Nested classes/interfaces inherited from interface eu.ccvlab.mapi.core.payment.SignatureDelegate
SignatureDelegate.SignatureAsked
-
Method Summary
Modifier and TypeMethodDescriptiondefault void
drawCustomerSignature
(eu.ccvlab.mapi.core.machine.CustomerSignatureCallback customerSignatureCallback) Method is called BEFORE the ticket is printed, so once drawn, the signature is printed on the ticket.default void
inputCommand
(List<String> lines, String command, int length, eu.ccvlab.mapi.core.machine.InputCommandCallback inputCommandCallback) default void
onDeliverGoodsOrServices
(eu.ccvlab.mapi.core.DeliveryBoxCallback deliveryBoxCallback) Triggers the implementor to indicate if delivery is successful or not.Methods inherited from interface eu.ccvlab.mapi.core.payment.BasePaymentDelegate
onPaymentError, onPaymentSuccess
Methods inherited from interface eu.ccvlab.mapi.core.payment.EJournalDelegate
printJournalReceipt, storeEJournal
Methods inherited from interface eu.ccvlab.mapi.core.payment.ErrorDelegate
onError, onError
Methods inherited from interface eu.ccvlab.mapi.core.payment.PrinterOutputDelegate
eReceipt, printCustomerReceiptAndSignature, printDccOffer, printMerchantReceiptAndSignature
Methods inherited from interface eu.ccvlab.mapi.core.payment.SignatureDelegate
askCustomerIdentification, askCustomerSignature, askCustomerSignature, askMerchantSignature
Methods inherited from interface eu.ccvlab.mapi.core.payment.TerminalOutputDelegate
askCashierInput, cardUID, showOnCustomerDisplay, showOnCustomerDisplay, showTerminalOutput, showTerminalOutputLines, showTerminalOutputMenu, stopMenu
-
Method Details
-
onDeliverGoodsOrServices
default void onDeliverGoodsOrServices(eu.ccvlab.mapi.core.DeliveryBoxCallback deliveryBoxCallback) Triggers the implementor to indicate if delivery is successful or not. This way, the StateMachine is triggered to continue. Providing the callback simplifies the implementors job by facilitating the asynchronous nature of the callback.- Parameters:
deliveryBoxCallback
- implementors will call the callback when delivery is successful or not.
-
drawCustomerSignature
default void drawCustomerSignature(eu.ccvlab.mapi.core.machine.CustomerSignatureCallback customerSignatureCallback) Method is called BEFORE the ticket is printed, so once drawn, the signature is printed on the ticket.- Parameters:
customerSignatureCallback
- The callback which will return the signature to the mAPI
-
inputCommand
-