org.broadleafcommerce.core.offer.service.discount.domain
Interface PromotableFulfillmentGroupAdjustment

All Superinterfaces:
Serializable
All Known Implementing Classes:
PromotableFulfillmentGroupAdjustmentImpl

public interface PromotableFulfillmentGroupAdjustment
extends Serializable

This class holds adjustment records during the discount calculation processing. This and other disposable objects avoid churn on the database while the offer engine determines the best offer(s) for the order being priced.

Author:
bpolster

Method Summary
 void finalizeAdjustment(boolean useSaleAdjustments)
          Updates the adjustmentValue to the sales or retail value based on the passed in param
 Money getAdjustmentValue()
          Returns the value of this adjustment
 PromotableCandidateFulfillmentGroupOffer getPromotableCandidateFulfillmentGroupOffer()
          Returns the associated promotableCandidateOrderOffer
 PromotableFulfillmentGroup getPromotableFulfillmentGroup()
          Returns the associated promotableFulfillmentGroup
 Money getRetailAdjustmentValue()
          Returns the value of this adjustment
 Money getSaleAdjustmentValue()
          Returns the value of this adjustment
 boolean isAppliedToSalePrice()
           
 boolean isCombinable()
          Returns true if this adjustment represents a combinable offer.
 boolean isTotalitarian()
          Returns true if this adjustment represents a totalitarian offer.
 

Method Detail

getPromotableFulfillmentGroup

PromotableFulfillmentGroup getPromotableFulfillmentGroup()
Returns the associated promotableFulfillmentGroup

Returns:

getPromotableCandidateFulfillmentGroupOffer

PromotableCandidateFulfillmentGroupOffer getPromotableCandidateFulfillmentGroupOffer()
Returns the associated promotableCandidateOrderOffer

Returns:

getSaleAdjustmentValue

Money getSaleAdjustmentValue()
Returns the value of this adjustment

Returns:

getRetailAdjustmentValue

Money getRetailAdjustmentValue()
Returns the value of this adjustment

Returns:

getAdjustmentValue

Money getAdjustmentValue()
Returns the value of this adjustment

Returns:

isCombinable

boolean isCombinable()
Returns true if this adjustment represents a combinable offer.


isTotalitarian

boolean isTotalitarian()
Returns true if this adjustment represents a totalitarian offer.


finalizeAdjustment

void finalizeAdjustment(boolean useSaleAdjustments)
Updates the adjustmentValue to the sales or retail value based on the passed in param


isAppliedToSalePrice

boolean isAppliedToSalePrice()


Copyright © 2013. All Rights Reserved.