Class TransactionResponse
Command request to send to card.
Inheritance
Inherited Members
Namespace: SIX.TimApi
Assembly: TimApi.dll
Syntax
public class TransactionResponse
Constructors
TransactionResponse(TransactionType, Amount, Amount, Amount, AmountDcc, Amount, TransactionInformation, String, CardData, PrintData, Amount, Dictionary<Int64, String>, Basket, Amount, Amount)
Create transaction response.
Declaration
public TransactionResponse(TransactionType transactionType, Amount amount, Amount amountOther, Amount amountDue, AmountDcc amountDcc, Amount amountSaldo, TransactionInformation transactionInformation, string dccDisclaimer, CardData cardData, PrintData printData, Amount tipAmount, Dictionary<long, string> additionalInfo, Basket basket, Amount amountLoyaltyCashback, Amount amountSurcharge)
Parameters
| Type | Name | Description |
|---|---|---|
| TransactionType | transactionType | |
| Amount | amount | |
| Amount | amountOther | |
| Amount | amountDue | |
| AmountDcc | amountDcc | |
| Amount | amountSaldo | |
| TransactionInformation | transactionInformation | |
| System.String | dccDisclaimer | |
| CardData | cardData | |
| PrintData | printData | |
| Amount | tipAmount | |
| System.Collections.Generic.Dictionary<System.Int64, System.String> | additionalInfo | |
| Basket | basket | |
| Amount | amountLoyaltyCashback | |
| Amount | amountSurcharge |
Fields
AmountSurcharge
Surcharge amount or null.
Declaration
public Amount AmountSurcharge
Field Value
| Type | Description |
|---|---|
| Amount |
Properties
AdditionalInfo
Declaration
public Dictionary<long, string> AdditionalInfo { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Collections.Generic.Dictionary<System.Int64, System.String> |
Amount
Amount authorized by the transaction.
Declaration
public Amount Amount { get; }
Property Value
| Type | Description |
|---|---|
| Amount |
AmountDcc
DCC amount authorized by the transaction if present.
Declaration
public AmountDcc AmountDcc { get; }
Property Value
| Type | Description |
|---|---|
| AmountDcc |
AmountDue
Due amount in the transaction.
Declaration
public Amount AmountDue { get; }
Property Value
| Type | Description |
|---|---|
| Amount |
AmountLoyaltyCashback
Loyalty cashback amount.
Declaration
public Amount AmountLoyaltyCashback { get; }
Property Value
| Type | Description |
|---|---|
| Amount |
AmountOther
Amount other authorized by the transaction.
Declaration
public Amount AmountOther { get; }
Property Value
| Type | Description |
|---|---|
| Amount |
AmountSaldo
Saldo amount if present.
Declaration
public Amount AmountSaldo { get; }
Property Value
| Type | Description |
|---|---|
| Amount |
AmountTip
Saldo amount if present.
Declaration
public Amount AmountTip { get; }
Property Value
| Type | Description |
|---|---|
| Amount |
Basket
Petrol: Basket.
Declaration
public Basket Basket { get; set; }
Property Value
| Type | Description |
|---|---|
| Basket | The basket. |
CardData
Information about payment card used by the cardholder if present.
Declaration
public CardData CardData { get; }
Property Value
| Type | Description |
|---|---|
| CardData |
DccDisclaimer
Disclaimer sent by host.
Declaration
public string DccDisclaimer { get; }
Property Value
| Type | Description |
|---|---|
| System.String |
PrintData
Print information for merchant and cardholder receipts.
Declaration
public PrintData PrintData { get; }
Property Value
| Type | Description |
|---|---|
| PrintData |
TransactionInformation
Information about completed transaction.
Declaration
public TransactionInformation TransactionInformation { get; }
Property Value
| Type | Description |
|---|---|
| TransactionInformation |
TransactionType
Transaction type.
Declaration
public TransactionType TransactionType { get; }
Property Value
| Type | Description |
|---|---|
| TransactionType |
Methods
cardCountryCode()
Card country code if present.
Declaration
public int cardCountryCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | int? |
isDomestic()
Determines if transaction has been domestic. Returns true if card country code and terminal country code are both set and are equal.
Declaration
public bool isDomestic()
Returns
| Type | Description |
|---|---|
| System.Boolean | bool |
needsAction()
Transaction requires an action.
Declaration
public TransactionResponse.Action needsAction()
Returns
| Type | Description |
|---|---|
| TransactionResponse.Action | enum SIX.TimApi.TransactionResponse.Action |
terminalCountryCode()
Terminal country code if present.
Declaration
public int terminalCountryCode()
Returns
| Type | Description |
|---|---|
| System.Int32 | Int32 |
ToString()
String representation for debugging purpose.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
wasDcc()
Transaction has been using DCC.
Declaration
public bool wasDcc()
Returns
| Type | Description |
|---|---|
| System.Boolean | bool |
wasPartialApproval()
Transaction has been partially approved.
Declaration
public bool wasPartialApproval()
Returns
| Type | Description |
|---|---|
| System.Boolean | bool |
wasTip()
Transaction has been using TIP.
Declaration
public bool wasTip()
Returns
| Type | Description |
|---|---|
| System.Boolean | bool |