org.broadleafcommerce.core.offer.service.discount.domain
Interface PromotableOrderItem
- All Known Implementing Classes:
- PromotableOrderItemImpl
public interface PromotableOrderItem
addOrderItemAdjustment
void addOrderItemAdjustment(PromotableOrderItemAdjustment orderItemAdjustment)
- Adds the adjustment to the order item's adjustment list and discounts the
order item's adjustment price by the value of the adjustment.
- Parameters:
orderItemAdjustment -
getRetailAdjustmentPrice
Money getRetailAdjustmentPrice()
- The price after discounts if all applicable discounts are applied
to the retail price.
- Returns:
setRetailAdjustmentPrice
void setRetailAdjustmentPrice(Money adjustmentPrice)
getSaleAdjustmentPrice
Money getSaleAdjustmentPrice()
- The price after discounts if all applicable discounts are applied
to the sale price.
setSaleAdjustmentPrice
void setSaleAdjustmentPrice(Money adjustmentPrice)
isNotCombinableOfferApplied
boolean isNotCombinableOfferApplied()
isHasOrderItemAdjustments
boolean isHasOrderItemAdjustments()
getPromotionDiscounts
List<PromotionDiscount> getPromotionDiscounts()
setPromotionDiscounts
void setPromotionDiscounts(List<PromotionDiscount> promotionDiscounts)
getPromotionQualifiers
List<PromotionQualifier> getPromotionQualifiers()
setPromotionQualifiers
void setPromotionQualifiers(List<PromotionQualifier> promotionQualifiers)
getQuantityAvailableToBeUsedAsQualifier
int getQuantityAvailableToBeUsedAsQualifier(Offer promotion)
getQuantityAvailableToBeUsedAsTarget
int getQuantityAvailableToBeUsedAsTarget(Offer promotion)
addPromotionQualifier
void addPromotionQualifier(PromotableCandidateItemOffer candidatePromotion,
OfferItemCriteria itemCriteria,
int quantity)
addPromotionDiscount
void addPromotionDiscount(PromotableCandidateItemOffer candidatePromotion,
Set<OfferItemCriteria> itemCriteria,
int quantity)
clearAllNonFinalizedQuantities
void clearAllNonFinalizedQuantities()
clearAllDiscount
void clearAllDiscount()
clearAllQualifiers
void clearAllQualifiers()
finalizeQuantities
void finalizeQuantities()
split
List<PromotableOrderItem> split()
getDelegate
DiscreteOrderItem getDelegate()
setDelegate
void setDelegate(DiscreteOrderItem discreteOrderItem)
reset
void reset()
lookupOrCreatePromotionQualifier
PromotionQualifier lookupOrCreatePromotionQualifier(PromotableCandidateItemOffer candidatePromotion)
lookupOrCreatePromotionDiscount
PromotionDiscount lookupOrCreatePromotionDiscount(PromotableCandidateItemOffer candidatePromotion)
clearAllNonFinalizedDiscounts
void clearAllNonFinalizedDiscounts()
clearAllNonFinalizedQualifiers
void clearAllNonFinalizedQualifiers()
getPromotionDiscountMismatchQuantity
int getPromotionDiscountMismatchQuantity()
computeAdjustmentPrice
void computeAdjustmentPrice()
removeAllAdjustments
int removeAllAdjustments()
assignFinalPrice
void assignFinalPrice()
getCurrentPrice
Money getCurrentPrice()
getQuantity
int getQuantity()
setQuantity
void setQuantity(int quantity)
getSku
Sku getSku()
getPriceBeforeAdjustments
Money getPriceBeforeAdjustments(boolean allowSalesPrice)
getSalePrice
Money getSalePrice()
getRetailPrice
Money getRetailPrice()
addCandidateItemOffer
void addCandidateItemOffer(PromotableCandidateItemOffer candidateItemOffer)
clone
PromotableOrderItem clone()
fixAdjustments
int fixAdjustments(boolean useSaleAdjustments)
- Removes all zero based adjustments and sets the adjusted price on the delegate.
- Parameters:
useSaleAdjustments -
- Returns:
resetAdjustmentPrice
void resetAdjustmentPrice()
getSplitParentItemId
Long getSplitParentItemId()
- If the system automatically split an item to accommodate the promotion logic (e.g. buy one get one free),
then this value is set to the originalItemId.
Returns null otherwise.
- Returns:
setSplitParentItemId
void setSplitParentItemId(Long id)
Copyright © 2013. All Rights Reserved.