Package com.thalesgroup.gemalto.d1
Enum Class PushResponseKey
- All Implemented Interfaces:
Serializable,Comparable<PushResponseKey>,java.lang.constant.Constable
An enumeration value for Push Message from the server.
- Since:
- 2.3.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionContains the card identifier from Push Message.Last call timestamp value which is only available if the MESSAGE_TYPE isTYPE_TRANSACTION_NOTIFICATIONYou can use this value when requesting a transaction history.The message identifier of the push message.This key is used to specify the message type. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe message received is of an Authn type and has been processed by the SDK.static final StringA message is received to notify that resynchronisation of the card id is required.static final StringA message is received to notify the Application that there is an update for Card State.static final StringThe message received is related to activities in card issued by D1 andClick to Pay.static final StringA message is received to notify that a replenishment is required.static final StringA message is received to notify that a new transaction has been performed recently.static final StringThe message received is not recognized by the SDK. -
Method Summary
Modifier and TypeMethodDescriptionstatic PushResponseKeyReturns the enum constant of this class with the specified name.static PushResponseKey[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MESSAGE_TYPE
This key is used to specify the message type. Currently, the following types are supported: -
CARD_ID
Contains the card identifier from Push Message. This value is only available if the MESSAGE_TYPE is eitherTYPE_REPLENISHMENTorTYPE_TRANSACTION_NOTIFICATION. -
LAST_CALL_TIMESTAMP
Last call timestamp value which is only available if the MESSAGE_TYPE isTYPE_TRANSACTION_NOTIFICATIONYou can use this value when requesting a transaction history. -
MESSAGE_ID
The message identifier of the push message.- Since:
- 4.0.0
-
-
Field Details
-
TYPE_UNKNOWN
The message received is not recognized by the SDK.- See Also:
-
TYPE_CARD_STATE
A message is received to notify the Application that there is an update for Card State. This notification only happen if data contains key="sender" with value="CPS" When this type is received, application will receive another callback onD1PayDataChangedListener- See Also:
-
TYPE_REPLENISHMENT
A message is received to notify that a replenishment is required. This notification only occurs if the data contains key="sender" with value="MG"- See Also:
-
TYPE_TRANSACTION_NOTIFICATION
A message is received to notify that a new transaction has been performed recently. This notification only occurs if the data contains key="sender" with value="TNS"- See Also:
-
TYPE_AUTHN
The message received is of an Authn type and has been processed by the SDK.- See Also:
-
TYPE_MESSAGE_NOTIFICATION
The message received is related to activities in card issued by D1 andClick to Pay.- Since:
- 4.0.0
- See Also:
-
TYPE_CARD_RENEWAL
A message is received to notify that resynchronisation of the card id is required. This notification only occurs if the data contains key="sender" with value="CPS" and renewal sync is needed. When this message is received,it is recommended to call this APID1PayWallet.getDigitalCardList(D1Task.Callback)to trigger the resynchronisation of the card id. Resynchronisation of the card id requires user login. If user is not logged in, resynchronisation of the card id will be skipped.- Since:
- 3.3.1
- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-