Class PricingFields
java.lang.Object
com.broadleafcommerce.cartoperation.service.pricing.PricingFields
- Author:
- Chad Harchar (charchar)
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringRepresents 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.static final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
BASE_PRICE
- See Also:
-
STANDARD_PRICE
- See Also:
-
SALE_PRICE
- See Also:
-
CONTRACT_PRICE
- See Also:
-
OVERRIDE_PRICE
- See Also:
-
SUBSCRIPTION_ITEM_DUE_NOW_UNIT_PRICE
- See Also:
-
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 requiredCartItem.getUnitPrice()field.Note: In these scenarios, we expect both the
CartItem.getSubtotal()&CartItem.isHasOverriddenSubtotal()to be declared, thus bypassing the usage of theCartItem.getUnitPrice()in cart total calculations.- Since:
- Cart Operation Service 2.3.0, Release Train 2.3.0
- See Also:
-
-
Constructor Details
-
PricingFields
public PricingFields()
-