Package com.inteliqua.rest.flow.payload
Class FlowTriggerPayload
- java.lang.Object
-
- com.inteliqua.rest.flow.payload.FlowTriggerPayload
-
- All Implemented Interfaces:
EliquaAbstractRequestPayload
- Direct Known Subclasses:
CouponFlowTriggerPayload,CustomerFlowTriggerPayload,LoyaltyTransactionFlowTriggerPayload,MemberFlowTriggerPayload,MerchantFlowTriggerPayload
public abstract class FlowTriggerPayload extends Object implements EliquaAbstractRequestPayload
Abstract base class for all flow trigger payloads in the system.This class provides common fields and validation for different types of flow triggers, such as member, customer, coupon, loyalty transaction, or merchant flows.
It also enables polymorphic deserialization via Jackson based on the
subjectproperty.Subtypes include:
MemberFlowTriggerPayloadCustomerFlowTriggerPayloadCouponFlowTriggerPayloadLoyaltyTransactionFlowTriggerPayloadMerchantFlowTriggerPayload
Each subclass must implement the
getSubject()method to return its unique subject identifier.
-
-
Constructor Summary
Constructors Constructor Description FlowTriggerPayload()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract StringgetSubject()Returns the subject identifier of the payload, used for polymorphic deserialization and flow routing.
-
-
-
Method Detail
-
getSubject
public abstract String getSubject()
Returns the subject identifier of the payload, used for polymorphic deserialization and flow routing.- Returns:
- the subject string that identifies the payload type
-
-