GetCashRegisterData Command and NearPaperEnd Status

Tags: v9 v9preview3

The Front API has added the command GetCashRegisterData to retrieve the status of the cash register without performing printing operations.

A new status NearPaperEnd has also been added to CashRegisterStatusField - an indicator of the approaching end of paper.

// Getting the status of the cash register
var cashRegisterData = PluginContext.Operations.GetCashRegisterData(cashRegister);

if (cashRegisterData.Status.Contains(CashRegisterStatusField.NearPaperEnd))
{
    // Warn the user about the need to replace the roll
}

See also