Package com.inteliqua.rest.couponset.dto
Enum CouponSetType
- java.lang.Object
-
- java.lang.Enum<CouponSetType>
-
- com.inteliqua.rest.couponset.dto.CouponSetType
-
- All Implemented Interfaces:
Serializable,Comparable<CouponSetType>
@Deprecated public enum CouponSetType extends Enum<CouponSetType>
Deprecated.Enum representing the different types of Coupon Sets.Each type includes a string code for display/labeling and a discriminator value used for identifying the subtype during deserialization or business logic. DEPRECATED DUE TO DUPLICATION, WE HAVE TO EVALUATE WHAT WE SHOULD KEEP FROM THIS.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AMOUNTDeprecated.Fixed amount Coupon Set type.DISCOUNTDeprecated.Discount-based Coupon Set type.POINTDeprecated.Coupon Set type for point-based coupons.REDEMPTIONDeprecated.Redemption-based Coupon Set type.SIMPLEDeprecated.Simple Coupon Set type.
-
Field Summary
Fields Modifier and Type Field Description static StringDISCRIMINATOR_COUPONSET_AMOUNTDeprecated.static StringDISCRIMINATOR_COUPONSET_DISCOUNTDeprecated.static StringDISCRIMINATOR_COUPONSET_POINTDeprecated.static StringDISCRIMINATOR_COUPONSET_REDEMPTIONDeprecated.static StringDISCRIMINATOR_COUPONSET_SIMPLEDeprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description StringgetDiscriminatorValue()Deprecated.Gets the discriminator value for the coupon set type.StringgetStringCode()Deprecated.Gets the display string code of the coupon set type.static CouponSetTypevalueOf(String name)Deprecated.Returns the enum constant of this type with the specified name.static CouponSetType[]values()Deprecated.Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
POINT
public static final CouponSetType POINT
Deprecated.Coupon Set type for point-based coupons.
-
SIMPLE
public static final CouponSetType SIMPLE
Deprecated.Simple Coupon Set type.
-
DISCOUNT
public static final CouponSetType DISCOUNT
Deprecated.Discount-based Coupon Set type.
-
AMOUNT
public static final CouponSetType AMOUNT
Deprecated.Fixed amount Coupon Set type.
-
REDEMPTION
public static final CouponSetType REDEMPTION
Deprecated.Redemption-based Coupon Set type.
-
-
Field Detail
-
DISCRIMINATOR_COUPONSET_SIMPLE
public static final String DISCRIMINATOR_COUPONSET_SIMPLE
Deprecated.- See Also:
- Constant Field Values
-
DISCRIMINATOR_COUPONSET_POINT
public static final String DISCRIMINATOR_COUPONSET_POINT
Deprecated.- See Also:
- Constant Field Values
-
DISCRIMINATOR_COUPONSET_DISCOUNT
public static final String DISCRIMINATOR_COUPONSET_DISCOUNT
Deprecated.- See Also:
- Constant Field Values
-
DISCRIMINATOR_COUPONSET_AMOUNT
public static final String DISCRIMINATOR_COUPONSET_AMOUNT
Deprecated.- See Also:
- Constant Field Values
-
DISCRIMINATOR_COUPONSET_REDEMPTION
public static final String DISCRIMINATOR_COUPONSET_REDEMPTION
Deprecated.- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static CouponSetType[] values()
Deprecated.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 (CouponSetType c : CouponSetType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CouponSetType valueOf(String name)
Deprecated.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 nameNullPointerException- if the argument is null
-
getStringCode
public String getStringCode()
Deprecated.Gets the display string code of the coupon set type.- Returns:
- the string code
-
getDiscriminatorValue
public String getDiscriminatorValue()
Deprecated.Gets the discriminator value for the coupon set type.- Returns:
- the discriminator string value
-
-