Class CouponSetAttributeDTO<T>
- java.lang.Object
-
- com.inteliqua.rest.couponset.dto.attribute.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
attributeTypefield in JSON.
-
-
Constructor Summary
Constructors Constructor Description CouponSetAttributeDTO()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract CouponSetAttributeTypegetAttributeType()Returns the type of this attribute (e.g., STRING, BOOLEAN, etc.).
-
-
-
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
-
-