Transaction

@objc
public class Transaction : NSObject, NSCoding

Describes a visitor transaction.

  • A unique identifier for the transaction.

    Declaration

    Swift

    public let externalTransactionId: String
  • The date of the transaction.

    Declaration

    Swift

    public let date: Date
  • The amount of the transaction.

    Declaration

    Swift

    public let amount: Double
  • The currency of the transaction.

    Declaration

    Swift

    public let currency: Currency
  • Create a new transaction.

    Declaration

    Swift

    public init(externalTransactionId: String, date: Date, amount: Double, currency: Currency)

    Parameters

    externalTransactionId

    A unique identifier for the transaction.

    date

    The date of the transaction.

    amount

    The amount of the transaction.

    currency

    The currency of the transaction.