Package com.thalesgroup.gemalto.d1.d1pay
Interface D1PayDigitalCard
-
public interface D1PayDigitalCard
The Digital Card full information.- Since:
- 2.0.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getCardID()
Get the unique D1 Pay digital card IDString
getExpiryDate()
Get expiry date of the D1 Pay digital card in MMYY formatString
getLast4()
Get the last 4 digits of the D1 Pay Digital Cardint
getNumberOfPaymentsLeft()
Get the remaining number of credentials left to perform payment transactions for this digital card.Scheme
getScheme()
Get the D1 Pay digital card schemeState
getState()
Get the D1 Pay digital card statusString
getTncURL()
Get terms and conditions URLboolean
isAuthenticationRequiredBeforeReplenishment()
Whether authentication is needed or not for replenishment.boolean
isDefaultCard()
Whether this digital card is the default card used for payment.boolean
isODAReplenishmentNeeded()
Whether replenishment is needed for Offline Data Authentication (ODA).boolean
isReplenishmentNeeded()
Whether the digital card needs to be replenished based on the number of credentials left.
-
-
-
Method Detail
-
getLast4
@Nullable String getLast4()
Get the last 4 digits of the D1 Pay Digital Card- Returns:
- The last 4 digits of the card (if any)
-
getExpiryDate
@Nullable String getExpiryDate()
Get expiry date of the D1 Pay digital card in MMYY format- Returns:
- The expiry date of the card (if any)
-
getTncURL
@Nullable String getTncURL()
Get terms and conditions URL- Returns:
- The URL if it is available 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 or not for replenishment.Integrator should call
D1PayWallet.getDigitalCard(String, D1Task.Callback)
to get the latest value.- Returns:
- whether authentication is required.
-
isODAReplenishmentNeeded
boolean isODAReplenishmentNeeded()
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:
- number of credentials left.
-
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.
-
-