Components
Regardless of the market and the operation mode, the fiskaltrust.Middleware consists of the same logical components. This page describes what each component does and how the components work together.
Figure 1. Overview of the main components of the fiskaltrust.Middleware.
CashBox
A CashBox is a configuration container in the fiskaltrust.Portal. The fiskaltrust.Portal contains the configurations of Queues, SCUs and Helpers; a CashBox links them together to form a complete fiskaltrust.Middleware configuration.
A CashBox is identified by its CashBoxId and secured by its access token. Both are provisioned by the fiskaltrust.Portal when the CashBox is created. The Launcher uses them to load the configuration, and the POS System API uses them to authenticate every request.
For the steps to create a CashBox, see Integration Steps.
Queue
The Queue is the system of record of the fiskaltrust.Middleware and, from a regulatory point of view, the cash register. It receives the requests of the POS system and encapsulates the functionality of a receipt chain: every receipt is processed in the fiskaltrust.SecurityMechanism, which creates the unique, consecutive receipt number, chains the receipt and persists the data. After the receipt is secured and stored, the response is sent back to the POS system.
Special receipts, for example the periodic closings, are sent to the Queue as requests to execute a special function and are answered by it.
Every Queue has exactly one receipt chain. All input devices that send receipts to the same Queue share its number series, closings and exports. For more information, see The Queue as System of Record.
SCU
The SCU (Signature Creation Unit) handles the country-specific implementation of the security solution and is responsible for the signatures. It connects the Queue to the signature device or service required by the market.
The additional security required by the national regulations is delivered by third-party vendors, for example as a cloud service, a hardware device or a certificate, and supported by fiskaltrust via the SCU. The choice of the SCU affects the configuration of the fiskaltrust.Middleware. The available SCUs, their configuration, functionalities and limitations are documented in the market guides, for example for Germany.
An SCU can run locally, in a CashBox on the POS device or on a local server, or be operated by fiskaltrust as a signing service. Several Queues can share one SCU. For more information, see SCU models.
Signature device
The signature device is the hardware device, cloud service or certificate that creates the signature required by the market, for example a TSE in Germany. In some markets, no separate signature device is needed. The SCU drives the signature device; the Queue and the POS system never communicate with it directly.
Launcher
The Launcher runs the configured components of a CashBox on a local device (Windows, Linux, macOS or Android). Its main tasks are:
- providing basic configuration settings such as the
CashBoxIdand the access token, - comparing the configuration retrieved from fiskaltrust.Helipad with the local configuration,
- updating the Queue and SCU packages according to the configuration,
- executing the configured packages,
- load balancing of multiple Queues.
On Android, the Queue and SCU packages are bundled with the fiskaltrust.Middleware app and cannot be downloaded at runtime, so they are updated by app updates, not by the Launcher. A fiskaltrust.Middleware hosted by fiskaltrust needs no Launcher. For more information, see Configuration and Installation and Supported Platforms.
Helpers
Helpers are additional components that are configured in the fiskaltrust.Portal and assigned to a CashBox, like Queues and SCUs. The Helipad Helper, for example, supports updates and configurations.
fiskaltrust services
The components use the following fiskaltrust services:
| Service | Description |
|---|---|
| fiskaltrust.Portal | Where all configurations are managed: CashBoxes, Queues, SCUs and Helpers. |
| fiskaltrust.Helipad | API for configuration and data upload. The Launcher retrieves the configuration from it. |
| fiskaltrust.Packages | API for the versioned and packaged components that the Launcher downloads. Not used on Android, where the packages are bundled with the app. |
Table 1. fiskaltrust services used by the fiskaltrust.Middleware components.
For the definitions of these and further terms, see Terminology.