Package io.voucherify.client.model
Enum Class QualificationsCheckEligibilityRequestBody.ScenarioEnum
java.lang.Object
java.lang.Enum<QualificationsCheckEligibilityRequestBody.ScenarioEnum>
io.voucherify.client.model.QualificationsCheckEligibilityRequestBody.ScenarioEnum
- All Implemented Interfaces:
Serializable,Comparable<QualificationsCheckEligibilityRequestBody.ScenarioEnum>,Constable
- Enclosing class:
- QualificationsCheckEligibilityRequestBody
public static enum QualificationsCheckEligibilityRequestBody.ScenarioEnum
extends Enum<QualificationsCheckEligibilityRequestBody.ScenarioEnum>
Defines the scenario Voucherify should consider during the qualification process. - `ALL` - Scenario that returns all redeemables available for the customer in one API request. This scenario is used by default when no value is selected. - `CUSTOMER_WALLET` - returns vouchers applicable to the customer's cart based on the vouchers assigned to the customer's profile. - `AUDIENCE_ONLY` - returns all vouchers, promotion tiers, and campaigns available to the customer. Voucherify validates the rules based on the customer profile only. - `PRODUCTS` - returns all promotions available for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT` - returns all promotions available for products when a discount is defined as applicable to specific item(s). - `PROMOTION_STACKS` - returns the applicable promotion stacks. - `PRODUCTS_BY_CUSTOMER` - returns all promotions available for a customer for the products (when a discount is defined to be applied to the item or when the item is required in the validation rule). - `PRODUCTS_DISCOUNT_BY_CUSTOMER` - returns all promotions available for a customer for products when a discount is defined as applicable to specific item(s).
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
-
Enum Constant Details
-
ALL
-
CUSTOMER_WALLET
-
AUDIENCE_ONLY
-
PRODUCTS
-
PRODUCTS_DISCOUNT
-
PROMOTION_STACKS
-
PRODUCTS_BY_CUSTOMER
-
PRODUCTS_DISCOUNT_BY_CUSTOMER
public static final QualificationsCheckEligibilityRequestBody.ScenarioEnum PRODUCTS_DISCOUNT_BY_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
-
getValue
-
toString
- Overrides:
toStringin classEnum<QualificationsCheckEligibilityRequestBody.ScenarioEnum>
-
fromValue
-