public final class D1PayDigitalCard extends Object
Constructor and Description |
---|
D1PayDigitalCard(String cardID,
State state,
Scheme scheme,
String last4,
String expiryDate,
String tncURL,
boolean isReplenishmentNeeded,
boolean isAuthenticationRequired,
boolean isODAReplenishmentNeeded,
int numberOfPaymentsLeft,
boolean isDefaultCard)
(internal usage)
|
Modifier and Type | Method and Description |
---|---|
String |
getCardID()
Get the unique D1 Pay digital card ID
|
String |
getExpiryDate()
Get expiry date of the D1 Pay digital card in MMYY format
|
String |
getLast4()
Get 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()
Get the D1 Pay digital card scheme
|
State |
getState()
Get the D1 Pay digital card status
|
String |
getTncURL()
Get terms and conditions URL
|
boolean |
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.
|
public D1PayDigitalCard(@NonNull String cardID, @NonNull State state, @NonNull Scheme scheme, @Nullable String last4, @Nullable String expiryDate, @Nullable String tncURL, boolean isReplenishmentNeeded, boolean isAuthenticationRequired, boolean isODAReplenishmentNeeded, int numberOfPaymentsLeft, boolean isDefaultCard)
@NonNull public String getCardID()
@NonNull public State getState()
@NonNull public Scheme getScheme()
@Nullable public String getLast4()
@Nullable public String getExpiryDate()
@Nullable public String getTncURL()
public boolean isReplenishmentNeeded()
Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback)
to get the latest value.
public boolean isAuthenticationRequiredBeforeReplenishment()
Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback)
to get the latest value.
public boolean isODAReplenishmentNeeded()
Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback)
to get the latest value.
public int getNumberOfPaymentsLeft()
Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback)
to get the latest value.
public boolean isDefaultCard()
Integrator should call D1PayWallet.getDigitalCard(String, D1Task.Callback)
to get the latest value.