Enum Class ConditionField
- All Implemented Interfaces:
Serializable,Comparable<ConditionField>,Constable
Represents the valid fields that can be used in a campaign rule condition.
This ensures that only supported customer attributes can be queried.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionaverageOrderValue: The average value of a customer's orders.firstOrderDate: The date of a customer's first order.lastOrderDate: The date of a customer's last order.tags: A list of tags associated with a customer.totalOrders: The total number of orders a customer has placed.totalSpend: The total amount of money a customer has spent. -
Method Summary
Modifier and TypeMethodDescriptionstatic ConditionFieldReturns the enum constant of this class with the specified name.static ConditionField[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
totalSpend
totalSpend: The total amount of money a customer has spent. -
totalOrders
totalOrders: The total number of orders a customer has placed. -
averageOrderValue
averageOrderValue: The average value of a customer's orders. -
lastOrderDate
lastOrderDate: The date of a customer's last order. -
firstOrderDate
firstOrderDate: The date of a customer's first order. -
tags
tags: A list of tags associated with a customer.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-