Package com.adyen.model.checkout
Enum SubscriptionDetails.AmountRuleEnum
- java.lang.Object
-
- java.lang.Enum<SubscriptionDetails.AmountRuleEnum>
-
- com.adyen.model.checkout.SubscriptionDetails.AmountRuleEnum
-
- All Implemented Interfaces:
Serializable,Comparable<SubscriptionDetails.AmountRuleEnum>
- Enclosing class:
- SubscriptionDetails
public static enum SubscriptionDetails.AmountRuleEnum extends Enum<SubscriptionDetails.AmountRuleEnum>
The limitation rule of the billing amount. Possible values: * `max`: The transaction amount can not exceed the `amount`. * `exact`: The transaction amount should be the same as the `amount`.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSubscriptionDetails.AmountRuleEnum.Adapter
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SubscriptionDetails.AmountRuleEnumfromValue(String text)StringgetValue()StringtoString()static SubscriptionDetails.AmountRuleEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static SubscriptionDetails.AmountRuleEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MAX
public static final SubscriptionDetails.AmountRuleEnum MAX
-
EXACT
public static final SubscriptionDetails.AmountRuleEnum EXACT
-
-
Method Detail
-
values
public static SubscriptionDetails.AmountRuleEnum[] 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 (SubscriptionDetails.AmountRuleEnum c : SubscriptionDetails.AmountRuleEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static SubscriptionDetails.AmountRuleEnum 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<SubscriptionDetails.AmountRuleEnum>
-
fromValue
public static SubscriptionDetails.AmountRuleEnum fromValue(String text)
-
-