Uses of Class
com.broadleafcommerce.cartoperation.web.endpoint.domain.UpdateItemRequest
Package
Description
-
Uses of UpdateItemRequest in com.broadleafcommerce.cartoperation.service
Modifier and TypeMethodDescriptionprotected CatalogItemRequest
DefaultCartOperationService.buildCatalogItemRequest
(@NonNull UpdateItemRequest updateItemRequest, @NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hook point to build theCatalogItemRequest
and populate any additional attributes that should be passed to theCatalogProvider
when fetching the catalog representation for updating the cart item.protected boolean
DefaultCartOperationService.catalogItemRequestAlreadyExist
(@NonNull Set<CatalogItemRequest> catalogItemRequests, @NonNull UpdateItemRequest updateItemRequest, @NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hook point to prevent duplicateCatalogItemRequests
from being built based on theCartItem
andUpdateItemRequest
.protected CatalogItemList<? extends CatalogItem>
DefaultCartOperationService.identifyCatalogItemsForUpdateItemRequest
(@NonNull UpdateItemRequest updateItemRequest, @NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated, for removal: This API element is subject to removal in a future version.protected CatalogItemList<? extends CatalogItem>
DefaultCartOperationService.identifyCatalogItemsForUpdateItemRequest
(@NonNull UpdateItemRequest updateItemRequest, @NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected boolean
DefaultCartOperationService.populateCartItemUpdates
(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull UpdateItemRequest request) Takes the changes from theUpdateItemRequest
and populates them onto theCartItem
.protected boolean
DefaultCartOperationService.populateCartUpdatesFromUpdateItemRequest
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull UpdateItemRequest request) Takes the changes from theUpdateItemRequest
and populates them onto theCart
.com.broadleafcommerce.cart.client.domain.Cart
CartOperationService.updateCartItem
(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateItemRequest updateItemRequest, boolean allowPriceCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.com.broadleafcommerce.cart.client.domain.Cart
DefaultCartOperationService.updateCartItem
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull UpdateItemRequest updateItemRequest, boolean allowPriceCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.cart.client.domain.Cart
CartOperationService.updateItemInCart
(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateItemRequest updateItemRequest, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Updates a single item in the providedCart
based on the providedUpdateItemRequest
.com.broadleafcommerce.cart.client.domain.Cart
DefaultCartOperationService.updateItemInCart
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull UpdateItemRequest updateItemRequest, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultCartOperationService.validateCartItemBeforeUpdate
(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull UpdateItemRequest updateItemRequest) Validates theCartItem
being updated againstUpdateItemRequest
before the actual cart item update.protected void
DefaultCartOperationService.validateFreeGiftItemForUpdate
(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull UpdateItemRequest updateItemRequest) If the givenCartItem
is a free gift item, validates that its quantity is not being changed.Modifier and TypeMethodDescriptionprotected Collection<CatalogItemRequest>
DefaultCartOperationService.buildCatalogItemRequestsForUpdate
(@NonNull Collection<UpdateItemRequest> updateItemRequests, @NonNull Collection<com.broadleafcommerce.cart.client.domain.CartItem> cartItems, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Uses of UpdateItemRequest in com.broadleafcommerce.cartoperation.web.endpoint
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.Cart
CartOperationEndpoint.updateCartItem
(com.broadleafcommerce.cart.client.domain.Cart cart, UpdateItemRequest updateItemRequest, String cartItemId, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.com.broadleafcommerce.cart.client.domain.Cart
ManageCartEndpoint.updateItemInCart
(String cartId, String cartItemId, UpdateItemRequest updateItemRequest, boolean price, Integer cartVersion, String guestToken, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) -
Uses of UpdateItemRequest in com.broadleafcommerce.cartoperation.web.endpoint.domain
Modifier and TypeMethodDescriptionUpdateItemRequest.getDependentItemUpdates()
A list of additionalAddItemRequests
that should be processed as children items of the resulting parent item of this currentUpdateItemRequest
.Modifier and TypeMethodDescriptionvoid
UpdateItemRequest.setDependentItemUpdates
(List<UpdateItemRequest> dependentItemUpdates) A list of additionalAddItemRequests
that should be processed as children items of the resulting parent item of this currentUpdateItemRequest
.
DefaultCartOperationService.identifyCatalogItemsForUpdateItemRequest(UpdateItemRequest, CartItem, PriceContext, ContextInfo)