Class FulfillmentOptionBand
java.lang.Object
com.broadleafcommerce.shipping.service.integrations.banded.FulfillmentOptionBand
- All Implemented Interfaces:
Serializable
A band represents a tier of pricing for a specific
BandedFulfillmentPricingOption. The
band for a FulfillmentPricingRequest is chosen based on the minimum
amount defined for the band and the BandedFulfillmentPricingOption.getBandType() defined
for the option.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionSet<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount>Fixed prices (by currency) to add perFulfillmentPricingRequest.Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount>Fixed prices (by currency) to add perFulfillmentPricingItemin a group.The minimum amount required for the correspondingband typethat determines if this band should apply.Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.voidsetFixedPricePerGroup(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerGroup) Fixed prices (by currency) to add perFulfillmentPricingRequest.voidsetFixedPricePerItem(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerItem) Fixed prices (by currency) to add perFulfillmentPricingItemin a group.voidsetMinimum(BigDecimal minimum) The minimum amount required for the correspondingband typethat determines if this band should apply.voidsetPercentagePerItem(BigDecimal percentagePerItem) Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.
-
Constructor Details
-
FulfillmentOptionBand
public FulfillmentOptionBand()
-
-
Method Details
-
getMinimum
The minimum amount required for the correspondingband typethat determines if this band should apply.- Returns:
- The minimum amount for the type specified in the owning
BandedFulfillmentPricingOption.getBandType().
-
getPercentagePerItem
Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.- Returns:
- Percentage to multiply against a
FulfillmentItem's total.
-
getFixedPricePerItem
Fixed prices (by currency) to add perFulfillmentPricingItemin a group.- Returns:
- Fixed prices (by currency) to add per
FulfillmentPricingItemin a group.
-
getFixedPricePerGroup
Fixed prices (by currency) to add perFulfillmentPricingRequest.- Returns:
- Fixed prices (by currency) to add per
FulfillmentPricingRequest.
-
setMinimum
The minimum amount required for the correspondingband typethat determines if this band should apply.- Parameters:
minimum- The minimum amount for the type specified in the owningBandedFulfillmentPricingOption.getBandType().
-
setPercentagePerItem
Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.- Parameters:
percentagePerItem- Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.
-
setFixedPricePerItem
public void setFixedPricePerItem(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerItem) Fixed prices (by currency) to add perFulfillmentPricingItemin a group.- Parameters:
fixedPricePerItem- Fixed prices (by currency) to add perFulfillmentPricingItemin a group.
-
setFixedPricePerGroup
public void setFixedPricePerGroup(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerGroup) Fixed prices (by currency) to add perFulfillmentPricingRequest.- Parameters:
fixedPricePerGroup- Fixed prices (by currency) to add perFulfillmentPricingRequest.
-