Uses of Class
com.broadleafcommerce.cartoperation.web.endpoint.domain.AddItemRequest
Package
Description
-
Uses of AddItemRequest in com.broadleafcommerce.cartoperation.domain
Modifier and TypeMethodDescriptionCartCreationRequest.getAddItemRequest()
The initialAddItemRequest
to populate the cart.Modifier and TypeMethodDescriptionvoid
CartCreationRequest.setAddItemRequest
(AddItemRequest addItemRequest) The initialAddItemRequest
to populate the cart.ModifierConstructorDescriptionCartCreationRequest
(AddItemRequest addItemRequest) CartCreationRequest
(AddItemRequest addItemRequest, PriceCartRequest priceCartRequest) -
Uses of AddItemRequest in com.broadleafcommerce.cartoperation.service
Modifier and TypeMethodDescriptionprotected AddItemRequest
DefaultCartOperationService.buildAddItemRequest
(com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem freeGiftItem) Builds anAddItemRequest
from the givenFreeGiftItem
.AddItemFailure.getAddItemRequest()
The add item request that failedModifier and TypeMethodDescriptionprotected List<AddItemRequest>
DefaultItemListAddToCartService.buildAddItemRequests
(org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.ItemListItem> itemPage, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Responsible for creating AddItemRequests based on the provided ItemListItem pageDefaultCartOperationService.BulkCartItemCreationResponse.getSuccessfulRequests()
All requests that were successfully processed.protected List<AddItemRequest>
DefaultCartOperationService.identifyAddItemRequestsForCatalogItems
(@NonNull Collection<AddItemRequest> addItemRequests, @NonNull CatalogItemList<? extends CatalogItem> catalogItemList) Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.Cart
CartOperationService.addItemToCart
(com.broadleafcommerce.cart.client.domain.Cart cart, AddItemRequest addItemRequest, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Adds a single item to the providedCart
based on the providedAddItemRequest
.com.broadleafcommerce.cart.client.domain.Cart
DefaultCartOperationService.addItemToCart
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull AddItemRequest addItemRequest, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.cart.client.domain.Cart
CartOperationService.addToCart
(AddItemRequest addItemRequest, com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean allowPriceCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.com.broadleafcommerce.cart.client.domain.Cart
DefaultCartOperationService.addToCart
(@NonNull AddItemRequest addItemRequest, com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean allowPriceCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected com.broadleafcommerce.cart.client.domain.CartItem
DefaultCartOperationService.buildCartItem
(@NonNull AddItemRequest addItemRequest, @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, javax.money.CurrencyUnit currencyUnit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Populates a new cart item from theAddItemRequest
.protected CatalogItemRequest
DefaultCartOperationService.buildCatalogItemRequest
(@NonNull AddItemRequest addItemRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hook point to create theCatalogItemRequest
and populate any additional attributes that should be passed to theCatalogProvider
when fetching the catalog representation for adding the cart item.protected AddItemFailure
DefaultCartOperationService.buildValidationFailure
(@NonNull AddItemRequest addItemRequest, @NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem) Builds anAddItemFailure
based on the providedAddItemRequest
&CartItem
representing an invalid add to cart requestprotected boolean
DefaultCartOperationService.catalogItemRequestAlreadyExist
(@NonNull Set<CatalogItemRequest> catalogItemRequests, @NonNull AddItemRequest addItemRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hook point to prevent duplicateCatalogItemRequests
from being built based on theAddItemRequest
.protected com.broadleafcommerce.cart.client.domain.CartItem
DefaultCartOperationService.createCartItem
(@NonNull AddItemRequest addItemRequest, javax.money.CurrencyUnit currencyUnit) Creates aCartItem
based on the providedAddItemRequest
protected com.broadleafcommerce.cart.client.domain.Cart
DefaultCartOperationService.createItemAndAddToCart
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull AddItemRequest addItemRequest, javax.money.CurrencyUnit currencyUnit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates a new item and adds it to the providedCart
.protected String
DefaultCartOperationService.getCatalogItemKeyForMissingEntities
(AddItemRequest addItemRequest) Hook point to determine what the missing entities map is keyed on from theAddItemRequest
.protected com.broadleafcommerce.cart.client.domain.CartItem
DefaultCartOperationService.populateFromRequest
(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem, @NonNull AddItemRequest addItemRequest, javax.money.CurrencyUnit currencyUnit) Populates the cart item fields based on the request.void
AddItemFailure.setAddItemRequest
(AddItemRequest addItemRequest) The add item request that failedModifier and TypeMethodDescriptionCartOperationService.addManyItemsToCart
(com.broadleafcommerce.cart.client.domain.Cart cart, Collection<AddItemRequest> addItemRequests, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Adds one or more items to the providedCart
.DefaultCartOperationService.addManyItemsToCart
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull Collection<AddItemRequest> addItemRequests, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) DefaultCartOperationService.buildCartItems
(@NonNull Collection<AddItemRequest> addItemRequests, @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, javax.money.CurrencyUnit currencyUnit, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Populates new cart items from theAddItemRequests
.protected Collection<CatalogItemRequest>
DefaultCartOperationService.buildCatalogItemRequestsForAdd
(@NonNull Collection<AddItemRequest> addItemRequests, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) CartOperationService.bulkAddToCart
(Collection<AddItemRequest> addItemRequests, com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean shouldPriceCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.DefaultCartOperationService.bulkAddToCart
(@NonNull Collection<AddItemRequest> addItemRequests, com.broadleafcommerce.cart.client.domain.Cart cart, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean allowPriceCart, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected BulkAddToCartResponse
DefaultCartOperationService.createItemsAndAddToCart
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, Collection<AddItemRequest> addItemRequests, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Creates new items and adds them to the providedCart
.protected List<AddItemRequest>
DefaultCartOperationService.identifyAddItemRequestsForCatalogItems
(@NonNull Collection<AddItemRequest> addItemRequests, @NonNull CatalogItemList<? extends CatalogItem> catalogItemList) protected CatalogItemList<? extends CatalogItem>
DefaultCartOperationService.identifyCatalogItemsForAddItemRequests
(@NonNull Collection<AddItemRequest> addItemRequests, 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.identifyCatalogItemsForAddItemRequests
(@NonNull Collection<AddItemRequest> addItemRequests, com.broadleafcommerce.pricing.client.domain.context.PriceContext priceContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) void
DefaultCartOperationService.BulkCartItemCreationResponse.setSuccessfulRequests
(List<AddItemRequest> successfulRequests) All requests that were successfully processed.protected com.broadleafcommerce.cart.client.domain.Cart
DefaultCartOperationService.updateCartAttributes
(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull List<AddItemRequest> successfulAddItemRequests) Update cart attributes based on the successfulAddItemRequests
-
Uses of AddItemRequest in com.broadleafcommerce.cartoperation.web.endpoint
Modifier and TypeMethodDescriptioncom.broadleafcommerce.cart.client.domain.Cart
ManageCartEndpoint.addItemToCart
(String cartId, AddItemRequest addItemRequest, boolean price, Integer cartVersion, String guestToken, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) com.broadleafcommerce.cart.client.domain.Cart
CartOperationEndpoint.addToCart
(com.broadleafcommerce.cart.client.domain.Cart cart, AddItemRequest addItemRequest, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Modifier and TypeMethodDescriptionManageCartEndpoint.addManyItemsToCart
(String cartId, List<AddItemRequest> addItemRequests, boolean price, Integer cartVersion, String guestToken, com.broadleafcommerce.order.common.domain.CustomerRef customer, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) CartOperationEndpoint.bulkAddItemsToCart
(com.broadleafcommerce.cart.client.domain.Cart cart, Collection<AddItemRequest> addItemRequests, com.broadleafcommerce.order.common.domain.CustomerRef customerRef, boolean price, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated. -
Uses of AddItemRequest in com.broadleafcommerce.cartoperation.web.endpoint.domain
Modifier and TypeMethodDescriptionAddItemRequest.getDependentCartItems()
A list of additionalAddItemRequests
that should be processed as dependent items of the resulting parent item of this currentAddItemRequest
.Modifier and TypeMethodDescriptionvoid
AddItemRequest.setDependentCartItems
(List<AddItemRequest> dependentCartItems) A list of additionalAddItemRequests
that should be processed as dependent items of the resulting parent item of this currentAddItemRequest
.
CartOperationService.addItemToCart(Cart, AddItemRequest, boolean, ContextInfo)
for updates andCartOperationService.createCart(CartCreationRequest, CustomerRef, ContextInfo)
for creates