The interface for the primary thing to be implemented in a plugin please look for details in existing plugins note: should be default export

Hierarchy

  • ICashRegister

Properties

depositCash?: ((options: DepositCashOptions) => Promise<void>)

Type declaration

getSettings: (() => Promise<CashRegisterSettings>)

Type declaration

handleRefund?: ((handleRefundRequest: HandleRefundRequest) => Promise<PrintedRefundReceipt>)

Type declaration

handleSale: ((handleSaleRequest: HandleSaleRequest) => Promise<PrintedReceipt>)

Type declaration

initialize?: ((options: InitializationOptions) => Promise<void>)

Type declaration

    • (options: InitializationOptions): Promise<void>
    • Plugin initialization function (will be called right after plugin download/installation and every time on page reload/cashierapp start)

      Parameters

      Returns Promise<void>

makeXReport?: (() => Promise<void>)

Type declaration

    • (): Promise<void>
    • Call for X-report (usually - statistics for the current time)

      Returns Promise<void>

makeZReport?: ((options: MakeZReportOptions) => Promise<void>)

Type declaration

    • (options: MakeZReportOptions): Promise<void>
    • Call for ending the cash shift (e.g. end of workday or schedule) (usually, also final report printed)

      Parameters

      Returns Promise<void>

printText?: ((options: PrintTextOptions) => Promise<void>)

Type declaration

    • (options: PrintTextOptions): Promise<void>
    • Print any text, such as informational block, promo details or pos terminal slip. NOTE: implement this only if your country/business require printing terminal slips or info checks

      Parameters

      Returns Promise<void>

withdrawCash?: ((options: WithdrawCashOptions) => Promise<void>)

Type declaration

Generated using TypeDoc