|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface PromotableFulfillmentGroup
| Method Summary | |
|---|---|
void |
addCandidateFulfillmentGroupAdjustment(PromotableFulfillmentGroupAdjustment adjustment)
Adds a fulfillmentGroupAdjustment |
Money |
calculatePriceWithAdjustments(boolean useSalePrice)
Calculates the price with adjustments. |
Money |
calculatePriceWithoutAdjustments()
Returns the price of this fulfillment group if no adjustments were applied. |
boolean |
canApplyOffer(PromotableCandidateFulfillmentGroupOffer fulfillmentGroupOffer)
Checks to see if the offer can be added to this fulfillmentGroup based on whether or not it is combinable or if this fulfillmentGroup already has a non-combinable offer applied. |
void |
chooseSaleOrRetailAdjustments()
This method will check to see if the saleAdjustments or retail only adjustments are better and finalize the set that achieves the best result for the customer. |
List<PromotableFulfillmentGroupAdjustment> |
getCandidateFulfillmentGroupAdjustments()
Adds a fulfillmentGroupAdjustment |
List<PromotableOrderItem> |
getDiscountableOrderItems()
Return list of discountable discrete order items contained in this fulfillmentGroup. |
Money |
getFinalizedPriceWithAdjustments()
Calculates the price with all adjustments. |
FulfillmentGroup |
getFulfillmentGroup()
Returns the decorated FulfillmentGroup |
boolean |
isTotalitarianOfferApplied()
Returns true if totalitarian offer was applied to this promotable fulfillment group. |
void |
removeAllCandidateAdjustments()
Removes all candidate adjustments |
void |
updateRuleVariables(Map<String,Object> ruleVars)
Adds the underlying fulfillmentGroup to the rule variable map. |
| Method Detail |
|---|
void addCandidateFulfillmentGroupAdjustment(PromotableFulfillmentGroupAdjustment adjustment)
List<PromotableFulfillmentGroupAdjustment> getCandidateFulfillmentGroupAdjustments()
void removeAllCandidateAdjustments()
void chooseSaleOrRetailAdjustments()
FulfillmentGroup getFulfillmentGroup()
void updateRuleVariables(Map<String,Object> ruleVars)
Money calculatePriceWithAdjustments(boolean useSalePrice)
useSalePrice - Money getFinalizedPriceWithAdjustments()
useSalePrice - List<PromotableOrderItem> getDiscountableOrderItems()
boolean canApplyOffer(PromotableCandidateFulfillmentGroupOffer fulfillmentGroupOffer)
fulfillmentGroupOffer -
Money calculatePriceWithoutAdjustments()
boolean isTotalitarianOfferApplied()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||