Class FulfillmentBandImpl
java.lang.Object
org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBandImpl
- All Implemented Interfaces:
Serializable,FulfillmentBand
- Direct Known Subclasses:
FulfillmentPriceBandImpl,FulfillmentWeightBandImpl
@MappedSuperclass
public abstract class FulfillmentBandImpl
extends Object
implements FulfillmentBand
- Author:
- Phillip Verheyden
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the amount that should be applied to the fulfillment cost for theFulfillmentGroup.Gets howFulfillmentBand.getResultAmount()should be applied to the fulfillment costvoidsetResultAmount(BigDecimal resultAmount) Sets the amount that should be applied to the fulfillment cost for this band.voidsetResultAmountType(FulfillmentBandResultAmountType resultAmountType) Sets howFulfillmentBand.getResultAmount()should be applied to the fulfillment costMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBand
getId, setId
-
Field Details
-
resultAmount
-
resultAmountType
-
-
Constructor Details
-
FulfillmentBandImpl
public FulfillmentBandImpl()
-
-
Method Details
-
getResultAmount
Description copied from interface:FulfillmentBandGets the amount that should be applied to the fulfillment cost for theFulfillmentGroup. This could be applied as a percentage or as a flat rate, depending on the result of calling#getResultType(). This is required and should never be null- Specified by:
getResultAmountin interfaceFulfillmentBand- Returns:
- the amount to apply for this band
-
setResultAmount
Description copied from interface:FulfillmentBandSets the amount that should be applied to the fulfillment cost for this band. This can be either a flat rate or a percentage depending on#getResultType().- Specified by:
setResultAmountin interfaceFulfillmentBand- Parameters:
resultAmount- - the percentage or flat rate that should be applied as a fulfillment cost for this band
-
getResultAmountType
Description copied from interface:FulfillmentBandGets howFulfillmentBand.getResultAmount()should be applied to the fulfillment cost- Specified by:
getResultAmountTypein interfaceFulfillmentBand- Returns:
- the type of
FulfillmentBand.getResultAmount()which determines how that value should be calculated into the cost
-
setResultAmountType
Description copied from interface:FulfillmentBandSets howFulfillmentBand.getResultAmount()should be applied to the fulfillment cost- Specified by:
setResultAmountTypein interfaceFulfillmentBand- Parameters:
resultAmountType- - how the value fromFulfillmentBand.getResultAmount()should be applied to the cost of theFulfillmentGroup
-