Package com.gemalto.mfs.mwsdk.dcm
Interface DigitalizedCard
-
public interface DigitalizedCardInterface describing the digitalized card. Normal use cases of using this component include:- Determining if this particular digitalized card is the default card for payment
- If this is not the default card for payment, set this digitalized card as the default payment card.
- Retrieve specific card details
- Retrieve the tokenized card id associated with this card
- Retrieve the current state of the card
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsyncToken<java.lang.Void>clearAdditionalPaymentDataSet(PaymentType paymentType, AbstractAsyncHandler<java.lang.Void> handler)This method is used to clear the previously set additional payment data usingsetAdditionalPaymentData(PaymentType, AbstractAsyncHandler, String, byte[]).AsyncToken<DigitalizedCardAdditionalPaymentData>getAdditionalPaymentDataSet(PaymentType paymentType, AbstractAsyncHandler<DigitalizedCardAdditionalPaymentData> handler)This method is used to get the previously set additional payment data usingsetAdditionalPaymentData(PaymentType, AbstractAsyncHandler, String, byte[]).java.util.List<Aid>getAllAids()Get all theAidsupported in PPSE FCI response in card profile.AsyncToken<DigitalizedCardDetails>getCardDetails(AbstractAsyncHandler<DigitalizedCardDetails> handler)Retrieve digital card details.DigitalizedCardDetailsAsyncToken<DigitalizedCardStatus>getCardState(AbstractAsyncHandler<DigitalizedCardStatus> handler)Retrieve the digitalized card stateDigitalizedCardState.java.lang.StringgetTokenizedCardID()Retrieve tokenized card ID.AsyncToken<java.lang.Boolean>isDefault(PaymentType paymentType, AbstractAsyncHandler<java.lang.Boolean> handler)Check if the DigitalizedCard is set as the default payment card for the given PaymentType.booleanisMultiAids()Check if current card supports multipleAid.AsyncToken<java.lang.Void>setAdditionalPaymentData(PaymentType type, AbstractAsyncHandler<java.lang.Void> handler, java.lang.String path, byte[] value)This method is used in compliment with PaymentService#setData() where data is set one time during the transaction.AsyncToken<java.lang.Void>setDefault(PaymentType paymentType, AbstractAsyncHandler<java.lang.Void> handler)Set the DigitalizedCard as the default payment card with the default PaymentTypevoidupdateAidList(java.util.List<Aid> aids)Update the list ofAidto card profile.
-
-
-
Method Detail
-
isDefault
AsyncToken<java.lang.Boolean> isDefault(PaymentType paymentType, AbstractAsyncHandler<java.lang.Boolean> handler)
Check if the DigitalizedCard is set as the default payment card for the given PaymentType.- Parameters:
paymentType-PaymentTypehandler- that will be responsible for processing the result of the operationAbstractAsyncHandler- Returns:
- AsyncToken
token that can be used to make this method synchronous.If the return value is NULL,it means the card is no longer exist in the database.(It may due to the "wipe card" command performed in the background)
-
setDefault
AsyncToken<java.lang.Void> setDefault(PaymentType paymentType, AbstractAsyncHandler<java.lang.Void> handler)
Set the DigitalizedCard as the default payment card with the default PaymentType- Parameters:
paymentType-PaymentTypehandler- the handler that will be responsible for processing the result of the operation- Returns:
- AsyncToken
token that may be used to wait for the result of the asynchronous operation.
-
getCardDetails
AsyncToken<DigitalizedCardDetails> getCardDetails(AbstractAsyncHandler<DigitalizedCardDetails> handler)
Retrieve digital card details.DigitalizedCardDetails- Parameters:
handler- the handler that will be responsible for processing the result of the operation- Returns:
- AsyncToken
token that may be used to wait for the result of the asynchronous operation.
-
getTokenizedCardID
java.lang.String getTokenizedCardID()
Retrieve tokenized card ID.- Returns:
- string representing the tokenized card id
-
getCardState
AsyncToken<DigitalizedCardStatus> getCardState(AbstractAsyncHandler<DigitalizedCardStatus> handler)
Retrieve the digitalized card stateDigitalizedCardState. The card state is dictated by the CPS.- Parameters:
handler- the handler that will be responsible for processing the result of the operation- Returns:
- AsyncToken
token that may be used to wait for the result of the asynchronous operation.
-
setAdditionalPaymentData
AsyncToken<java.lang.Void> setAdditionalPaymentData(PaymentType type, AbstractAsyncHandler<java.lang.Void> handler, java.lang.String path, byte[] value)
This method is used in compliment with PaymentService#setData() where data is set one time during the transaction. This method is used if MPA wants to set an additional payment data before the transaction starts. This data will be persisted by the SDK and will be used in future transactions.- Parameters:
type-PaymentTypehandler- the handler that will be responsible for processing the result of the operationpath- One of the predefined path in the card profile that allows update. Refer to the list in ProfileUpdatablePaths.value- The value to update. The validity of the data depends on the path.- Returns:
AsyncToken
-
clearAdditionalPaymentDataSet
AsyncToken<java.lang.Void> clearAdditionalPaymentDataSet(PaymentType paymentType, AbstractAsyncHandler<java.lang.Void> handler)
This method is used to clear the previously set additional payment data usingsetAdditionalPaymentData(PaymentType, AbstractAsyncHandler, String, byte[]).- Parameters:
paymentType-PaymentTypehandler- the handler that will be responsible for processing the result of the operation- Returns:
AsyncToken
-
getAdditionalPaymentDataSet
AsyncToken<DigitalizedCardAdditionalPaymentData> getAdditionalPaymentDataSet(PaymentType paymentType, AbstractAsyncHandler<DigitalizedCardAdditionalPaymentData> handler)
This method is used to get the previously set additional payment data usingsetAdditionalPaymentData(PaymentType, AbstractAsyncHandler, String, byte[]).- Parameters:
paymentType-PaymentTypehandler- the handler that will be responsible for processing the result of the operation- Returns:
DigitalizedCardAdditionalPaymentData
-
isMultiAids
boolean isMultiAids()
Check if current card supports multipleAid.Note: This API is only applicable for VISA.
- Returns:
trueif support, or else returnfalse.
-
getAllAids
java.util.List<Aid> getAllAids() throws InternalComponentException
Get all theAidsupported in PPSE FCI response in card profile. The element is sorted in descending order according to its priority, i.e. the first element has the highest priority while the last element has the lowest priority.Note: This API is only applicable for VISA.
- Returns:
- The list of
Aidobject. - Throws:
InternalComponentException- InternalComponentException such as invalid profile fields.- Since:
- 6.3.1
-
updateAidList
void updateAidList(java.util.List<Aid> aids) throws InternalComponentException
Update the list ofAidto card profile.Note: This API is only applicable for VISA.
- Parameters:
aids- the list ofAidto be updated, the first element has the highest priority while the last element has the lowest priority.- Throws:
InternalComponentException- InternalComponentException such as changingAidpriority is not supported.- Since:
- 6.3.1
-
-