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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected boolean
     
    boolean
     
    The number of days this option is expected to ship.
    Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount>
    Fixed prices (by currency) to add per FulfillmentPricingRequest.
    Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount>
    Fixed prices (by currency) to add per FulfillmentPricingItem in a group.
    Percentage to multiply against a FulfillmentPricingItem.getMerchandiseTotalAmount() () FulfillmentItem's total}.
    int
     
    void
    setDaysToShip(Integer daysToShip)
    The number of days this option is expected to ship.
    void
    setFixedPricePerGroup(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerGroup)
    Fixed prices (by currency) to add per FulfillmentPricingRequest.
    void
    setFixedPricePerItem(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerItem)
    Fixed prices (by currency) to add per FulfillmentPricingItem in a group.
    void
    setPercentagePerItem(BigDecimal percentagePerItem)
    Percentage to multiply against a FulfillmentPricingItem.getMerchandiseTotalAmount() () FulfillmentItem's total}.
     

    Methods inherited from class com.broadleafcommerce.shipping.FulfillmentOption

    getDescription, getName, getTaxCode, isTaxable, isUseFlatRates, setDescription, setName, setTaxable, setTaxCode, setUseFlatRates

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • FixedFulfillmentPricingOption

      public FixedFulfillmentPricingOption()
  • Method Details

    • getPercentagePerItem

      public BigDecimal getPercentagePerItem()
      Percentage to multiply against a FulfillmentPricingItem.getMerchandiseTotalAmount() () FulfillmentItem's total}.
      Returns:
      Percentage to multiply against a FulfillmentPricingItem.getMerchandiseTotalAmount() () FulfillmentItem's total}.
    • getFixedPricePerItem

      public Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> getFixedPricePerItem()
      Fixed prices (by currency) to add per FulfillmentPricingItem 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 per FulfillmentPricingRequest.
      Returns:
      Fixed prices (by currency) to add per FulfillmentPricingRequest.
    • getDaysToShip

      public Integer getDaysToShip()
      The number of days this option is expected to ship.
      Returns:
      The number of days this option is expected to ship.
    • setPercentagePerItem

      public void setPercentagePerItem(BigDecimal percentagePerItem)
      Percentage to multiply against a FulfillmentPricingItem.getMerchandiseTotalAmount() () FulfillmentItem's total}.
      Parameters:
      percentagePerItem - Percentage to multiply against a FulfillmentPricingItem.getMerchandiseTotalAmount() () FulfillmentItem's total}.
    • setFixedPricePerItem

      public void setFixedPricePerItem(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerItem)
      Fixed prices (by currency) to add per FulfillmentPricingItem in a group.
      Parameters:
      fixedPricePerItem - Fixed prices (by currency) to add per FulfillmentPricingItem in a group.
    • setFixedPricePerGroup

      public void setFixedPricePerGroup(Set<com.broadleafcommerce.shipping.domain.FulfillmentPriceAmount> fixedPricePerGroup)
      Fixed prices (by currency) to add per FulfillmentPricingRequest.
      Parameters:
      fixedPricePerGroup - Fixed prices (by currency) to add per FulfillmentPricingRequest.
    • setDaysToShip

      public void setDaysToShip(Integer daysToShip)
      The number of days this option is expected to ship.
      Parameters:
      daysToShip - The number of days this option is expected to ship.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class com.broadleafcommerce.shipping.FulfillmentOption
    • canEqual

      protected boolean canEqual(Object other)
      Overrides:
      canEqual in class com.broadleafcommerce.shipping.FulfillmentOption
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class com.broadleafcommerce.shipping.FulfillmentOption
    • toString

      public String toString()
      Overrides:
      toString in class com.broadleafcommerce.shipping.FulfillmentOption