Enum Class FulfillmentPriceProportionMethods

java.lang.Object
java.lang.Enum<FulfillmentPriceProportionMethods>
com.broadleafcommerce.cartoperation.service.configuration.FulfillmentPriceProportionMethods
All Implemented Interfaces:
Serializable, Comparable<FulfillmentPriceProportionMethods>, Constable

public enum FulfillmentPriceProportionMethods extends Enum<FulfillmentPriceProportionMethods>
Available default methods to compute each fulfillment item's proportion from the fulfillment group's fulfillment price, when no band data is available.
  • Enum Constant Details

    • QUANTITY

      public static final FulfillmentPriceProportionMethods QUANTITY
      Calculates the proportion based on the FulfillmentItem.getQuantity() For example, given an FulfillmentGroup with 3 fulfillment items with quantities 3, 1, 4, they will have proportions 3/8, 1/8, 4/8, respectively.
    • LINE_ITEM

      public static final FulfillmentPriceProportionMethods LINE_ITEM
      Calculates an equal proportion for each FulfillmentItem. For example, given an FulfillmentGroup with 3 fulfillment items with quantities 3, 1, 4, each will have a proportion of 1/3.
  • Method Details

    • values

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