Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • InnerDeviceObserver

Implements

  • CloverDeviceObserver

Index

Constructors

constructor

  • Parameters

    • cc: CloverConnector

    Returns InnerDeviceObserver

Properties

cloverConnector

cloverConnector: CloverConnector

lastPRR

lastPRR: RefundPaymentResponse

logger

logger: Logger = Logger.create()

Methods

onActivityResponse

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

    • status: ResultStatus
    • payload: string
    • reason: string
    • actionId: string

    Returns void

onAuthTipAdjusted

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

    • tarm: TipAdjustResponseMessage
    • Optional responseCode: ResponseCode

    Returns void

onBalanceInquiryResponse

  • onBalanceInquiryResponse(balanceInquiryResponseMessage: BalanceInquiryResponseMessage): void
  • Parameters

    • balanceInquiryResponseMessage: BalanceInquiryResponseMessage

    Returns void

onCapturePreAuth

  • onCapturePreAuth(capturePreAuthResponseMessage: CapturePreAuthResponseMessage): void
  • Parameters

    • capturePreAuthResponseMessage: CapturePreAuthResponseMessage

    Returns void

onCapturePreAuthError

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

    • result: ResponseCode
    • reason: string
    • message: string
    • paymentId: string

    Returns void

onCashbackSelected

  • onCashbackSelected(cashbackAmount: number): void
  • Parameters

    • cashbackAmount: number

    Returns void

onCloseoutResponse

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

    • status: ResultStatus
    • reason: string
    • batch: Batch

    Returns void

onConfirmPayment

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

    • payment: Payment
    • challenges: Challenge[]

    Returns void

onCustomerProvidedDataMessage

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

    • result: ResponseCode
    • eventId: string
    • config: LoyaltyDataConfig
    • data: string

    Returns void

onDeviceConnected

  • onDeviceConnected(): void
  • Returns void

onDeviceDisconnected

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

    • device: CloverDevice
    • Optional message: string

    Returns void

onDeviceError

  • onDeviceError(errorEvent: CloverDeviceErrorEvent): void
  • Parameters

    • errorEvent: CloverDeviceErrorEvent

    Returns void

onDeviceReady

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

    • device: CloverDevice
    • drm: DiscoveryResponseMessage

    Returns void

onDeviceStatusResponse

  • onDeviceStatusResponse(retrieveDeviceStatusResponseMessage: RetrieveDeviceStatusResponseMessage): void
  • Parameters

    • retrieveDeviceStatusResponseMessage: RetrieveDeviceStatusResponseMessage

    Returns void

onDisplayReceiptOptionsResponse

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

    • status: ResultStatus
    • reason: string

    Returns void

onFinishCancel

  • onFinishCancel(requestInfo: string): void
  • Parameters

    • requestInfo: string

    Returns void

onFinishCancelAuth

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

    • result: ResponseCode
    • Optional reason: string
    • Optional message: string

    Returns void

onFinishCancelManualRefund

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

    • result: ResponseCode
    • Optional reason: string
    • Optional message: string

    Returns void

onFinishCancelPreAuth

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

    • result: ResponseCode
    • Optional reason: string
    • Optional message: string

    Returns void

onFinishCancelRefund

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

    • result: ResponseCode
    • Optional reason: string
    • Optional message: string

    Returns void

onFinishCancelSale

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

    • result: ResponseCode
    • Optional reason: string
    • Optional message: string

    Returns void

onFinishCancel_rmm

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

    • result: ResponseCode
    • reason: string
    • message: string
    • requestInfo: string

    Returns void

onFinishOk

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

    • payment: Payment
    • signature: Signature
    • requestInfo: string

    Returns void

  • Parameters

    • credit: Credit

    Returns void

  • Parameters

    • refund: Refund

    Returns void

onFinishOkCredit

  • onFinishOkCredit(credit: Credit): void
  • Parameters

    • credit: Credit

    Returns void

onFinishOkPayment

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

    • payment: Payment
    • signature: Signature
    • requestInfo: string

    Returns void

onFinishOkRefund

  • onFinishOkRefund(refund: Refund): void
  • Parameters

    • refund: Refund

    Returns void

onIncrementPreAuthError

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

    • result: ResponseCode
    • reason: string
    • message: string

    Returns void

onIncrementPreAuthResponse

  • onIncrementPreAuthResponse(responseMsg: IncrementPreAuthResponseMessage): void
  • Parameters

    • responseMsg: IncrementPreAuthResponseMessage

    Returns 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
  • Parameters

    • keyPress: KeyPress

    Returns void

onMessageAck

  • onMessageAck(messageId: string): void
  • Parameters

    • messageId: string

    Returns void

onMessageFromActivity

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

    • actionId: string
    • payload: string

    Returns void

onPartialAuth

  • onPartialAuth(partialAmount: number): void
  • Parameters

    • partialAmount: number

    Returns void

onPaymentRefundResponse

  • onPaymentRefundResponse(refundResponseMessage: RefundResponseMessage): void
  • Parameters

    • refundResponseMessage: RefundResponseMessage

    Returns void

onPaymentRefundVoidResponse

  • onPaymentRefundVoidResponse(voidPaymentRefundResponseMessage: VoidPaymentRefundResponseMessage): void
  • Parameters

    • voidPaymentRefundResponseMessage: VoidPaymentRefundResponseMessage

    Returns void

onPaymentRefundVoided

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

    • refund: Refund
    • code: ResponseCode
    • reason: string
    • message: string

    Returns void

onPaymentVoided

  • onPaymentVoided(voidPaymentResponseMessage: VoidPaymentResponseMessage): void
  • Parameters

    • voidPaymentResponseMessage: VoidPaymentResponseMessage

    Returns void

onPaymentVoided_responseCode

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

    • code: ResponseCode
    • reason: string
    • message: string

    Returns void

onPendingPaymentsResponse

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

    • success: boolean
    • pendingPayments: Array<PendingPaymentEntry>
    • Optional reason: string
    • Optional message: string

    Returns void

onPrintCredit

  • onPrintCredit(credit: Credit): void
  • Parameters

    • credit: Credit

    Returns void

onPrintCreditDecline

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

    • credit: Credit
    • reason: string

    Returns void

onPrintJobStatusResponse

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

    • result: ResponseCode
    • printRequestId: string
    • printStatus: PrintJobStatus

    Returns void

onPrintMerchantReceipt

  • onPrintMerchantReceipt(payment: Payment): void
  • Parameters

    • payment: Payment

    Returns void

onPrintPayment

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

    • payment: Payment
    • order: Order

    Returns void

onPrintPaymentDecline

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

    • payment: Payment
    • reason: string

    Returns void

onPrintRefundPayment

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

    • payment: Payment
    • order: Order
    • refund: Refund

    Returns void

onReadCardDataResponse

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

    • result: ResponseCode
    • reason: string
    • message: string

    Returns void

onReadCardResponse

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

    • status: ResultStatus
    • reason: string
    • cardData: CardData

    Returns void

onRequestTipResponse

  • onRequestTipResponse(requestTipResponseMessage: RequestTipResponseMessage): void
  • Parameters

    • requestTipResponseMessage: RequestTipResponseMessage

    Returns void

onResetDeviceResponse

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

    • result: ResponseCode
    • reason: string
    • state: ExternalDeviceState

    Returns void

onRetrievePaymentResponse

  • onRetrievePaymentResponse(retrievePaymentResponseMessage: RetrievePaymentResponseMessage): void
  • Parameters

    • retrievePaymentResponseMessage: RetrievePaymentResponseMessage

    Returns void

onRetrievePrintersResponse

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

    • result: ResponseCode
    • printers: Array<Printer>

    Returns void

onSignatureCollected

  • onSignatureCollected(signatureResponseMessage: SignatureResponseMessage): void
  • Parameters

    • signatureResponseMessage: SignatureResponseMessage

    Returns void

onTipAdded

  • onTipAdded(tip: number): void
  • Parameters

    • tip: number

    Returns void

onTxStartResponse

  • onTxStartResponse(txStartResponseMessage: TxStartResponseMessage): void
  • Parameters

    • txStartResponseMessage: TxStartResponseMessage

    Returns void

onTxState

  • onTxState(txState: TxState): void
  • Parameters

    • txState: TxState

    Returns void

onUiState

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

    • uiState: UiState
    • uiText: string
    • uiDirection: UiDirection
    • inputOptions: Array<InputOption>

    Returns void

onVaultCardResponse

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

    • vaultCardResponseMessage: VaultCardResponseMessage
    • Optional code: ResponseCode
    • Optional message: string

    Returns void

onVerifySignature

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

    • payment: Payment
    • signature: Signature

    Returns void

Generated using TypeDoc