|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ShoppingCartAjaxController
Provides shopping cart related services for ajax.
Method Summary | |
---|---|
ShoppingCart |
calculateForSelectedShippingServiceLevel(long selectedShippingServiceLevelUid,
javax.servlet.http.HttpServletRequest request)
Calculate shopping cart with the selected shipping service level. |
ShoppingCartBean |
calculateShipping(long selectedShippingServiceLevelUid,
javax.servlet.http.HttpServletRequest request)
Calculate shopping cart with the selected shipping service level. |
ShoppingCart |
changeEstimationAddress(javax.servlet.http.HttpServletRequest request)
Prepare to reset the address for shipping/taxed. |
ShoppingCart |
estimateShippingAndTaxes(java.lang.String countryCode,
java.lang.String subCountryCode,
java.lang.String zipOrPostalCode,
java.util.List cartItemQtyList,
javax.servlet.http.HttpServletRequest request)
Estimate the shipping options and taxes for the session shopping cart, based on the given countryCode, subCountryCode and zipOrPostalCode. |
ShoppingCart |
getCart(javax.servlet.http.HttpServletRequest request)
Method for retreiving the shopping cart through dwr. |
ShoppingCartBean |
getCartBean(javax.servlet.http.HttpServletRequest request)
Retrieve the ShoppingCartBean wrapper. |
java.util.List |
getCartItemPrices(javax.servlet.http.HttpServletRequest request)
Retieve the INDEPENDENT shopping cart item prices. |
java.lang.String |
getEstimateAddressStr(javax.servlet.http.HttpServletRequest request)
Return the string representation of the address bits entered for shipping and tax estimation. |
ShoppingCartBean |
removeCartItem(long itemUid,
javax.servlet.http.HttpServletRequest request)
Remove an item from the cart. |
void |
setCheckoutService(CheckoutService checkoutService)
Set the checkout service for processing a checkout. |
void |
setOnePageHelper(OnePageHelper onePageHelper)
|
void |
setProductService(ProductService productService)
|
ShoppingCartBean |
setPromotionCode(java.lang.String promotionCode,
javax.servlet.http.HttpServletRequest request)
Attempts to apply a given promotion code to the shopping cart. |
void |
setRequestHelper(RequestHelper requestHelper)
Set the request helper. |
ShoppingCartBean |
setShippingServiceLevel(long selectedShippingServiceLevelUid,
javax.servlet.http.HttpServletRequest request)
Calculate shopping cart with the selected shipping service level. |
ShoppingCartBean |
updateCartItemById(long uidPk,
java.lang.String guid,
int quantity,
javax.servlet.http.HttpServletRequest request)
Handles validation of cart item, such as inventory checks, for dwr before updating. |
Method Detail |
---|
ShoppingCart calculateForSelectedShippingServiceLevel(long selectedShippingServiceLevelUid, javax.servlet.http.HttpServletRequest request)
selectedShippingServiceLevelUid
- - the uid of the selected shipping service level.request
- - the current HttpServletRequest.
ShoppingCartBean calculateShipping(long selectedShippingServiceLevelUid, javax.servlet.http.HttpServletRequest request)
selectedShippingServiceLevelUid
- - the uid of the selected shipping service level.request
- - the current HttpServletRequest.
ShoppingCartBean
.ShoppingCart changeEstimationAddress(javax.servlet.http.HttpServletRequest request)
request
- - the current HttpServletRequest.
ShoppingCart estimateShippingAndTaxes(java.lang.String countryCode, java.lang.String subCountryCode, java.lang.String zipOrPostalCode, java.util.List cartItemQtyList, javax.servlet.http.HttpServletRequest request)
countryCode
- - the selected country code for the shipping options and taxes estimation.subCountryCode
- - the selected subCountry code for the shipping options and taxes estimation.zipOrPostalCode
- - the zip or postal code for the shipping options and taxes estimation.cartItemQtyList
- - the list of cart item qty.request
- - the current HttpServletRequest.
ShoppingCart getCart(javax.servlet.http.HttpServletRequest request)
request
- the current request (filled in automatically by dwr)
ShoppingCartBean getCartBean(javax.servlet.http.HttpServletRequest request)
ShoppingCartBean
wrapper.
request
- the current HttpServletRequest
ShoppingCartBean
wrapper objectjava.util.List getCartItemPrices(javax.servlet.http.HttpServletRequest request)
request
- - the current HttpServletRequest.
java.lang.String getEstimateAddressStr(javax.servlet.http.HttpServletRequest request)
request
- - the current HttpServletRequest.
ShoppingCartBean removeCartItem(long itemUid, javax.servlet.http.HttpServletRequest request)
itemUid
- the uidPk of the CartItem
to removerequest
- the current HttpServletRequest
ShoppingCart
objectvoid setCheckoutService(CheckoutService checkoutService)
checkoutService
- the checkout servicevoid setOnePageHelper(OnePageHelper onePageHelper)
onePageHelper
- the onePageHelper to setvoid setProductService(ProductService productService)
productService
- the productService to setShoppingCartBean setPromotionCode(java.lang.String promotionCode, javax.servlet.http.HttpServletRequest request)
promotionCode
- the promotion code to applyrequest
- the current HttpServletRequest
ShoppingCartBean
objectvoid setRequestHelper(RequestHelper requestHelper)
requestHelper
- the request helper.ShoppingCartBean setShippingServiceLevel(long selectedShippingServiceLevelUid, javax.servlet.http.HttpServletRequest request)
selectedShippingServiceLevelUid
- - the uid of the selected shipping service level.request
- - the current HttpServletRequest.
ShoppingCartBean updateCartItemById(long uidPk, java.lang.String guid, int quantity, javax.servlet.http.HttpServletRequest request)
uidPk
- the id of the cart itemguid
- the guid of the product skuquantity
- the new quantityrequest
- the current request (filled in automatically by dwr)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |