TransactionData
public struct TransactionData
TransactionData
TransactionData is an object that references all information in correspondance with a Transaction with the judo API
-
Our reference for this transaction. Keep track of this as it’s needed to process refunds or collections later
Declaration
Swift
public let receiptId: String -
Your original reference for this payment
Declaration
Swift
public let yourPaymentReference: String -
The type of Transaction, either
Payment
orRefund
Declaration
Swift
public let type: TransactionType -
Date and time of the Transaction including time zone offset
Declaration
Swift
public let createdAt: NSDate -
The result of this transactions, this will either be
Success
orDeclined
Declaration
Swift
public let result: TransactionResult -
A message detailing the result.
Declaration
Swift
public let message: String? -
The number (e.g.
123-456
or654321
) identifying the Merchant to whom payment has been madeDeclaration
Swift
public let judoId: String -
The trading name of the Merchant to whom payment has been made
Declaration
Swift
public let merchantName: String -
How the Merchant will appear on the Consumers statement
Declaration
Swift
public let appearsOnStatementAs: String -
If present this will show the total value of refunds made against the original payment
Declaration
Swift
public let refunds: Amount? -
This is the original value of this transaction before refunds
Declaration
Swift
public let originalAmount: Amount? -
This will show the remaining balance of the transaction after refunds. You cannot refund more than the original payment
Declaration
Swift
public let netAmount: Amount? -
This is the value of this transaction (if refunds available it is the amount after refunds)
Declaration
Swift
public let amount: Amount -
Information about the card used in this transaction
Declaration
Swift
public let cardDetails: CardDetails -
Details of the Consumer for use in repeat payments
Declaration
Swift
public let consumer: Consumer -
Raw data of the received dictionary
Declaration
Swift
public let rawData: [String : AnyObject] -
Create a TransactionData object from a dictionary
Parameter
Parameter dict: the dictionary
Returns
a TransactionData object
Declaration
Swift
public init(_ dict: JSONDictionary) throwsParameters
dictthe dictionary
Return Value
a TransactionData object
-
Generates a PaymentToken object from existing information
Returns
a PaymentToken object that has been generated from the current objects informationDeclaration
Swift
public func paymentToken() -> PaymentToken?Return Value
a PaymentToken object that has been generated from the current objects information
TransactionData Struct Reference