Class CouponSetAttributeDTO<T>

  • Type Parameters:
    T - the type of the attribute value
    Direct Known Subclasses:
    CouponSetBooleanAttributeDTO, CouponSetDateAttributeDTO, CouponSetIntegerAttributeDTO, CouponSetStringAttributeDTO

    public abstract class CouponSetAttributeDTO<T>
    extends Object
    Base DTO class for coupon set attributes of various types.

    This class is designed to be extended by specific attribute type DTOs such as CouponSetStringAttributeDTO, CouponSetIntegerAttributeDTO, etc.

    It uses Jackson annotations to support polymorphic serialization and deserialization based on the attributeType field in JSON.

    • Constructor Detail

      • CouponSetAttributeDTO

        public CouponSetAttributeDTO()
    • Method Detail

      • getAttributeType

        public abstract CouponSetAttributeType getAttributeType()
        Returns the type of this attribute (e.g., STRING, BOOLEAN, etc.). This is used for proper handling and deserialization of the attribute.
        Returns:
        the attribute type