Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • WebSocketPairedCloverDeviceConfigurationBuilder

Index

Constructors

constructor

  • new WebSocketPairedCloverDeviceConfigurationBuilder(applicationId: string, uri: string, posName: string, serialNumber: string, authToken: string, onPairingCode: function, onPairingSuccess: function): WebSocketPairedCloverDeviceConfigurationBuilder
  • Parameters

    • applicationId: string

      the applicationId that uniquely identifies the POS. e.g. com.company.MyPOS:2.3.1

    • uri: string

      the endpoint of the Clover device. e.g. wss://192.168.1.15:12345/remote_pay

    • posName: string

      Displayed during pairing to display the POS name on the Mini. e.g. MyPOS

    • serialNumber: string

      Displayed during pairing to display the device identifier. e.g. 'Aisle 3' or 'POS-35153234'

    • authToken: string

      The authToken retrieved from a previous pairing activity, passed as an argument to onPairingSuccess. This will be null for the first connection

    • onPairingCode: function

      Function that will be called when a pairing code is sent. Typically, this would be displayed to the user, and they would enter this code into the device screen.

        • (pairingCode: string): void
        • Parameters

          • pairingCode: string

          Returns void

    • onPairingSuccess: function

      Function that will be called when the pairing process is complete, a authentication token is sent that be reused.

        • (authToken: string): void
        • Parameters

          • authToken: string

          Returns void

    Returns WebSocketPairedCloverDeviceConfigurationBuilder

Properties

Private applicationId

applicationId: string

Private authToken

authToken: string

Private heartbeatDisconnectTimeout

heartbeatDisconnectTimeout: number

Private heartbeatInterval

heartbeatInterval: number

Private imageUtil

imageUtil: IImageUtil

Private onPairingCodeHandler

onPairingCodeHandler: function

Type declaration

    • (pairingCode: string): void
    • Parameters

      • pairingCode: string

      Returns void

Private onPairingSuccessHandler

onPairingSuccessHandler: function

Type declaration

    • (authToken: string): void
    • Parameters

      • authToken: string

      Returns void

Private posName

posName: string

Private reconnectDelay

reconnectDelay: number

Private serialNumber

serialNumber: string

Private uri

uri: string = null

Private webSocketFactoryFunction

webSocketFactoryFunction: any

Methods

build

getApplicationId

  • getApplicationId(): string

getAuthToken

  • getAuthToken(): string

getHeartbeatDisconnectTimeout

  • getHeartbeatDisconnectTimeout(): number

getHeartbeatInterval

  • getHeartbeatInterval(): number

getImageUtil

getPosName

  • getPosName(): string

getReconnectDelay

  • getReconnectDelay(): number

getSerialNumber

  • getSerialNumber(): string

getUri

  • getUri(): string

getWebSocketFactoryFunction

  • getWebSocketFactoryFunction(): any

setHeartbeatDisconnectTimeout

setHeartbeatInterval

setImageUtil

setPosName

setReconnectDelay

setWebSocketFactoryFunction

Generated using TypeDoc