Class VirtualFulfillmentPricingOption
java.lang.Object
com.broadleafcommerce.shipping.FulfillmentOption
com.broadleafcommerce.shipping.service.integrations.virtual.VirtualFulfillmentPricingOption
- All Implemented Interfaces:
Serializable
public class VirtualFulfillmentPricingOption
extends com.broadleafcommerce.shipping.FulfillmentOption
A virtual fulfillment option has only one configuration per option as defined by the fields in
this class. This configuration will apply some combination of pricing using fixed prices for
groups and items and rate (percentage) calculations.
- Author:
- Marie Standeven (marieStandeven)
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Set<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.Percentage to multiply against aFulfillmentItem's total
.int
hashCode()
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
setPercentagePerItem
(BigDecimal percentagePerItem) Percentage to multiply against aFulfillmentItem's total
.toString()
Methods inherited from class com.broadleafcommerce.shipping.FulfillmentOption
getDescription, getName, getTaxCode, isTaxable, isUseFlatRates, setDescription, setName, setTaxable, setTaxCode, setUseFlatRates
-
Constructor Details
-
VirtualFulfillmentPricingOption
public VirtualFulfillmentPricingOption()
-
-
Method Details
-
getPercentagePerItem
Percentage to multiply against aFulfillmentItem'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
.
-
setPercentagePerItem
Percentage to multiply against aFulfillmentItem's total
.- Parameters:
percentagePerItem
- Percentage to multiply against aFulfillmentItem'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
.
-
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
-