Class BandedFulfillmentPricingOption
java.lang.Object
com.broadleafcommerce.shipping.FulfillmentOption
com.broadleafcommerce.shipping.service.integrations.banded.BandedFulfillmentPricingOption
- All Implemented Interfaces:
Serializable
public class BandedFulfillmentPricingOption
extends com.broadleafcommerce.shipping.FulfillmentOption
A banded fulfillment option has potentially many configurations per option defined by the bands
(or tiers) in that option. This configuration will apply some combination of pricing using banded
prices for groups and items and rate (percentage) calculations.
- Author:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleangetBands()What type of band this option represents.The number of days this option is expected to ship.getUnits()The units to specify theFulfillmentOptionBand.getMinimum()in.inthashCode()voidsetBands(List<FulfillmentOptionBand> bands) voidsetBandType(String bandType) What type of band this option represents.voidsetDaysToShip(Integer daysToShip) The number of days this option is expected to ship.voidThe units to specify theFulfillmentOptionBand.getMinimum()in.toString()Methods inherited from class com.broadleafcommerce.shipping.FulfillmentOption
getDescription, getName, getTaxCode, isTaxable, isUseFlatRates, setDescription, setName, setTaxable, setTaxCode, setUseFlatRates
-
Constructor Details
-
BandedFulfillmentPricingOption
public BandedFulfillmentPricingOption()
-
-
Method Details
-
getBands
-
getBandType
What type of band this option represents. This drives whatFulfillmentOptionBand.getMinimum()is compared against.- Returns:
- What type of band this option represents.
-
getUnits
The units to specify theFulfillmentOptionBand.getMinimum()in.- Returns:
- The units to specify the
FulfillmentOptionBand.getMinimum()in.
-
getDaysToShip
The number of days this option is expected to ship.- Returns:
- The number of days this option is expected to ship.
-
setBands
-
setBandType
What type of band this option represents. This drives whatFulfillmentOptionBand.getMinimum()is compared against.- Parameters:
bandType- The type of band this option represents.
-
setUnits
The units to specify theFulfillmentOptionBand.getMinimum()in.- Parameters:
units- The units to specify theFulfillmentOptionBand.getMinimum()in.
-
setDaysToShip
The number of days this option is expected to ship.- Parameters:
daysToShip- The number of days this option is expected to ship. estimate.
-
equals
- Overrides:
equalsin classcom.broadleafcommerce.shipping.FulfillmentOption
-
canEqual
- Overrides:
canEqualin classcom.broadleafcommerce.shipping.FulfillmentOption
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.broadleafcommerce.shipping.FulfillmentOption
-
toString
- Overrides:
toStringin classcom.broadleafcommerce.shipping.FulfillmentOption
-