Class: TransactionResponse

timapi.TransactionResponse

Contains the result of a transaction finished after calling transactionAsync.

Classes

Action

Overview

Members-Overview

Methods-Overview

Member-List

additionalInfo :Map.<Number, String>

Additional information list.

amount :timapi.Amount

Amount authorized by the transaction.

amountDcc :timapi.AmountDcc

DCC amount authorized by the transaction if present.

amountDue :timapi.Amount

Due amount in the transaction.

amountLoyaltyCashback :timapi.Amount

Loyalty cashback amount.

amountOther :timapi.Amount

Amount other authorized by the transaction.

amountSaldo :timapi.Amount

Saldo amount if present.

amountTip :timapi.Amount

Tip amount. This parameter is only used if com.six.timapi.constants.Guides#GASTRO is enabled.

basket :timapi.Basket

Petrol: Basket.

cardData :timapi.CardData

Information about payment card used by the cardholder if present.

dccDisclaimer :String

Disclaimer sent by host.

printData :timapi.PrintData

Print information for merchant and cardholder receipts.

transactionInformation :timapi.TransactionInformation

Information about completed transaction.

Methods

cardCountryCode() → {Number}

Card country code if present.
Returns:
Country code on the card.

Type: Number

isDomestic() → {Boolean}

Determines if transaction has been domestic. Returns true if card country code and terminal country code are both set and are equal.
Returns:
True if the transaction was performed with a domestic card.

Type: Boolean

needsAction() → {timapi.constants.Action}

Transaction requires an action.
Returns:
The action (e.g. signing) that is required.

Type: timapi.constants.Action

terminalCountryCode() → {Number}

Terminal country code if present.
Returns:
Country code of the terminal.

Type: Number

toString() → {String}

String representation for debugging purpose.
Returns:
String representation

Type: String

wasDcc() → {Boolean}

Transaction has been using DCC.
Returns:
True for DCC transactions.

Type: Boolean

wasPartialApproval() → {Boolean}

Transaction has been partially approved.
Returns:
True if the transaction was only partially approved.

Type: Boolean

wasTip() → {Boolean}

Transaction has been using TIP.
Returns:
True for transactions with tip.

Type: Boolean