Package com.adyen.model.tapi
Enum ReversalReason
- java.lang.Object
-
- java.lang.Enum<ReversalReason>
-
- com.adyen.model.tapi.ReversalReason
-
- All Implemented Interfaces:
Serializable,Comparable<ReversalReason>
public enum ReversalReason extends Enum<ReversalReason>
Reason of the payment or loyalty reversal. Possible values: * **CustCancel** * **Malfunction** * **MerchantCancel** * **Unable2Compl**
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CUST_CANCELMALFUNCTIONMERCHANT_CANCELUNABLE2_COMPL
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ReversalReasonfromValue(String value)StringgetValue()StringtoString()static ReversalReasonvalueOf(String name)Returns the enum constant of this type with the specified name.static ReversalReason[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CUST_CANCEL
public static final ReversalReason CUST_CANCEL
-
MALFUNCTION
public static final ReversalReason MALFUNCTION
-
MERCHANT_CANCEL
public static final ReversalReason MERCHANT_CANCEL
-
UNABLE2_COMPL
public static final ReversalReason UNABLE2_COMPL
-
-
Method Detail
-
values
public static ReversalReason[] 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 (ReversalReason c : ReversalReason.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReversalReason 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<ReversalReason>
-
fromValue
public static ReversalReason fromValue(String value)
-
-