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
-
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 perFulfillmentPricingItem
in a group.The minimum amount required for the correspondingband type
that determines if this band should apply.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}.
-
Constructor Details
-
FulfillmentOptionBand
public FulfillmentOptionBand()
-
-
Method Details
-
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
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 perFulfillmentPricingItem
in a group.- Returns:
- Fixed prices (by currency) to add per
FulfillmentPricingItem
in 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 type
that 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 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
.
-