Class FixedFulfillmentPricingOption
java.lang.Object
com.broadleafcommerce.shipping.FulfillmentOption
com.broadleafcommerce.shipping.service.integrations.fixed.FixedFulfillmentPricingOption
- All Implemented Interfaces:
Serializable
public class FixedFulfillmentPricingOption
extends com.broadleafcommerce.shipping.FulfillmentOption
A fixed 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:
- Chad Harchar (charchar)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanThe number of days this option is expected to ship.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 perFulfillmentPricingItemin a group.Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.inthashCode()voidsetDaysToShip(Integer daysToShip) The number of days this option is expected to ship.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.voidsetPercentagePerItem(BigDecimal percentagePerItem) Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.toString()Methods inherited from class com.broadleafcommerce.shipping.FulfillmentOption
getDescription, getName, getTaxCode, isTaxable, isUseFlatRates, setDescription, setName, setTaxable, setTaxCode, setUseFlatRates
-
Constructor Details
-
FixedFulfillmentPricingOption
public FixedFulfillmentPricingOption()
-
-
Method Details
-
getPercentagePerItem
Percentage to multiply against aFulfillmentPricingItem.getMerchandiseTotalAmount()() FulfillmentItem's total}.- Returns:
- Percentage to multiply against a
FulfillmentPricingItem.getMerchandiseTotalAmount()() 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.
-
getDaysToShip
The number of days this option is expected to ship.- Returns:
- The number of days this option is expected to ship.
-
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.
-
setDaysToShip
The number of days this option is expected to ship.- Parameters:
daysToShip- The number of days this option is expected to ship.
-
equals
- Overrides:
equalsin classcom.broadleafcommerce.shipping.FulfillmentOption
-
canEqual
- Overrides:
canEqualin classcom.broadleafcommerce.shipping.FulfillmentOption
-
hashCode
public int hashCode()- Overrides:
hashCodein classcom.broadleafcommerce.shipping.FulfillmentOption
-
toString
- Overrides:
toStringin classcom.broadleafcommerce.shipping.FulfillmentOption
-