PrintData

public class PrintData : CustomStringConvertible

Contains receipts or receipt items for printing by the ECR depending on the PrintOptions used during login. Immutable class.

  • Create print information.

    Declaration

    Swift

    public init(receipts: [Receipt], receiptItems: [ReceiptItems])
  • Receipts to print by the ECR. Present if print type is Normal.

    Declaration

    Swift

    public private(set) var receipts: [Receipt]
  • Receipt items for the ECR to create receipts for printing. Present if print type is FieldsOnly.

    Declaration

    Swift

    public private(set) var receiptItems: [ReceiptItems]
  • Textual representation.

    Declaration

    Swift

    public var description: String { get }