Interface FulfillmentPriceBand

All Superinterfaces:
FulfillmentBand, Serializable
All Known Implementing Classes:
FulfillmentPriceBandImpl

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:

  1. The prices of all of the OrderItems in a FulfillmentGroup (which is obtained through their relationship with FulfillmentGroupItem are summed together
  2. The FulfillmentPriceBand should be looked up by getting the closest band less than the sum of the price
  3. If FulfillmentBand.getResultAmountType() returns FulfillmentBandResultAmountType.RATE, then the cost for the fulfillment group is whatever is defined in FulfillmentBand.getResultAmount()
  4. If FulfillmentBand.getResultAmountType() returns FulfillmentBandResultAmountType.PERCENTAGE, then the fulfillment cost is the percentage obtained by FulfillmentBand.getResultAmount() * retailPriceTotal
  5. If two bands have the same retail price minimum amount, the cheapest resulting amount is used
Author:
Phillip Verheyden