Package com.thalesgroup.gemalto.d1.card
Class CardMetadata
java.lang.Object
com.thalesgroup.gemalto.d1.card.CardMetadata
Card Metadata contains the basic information on Card
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCardMetadata(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
Modifier and TypeMethodDescriptionvoidgetAssetList(D1Task.Callback<List<CardAsset>> callback) To get card assets belong to this card.Gets the expiry date of the card in MMYY format.Get the last 4 digits of the PAN.Ongoing operation of the card.Gets the card scheme.getState()Gets the state of the card.Reason associated to thecardState.voidsetInternalCardMetaData(ID1CCardMetadata d1CCardMetadata) This method is used for internal purpose only.
-
Constructor Details
-
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 -
CardMetadata
-
-
Method Details
-
getScheme
Gets the card scheme. -
getLast4Pan
Get the last 4 digits of the PAN. -
getExpiryDate
Gets the expiry date of the card in MMYY format. -
getState
Gets the state of the card. -
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
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
This method is used for internal purpose only. -
getAssetList
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
-