Class FulfillmentOptionBand
- java.lang.Object
-
- com.broadleafcommerce.shipping.service.integrations.banded.FulfillmentOptionBand
-
- All Implemented Interfaces:
Serializable
public class FulfillmentOptionBand extends Object implements Serializable
A band represents a tier of pricing for a specificBandedFulfillmentPricingOption
. The band for aFulfillmentPricingRequest
is chosen based on theminimum amount
defined for the band and theBandedFulfillmentPricingOption.getBandType()
defined for the option.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FulfillmentOptionBand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount>
getFixedPricePerGroup()
Fixed prices (by currency) to add perFulfillmentPricingRequest
.Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount>
getFixedPricePerItem()
Fixed prices (by currency) to add perFulfillmentPricingItem
in a group.BigDecimal
getMinimum()
The minimum amount required for the correspondingband type
that determines if this band should apply.BigDecimal
getPercentagePerItem()
Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()
() FulfillmentItem's total}.void
setFixedPricePerGroup(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerGroup)
Fixed prices (by currency) to add perFulfillmentPricingRequest
.void
setFixedPricePerItem(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerItem)
Fixed prices (by currency) to add perFulfillmentPricingItem
in a group.void
setMinimum(BigDecimal minimum)
The minimum amount required for the correspondingband type
that determines if this band should apply.void
setPercentagePerItem(BigDecimal percentagePerItem)
Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()
() FulfillmentItem's total}.
-
-
-
Method Detail
-
getMinimum
public BigDecimal getMinimum()
The minimum amount required for the correspondingband type
that determines if this band should apply.- Returns:
- The minimum amount for the type specified in the owning
BandedFulfillmentPricingOption.getBandType()
.
-
getPercentagePerItem
public BigDecimal getPercentagePerItem()
Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()
() FulfillmentItem's total}.- Returns:
- Percentage to multiply against a
FulfillmentItem's total
.
-
getFixedPricePerItem
public Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> getFixedPricePerItem()
Fixed prices (by currency) to add perFulfillmentPricingItem
in a group.- Returns:
- Fixed prices (by currency) to add per
FulfillmentPricingItem
in a group.
-
getFixedPricePerGroup
public Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> getFixedPricePerGroup()
Fixed prices (by currency) to add perFulfillmentPricingRequest
.- Returns:
- Fixed prices (by currency) to add per
FulfillmentPricingRequest
.
-
setMinimum
public void setMinimum(BigDecimal minimum)
The minimum amount required for the correspondingband type
that determines if this band should apply.- Parameters:
minimum
- The minimum amount for the type specified in the owningBandedFulfillmentPricingOption.getBandType()
.
-
setPercentagePerItem
public void setPercentagePerItem(BigDecimal percentagePerItem)
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 perFulfillmentPricingItem
in a group.- Parameters:
fixedPricePerItem
- Fixed prices (by currency) to add perFulfillmentPricingItem
in 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
.
-
-