Class DigitalCard

java.lang.Object
com.thalesgroup.gemalto.d1.card.DigitalCard

public final class DigitalCard extends Object
Information about the digital card.
Since:
1.0.0
  • Constructor Details

    • DigitalCard

      public DigitalCard(@NonNull String cardID, @NonNull State state, @NonNull Scheme scheme, @Nullable String last4, @Nullable String expiryDate, @Nullable String deviceName, @Nullable String deviceType, @Nullable String deviceID, @Nullable String tokenRequestorID, @Nullable String tokenRequestorName, boolean isOnCurrentDevice)
      Public Constructor
    • DigitalCard

      public DigitalCard(@NonNull String cardID, @NonNull State state, @NonNull Scheme scheme, @Nullable String last4, @Nullable String expiryDate, @Nullable String deviceName, @Nullable String deviceType, @Nullable String deviceID, @Nullable String tokenRequestorID, @Nullable String tokenRequestorName, @Nullable List<DeviceBinding> deviceBindingList, boolean isOnCurrentDevice)
      Public Constructor with DeviceBinding list. This constructor allows creation of a DigitalCard with device binding information. Device bindings provide details about the card's binding status on different devices.
      Parameters:
      cardID - The unique identifier of the digital card which must not be null.
      state - The current state of the digital card which must not be null.
      scheme - The card scheme (e.g., VISA, MASTERCARD) which must not be null.
      last4 - The last 4 digits of the card which may be null.
      expiryDate - The expiry date of the card in MMYY format which may be null.
      deviceName - The name of the device which may be null.
      deviceType - The type of the device which may be null.
      deviceID - The unique identifier of the device which may be null.
      tokenRequestorID - The identifier of the token requestor which may be null.
      tokenRequestorName - The name of the token requestor which may be null.
      deviceBindingList - The list of device bindings associated with this card which may be null.
      isOnCurrentDevice - Indicates whether the card is on the current device.
      Since:
      4.3.0
  • Method Details

    • getCardID

      @NonNull public String getCardID()
      Gets the unique digital card ID.
      Returns:
      The card ID.
    • getState

      @NonNull public State getState()
      Gets the digital card status.
      Returns:
      The card status.
    • getScheme

      @NonNull public Scheme getScheme()
      Gets the digital card scheme.
      Returns:
      The card scheme.
    • getLast4

      @Nullable public String getLast4()
      Gets the last 4 digits of the digital card.
      Returns:
      The last 4 digits of the digital card.
    • getExpiryDate

      @Nullable public String getExpiryDate()
      Gets the expiry date of the digital card in MMYY format.
      Returns:
      The expiry date of the card.
    • getDeviceName

      @Nullable public String getDeviceName()
      Gets the device name.
      Returns:
      The device name.
    • getDeviceType

      @Nullable public String getDeviceType()
      Gets the device type.
      Returns:
      The device type.
    • getDeviceID

      @Nullable public String getDeviceID()
      Gets the device ID.
      Returns:
      The device ID.
    • getTokenRequestorID

      @Nullable public String getTokenRequestorID()
      Gets the identifier of the digital card's token requestor.
      Returns:
      The token requestor identifier.
    • getTokenRequestorName

      @Nullable public String getTokenRequestorName()
      Gets the name of the digital card's token requestor. It is only supported for Mastercard.
      Returns:
      The token requestor name.
    • isOnCurrentDevice

      public boolean isOnCurrentDevice()
      Identifies if the digital card is on the current device (only for Google Pay, Samsung Pay and NFC Wallet).
      Since:
      3.4.0
    • getDeviceBindingList

      @Nullable public List<DeviceBinding> getDeviceBindingList()
      Gets the device binding list associated with this digital card. The device binding list contains information about the card's binding status on different devices, including binding references, device names, and binding statuses.
      Returns:
      The list of device bindings. This may be null if no bindings are available.
      Since:
      4.3.0