Class CartUtils
java.lang.Object
com.broadleafcommerce.cartoperation.service.util.cart.CartUtils
- Author:
- Dima Myroniuk (dmyroniuk)
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.Cart
removeFulfillmentItemsWithoutCartItems
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart) Removes the fulfillment items from theCart
if there are noCartItems
found for them.void
resetFulfillmentGroupReferenceNumbers
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart) Resets the fulfillment group reference number.
-
Constructor Details
-
CartUtils
public CartUtils()
-
-
Method Details
-
removeFulfillmentItemsWithoutCartItems
public com.broadleafcommerce.cart.client.domain.Cart removeFulfillmentItemsWithoutCartItems(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart) Removes the fulfillment items from theCart
if there are noCartItems
found for them.- Parameters:
cart
- cart to remove the fulfillment items- Returns:
- the updated cart
-
resetFulfillmentGroupReferenceNumbers
public void resetFulfillmentGroupReferenceNumbers(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart) Resets the fulfillment group reference number.- Parameters:
cart
- cart to reset the fulfillment group reference number
-