Counter

public class Counter : CustomStringConvertible

Contains information about a counter for a brand. Immutable class.

  • Create counter.

    Declaration

    Swift

    public init(brandName: String, paymentProtocol: CPaymentProtocol, acqId: Int,
                count: Int, countDcc: Int, countForeign: Int, totals: [Total])
  • Name of brand the counter contains information for.

    Declaration

    Swift

    public private(set) var brandName: String
  • Payment protocol linked to the brand.

    Declaration

    Swift

    public private(set) var paymentProtocol: CPaymentProtocol
  • Acquirer identifier. Uniquely identifies the acquirer.

    Declaration

    Swift

    public private(set) var acqId: Int
  • Total number of transactions.

    Declaration

    Swift

    public private(set) var count: Int
  • Number of DCC related transactions.

    Declaration

    Swift

    public private(set) var countDcc: Int
  • Number of foreign currency related transactions.

    Declaration

    Swift

    public private(set) var countForeign: Int
  • Number of totals to break down the counter amount in more detail.

    Declaration

    Swift

    public private(set) var totals: [Total]
  • Textual representation.

    Declaration

    Swift

    public var description: String { get }