Class PrinterContract


  • public final class PrinterContract
    extends Object
    Contract defining printers for use in Clover applications.

    The printers contract is composed of two tables and one view. The Devices table lists all known printer devices. The Categories table maps a printer device to a printing category, either receipt or order.

    Conceptually, the PrinterContract.Devices class represents the printers that are configured on any device belong to the merchant. The PrinterContract.Categories class maps a printer device to a printer category, and represents the printer devices that are configured on this device.

    The PrinterContract.DeviceCategories class is a join of the PrinterContract.Devices and PrinterContract.Categories class where the category is not null. In other words, PrinterContract.DeviceCategories is the configured devices and their category.