Class CardTransactionRecord
java.lang.Object
com.thalesgroup.gemalto.d1.card.cardservice.CardTransactionRecord
The transaction record for the card issued by D1.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe amount and currency code for the transaction.static enumThe initiating party for the transaction.static classThe merchant details.static enumThe status of the transaction.static enumThe type for the transaction. -
Constructor Summary
ConstructorsConstructorDescriptionCardTransactionRecord(String ID, CardTransactionRecord.TransactionType transactionType, String transactionDate, CardTransactionRecord.TransactionStatus transactionStatus, String declinedReason, String declinedDetail, CardTransactionRecord.Amount amount, CardTransactionRecord.Amount billingAmount, CardTransactionRecord.Amount replacementAmount, Double conversionRate, CardTransactionRecord.Merchant merchant, String accountNumber, String digitalCardID, String tokenRequestorName, String tokenRequestorID, Boolean isOnlinePayment, Boolean isContactless, Boolean isMagneticStripe, Boolean isAbroadPayment, CardTransactionRecord.InitiatingParty initiatingParty) -
Method Summary
Modifier and TypeMethodDescriptionAccount number of the cardholder which is used for the transaction.The transaction Amount.The billing amount.The conversion rate.Additional details for the declined transaction.
Refer Stoplight for set of declined details.The reason the transaction is declined when the status is DECLINED.Unique identifier of the EMV Token allocated by the scheme TSP.getID()Gets the transaction ID.Return initiating party of the transaction record.The merchant details.This is the replacement amount in cases where a partial reversal is expressed in the billing currency.Gets the identifier of the digital card's wallet.Gets the name of the digital card's token requestor.The date of the transaction in ISO 8601 format: YYYY-MM-DDThh:mm:ssTZD.Status of the transaction: approved or declined by the host.Defines the type of transaction.Return true if the PWC field acquirerCountryCode is not present in this domesticPaymentCountries in tenant on-boarding process.Return true if transaction performed via contactless magnetic stripe or contactless M/Chip else false.Return true if transaction performed via magnetic stripe read (Track 2) or magnetic stripe read (Track 1) else false.Return true if card not present and payment is performed online else false.
-
Constructor Details
-
CardTransactionRecord
public CardTransactionRecord(@NonNull String ID, @NonNull CardTransactionRecord.TransactionType transactionType, @NonNull String transactionDate, @NonNull CardTransactionRecord.TransactionStatus transactionStatus, @Nullable String declinedReason, @Nullable String declinedDetail, @NonNull CardTransactionRecord.Amount amount, @Nullable CardTransactionRecord.Amount billingAmount, @Nullable CardTransactionRecord.Amount replacementAmount, @Nullable Double conversionRate, @NonNull CardTransactionRecord.Merchant merchant, @Nullable String accountNumber, @Nullable String digitalCardID, @Nullable String tokenRequestorName, @Nullable String tokenRequestorID, @Nullable Boolean isOnlinePayment, @Nullable Boolean isContactless, @Nullable Boolean isMagneticStripe, @Nullable Boolean isAbroadPayment, @NonNull CardTransactionRecord.InitiatingParty initiatingParty)
-
-
Method Details
-
getID
Gets the transaction ID. -
getTransactionType
Defines the type of transaction. Refer toTransaction typesfor all supported types. -
getTransactionDate
The date of the transaction in ISO 8601 format: YYYY-MM-DDThh:mm:ssTZD.- Since:
- 4.1.0
-
getTransactionStatus
Status of the transaction: approved or declined by the host. Refer toTransaction status. -
getDeclinedReason
The reason the transaction is declined when the status is DECLINED.
Refer Stoplight for set of declined reasons and respective declined details. -
getDeclinedDetail
Additional details for the declined transaction.
Refer Stoplight for set of declined details. -
getAmount
The transaction Amount. -
getBillingAmount
The billing amount. -
getConversionRate
The conversion rate. -
getReplacementAmount
This is the replacement amount in cases where a partial reversal is expressed in the billing currency. -
getMerchant
The merchant details. -
getAccountNumber
Account number of the cardholder which is used for the transaction. -
getDigitalCardID
Unique identifier of the EMV Token allocated by the scheme TSP. -
getTokenRequestorID
Gets the identifier of the digital card's wallet. -
getTokenRequestorName
Gets the name of the digital card's token requestor. -
isOnlinePayment
Return true if card not present and payment is performed online else false. -
isContactless
Return true if transaction performed via contactless magnetic stripe or contactless M/Chip else false. -
isMagneticStripe
Return true if transaction performed via magnetic stripe read (Track 2) or magnetic stripe read (Track 1) else false. -
isAbroadPayment
Return true if the PWC field acquirerCountryCode is not present in this domesticPaymentCountries in tenant on-boarding process. -
getInitiatingParty
Return initiating party of the transaction record. ReferCARDHOLDERandMERCHANT.
-