public interface FulfillmentWeightBand extends FulfillmentBand
This entity defines the bands that can be specified for BandedWeightFulfillmentOption. Bands
work on the cumulated weight of an Order and should be calculated as follows:
OrderItems (via the relationship to Sku) in a FulfillmentGroup (which
is obtained through their relationship with FulfillmentGroupItem are summed togetherFulfillmentWeightBand should be looked up by getting the closest band less
than the sum of the weightsFulfillmentBand.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() * retailPriceTotalNote: this implementation assumes that units of measurement (lb, kg, etc) are the same across the site implementation
| Modifier and Type | Method and Description |
|---|---|
BigDecimal |
getMinimumWeight() |
BandedWeightFulfillmentOption |
getOption() |
WeightUnitOfMeasureType |
getWeightUnitOfMeasure() |
void |
setMinimumWeight(BigDecimal weight) |
void |
setOption(BandedWeightFulfillmentOption option) |
void |
setWeightUnitOfMeasure(WeightUnitOfMeasureType weightUnitOfMeasure) |
getId, getResultAmount, getResultAmountType, setId, setResultAmount, setResultAmountTypeBigDecimal getMinimumWeight()
void setMinimumWeight(BigDecimal weight)
BandedWeightFulfillmentOption getOption()
void setOption(BandedWeightFulfillmentOption option)
WeightUnitOfMeasureType getWeightUnitOfMeasure()
void setWeightUnitOfMeasure(WeightUnitOfMeasureType weightUnitOfMeasure)
Copyright © 2015. All Rights Reserved.