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:
    1. The card state - to indicate if the card is ACTIVE or SUSPENDED DigitalizedCardState
    2. The remaining number of credentials - to indicate how many more times the wallet is able to perform a transaction
    3. 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.
    • Method Detail

      • 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