Package com.six.timapi
Class CardData
- java.lang.Object
-
- com.six.timapi.CardData
-
public class CardData extends Object
Contains information about the used payment card Immutable class.
-
-
Constructor Summary
Constructors Constructor Description CardData(PosEntryMode posEntryMode, String aid, String acc, String cardNumber, String cardNumberPrintable, String cardNumberPrintableCardholder, byte[] cardNumberEnc, int cardNumberEncKeyIndex, TimeDate cardExpiryDate, String brandName, String tenderName, List<CardTrackData> cardTrackDatas, Map<String,byte[]> loyaltyInformation, String cardRef, ProcessingDisposition processingDisposition, String language, Integer cardCountryCode, Integer terminalCountryCode, String uid, byte[] asrpd, CardProductType cardProductType, Long cardType, String cardholder, AccountType accountType, String emvPar, String tokenPan, TokenPanType tokenPanType)Create card data information.CardData(com.six.timapi.internal.TimSavedState savedState)For internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description com.six.timapi.internal.TimSavedStatecreateSavedState()For internal use only.StringgetAcc()Application currency code.AccountTypegetAccountType()Account type.StringgetAid()Application identifier.byte[]getAsrpd()Asrpd.StringgetBrandName()Card brand name.IntegergetCardCountryCode()Card country code.TimeDategetCardExpiryDate()Card expiration date.StringgetCardholder()Petrol: CardholderStringgetCardNumber()Card number.byte[]getCardNumberEnc()Encrypted card number.intgetCardNumberEncKeyIndex()Card number encryption key index.StringgetCardNumberPrintable()Card number that should be printed on a merchant receipt.StringgetCardNumberPrintableCardholder()Card number that should be printed on a cardholder receipt.CardProductTypegetCardProductType()Card product type.StringgetCardRef()Petrol: Reference from the card.List<CardTrackData>getCardTrackDatas()List of card track data if present.LonggetCardType()Petrol: Card typeStringgetEmvPar()The EMV PAR "may be used to link transactions initiated on Payment Tokens with transactions initiated on the underlying PAN", which can be used in a transaction response to be able the identify if the transaction e.g.StringgetLanguage()Card language.Map<String,byte[]>getLoyaltyInformation()Loyalty information if present.Map<String,byte[]>getLoyaltyInformations()Deprecated.PosEntryModegetPosEntryMode()POS entry mode.ProcessingDispositiongetProcessingDisposition()Petrol: Defines if the ECR or EFT is responsible for further trx handling.StringgetTenderName()Card tender name.IntegergetTerminalCountryCode()Terminal country code.StringgetTokenPan()The token PAN is a tokenized version for an underlaying card PAN.TokenPanTypegetTokenPanType()To differ the source of a token PAN, the TokenPanType field is used in a SIXml request message as part of the sixml:TransactionData container and in a SIXml response message as part of the sixml:CardData container.StringgetUid()Contains the uid of the contactless card.StringtoString()String representation for debugging purpose.
-
-
-
Constructor Detail
-
CardData
public CardData(PosEntryMode posEntryMode, String aid, String acc, String cardNumber, String cardNumberPrintable, String cardNumberPrintableCardholder, byte[] cardNumberEnc, int cardNumberEncKeyIndex, TimeDate cardExpiryDate, String brandName, String tenderName, List<CardTrackData> cardTrackDatas, Map<String,byte[]> loyaltyInformation, String cardRef, ProcessingDisposition processingDisposition, String language, Integer cardCountryCode, Integer terminalCountryCode, String uid, byte[] asrpd, CardProductType cardProductType, Long cardType, String cardholder, AccountType accountType, String emvPar, String tokenPan, TokenPanType tokenPanType)
Create card data information.
-
CardData
public CardData(com.six.timapi.internal.TimSavedState savedState)
For internal use only.
-
-
Method Detail
-
getPosEntryMode
public PosEntryMode getPosEntryMode()
POS entry mode.
-
getAid
public String getAid()
Application identifier.
-
getAcc
public String getAcc()
Application currency code.
-
getCardNumber
public String getCardNumber()
Card number. Only for Non-PCI applications and if available to the terminal.
-
getCardNumberPrintable
public String getCardNumberPrintable()
Card number that should be printed on a merchant receipt.
-
getCardNumberPrintableCardholder
public String getCardNumberPrintableCardholder()
Card number that should be printed on a cardholder receipt.
-
getCardNumberEnc
public byte[] getCardNumberEnc()
Encrypted card number.
-
getCardNumberEncKeyIndex
public int getCardNumberEncKeyIndex()
Card number encryption key index.
-
getCardExpiryDate
public TimeDate getCardExpiryDate()
Card expiration date. Only for Non-PCI applications and if available to the terminal.
-
getBrandName
public String getBrandName()
Card brand name.
-
getTenderName
public String getTenderName()
Card tender name.
-
getCardTrackDatas
public List<CardTrackData> getCardTrackDatas()
List of card track data if present.
-
getLoyaltyInformations
public Map<String,byte[]> getLoyaltyInformations()
Deprecated.Loyalty information if present. Keyed by loyalty type string.
-
getLoyaltyInformation
public Map<String,byte[]> getLoyaltyInformation()
Loyalty information if present. Keyed by loyalty type string.
-
getCardRef
public String getCardRef()
Petrol: Reference from the card.
-
getProcessingDisposition
public ProcessingDisposition getProcessingDisposition()
Petrol: Defines if the ECR or EFT is responsible for further trx handling.
-
getLanguage
public String getLanguage()
Card language.
-
getCardCountryCode
public Integer getCardCountryCode()
Card country code.
-
getTerminalCountryCode
public Integer getTerminalCountryCode()
Terminal country code.
-
getUid
public String getUid()
Contains the uid of the contactless card.
-
getAsrpd
public byte[] getAsrpd()
Asrpd.
-
getCardProductType
public CardProductType getCardProductType()
Card product type.
-
getCardType
public Long getCardType()
Petrol: Card type
-
getCardholder
public String getCardholder()
Petrol: Cardholder
-
getAccountType
public AccountType getAccountType()
Account type.
-
getEmvPar
public String getEmvPar()
The EMV PAR "may be used to link transactions initiated on Payment Tokens with transactions initiated on the underlying PAN", which can be used in a transaction response to be able the identify if the transaction e.g. with a used token PAN is related to a previous transaction performed with the underlying PAN. If so, both transaction responses will contain the same value in the EmvPar field.
-
getTokenPan
public String getTokenPan()
The token PAN is a tokenized version for an underlaying card PAN. If the underlaying payment protocol supports it, a payment transaction can be initiated with the token PAN instead of using a card. A token PAN is normally generated by a tokenization service either form the acquirer host or the issuer host. The TokenPan field is used in a SIXml request message as part of the sixml:TransactionData container to trigger a token-based transaction and in a SIXml response message as part of the sixml:CardData container for returning token PANs to the ECR. The TokenPan field always must be accompanied by a corresponding TokenPanType field.
-
getTokenPanType
public TokenPanType getTokenPanType()
To differ the source of a token PAN, the TokenPanType field is used in a SIXml request message as part of the sixml:TransactionData container and in a SIXml response message as part of the sixml:CardData container. The TokenPanType field always is transmitted if a TokenPan field is transmitted but must not be transmitted alone.
-
toString
public String toString()
String representation for debugging purpose.
-
createSavedState
public com.six.timapi.internal.TimSavedState createSavedState()
For internal use only.
-
-