Transaction

@objcMembers
public class Transaction : NSObject, Codable

Holds the information about values used on the transaction.

  • The full amount the customer’s card has been charged or refunded including any gratuity, donations or cash back, in minor currency units.

    Declaration

    Swift

    public private(set) var amount: Int { get }
  • The 3-letter ISO 4217 currency code which amounts are specified in.

    Declaration

    Swift

    public private(set) var currencyCode: String { get }
  • The amount of gratuity included in the payment, in minor currency units.

    Declaration

    Swift

    public private(set) var gratuityAmount: NSNumber? { get }
  • The amount of cash back included in the payment, in minor currency units.

    Declaration

    Swift

    public private(set) var cashbackAmount: NSNumber? { get }
  • The amount of donation included in the payment, in minor currency units.

    Declaration

    Swift

    public private(set) var donationAmount: NSNumber? { get }
  • dcc

    Data for Dynamic Currency Conversion if relevant to the payment.

    Declaration

    Swift

    public private(set) var dcc: CurrencyConversion? { get }
  • Used to print the debug content of the object

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws
  • Used to parse the response from the server.

    Declaration

    Swift

    required public init(from decoder: Decoder) throws