Enum Class ConditionField

java.lang.Object
java.lang.Enum<ConditionField>
com.minicrm.mini_crm_api.models.enums.ConditionField
All Implemented Interfaces:
Serializable, Comparable<ConditionField>, Constable

public enum ConditionField extends Enum<ConditionField>
Represents the valid fields that can be used in a campaign rule condition. This ensures that only supported customer attributes can be queried.
  • Enum Constant Details

    • totalSpend

      public static final ConditionField totalSpend
      totalSpend: The total amount of money a customer has spent.
    • totalOrders

      public static final ConditionField totalOrders
      totalOrders: The total number of orders a customer has placed.
    • averageOrderValue

      public static final ConditionField averageOrderValue
      averageOrderValue: The average value of a customer's orders.
    • lastOrderDate

      public static final ConditionField lastOrderDate
      lastOrderDate: The date of a customer's last order.
    • firstOrderDate

      public static final ConditionField firstOrderDate
      firstOrderDate: The date of a customer's first order.
    • tags

      public static final ConditionField tags
      tags: A list of tags associated with a customer.
  • Method Details

    • values

      public static ConditionField[] 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

      public static ConditionField valueOf(String name)
      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 name
      NullPointerException - if the argument is null