CustomReceiptFormatter
open class CustomReceiptFormatter : ReceiptFormatter
Format transaction receipts using string formating definition.
-
Text types.
See moreDeclaration
Swift
public enum TextType -
<! ReceiptItemType.TENDER_NAME or ReceiptItemType.BRAND_NAME. Text alignment.
See moreDeclaration
Swift
public enum TextAlignment -
Text alignment.
See moreDeclaration
Swift
public enum Condition -
Text element. Can be static text or dynamic content.
See moreDeclaration
Swift
open class TextElement -
Line definition. Contains a list of text elements.
See moreDeclaration
Swift
open class LineFormat -
Line formats for cardholder receipts.
Declaration
Swift
open var lineFormatsCardholder: [CustomReceiptFormatter.LineFormat] -
Line formats for merchant receipts.
Declaration
Swift
open var lineFormatsMerchant: [CustomReceiptFormatter.LineFormat] -
Line formats for saldo lines used on both receipt types.
Declaration
Swift
open var lineFormatsSaldo: [CustomReceiptFormatter.LineFormat] -
String to use for not defined or empty values.
Declaration
Swift
open var emptyValueString: String -
Format receipt using the provided fields. Result is a list of {@link Receipt} using
\n
as line breaks. @param terminal Terminal to retrieve certain field values from. @param receiptItems Receipt items used to create receipt.Declaration
Swift
open func formatReceipt(terminal: Terminal, receiptItems: ReceiptItems) -> [Receipt]
CustomReceiptFormatter Class Reference