|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FulfillmentPriceBand
This entity defines the bands that can be specified for BandedPriceFulfillmentOption. Bands
work on the retail price of an Order and should be calculated as follows:
OrderItems in a FulfillmentGroup (which
is obtained through their relationship with FulfillmentGroupItem are summed togetherFulfillmentPriceBand should be looked up by getting the closest band less
than the sum of the priceFulfillmentBand.getResultAmountType() returns FulfillmentBandResultAmountType.RATE, then
the cost for the fulfillment group is whatever is defined in FulfillmentBand.getResultAmount()FulfillmentBand.getResultAmountType() returns FulfillmentBandResultAmountType.PERCENTAGE, then
the fulfillment cost is the percentage obtained by FulfillmentBand.getResultAmount() * retailPriceTotal
BandedPriceFulfillmentOption}| Method Summary | |
|---|---|
BandedPriceFulfillmentOption |
getOption()
Gets the BandedPriceFulfillmentOption that this band is associated to |
BigDecimal |
getRetailPriceMinimumAmount()
Gets the minimum amount that this band is valid for. |
void |
setOption(BandedPriceFulfillmentOption option)
Sets the BandedPriceFulfillmentOption to associate with this band |
void |
setRetailPriceMinimumAmount(BigDecimal retailPriceMinimumAmount)
Set the minimum amount that this band is valid for. |
| Methods inherited from interface org.broadleafcommerce.core.order.fulfillment.domain.FulfillmentBand |
|---|
getId, getResultAmount, getResultAmountType, setId, setResultAmount, setResultAmountType |
| Method Detail |
|---|
BigDecimal getRetailPriceMinimumAmount()
OrderItems in a FulfillmentGroup
comes to at least this amount, this band result amount will be applied to the
fulfillment cost.
OrderItems in a
FulfillmentGroup that this band qualifies forvoid setRetailPriceMinimumAmount(BigDecimal retailPriceMinimumAmount)
OrderItems in a FulfillmentGroup
comes to at least this amount, this band result amount will be applied to the
fulfillment cost.
minimumRetailPriceAmount - - the minimum retail price amount from adding up
the OrderItems in a FulfillmentGroupBandedPriceFulfillmentOption getOption()
BandedPriceFulfillmentOption that this band is associated to
BandedPriceFulfillmentOptionvoid setOption(BandedPriceFulfillmentOption option)
BandedPriceFulfillmentOption to associate with this band
option -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||