Package com.adyen.model.balanceplatform
Enum TransactionRuleInfo.TypeEnum
- java.lang.Object
-
- java.lang.Enum<TransactionRuleInfo.TypeEnum>
-
- com.adyen.model.balanceplatform.TransactionRuleInfo.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionRuleInfo.TypeEnum>
- Enclosing class:
- TransactionRuleInfo
public static enum TransactionRuleInfo.TypeEnum extends Enum<TransactionRuleInfo.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 TransactionRuleInfo.TypeEnumfromValue(String value)StringgetValue()StringtoString()static TransactionRuleInfo.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionRuleInfo.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 TransactionRuleInfo.TypeEnum ALLOWLIST
-
BLOCKLIST
public static final TransactionRuleInfo.TypeEnum BLOCKLIST
-
MAXUSAGE
public static final TransactionRuleInfo.TypeEnum MAXUSAGE
-
VELOCITY
public static final TransactionRuleInfo.TypeEnum VELOCITY
-
-
Method Detail
-
values
public static TransactionRuleInfo.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 (TransactionRuleInfo.TypeEnum c : TransactionRuleInfo.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 TransactionRuleInfo.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<TransactionRuleInfo.TypeEnum>
-
fromValue
public static TransactionRuleInfo.TypeEnum fromValue(String value)
-
-