Package com.thalesgroup.gemalto.d1.card
Class CardMetadata
- java.lang.Object
-
- com.thalesgroup.gemalto.d1.card.CardMetadata
-
public final class CardMetadata extends Object
Card Metadata contains the basic information on Card- Since:
- 1.0.0
-
-
Constructor Summary
Constructors Constructor Description CardMetadata(Scheme scheme, String last4Pan, String expiryDate, State state)
Public Constructor for CardMetadata object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getAssetList(D1Task.Callback<List<CardAsset>> callback)
To get card assets belong to this card.String
getExpiryDate()
Gets the expiry date of the card in MMYY format.String
getLast4Pan()
Get the last 4 digits of the PAN.Scheme
getScheme()
Gets the card scheme.State
getState()
Gets the state of the card.void
setInternalCardMetaData(com.thalesgroup.gemalto.d1.core.module.card.D1CCardMetadata d1CCardMetadata)
This method is used for internal purpose only.
-
-
-
Method Detail
-
getExpiryDate
@NonNull public String getExpiryDate()
Gets the expiry date of the card in MMYY format.
-
setInternalCardMetaData
public void setInternalCardMetaData(@NonNull com.thalesgroup.gemalto.d1.core.module.card.D1CCardMetadata d1CCardMetadata)
This method is used for internal purpose only.
-
getAssetList
public void getAssetList(D1Task.Callback<List<CardAsset>> callback)
To get card assets belong to this card. The Card asset contains resources such as an image. For images in PNG format, the list may contain several resolutions of the same asset.NOTE:
If you are migrating from SDK version 1.x and 2.x, the previous method CardMetadata.getAssetList has been updated to this asynchronous method to optimize the performance.- Parameters:
callback
- The callback is invoked when the operation is completed. IfD1Task.Callback.onSuccess(Object)
is returned, it returns assets list for respective card and always non-null.
Possible errors:
D1Exception.ErrorCode.ERROR_CORE
Which can be due to storage (unlikely) or network failure
D1Exception.ErrorCode.ERROR_NOT_LOGGED_IN
D1Exception.ErrorCode.ERROR_NOT_AUTHORIZED
D1Exception.ErrorCode.ERROR_DEVICE_ENVIRONMENT_UNSAFE
-
-