public static enum Order.LineItemDiscount.DiscountType extends Enum<Order.LineItemDiscount.DiscountType>
| Enum Constant and Description |
|---|
_UNKNOWN |
CUSTOM_DISCOUNT |
DOCUMENT_LEVEL_COUPON |
DOCUMENT_LEVEL_DISCOUNT |
ITEM_LEVEL_COUPON |
ITEM_LEVEL_DISCOUNT |
PROMOTIONAL_CREDITS |
PRORATED_CREDITS |
| Modifier and Type | Method and Description |
|---|---|
static Order.LineItemDiscount.DiscountType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Order.LineItemDiscount.DiscountType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Order.LineItemDiscount.DiscountType ITEM_LEVEL_COUPON
public static final Order.LineItemDiscount.DiscountType DOCUMENT_LEVEL_COUPON
public static final Order.LineItemDiscount.DiscountType PROMOTIONAL_CREDITS
public static final Order.LineItemDiscount.DiscountType PRORATED_CREDITS
public static final Order.LineItemDiscount.DiscountType CUSTOM_DISCOUNT
public static final Order.LineItemDiscount.DiscountType ITEM_LEVEL_DISCOUNT
public static final Order.LineItemDiscount.DiscountType DOCUMENT_LEVEL_DISCOUNT
public static final Order.LineItemDiscount.DiscountType _UNKNOWN
public static Order.LineItemDiscount.DiscountType[] values()
for (Order.LineItemDiscount.DiscountType c : Order.LineItemDiscount.DiscountType.values()) System.out.println(c);
public static Order.LineItemDiscount.DiscountType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2023 ChargeBee. All rights reserved.