com.chargebee.models
Enum Coupon.ApplyOn
java.lang.Object
java.lang.Enum<Coupon.ApplyOn>
com.chargebee.models.Coupon.ApplyOn
- All Implemented Interfaces:
- Serializable, Comparable<Coupon.ApplyOn>
- Enclosing class:
- Coupon
public static enum Coupon.ApplyOn
- extends Enum<Coupon.ApplyOn>
|
Method Summary |
static Coupon.ApplyOn |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Coupon.ApplyOn[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
INVOICE_AMOUNT
public static final Coupon.ApplyOn INVOICE_AMOUNT
SPECIFIED_ITEMS_TOTAL
@Deprecated
public static final Coupon.ApplyOn SPECIFIED_ITEMS_TOTAL
- Deprecated.
EACH_SPECIFIED_ITEM
public static final Coupon.ApplyOn EACH_SPECIFIED_ITEM
EACH_UNIT_OF_SPECIFIED_ITEMS
@Deprecated
public static final Coupon.ApplyOn EACH_UNIT_OF_SPECIFIED_ITEMS
- Deprecated.
_UNKNOWN
public static final Coupon.ApplyOn _UNKNOWN
values
public static Coupon.ApplyOn[] 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 (Coupon.ApplyOn c : Coupon.ApplyOn.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Coupon.ApplyOn 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 name
NullPointerException - if the argument is null
Copyright © 2015 ChargeBee. All Rights Reserved.