Package com.gemalto.mfs.mwsdk.dcm
Interface DigitalizedCardStatus
-
public interface DigitalizedCardStatus
This interface defines the current state of the Digitalized Card. This interface allows the user of this SDK to retrieve the following information from the DigitalizedCard:- The card state - to indicate if the card is ACTIVE or SUSPENDED
DigitalizedCardState
- The remaining number of credentials - to indicate how many more times the wallet is able to perform a transaction
- If the card needs replenishment - Each card has it's own threshold for the minimum number of credentials remaining in storage. If the number of remaining credentials reaches this threshold, then the card needs to be replenished.
- The card state - to indicate if the card is ACTIVE or SUSPENDED
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getExpiryDate()
Retrieves the LUK expiry date of the cardint
getNumberOfPaymentsLeft()
Retrieves the remaining number of credentials left to perform payment transactions for this cardDigitalizedCardState
getState()
Used to retrieve the state of the digitalized card.boolean
needsReplenishment()
Determines if the card needs to be replenished based on the number of credentials left, and set minimum threshold provided by the CPS.
-
-
-
Method Detail
-
getState
DigitalizedCardState getState()
Used to retrieve the state of the digitalized card.DigitalizedCardState
- Returns:
DigitalizedCardState
-
getNumberOfPaymentsLeft
int getNumberOfPaymentsLeft()
Retrieves the remaining number of credentials left to perform payment transactions for this card- Returns:
- the remaining number of credentials left
-
needsReplenishment
boolean needsReplenishment()
Determines if the card needs to be replenished based on the number of credentials left, and set minimum threshold provided by the CPS.- Returns:
- true, if number of remaining credentials is fewer than the threshold set by the CPS. Otherwise, false.
-
getExpiryDate
java.lang.String getExpiryDate()
Retrieves the LUK expiry date of the card- Returns:
- the key validity period of the LUK key of the digitalized card null if it is a SUK null in case of error
-
-