Package com.adyen.model.balanceplatform
Enum TransactionRule.TypeEnum
- java.lang.Object
-
- java.lang.Enum<TransactionRule.TypeEnum>
-
- com.adyen.model.balanceplatform.TransactionRule.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionRule.TypeEnum>
- Enclosing class:
- TransactionRule
public static enum TransactionRule.TypeEnum extends Enum<TransactionRule.TypeEnum>
The [type of rule](https://docs.adyen.com/issuing/transaction-rules#rule-types), which defines if a rule blocks transactions based on individual characteristics or accumulates data. Possible values: * **blockList**: decline a transaction when the conditions are met. * **maxUsage**: add the amount or number of transactions for the lifetime of a payment instrument, and then decline a transaction when the specified limits are met. * **velocity**: add the amount or number of transactions based on a specified time interval, and then decline a transaction when the specified limits are met.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionRule.TypeEnumfromValue(String value)StringgetValue()StringtoString()static TransactionRule.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionRule.TypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ALLOWLIST
public static final TransactionRule.TypeEnum ALLOWLIST
-
BLOCKLIST
public static final TransactionRule.TypeEnum BLOCKLIST
-
MAXUSAGE
public static final TransactionRule.TypeEnum MAXUSAGE
-
VELOCITY
public static final TransactionRule.TypeEnum VELOCITY
-
-
Method Detail
-
values
public static TransactionRule.TypeEnum[] 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.TypeEnum c : TransactionRule.TypeEnum.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.TypeEnum 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.TypeEnum>
-
fromValue
public static TransactionRule.TypeEnum fromValue(String value)
-
-