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
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
getBands()
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.int
hashCode()
void
setBands
(List<FulfillmentOptionBand> bands) void
setBandType
(String bandType) What type of band this option represents.void
setDaysToShip
(Integer daysToShip) The number of days this option is expected to ship.void
The 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:
equals
in classcom.broadleafcommerce.shipping.FulfillmentOption
-
canEqual
- Overrides:
canEqual
in classcom.broadleafcommerce.shipping.FulfillmentOption
-
hashCode
public int hashCode()- Overrides:
hashCode
in classcom.broadleafcommerce.shipping.FulfillmentOption
-
toString
- Overrides:
toString
in classcom.broadleafcommerce.shipping.FulfillmentOption
-