public static enum CouponCreateParams.Duration extends java.lang.Enum<CouponCreateParams.Duration> implements ApiRequestParams.EnumParam
CouponCreateParams.AppliesTo.products for the field documentation.| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getValue() |
static CouponCreateParams.Duration |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static CouponCreateParams.Duration[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="forever") public static final CouponCreateParams.Duration FOREVER
@SerializedName(value="once") public static final CouponCreateParams.Duration ONCE
@SerializedName(value="repeating") public static final CouponCreateParams.Duration REPEATING
public static CouponCreateParams.Duration[] values()
for (CouponCreateParams.Duration c : CouponCreateParams.Duration.values()) System.out.println(c);
public static CouponCreateParams.Duration valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic java.lang.String getValue()
getValue in interface ApiRequestParams.EnumParam