Enum Class StateReason
- All Implemented Interfaces:
Serializable,Comparable<StateReason>,java.lang.constant.Constable
The reason that is associated to the state for the cards issued by D1.
- Since:
- 4.0.0
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCard is damaged.Card is found.Card is lost.Card is not received.Card is stolen.Account is closed.Card is closed.CVV is locked.Expiry date is locked.Card has a fraudulent operation.Issuer decision.No reason provided.PIN is locked.User decision. -
Method Summary
Modifier and TypeMethodDescriptionstatic StateReasonfromString(String val) Converts from String to StateReason.static StateReason[]Helper method to list the state reasons allowed forCardService.replaceCard()toString()Returns the value as String.static StateReasonReturns the enum constant of this class with the specified name.static StateReason[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NONE
No reason provided. -
CLOSED_ACCOUNT
Account is closed. -
CLOSED_CARD
Card is closed. -
CARD_LOST
Card is lost. -
CARD_FOUND
Card is found. -
CARD_STOLEN
Card is stolen. -
CARD_BROKEN
Card is damaged. -
CARD_NOT_RECEIVED
Card is not received. -
FRAUD
Card has a fraudulent operation. -
USER_DECISION
User decision. -
ISSUER_DECISION
Issuer decision. -
PIN_LOCKED
PIN is locked. -
CVV2_LOCKED
CVV is locked. -
EXPIRY_DATE_LOCKED
Expiry date is locked.
-
-
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
-
fromString
Converts from String to StateReason. -
toString
Returns the value as String.- Overrides:
toStringin classEnum<StateReason>
-
getReplaceReasons
Helper method to list the state reasons allowed forCardService.replaceCard()- Returns:
- list of state reasons to replace a card issued by D1
CARD_BROKEN,CARD_STOLEN,CARD_LOST,CARD_NOT_RECEIVED,FRAUD
-