Class FulfillmentOptionRequest
java.lang.Object
com.broadleafcommerce.fulfillment.common.domain.FulfillmentOptionRequest
Contains cart data needed by FulfillmentServices to produce fulfillment options.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionMap to hold arbitrary additional attributes.javax.money.MonetaryAmount
This is an optional field.@NonNull List<FulfillmentPricingGroup>
List ofFulfillmentPricingGroup
containing data from each FulfillmentGroup pertinent to fulfillment pricing.Optional total weight of the items in the cart.boolean
Indicate whether all options should being priced or only the current selections.void
setAdditionalAttributes
(@NonNull Map<String, Object> additionalAttributes) Map to hold arbitrary additional attributes.void
setCartSubtotal
(javax.money.MonetaryAmount cartSubtotal) This is an optional field.void
setFulfillmentPriceGroups
(@NonNull List<FulfillmentPricingGroup> fulfillmentPriceGroups) List ofFulfillmentPricingGroup
containing data from each FulfillmentGroup pertinent to fulfillment pricing.void
setPriceCurrentServiceLevelsOnly
(boolean priceCurrentServiceLevelsOnly) Indicate whether all options should being priced or only the current selections.void
setTotalCartWeight
(Weight totalCartWeight) Optional total weight of the items in the cart.
-
Constructor Details
-
FulfillmentOptionRequest
public FulfillmentOptionRequest()
-
-
Method Details
-
getCartSubtotal
@Nullable 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
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
List ofFulfillmentPricingGroup
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
Map to hold arbitrary additional attributes. -
setCartSubtotal
public void setCartSubtotal(@Nullable 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
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(@NonNull @NonNull List<FulfillmentPricingGroup> fulfillmentPriceGroups) List ofFulfillmentPricingGroup
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
Map to hold arbitrary additional attributes.
-