Class CardTransactionRecord
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.cardservice.CardTransactionRecord
-
public class CardTransactionRecord extends Object
The transaction record for the card issued by D1.- Since:
- 4.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCardTransactionRecord.Amountstatic classCardTransactionRecord.InitiatingPartystatic classCardTransactionRecord.Merchantstatic classCardTransactionRecord.TransactionStatusstatic classCardTransactionRecord.TransactionType
-
Constructor Summary
Constructors Constructor Description CardTransactionRecord(String ID, CardTransactionRecord.TransactionType transactionType, String date, 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAccountNumber()Account number of the cardholder which is used for the transaction.CardTransactionRecord.AmountgetAmount()The transaction Amount.CardTransactionRecord.AmountgetBillingAmount()The billing amount.DoublegetConversionRate()The conversion rate.StringgetDate()The transaction time in ISO 8601 format: YYYY-MM-DDThh:mm:ssTZD.StringgetDeclinedDetail()Additional details for the declined transaction.
Refer Stoplight for set of declined details.StringgetDeclinedReason()The reason the transaction is declined when the status is DECLINED.StringgetDigitalCardID()Unique identifier of the EMV Token allocated by the scheme TSP.StringgetID()Gets the transaction ID.CardTransactionRecord.InitiatingPartygetInitiatingParty()Return initiating party of the transaction record.CardTransactionRecord.MerchantgetMerchant()The merchant details.CardTransactionRecord.AmountgetReplacementAmount()This is the replacement amount in cases where a partial reversal is expressed in the billing currency.StringgetTokenRequestorID()Gets the identifier of the digital card's wallet.StringgetTokenRequestorName()Gets the name of the digital card's token requestor.CardTransactionRecord.TransactionStatusgetTransactionStatus()Status of the transaction: approved or declined by the host.CardTransactionRecord.TransactionTypegetTransactionType()Defines the type of transaction.BooleanisAbroadPayment()Return true if the PWC field acquirerCountryCode is not present in this domesticPaymentCountries in tenant on-boarding process.BooleanisContactless()Return true if transaction performed via contactless magnetic stripe or contactless M/Chip else false.BooleanisMagneticStripe()Return true if transaction performed via magnetic stripe read (Track 2) or magnetic stripe read (Track 1) else false.BooleanisOnlinePayment()Return true if card not present and payment is performed online else false.
-
-
-
Constructor Detail
-
CardTransactionRecord
public CardTransactionRecord(@NonNull String ID, @NonNull CardTransactionRecord.TransactionType transactionType, @NonNull String date, @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 Detail
-
getTransactionType
@NonNull public CardTransactionRecord.TransactionType getTransactionType()
Defines the type of transaction. Refer toTransaction typesfor all supported types.
-
getDate
@NonNull public String getDate()
The transaction time in ISO 8601 format: YYYY-MM-DDThh:mm:ssTZD.
-
getTransactionStatus
@NonNull public CardTransactionRecord.TransactionStatus getTransactionStatus()
Status of the transaction: approved or declined by the host. Refer toTransaction status.
-
getDeclinedReason
@Nullable public String getDeclinedReason()
The reason the transaction is declined when the status is DECLINED.
Refer Stoplight for set of declined reasons and respective declined details.
-
getDeclinedDetail
@Nullable public String getDeclinedDetail()
Additional details for the declined transaction.
Refer Stoplight for set of declined details.
-
getAmount
@NonNull public CardTransactionRecord.Amount getAmount()
The transaction Amount.
-
getBillingAmount
@Nullable public CardTransactionRecord.Amount getBillingAmount()
The billing amount.
-
getReplacementAmount
@Nullable public CardTransactionRecord.Amount getReplacementAmount()
This is the replacement amount in cases where a partial reversal is expressed in the billing currency.
-
getMerchant
@NonNull public CardTransactionRecord.Merchant getMerchant()
The merchant details.
-
getAccountNumber
@Nullable public String getAccountNumber()
Account number of the cardholder which is used for the transaction.
-
getDigitalCardID
@Nullable public String getDigitalCardID()
Unique identifier of the EMV Token allocated by the scheme TSP.
-
getTokenRequestorID
@Nullable public String getTokenRequestorID()
Gets the identifier of the digital card's wallet.
-
getTokenRequestorName
@Nullable public String getTokenRequestorName()
Gets the name of the digital card's token requestor.
-
isOnlinePayment
@Nullable public Boolean isOnlinePayment()
Return true if card not present and payment is performed online else false.
-
isContactless
@Nullable public Boolean isContactless()
Return true if transaction performed via contactless magnetic stripe or contactless M/Chip else false.
-
isMagneticStripe
@Nullable public Boolean isMagneticStripe()
Return true if transaction performed via magnetic stripe read (Track 2) or magnetic stripe read (Track 1) else false.
-
isAbroadPayment
@Nullable public Boolean isAbroadPayment()
Return true if the PWC field acquirerCountryCode is not present in this domesticPaymentCountries in tenant on-boarding process.
-
getInitiatingParty
@Nullable public CardTransactionRecord.InitiatingParty getInitiatingParty()
Return initiating party of the transaction record. ReferCARDHOLDERandMERCHANT.
-
-