java.lang.Object
com.broadleafcommerce.cartoperation.service.pricing.PricingFields

public class PricingFields extends Object
Author:
Chad Harchar (charchar)
  • Field Details

    • BASE_PRICE

      public static final String BASE_PRICE
      See Also:
    • STANDARD_PRICE

      public static final String STANDARD_PRICE
      See Also:
    • SALE_PRICE

      public static final String SALE_PRICE
      See Also:
    • CONTRACT_PRICE

      public static final String CONTRACT_PRICE
      See Also:
    • OVERRIDE_PRICE

      public static final String OVERRIDE_PRICE
      See Also:
    • SUBSCRIPTION_ITEM_DUE_NOW_UNIT_PRICE

      public static final String SUBSCRIPTION_ITEM_DUE_NOW_UNIT_PRICE
      See Also:
    • ROUGH_SUBSCRIPTION_ITEM_DUE_NOW_UNIT_PRICE

      public static final String ROUGH_SUBSCRIPTION_ITEM_DUE_NOW_UNIT_PRICE
      Represents a subscription item due now unit price that may not be trustworthy because it's based on a subtotal that doesn't effectively scale down to a unit price. In short, the subscription item's subtotal may include a credited or prior unbilled amount that is scaled based on the subscription item's previous quantity (i.e. a quantity that may not match the cart item's quantity). A rough unit price can be calculated based on the cart item quantity, but the prices & quantities involved may lead to one or more pennies missing when this rough unit price is scaled back up using the cart item quantity. The purpose of this price type is to provide a somewhat reasonable value in the required CartItem.getUnitPrice() field.

      Note: In these scenarios, we expect both the CartItem.getSubtotal() & CartItem.isHasOverriddenSubtotal() to be declared, thus bypassing the usage of the CartItem.getUnitPrice() in cart total calculations.

      Since:
      Cart Operation Service 2.3.0, Release Train 2.3.0
      See Also:
  • Constructor Details

    • PricingFields

      public PricingFields()