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,
                cardProductType: CCardProductType?,
                acqId: Int64,
                count: Int,
                countDcc: Int,
                countForeign: Int,
                totals: [Total])
  • Name of brand the counter contains information for.

    Declaration

    Swift

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

    Declaration

    Swift

    public private(set) var paymentProtocol: CPaymentProtocol { get }
  • Card product type or nil.

    Declaration

    Swift

    public private(set) var cardProductType: CCardProductType? { get }
  • Acquirer identifier. Uniquely identifies the acquirer.

    Declaration

    Swift

    public private(set) var acqId: Int64 { get }
  • Total number of transactions.

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public var description: String { get }