public class TransactionResponse extends Object
Terminal.transaction(com.six.timapi.constants.TransactionType, com.six.timapi.Amount)
or Terminal.transactionAsync(com.six.timapi.constants.TransactionType, com.six.timapi.Amount)
.
Immutable class.Modifier and Type | Class and Description |
---|---|
static class |
TransactionResponse.Action
Action.
|
Constructor and Description |
---|
TransactionResponse(TransactionType transactionType,
Amount amount,
Amount amountDue,
AmountDcc amountDcc,
Amount amountSaldo,
TransactionInformation transactionInformation,
String dccDisclaimer,
CardData cardData,
PrintData printData,
Amount amountTip,
Map<Long,String> additionalInfo,
Basket basket)
Create transaction response.
|
Modifier and Type | Method and Description |
---|---|
Integer |
cardCountryCode()
Card country code if present.
|
Map<Long,String> |
getAdditionalInfo()
Additional information list.
|
Amount |
getAmount()
Amount authorized by the transaction.
|
AmountDcc |
getAmountDcc()
DCC amount authorized by the transaction if present.
|
Amount |
getAmountDue()
Due amount in the transaction.
|
Amount |
getAmountSaldo()
Saldo amount if present.
|
Amount |
getAmountTip()
Tip amount.
|
Basket |
getBasket()
Petrol: Basket.
|
CardData |
getCardData()
Information about payment card used by the cardholder if present.
|
String |
getDccDisclaimer()
Disclaimer sent by host.
|
PrintData |
getPrintData()
Print information for merchant and cardholder receipts.
|
Amount |
getTipAmount()
Deprecated.
|
TransactionInformation |
getTransactionInformation()
Information about completed transaction.
|
TransactionType |
getTransactionType()
Transaction type.
|
boolean |
isDomestic()
Determines if transaction has been domestic.
|
TransactionResponse.Action |
needsAction()
Transaction requires an action.
|
Integer |
terminalCountryCode()
Terminal country code if present.
|
String |
toString()
String representation for debugging purpose.
|
boolean |
wasDcc()
Transaction has been using DCC.
|
boolean |
wasPartialApproval()
Transaction has been partially approved.
|
boolean |
wasTip()
Transaction has been using TIP.
|
public TransactionResponse(TransactionType transactionType, Amount amount, Amount amountDue, AmountDcc amountDcc, Amount amountSaldo, TransactionInformation transactionInformation, String dccDisclaimer, CardData cardData, PrintData printData, Amount amountTip, Map<Long,String> additionalInfo, Basket basket)
public TransactionType getTransactionType()
public Amount getAmount()
public Amount getAmountDue()
public AmountDcc getAmountDcc()
public Amount getAmountSaldo()
public TransactionInformation getTransactionInformation()
public String getDccDisclaimer()
public CardData getCardData()
public PrintData getPrintData()
public Amount getAmountTip()
Guides.GASTRO
is enabled.public Amount getTipAmount()
TransactionResponse.getAmountTip()
.public Basket getBasket()
public boolean wasDcc()
public boolean wasTip()
public TransactionResponse.Action needsAction()
public boolean wasPartialApproval()
public Integer cardCountryCode()
public Integer terminalCountryCode()
public boolean isDomestic()