|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UpdateCartService
Provides methods to facilitate order repricing. Author: jerryocanas Date: 9/26/12
| Method Summary | |
|---|---|
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 |
validateCart(Order cart)
Validates the cart against the active price list and locale. |
| Method Detail |
|---|
void setSavedCurrency(BroadleafCurrency savedCurrency)
savedCurrency - BroadleafCurrency getSavedCurrency()
boolean currencyHasChanged()
UpdateCartResponse copyCartToCurrentContext(Order currentCart)
void validateCart(Order cart)
throws IllegalArgumentException
cart -
IllegalArgumentException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||