public static enum Coupon.Type extends Enum<Coupon.Type>
| Enum Constant and Description |
|---|
FIXED_CART |
FIXED_PRODUCT |
PERCENT |
PERCENT_PRODUCT |
| Modifier and Type | Method and Description |
|---|---|
String |
jsonValue() |
static Coupon.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Coupon.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Coupon.Type FIXED_CART
public static final Coupon.Type PERCENT
public static final Coupon.Type FIXED_PRODUCT
public static final Coupon.Type PERCENT_PRODUCT
public static Coupon.Type[] values()
for (Coupon.Type c : Coupon.Type.values()) System.out.println(c);
public static Coupon.Type 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 nullpublic String jsonValue()
Copyright © 2017 Netgrid. All rights reserved.