Package com.thalesgroup.gemalto.d1.d1pay
Interface D1PayDigitalCard
-
public interface D1PayDigitalCardContains the digital card's information.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetCardID()Gets the unique D1 Pay digital card ID.StringgetExpiryDate()Gets the expiry date of the D1 Pay digital card in MMYY format.StringgetLast4()Gets the last 4 digits of the D1 Pay digital card.intgetNumberOfPaymentsLeft()Get the remaining number of credentials left to perform payment transactions for this digital card.SchemegetScheme()Gets the D1 Pay digital card scheme.StategetState()Gets the D1 Pay digital card status.StringgetTncURL()Gets the URL of the terms and conditions.booleanisAuthenticationRequiredBeforeReplenishment()Whether authentication is needed for replenishment.booleanisDefaultCard()Whether this digital card is the default card used for payment.booleanisODAReplenishmentNeeded()VISA only.booleanisReplenishmentNeeded()Whether the digital card needs to be replenished based on the number of credentials left.
-
-
-
Method Detail
-
getScheme
@NonNull Scheme getScheme()
Gets the D1 Pay digital card scheme.- Returns:
- The card scheme.
-
getLast4
@Nullable String getLast4()
Gets the last 4 digits of the D1 Pay digital card.- Returns:
- The last 4 digits of the card (if any).
-
getExpiryDate
@Nullable String getExpiryDate()
Gets the expiry date of the D1 Pay digital card in MMYY format.- Returns:
- The expiry date of the card (if any).
-
getTncURL
@Nullable String 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.
-
-