Package com.adyen.model.balanceplatform
Enum TransactionRuleInterval.TypeEnum
- java.lang.Object
-
- java.lang.Enum<TransactionRuleInterval.TypeEnum>
-
- com.adyen.model.balanceplatform.TransactionRuleInterval.TypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<TransactionRuleInterval.TypeEnum>
- Enclosing class:
- TransactionRuleInterval
public static enum TransactionRuleInterval.TypeEnum extends Enum<TransactionRuleInterval.TypeEnum>
The [type of interval](https://docs.adyen.com/issuing/transaction-rules#time-intervals) during which the rule conditions and limits apply, and how often counters are reset. Possible values: * **perTransaction**: conditions are evaluated and the counters are reset for every transaction. * **daily**: the counters are reset daily at 00:00:00 CET. * **weekly**: the counters are reset every Monday at 00:00:00 CET. * **monthly**: the counters reset every first day of the month at 00:00:00 CET. * **lifetime**: conditions are applied to the lifetime of the payment instrument. * **rolling**: conditions are applied and the counters are reset based on a `duration`. If the reset date and time are not provided, Adyen applies the default reset time similar to fixed intervals. For example, if the duration is every two weeks, the counter resets every third Monday at 00:00:00 CET. * **sliding**: conditions are applied and the counters are reset based on the current time and a `duration` that you specify.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TransactionRuleInterval.TypeEnumfromValue(String value)StringgetValue()StringtoString()static TransactionRuleInterval.TypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static TransactionRuleInterval.TypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DAILY
public static final TransactionRuleInterval.TypeEnum DAILY
-
LIFETIME
public static final TransactionRuleInterval.TypeEnum LIFETIME
-
MONTHLY
public static final TransactionRuleInterval.TypeEnum MONTHLY
-
PERTRANSACTION
public static final TransactionRuleInterval.TypeEnum PERTRANSACTION
-
ROLLING
public static final TransactionRuleInterval.TypeEnum ROLLING
-
SLIDING
public static final TransactionRuleInterval.TypeEnum SLIDING
-
WEEKLY
public static final TransactionRuleInterval.TypeEnum WEEKLY
-
-
Method Detail
-
values
public static TransactionRuleInterval.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 (TransactionRuleInterval.TypeEnum c : TransactionRuleInterval.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 TransactionRuleInterval.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<TransactionRuleInterval.TypeEnum>
-
fromValue
public static TransactionRuleInterval.TypeEnum fromValue(String value)
-
-