Overview
Methods-Overview
- formatReceipt(Terminal, ReceiptItems) → {Array.<timapi.Receipt>}
Constructor
new DefaultReceiptFormatter()
Methods
formatReceipt(Terminal, ReceiptItems) → {Array.<timapi.Receipt>}
Format receipt using the provided fields. Result is a list of timapi.Receipt
using "\n" as line breaks.
Parameters:
Name | Type | Description |
---|---|---|
Terminal |
timapi.Terminal | to retrieve certain field values from. |
ReceiptItems |
timapi.ReceiptItems | used to create receipt. |
Returns:
List of created receipts.
Type: Array.<timapi.Receipt>