Enum 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 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.
    • 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 name
        NullPointerException - 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