Enum PaymentInstrument.StatusReasonEnum
- java.lang.Object
-
- java.lang.Enum<PaymentInstrument.StatusReasonEnum>
-
- com.adyen.model.configurationwebhooks.PaymentInstrument.StatusReasonEnum
-
- All Implemented Interfaces:
Serializable,Comparable<PaymentInstrument.StatusReasonEnum>
- Enclosing class:
- PaymentInstrument
public static enum PaymentInstrument.StatusReasonEnum extends Enum<PaymentInstrument.StatusReasonEnum>
The reason for the status of the payment instrument. Possible values: **accountClosure**, **damaged**, **endOfLife**, **expired**, **lost**, **stolen**, **suspectedFraud**, **transactionRule**, **other**. If the reason is **other**, you must also send the `statusComment` parameter describing the status change.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ACCOUNTCLOSUREDAMAGEDENDOFLIFEEXPIREDLOSTOTHERSTOLENSUSPECTEDFRAUDTRANSACTIONRULE
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PaymentInstrument.StatusReasonEnumfromValue(String value)StringgetValue()StringtoString()static PaymentInstrument.StatusReasonEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static PaymentInstrument.StatusReasonEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ACCOUNTCLOSURE
public static final PaymentInstrument.StatusReasonEnum ACCOUNTCLOSURE
-
DAMAGED
public static final PaymentInstrument.StatusReasonEnum DAMAGED
-
ENDOFLIFE
public static final PaymentInstrument.StatusReasonEnum ENDOFLIFE
-
EXPIRED
public static final PaymentInstrument.StatusReasonEnum EXPIRED
-
LOST
public static final PaymentInstrument.StatusReasonEnum LOST
-
OTHER
public static final PaymentInstrument.StatusReasonEnum OTHER
-
STOLEN
public static final PaymentInstrument.StatusReasonEnum STOLEN
-
SUSPECTEDFRAUD
public static final PaymentInstrument.StatusReasonEnum SUSPECTEDFRAUD
-
TRANSACTIONRULE
public static final PaymentInstrument.StatusReasonEnum TRANSACTIONRULE
-
-
Method Detail
-
values
public static PaymentInstrument.StatusReasonEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (PaymentInstrument.StatusReasonEnum c : PaymentInstrument.StatusReasonEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static PaymentInstrument.StatusReasonEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public String getValue()
-
toString
public String toString()
- Overrides:
toStringin classEnum<PaymentInstrument.StatusReasonEnum>
-
fromValue
public static PaymentInstrument.StatusReasonEnum fromValue(String value)
-
-