Modifier and Type | Method and Description |
---|---|
AddItemRequest |
CartCreationRequest.getAddItemRequest()
The initial
AddItemRequest to populate the cart. |
Modifier and Type | Method and Description |
---|---|
void |
CartCreationRequest.setAddItemRequest(AddItemRequest addItemRequest)
The initial
AddItemRequest to populate the cart. |
Constructor and Description |
---|
CartCreationRequest(AddItemRequest addItemRequest) |
CartCreationRequest(AddItemRequest addItemRequest,
PriceCartRequest priceCartRequest) |
Modifier and Type | Method and Description |
---|---|
protected AddItemRequest |
DefaultCartOperationService.buildAddItemRequest(com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem freeGiftItem)
Builds an
AddItemRequest from the given FreeGiftItem . |
AddItemRequest |
AddItemFailure.getAddItemRequest()
The add item request that failed
|
Modifier and Type | Method and Description |
---|---|
protected 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 page
|
List<AddItemRequest> |
DefaultCartOperationService.BulkCartItemCreationResponse.getSuccessfulRequests()
All requests that were successfully processed.
|
Modifier and Type | Method and Description |
---|---|
com.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 provided
Cart based on the provided AddItemRequest . |
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.cart.client.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.cart.client.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,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
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 the
AddItemRequest . |
protected AddItemFailure |
DefaultCartOperationService.buildValidationFailure(@NonNull AddItemRequest addItemRequest,
@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem)
Builds an
AddItemFailure based on the provided AddItemRequest &
CartItem representing an invalid add to cart request |
protected com.broadleafcommerce.cart.client.domain.CartItem |
DefaultCartOperationService.createCartItem(@NonNull AddItemRequest addItemRequest)
Deprecated.
|
protected com.broadleafcommerce.cart.client.domain.CartItem |
DefaultCartOperationService.createCartItem(@NonNull AddItemRequest addItemRequest,
javax.money.CurrencyUnit currencyUnit)
Creates a
CartItem based on the provided AddItemRequest |
protected com.broadleafcommerce.cart.client.domain.Cart |
DefaultCartOperationService.createItemAndAddToCart(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart,
@NonNull AddItemRequest addItemRequest,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
|
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 provided
Cart . |
protected com.broadleafcommerce.cart.client.domain.CartItem |
DefaultCartOperationService.populateFromRequest(@NonNull com.broadleafcommerce.cart.client.domain.CartItem cartItem,
@NonNull AddItemRequest addItemRequest)
Deprecated.
|
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 failed
|
Modifier and Type | Method and Description |
---|---|
BulkAddToCartResponse |
CartOperationService.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 provided
Cart . |
BulkAddToCartResponse |
CartOperationService.bulkAddToCart(Collection<AddItemRequest> addItemRequests,
com.broadleafcommerce.cart.client.domain.Cart cart,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
boolean shouldPriceCart,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
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 provided
Cart . |
void |
DefaultCartOperationService.BulkCartItemCreationResponse.setSuccessfulRequests(List<AddItemRequest> successfulRequests)
All requests that were successfully processed.
|
Modifier and Type | Method and Description |
---|---|
com.broadleafcommerce.cart.client.domain.Cart |
ManageCartEndpoint.addItemToCart(String cartId,
AddItemRequest addItemRequest,
boolean price,
Integer cartVersion,
String guestToken,
com.broadleafcommerce.cart.client.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.cart.client.domain.CustomerRef customerRef,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
BulkAddToCartResponse |
ManageCartEndpoint.addManyItemsToCart(String cartId,
List<AddItemRequest> addItemRequests,
boolean price,
Integer cartVersion,
String guestToken,
com.broadleafcommerce.cart.client.domain.CustomerRef customer,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) |
BulkAddToCartResponse |
CartOperationEndpoint.bulkAddItemsToCart(com.broadleafcommerce.cart.client.domain.Cart cart,
Collection<AddItemRequest> addItemRequests,
com.broadleafcommerce.cart.client.domain.CustomerRef customerRef,
boolean price,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
List<AddItemRequest> |
AddItemRequest.getDependentCartItems()
A list of additional
AddItemRequests that should be processed as
dependent items of the resulting parent item of this current AddItemRequest . |
Modifier and Type | Method and Description |
---|---|
void |
AddItemRequest.setDependentCartItems(List<AddItemRequest> dependentCartItems)
A list of additional
AddItemRequests that should be processed as
dependent items of the resulting parent item of this current AddItemRequest . |
Copyright © 2021. All rights reserved.