Package com.thalesgroup.gemalto.d1.d1pay
Interface D1PayDigitalCard
public interface D1PayDigitalCard
Contains the digital card's information.
- Since:
- 2.0.0
-
Method Summary
Modifier and TypeMethodDescriptionGets the unique D1 Pay digital card ID.Gets the expiry date of the D1 Pay digital card in MMYY format.getLast4()Gets the last 4 digits of the D1 Pay digital card.intGet the remaining number of credentials left to perform payment transactions for this digital card.Gets the D1 Pay digital card scheme.getState()Gets the D1 Pay digital card status.Gets the URL of the terms and conditions.booleanWhether authentication is needed for replenishment.booleanWhether this digital card is the default card used for payment.booleanVISA only.booleanWhether the digital card needs to be replenished based on the number of credentials left.
-
Method Details
-
getCardID
Gets the unique D1 Pay digital card ID.- Returns:
- The card ID
-
getState
Gets the D1 Pay digital card status.- Returns:
- The card status.
-
getScheme
Gets the D1 Pay digital card scheme.- Returns:
- The card scheme.
-
getLast4
Gets the last 4 digits of the D1 Pay digital card.- Returns:
- The last 4 digits of the card (if any).
-
getExpiryDate
Gets the expiry date of the D1 Pay digital card in MMYY format.- Returns:
- The expiry date of the card (if any).
-
getTncURL
Gets the URL of the terms and conditions.- Returns:
- The URL of the terms and conditions used for this card (if any).
-
isReplenishmentNeeded
boolean isReplenishmentNeeded()Whether the digital card needs to be replenished based on the number of credentials left.Integrator should call
D1PayWallet.getDigitalCard(String, D1Task.Callback)to get the latest value.- Returns:
- Whether replenishment is needed.
-
isAuthenticationRequiredBeforeReplenishment
boolean isAuthenticationRequiredBeforeReplenishment()Whether authentication is needed for replenishment.Integrator should call
D1PayWallet.getDigitalCard(String, D1Task.Callback)to get the latest value.- Returns:
- Whether authentication is required.
-
isODAReplenishmentNeeded
boolean isODAReplenishmentNeeded()VISA only.Whether replenishment is needed for Offline Data Authentication (ODA).
Integrator should call
D1PayWallet.getDigitalCard(String, D1Task.Callback)to get the latest value.- Returns:
- Whether replenishment is needed.
-
getNumberOfPaymentsLeft
int getNumberOfPaymentsLeft()Get the remaining number of credentials left to perform payment transactions for this digital card.Integrator should call
D1PayWallet.getDigitalCard(String, D1Task.Callback)to get the latest value.- Returns:
- The number of credentials available.
-
isDefaultCard
boolean isDefaultCard()Whether this digital card is the default card used for payment.Integrator should call
D1PayWallet.getDigitalCard(String, D1Task.Callback)to get the latest value.- Returns:
- Whether it is default card.
-