com.chargebee.models
Enum Invoice.LineItemDiscount.DiscountType
java.lang.Object
java.lang.Enum<Invoice.LineItemDiscount.DiscountType>
com.chargebee.models.Invoice.LineItemDiscount.DiscountType
- All Implemented Interfaces:
- Serializable, Comparable<Invoice.LineItemDiscount.DiscountType>
- Enclosing class:
- Invoice.LineItemDiscount
public static enum Invoice.LineItemDiscount.DiscountType
- extends Enum<Invoice.LineItemDiscount.DiscountType>
ITEM_LEVEL_COUPON
public static final Invoice.LineItemDiscount.DiscountType ITEM_LEVEL_COUPON
DOCUMENT_LEVEL_COUPON
public static final Invoice.LineItemDiscount.DiscountType DOCUMENT_LEVEL_COUPON
PROMOTIONAL_CREDITS
public static final Invoice.LineItemDiscount.DiscountType PROMOTIONAL_CREDITS
PRORATED_CREDITS
public static final Invoice.LineItemDiscount.DiscountType PRORATED_CREDITS
_UNKNOWN
public static final Invoice.LineItemDiscount.DiscountType _UNKNOWN
values
public static Invoice.LineItemDiscount.DiscountType[] 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 (Invoice.LineItemDiscount.DiscountType c : Invoice.LineItemDiscount.DiscountType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Invoice.LineItemDiscount.DiscountType 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 © 2019 ChargeBee. All Rights Reserved.