public interface UpdateCartService
| Modifier and Type | Method and Description |
|---|---|
UpdateCartResponse |
copyCartToCurrentContext(Order currentCart)
Reprices the order by removing all items and recreating the cart calling for a reprice on the new cart.
|
boolean |
currencyHasChanged()
Compares the currency set in the BroadleafRequestContext with the savedCurrency.
|
BroadleafCurrency |
getSavedCurrency()
Gets the currency that was set as active on last pass through.
|
void |
setSavedCurrency(BroadleafCurrency savedCurrency)
Sets the currency that was set as active on last pass through.
|
void |
updateAndValidateCart(Order cart)
Updates the cart (locale, pricing) and performs validation.
|
void |
validateAddToCartRequest(OrderItemRequestDTO itemRequest,
Order cart)
Validates the given add item that will be added to the given cart.
|
void setSavedCurrency(BroadleafCurrency savedCurrency)
savedCurrency - BroadleafCurrency getSavedCurrency()
boolean currencyHasChanged()
UpdateCartResponse copyCartToCurrentContext(Order currentCart)
void validateAddToCartRequest(OrderItemRequestDTO itemRequest, Order cart) throws IllegalArgumentException
cart - IllegalArgumentExceptionvoid updateAndValidateCart(Order cart)
cart - IllegalArgumentExceptionCopyright © 2024. All rights reserved.