Package com.thalesgroup.gemalto.d1.card
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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCardID()Gets the unique digital card ID.StringgetDeviceID()Gets the device ID.StringgetDeviceName()Gets the device name.StringgetDeviceType()Gets the device type.StringgetExpiryDate()Gets the expiry date of the digital card in MMYY format.StringgetLast4()Gets the last 4 digits of the digital card.SchemegetScheme()Gets the digital card scheme.StategetState()Gets the digital card status.StringgetTokenRequestorID()Gets the identifier of the digital card's token requestor.StringgetTokenRequestorName()Gets the name of the digital card's token requestor.booleanisOnCurrentDevice()Identify if the digital card is on the current device (only for GooglePay, SamsungPay and D1Pay).
-
-
-
Constructor Detail
-
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
-
-
Method Detail
-
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.
-
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()
Identify if the digital card is on the current device (only for GooglePay, SamsungPay and D1Pay).- Since:
- 3.4.0
-
-