Interface OrderItemAdjustment
- All Superinterfaces:
Adjustment,Serializable
- All Known Implementing Classes:
OrderItemAdjustmentImpl
-
Method Summary
Modifier and TypeMethodDescriptionorg.broadleafcommerce.common.money.MoneyValue of this adjustment relative to the retail price.org.broadleafcommerce.common.money.MoneyValue of this adjustment relative to the sale price.voidbooleanEven for items that are on sale, it is possible that an adjustment was made to the retail price that gave the customer a better offer.voidsetAppliedToSalePrice(boolean appliedToSalePrice) voidsetOrderItem(OrderItem orderItem) voidsetRetailPriceValue(org.broadleafcommerce.common.money.Money retailPriceValue) voidsetSalesPriceValue(org.broadleafcommerce.common.money.Money salesPriceValue)
-
Method Details
-
getOrderItem
OrderItem getOrderItem() -
setOrderItem
-
init
-
isAppliedToSalePrice
boolean isAppliedToSalePrice()Even for items that are on sale, it is possible that an adjustment was made to the retail price that gave the customer a better offer.Since some offers can be applied to the sale price and some only to the retail price, this setting provides the required value.
- Returns:
- true if this adjustment was applied to the sale price
-
setAppliedToSalePrice
void setAppliedToSalePrice(boolean appliedToSalePrice) -
getRetailPriceValue
org.broadleafcommerce.common.money.Money getRetailPriceValue()Value of this adjustment relative to the retail price.- Returns:
-
setRetailPriceValue
void setRetailPriceValue(org.broadleafcommerce.common.money.Money retailPriceValue) -
getSalesPriceValue
org.broadleafcommerce.common.money.Money getSalesPriceValue()Value of this adjustment relative to the sale price.- Returns:
-
setSalesPriceValue
void setSalesPriceValue(org.broadleafcommerce.common.money.Money salesPriceValue)
-