Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InnerDeviceObserver

Implements

  • CloverDeviceObserver

Index

Constructors

constructor

Properties

cloverConnector

cloverConnector: CloverConnector

lastPRR

lastPRR: RefundPaymentResponse

logger

logger: Logger = Logger.create()

Methods

onActivityResponse

  • onActivityResponse(status: ResultStatus, payload: string, reason: string, actionId: string): void

onAuthTipAdjusted

  • onAuthTipAdjusted(tarm: TipAdjustResponseMessage, responseCode: ResponseCode): void

onBalanceInquiryResponse

  • onBalanceInquiryResponse(balanceInquiryResponseMessage: BalanceInquiryResponseMessage): void

onCapturePreAuth

  • onCapturePreAuth(capturePreAuthResponseMessage: CapturePreAuthResponseMessage): void

onCapturePreAuthError

  • onCapturePreAuthError(result: ResponseCode, reason: string, message: string, paymentId: string): void

onCashbackSelected

  • onCashbackSelected(cashbackAmount: number): void

onCloseoutResponse

  • onCloseoutResponse(status: ResultStatus, reason: string, batch: Batch): void

onConfirmPayment

  • onConfirmPayment(payment: Payment, challenges: Challenge[]): void

onCustomerProvidedDataMessage

  • onCustomerProvidedDataMessage(result: ResponseCode, eventId: string, config: LoyaltyDataConfig, data: string): void

onDeviceConnected

  • onDeviceConnected(): void

onDeviceDisconnected

  • onDeviceDisconnected(device: CloverDevice, message: string): void

onDeviceError

  • onDeviceError(errorEvent: CloverDeviceErrorEvent): void

onDeviceReady

  • onDeviceReady(device: CloverDevice, drm: DiscoveryResponseMessage): void

onDeviceStatusResponse

  • onDeviceStatusResponse(retrieveDeviceStatusResponseMessage: RetrieveDeviceStatusResponseMessage): void

onDisplayReceiptOptionsResponse

  • onDisplayReceiptOptionsResponse(status: ResultStatus, reason: string): void

onFinishCancel

  • onFinishCancel(requestInfo: string): void

onFinishCancelAuth

  • onFinishCancelAuth(result: ResponseCode, reason: string, message: string): void

onFinishCancelManualRefund

  • onFinishCancelManualRefund(result: ResponseCode, reason: string, message: string): void

onFinishCancelPreAuth

  • onFinishCancelPreAuth(result: ResponseCode, reason: string, message: string): void

onFinishCancelRefund

  • onFinishCancelRefund(result: ResponseCode, reason: string, message: string): void

onFinishCancelSale

  • onFinishCancelSale(result: ResponseCode, reason: string, message: string): void

onFinishCancel_rmm

  • onFinishCancel_rmm(result: ResponseCode, reason: string, message: string, requestInfo: string): void

onFinishOk

  • onFinishOk(payment: Payment, signature: Signature, requestInfo: string): void
  • onFinishOk(credit: Credit): void
  • onFinishOk(refund: Refund): void

onFinishOkCredit

  • onFinishOkCredit(credit: Credit): void

onFinishOkPayment

  • onFinishOkPayment(payment: Payment, signature: Signature, requestInfo: string): void

onFinishOkRefund

  • onFinishOkRefund(refund: Refund): void

onIncrementPreAuthError

  • onIncrementPreAuthError(result: ResponseCode, reason: string, message: string): void

onIncrementPreAuthResponse

  • onIncrementPreAuthResponse(responseMsg: IncrementPreAuthResponseMessage): void

onInvalidStateTransitionResponse

  • onInvalidStateTransitionResponse(status: ResultStatus, reason: string, requestedTransition: string, state: ExternalDeviceState, data: ExternalDeviceStateData): void
  • Parameters

    • status: ResultStatus
    • reason: string
    • requestedTransition: string
    • state: ExternalDeviceState
    • data: ExternalDeviceStateData

    Returns void

onKeyPressed

  • onKeyPressed(keyPress: KeyPress): void

onMessageAck

  • onMessageAck(messageId: string): void

onMessageFromActivity

  • onMessageFromActivity(actionId: string, payload: string): void

onPartialAuth

  • onPartialAuth(partialAmount: number): void

onPaymentRefundResponse

  • onPaymentRefundResponse(refundResponseMessage: RefundResponseMessage): void

onPaymentRefundVoidResponse

  • onPaymentRefundVoidResponse(voidPaymentRefundResponseMessage: VoidPaymentRefundResponseMessage): void

onPaymentRefundVoided

  • onPaymentRefundVoided(refund: Refund, code: ResponseCode, reason: string, message: string): void

onPaymentVoided

  • onPaymentVoided(voidPaymentResponseMessage: VoidPaymentResponseMessage): void

onPaymentVoided_responseCode

  • onPaymentVoided_responseCode(code: ResponseCode, reason: string, message: string): void

onPendingPaymentsResponse

  • onPendingPaymentsResponse(success: boolean, pendingPayments: Array<PendingPaymentEntry>, reason: string, message: string): void

onPrintCredit

  • onPrintCredit(credit: Credit): void

onPrintCreditDecline

  • onPrintCreditDecline(credit: Credit, reason: string): void

onPrintJobStatusResponse

  • onPrintJobStatusResponse(result: ResponseCode, printRequestId: string, printStatus: PrintJobStatus): void

onPrintMerchantReceipt

  • onPrintMerchantReceipt(payment: Payment): void

onPrintPayment

  • onPrintPayment(payment: Payment, order: Order): void

onPrintPaymentDecline

  • onPrintPaymentDecline(payment: Payment, reason: string): void

onPrintRefundPayment

  • onPrintRefundPayment(payment: Payment, order: Order, refund: Refund): void

onReadCardDataResponse

  • onReadCardDataResponse(result: ResponseCode, reason: string, message: string): void

onReadCardResponse

  • onReadCardResponse(status: ResultStatus, reason: string, cardData: CardData): void

onRequestTipResponse

  • onRequestTipResponse(requestTipResponseMessage: RequestTipResponseMessage): void

onResetDeviceResponse

  • onResetDeviceResponse(result: ResponseCode, reason: string, state: ExternalDeviceState): void

onRetrievePaymentResponse

  • onRetrievePaymentResponse(retrievePaymentResponseMessage: RetrievePaymentResponseMessage): void

onRetrievePrintersResponse

  • onRetrievePrintersResponse(result: ResponseCode, printers: Array<Printer>): void

onSignatureCollected

  • onSignatureCollected(signatureResponseMessage: SignatureResponseMessage): void

onTipAdded

  • onTipAdded(tip: number): void

onTxStartResponse

  • onTxStartResponse(txStartResponseMessage: TxStartResponseMessage): void

onTxState

  • onTxState(txState: TxState): void

onUiState

  • onUiState(uiState: UiState, uiText: string, uiDirection: UiDirection, inputOptions: Array<InputOption>): void

onVaultCardResponse

  • onVaultCardResponse(vaultCardResponseMessage: VaultCardResponseMessage, code: ResponseCode, message: string): void

onVerifySignature

  • onVerifySignature(payment: Payment, signature: Signature): void

Generated using TypeDoc