Package com.adyen.model.balanceplatform
Enum TransactionRule.OutcomeTypeEnum
- java.lang.Object
-
- java.lang.Enum<TransactionRule.OutcomeTypeEnum>
-
- com.adyen.model.balanceplatform.TransactionRule.OutcomeTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionRule.OutcomeTypeEnum>
- Enclosing class:
- TransactionRule
public static enum TransactionRule.OutcomeTypeEnum extends Enum<TransactionRule.OutcomeTypeEnum>
The [outcome](https://docs.adyen.com/issuing/transaction-rules#outcome) that will be applied when a transaction meets the conditions of the rule. If not provided, by default, this is set to **hardBlock**. Possible values: * **hardBlock**: the transaction is declined. * **scoreBased**: the transaction is assigned the `score` you specified. Adyen calculates the total score and if it exceeds 100, the transaction is declined.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ENFORCESCAHARDBLOCKSCOREBASEDTIMEDBLOCK
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionRule.OutcomeTypeEnumfromValue(String value)StringgetValue()StringtoString()static TransactionRule.OutcomeTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionRule.OutcomeTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENFORCESCA
public static final TransactionRule.OutcomeTypeEnum ENFORCESCA
-
HARDBLOCK
public static final TransactionRule.OutcomeTypeEnum HARDBLOCK
-
SCOREBASED
public static final TransactionRule.OutcomeTypeEnum SCOREBASED
-
TIMEDBLOCK
public static final TransactionRule.OutcomeTypeEnum TIMEDBLOCK
-
-
Method Detail
-
values
public static TransactionRule.OutcomeTypeEnum[] 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 (TransactionRule.OutcomeTypeEnum c : TransactionRule.OutcomeTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static TransactionRule.OutcomeTypeEnum 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<TransactionRule.OutcomeTypeEnum>
-
fromValue
public static TransactionRule.OutcomeTypeEnum fromValue(String value)
-
-