Package com.adyen.model.balanceplatform
Enum TransactionRuleInfo.PurposeEnum
- java.lang.Object
-
- java.lang.Enum<TransactionRuleInfo.PurposeEnum>
-
- com.adyen.model.balanceplatform.TransactionRuleInfo.PurposeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionRuleInfo.PurposeEnum>
- Enclosing class:
- TransactionRuleInfo
public static enum TransactionRuleInfo.PurposeEnum extends Enum<TransactionRuleInfo.PurposeEnum>
Specifies the reason for creating the rule. Possible values: * **fraud**: the rule is created to regulate fraudulent activity. * **policy**: the rule is created to ensure that the transaction adheres to your business' policies. For example, if your business has policies about the Merchant Category Codes (MCCs) allowed on a transaction, you can create a rule to block transactions that have specific MCCs.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description COMPLIANCEFRAUDINTERNALPOLICYPOLICYSYSTEM
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionRuleInfo.PurposeEnumfromValue(String value)StringgetValue()StringtoString()static TransactionRuleInfo.PurposeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionRuleInfo.PurposeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
COMPLIANCE
public static final TransactionRuleInfo.PurposeEnum COMPLIANCE
-
FRAUD
public static final TransactionRuleInfo.PurposeEnum FRAUD
-
INTERNALPOLICY
public static final TransactionRuleInfo.PurposeEnum INTERNALPOLICY
-
POLICY
public static final TransactionRuleInfo.PurposeEnum POLICY
-
SYSTEM
public static final TransactionRuleInfo.PurposeEnum SYSTEM
-
-
Method Detail
-
values
public static TransactionRuleInfo.PurposeEnum[] 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.PurposeEnum c : TransactionRuleInfo.PurposeEnum.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.PurposeEnum 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.PurposeEnum>
-
fromValue
public static TransactionRuleInfo.PurposeEnum fromValue(String value)
-
-