Enum Class DefaultVariantPricingStrategies
java.lang.Object
java.lang.Enum<DefaultVariantPricingStrategies>
com.broadleafcommerce.catalog.domain.product.DefaultVariantPricingStrategies
- All Implemented Interfaces:
Serializable,Comparable<DefaultVariantPricingStrategies>,Constable
The possible types of variant pricing strategies a
Product.getVariantPricingStrategy()
can have.- Since:
- Catalog Services 2.3.0, Release Train 2.3.0
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe DEFAULT strategy (same as null) will use a system setting to determine either product or variant It will defer to a system propertybroadleaf.common.default-configurations.product.variant-pricing-strategy, which the system property will decide whether PRODUCT or VARIANTThe PRODUCT strategy, short-circuit the calls to the pricing service to instead use just the product data (e.g.The VARIANT strategy, it's the same as current behavior, where BOTH the product and variant data get sent. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static DefaultVariantPricingStrategies[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PRODUCT
The PRODUCT strategy, short-circuit the calls to the pricing service to instead use just the product data (e.g. pricingKey) only -
VARIANT
The VARIANT strategy, it's the same as current behavior, where BOTH the product and variant data get sent. This is the OOB default -
DEFAULT
The DEFAULT strategy (same as null) will use a system setting to determine either product or variant It will defer to a system propertybroadleaf.common.default-configurations.product.variant-pricing-strategy, which the system property will decide whether PRODUCT or VARIANT
-
-
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
-