Package com.inteliqua.rest.flow.payload
Enum FlowSubject
- java.lang.Object
-
- java.lang.Enum<FlowSubject>
-
- com.inteliqua.rest.flow.payload.FlowSubject
-
- All Implemented Interfaces:
Serializable,Comparable<FlowSubject>
public enum FlowSubject extends Enum<FlowSubject>
Enum representing the possible subjects that can trigger a flow.These subjects help identify the context or entity type for which a specific flow is being initiated. This enum can be used for validation, routing, logging, or enforcing subject-specific logic.
Available subjects:
TRANSACTION- A general transaction flowLOYALTY_TRANSACTION- A loyalty program transactionLOYALTY_MEMBER- A member in a loyalty programBOOK_COUPON_GROUP- A coupon group associated with a bookingCUSTOMER- A customer entityTICKET- A support or service ticketCOUPON- A single-use or promotional couponMERCHANT- A merchant entity
- See Also:
FlowTriggerPayload.getSubject()
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BOOK_COUPON_GROUPCOUPONCUSTOMERLOYALTY_MEMBERLOYALTY_TRANSACTIONMERCHANTTICKETTRANSACTION
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static FlowSubjectvalueOf(String name)Returns the enum constant of this type with the specified name.static FlowSubject[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
TRANSACTION
public static final FlowSubject TRANSACTION
-
LOYALTY_TRANSACTION
public static final FlowSubject LOYALTY_TRANSACTION
-
LOYALTY_MEMBER
public static final FlowSubject LOYALTY_MEMBER
-
BOOK_COUPON_GROUP
public static final FlowSubject BOOK_COUPON_GROUP
-
CUSTOMER
public static final FlowSubject CUSTOMER
-
TICKET
public static final FlowSubject TICKET
-
COUPON
public static final FlowSubject COUPON
-
MERCHANT
public static final FlowSubject MERCHANT
-
-
Method Detail
-
values
public static FlowSubject[] values()
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 (FlowSubject c : FlowSubject.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FlowSubject valueOf(String name)
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
-
-