public interface FulfillmentPriceBand extends FulfillmentBand
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() * retailPriceTotalBandedPriceFulfillmentOption}| Modifier and Type | Method and Description |
|---|---|
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.
|
getId, getResultAmount, getResultAmountType, setId, setResultAmount, setResultAmountTypeBigDecimal 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 toBandedPriceFulfillmentOptionvoid setOption(BandedPriceFulfillmentOption option)
BandedPriceFulfillmentOption to associate with this bandoption - Copyright © 2014. All Rights Reserved.