org.broadleafcommerce.core.web.service
Interface UpdateCartService

All Known Implementing Classes:
UpdateCartServiceImpl

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

setSavedCurrency

void setSavedCurrency(BroadleafCurrency savedCurrency)
Sets the currency that was set as active on last pass through.

Parameters:
savedCurrency -

getSavedCurrency

BroadleafCurrency getSavedCurrency()
Gets the currency that was set as active on last pass through.

Returns:

currencyHasChanged

boolean currencyHasChanged()
Compares the currency set in the BroadleafRequestContext with the savedCurrency. If different, returns TRUE

Returns:

copyCartToCurrentContext

UpdateCartResponse copyCartToCurrentContext(Order currentCart)
Reprices the order by removing all items and recreating the cart calling for a reprice on the new cart.

Returns:

validateCart

void validateCart(Order cart)
                  throws IllegalArgumentException
Validates the cart against the active price list and locale.

Parameters:
cart -
Throws:
IllegalArgumentException


Copyright © 2013. All Rights Reserved.