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 |
validateCart(Order cart)
Validates the cart against the active price list and locale.
|
void setSavedCurrency(BroadleafCurrency savedCurrency)
savedCurrency - BroadleafCurrency getSavedCurrency()
boolean currencyHasChanged()
UpdateCartResponse copyCartToCurrentContext(Order currentCart)
void validateCart(Order cart) throws IllegalArgumentException
cart - IllegalArgumentExceptionvoid updateAndValidateCart(Order cart)
cart - IllegalArgumentExceptionCopyright © 2014. All Rights Reserved.