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)CardMetadata(Scheme scheme, String last4Pan, String expiryDate, State state)Public Constructor for CardMetadata objectCardMetadata(Scheme scheme, String last4Pan, String expiryDate, State state, StateReason stateReason, OngoingOperation ongoingOperation)Public Constructor for CardMetadata object
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetAssetList(D1Task.Callback<List<CardAsset>> callback)To get card assets belong to this card.StringgetExpiryDate()Gets the expiry date of the card in MMYY format.StringgetLast4Pan()Get the last 4 digits of the PAN.OngoingOperationgetOngoingOperation()Ongoing operation of the card.SchemegetScheme()Gets the card scheme.StategetState()Gets the state of the card.StateReasongetStateReason()Reason associated to thecardState.voidsetInternalCardMetaData(com.thalesgroup.gemalto.d1.core.module.card.ID1CCardMetadata d1CCardMetadata)This method is used for internal purpose only.
-
-
-
Constructor Detail
-
CardMetadata
public CardMetadata(@NonNull Scheme scheme, @NonNull String last4Pan, @NonNull String expiryDate, @NonNull State state, @NonNull StateReason stateReason, @NonNull OngoingOperation ongoingOperation)
Public Constructor for CardMetadata object
-
CardMetadata
public CardMetadata(@NonNull Scheme scheme, @NonNull String last4Pan, @NonNull String expiryDate, @NonNull State state)
Public Constructor for CardMetadata object
-
-
Method Detail
-
getExpiryDate
@NonNull public String getExpiryDate()
Gets the expiry date of the card in MMYY format.
-
getOngoingOperation
@NonNull public OngoingOperation getOngoingOperation()
Ongoing operation of the card.The value is only available for card issued by D1. Otherwise, the value is set to
OngoingOperation.NONE- Since:
- 4.0.0
-
getStateReason
@NonNull public StateReason getStateReason()
Reason associated to thecardState.The value is only available for card issued by D1. Otherwise, the value is set to
StateReason.NONE- Since:
- 4.0.0
-
setInternalCardMetaData
public void setInternalCardMetaData(@NonNull com.thalesgroup.gemalto.d1.core.module.card.ID1CCardMetadata d1CCardMetadata)
This method is used for internal purpose only.
-
getAssetList
public void getAssetList(@NonNull 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_IND1Exception.ErrorCode.ERROR_NOT_AUTHORIZEDD1Exception.ErrorCode.ERROR_DEVICE_ENVIRONMENT_UNSAFED1Exception.ErrorCode.ERROR_D1PAY_NO_CARD_ART_CACHE
-
-