CustomReceiptFormatter

open class CustomReceiptFormatter : ReceiptFormatter

Format transaction receipts using string formating definition.

  • Text types.

    See more

    Declaration

    Swift

    public enum TextType
  • <! ReceiptItemType.ECR_SEQ_CNT.

    • Text alignment.
    See more

    Declaration

    Swift

    public enum TextAlignment
  • Text alignment.

    See more

    Declaration

    Swift

    public enum Condition
  • Text element. Can be static text or dynamic content.

    See more

    Declaration

    Swift

    open class TextElement
  • Line definition. Contains a list of text elements.

    See more

    Declaration

    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]