Package com.thalesgroup.gemalto.d1.d1pay
Interface D1PayDigitalCard
-
public interface D1PayDigitalCard
Contains the digital card's information.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCardID()
Gets the unique D1 Pay digital card ID.String
getExpiryDate()
Gets the expiry date of the D1 Pay digital card in MMYY format.String
getLast4()
Gets the last 4 digits of the D1 Pay digital card.int
getNumberOfPaymentsLeft()
Get the remaining number of credentials left to perform payment transactions for this digital card.Scheme
getScheme()
Gets the D1 Pay digital card scheme.State
getState()
Gets the D1 Pay digital card status.String
getTncURL()
Gets the URL of the terms and conditions.boolean
isAuthenticationRequiredBeforeReplenishment()
Whether authentication is needed for replenishment.boolean
isDefaultCard()
Whether this digital card is the default card used for payment.boolean
isODAReplenishmentNeeded()
VISA only.boolean
isReplenishmentNeeded()
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.
-
-