Package com.thalesgroup.gemalto.d1.card
Class DigitalCard
java.lang.Object
com.thalesgroup.gemalto.d1.card.DigitalCard
Information about the digital card.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDigitalCard(String cardID, State state, Scheme scheme, String last4, String expiryDate, String deviceName, String deviceType, String deviceID, String tokenRequestorID, String tokenRequestorName, boolean isOnCurrentDevice) Public ConstructorDigitalCard(String cardID, State state, Scheme scheme, String last4, String expiryDate, String deviceName, String deviceType, String deviceID, String tokenRequestorID, String tokenRequestorName, List<DeviceBinding> deviceBindingList, boolean isOnCurrentDevice) Public Constructor with DeviceBinding list. -
Method Summary
Modifier and TypeMethodDescriptionGets the unique digital card ID.Gets the device binding list associated with this digital card.Gets the device ID.Gets the device name.Gets the device type.Gets the expiry date of the digital card in MMYY format.getLast4()Gets the last 4 digits of the digital card.Gets the digital card scheme.getState()Gets the digital card status.Gets the identifier of the digital card's token requestor.Gets the name of the digital card's token requestor.booleanIdentifies if the digital card is on the current device (only for Google Pay, Samsung Pay and NFC Wallet).
-
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
Gets the unique digital card ID.- Returns:
- The card ID.
-
getState
Gets the digital card status.- Returns:
- The card status.
-
getScheme
Gets the digital card scheme.- Returns:
- The card scheme.
-
getLast4
Gets the last 4 digits of the digital card.- Returns:
- The last 4 digits of the digital card.
-
getExpiryDate
Gets the expiry date of the digital card in MMYY format.- Returns:
- The expiry date of the card.
-
getDeviceName
Gets the device name.- Returns:
- The device name.
-
getDeviceType
Gets the device type.- Returns:
- The device type.
-
getDeviceID
Gets the device ID.- Returns:
- The device ID.
-
getTokenRequestorID
Gets the identifier of the digital card's token requestor.- Returns:
- The token requestor identifier.
-
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
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
-