Enum Class DefaultVariantPricingStrategies

java.lang.Object
java.lang.Enum<DefaultVariantPricingStrategies>
com.broadleafcommerce.catalog.domain.product.DefaultVariantPricingStrategies
All Implemented Interfaces:
Serializable, Comparable<DefaultVariantPricingStrategies>, Constable

public enum DefaultVariantPricingStrategies extends Enum<DefaultVariantPricingStrategies>
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:
  • Enum Constant Details

    • PRODUCT

      public static final DefaultVariantPricingStrategies PRODUCT
      The PRODUCT strategy, short-circuit the calls to the pricing service to instead use just the product data (e.g. pricingKey) only
    • VARIANT

      public static final DefaultVariantPricingStrategies 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

      public static final DefaultVariantPricingStrategies DEFAULT
      The DEFAULT strategy (same as null) will use a system setting to determine either product or variant It will defer to a system property broadleaf.common.default-configurations.product.variant-pricing-strategy, which the system property will decide whether PRODUCT or VARIANT
  • Method Details

    • values

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