Class FulfillmentOptionRequest

java.lang.Object
com.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionRequest

public class FulfillmentOptionRequest extends Object
Contains cart data needed by FulfillmentServices to produce fulfillment options.
  • Constructor Details

    • FulfillmentOptionRequest

      public FulfillmentOptionRequest()
  • Method Details

    • getCartSubtotal

      public javax.money.MonetaryAmount getCartSubtotal()
      This is an optional field. If not provided, the system will attempt to populate it by summing the values of all fulfillmentPriceGroups.
    • getTotalCartWeight

      public Weight getTotalCartWeight()
      Optional total weight of the items in the cart. If not provided, the system will attempt to populate it by summing the values of all of the items in the fulfillmentPriceGroups.
    • getFulfillmentPriceGroups

      public List<FulfillmentPricingGroup> getFulfillmentPriceGroups()
      List of FulfillmentPricingGroup containing data from each FulfillmentGroup pertinent to fulfillment pricing.
    • isPriceCurrentServiceLevelsOnly

      public boolean isPriceCurrentServiceLevelsOnly()
      Indicate whether all options should being priced or only the current selections.
    • getAdditionalAttributes

      public Map<String,Object> getAdditionalAttributes()
      Map to hold arbitrary additional attributes.
    • setCartSubtotal

      public void setCartSubtotal(javax.money.MonetaryAmount cartSubtotal)
      This is an optional field. If not provided, the system will attempt to populate it by summing the values of all fulfillmentPriceGroups.
    • setTotalCartWeight

      public void setTotalCartWeight(Weight totalCartWeight)
      Optional total weight of the items in the cart. If not provided, the system will attempt to populate it by summing the values of all of the items in the fulfillmentPriceGroups.
    • setFulfillmentPriceGroups

      public void setFulfillmentPriceGroups(List<FulfillmentPricingGroup> fulfillmentPriceGroups)
      List of FulfillmentPricingGroup containing data from each FulfillmentGroup pertinent to fulfillment pricing.
    • setPriceCurrentServiceLevelsOnly

      public void setPriceCurrentServiceLevelsOnly(boolean priceCurrentServiceLevelsOnly)
      Indicate whether all options should being priced or only the current selections.
    • setAdditionalAttributes

      public void setAdditionalAttributes(Map<String,Object> additionalAttributes)
      Map to hold arbitrary additional attributes.