com.elasticpath.sfweb.ajax.bean
Interface ShoppingCartBean

All Known Implementing Classes:
ShoppingCartBeanImpl

public interface ShoppingCartBean

A convenience wrapper for sending the ShoppingCart and a List of CartItemBean objects via dwr.


Method Summary
 java.util.List getCartItems()
           
 Customer getCustomer()
           
 java.lang.String getOrderSummary()
           
 long getSelectedBillingAddressUidPk()
           
 long getSelectedShippingAddressUidPk()
           
 long getSelectedShippingServiceLevelUidPk()
           
 java.util.List getShippingServiceLevelList()
          Return the list of shippingServiceLevel list available based on the current shopping cart info.
 ShoppingCart getShoppingCart()
           
 java.lang.String getTotal()
           
 boolean isCustomerSignedIn()
           
 boolean isShippingRequired()
          Returns true if the cart contains items that must be shipped to the customer.
 void setCartItems(java.util.List cartItems)
           
 void setOrderSummary(java.lang.String orderSummary)
           
 void setShoppingCart(ShoppingCart shoppingCart)
           
 

Method Detail

getCartItems

java.util.List getCartItems()
Returns:
the cartItems

getCustomer

Customer getCustomer()
Returns:
the customer

getOrderSummary

java.lang.String getOrderSummary()
Returns:
the orderSummary

getSelectedBillingAddressUidPk

long getSelectedBillingAddressUidPk()
Returns:
the uidPk of the selected billing address

getSelectedShippingAddressUidPk

long getSelectedShippingAddressUidPk()
Returns:
the uidPk of the selected shipping address

getSelectedShippingServiceLevelUidPk

long getSelectedShippingServiceLevelUidPk()
Returns:
the uidPk of the selected shipping service level

getShippingServiceLevelList

java.util.List getShippingServiceLevelList()
Return the list of shippingServiceLevel list available based on the current shopping cart info.

Returns:
the list of shippingServiceLevel list available based on the current shopping cart info.

getShoppingCart

ShoppingCart getShoppingCart()
Returns:
the shoppingCart

getTotal

java.lang.String getTotal()
Returns:
the total cost of the order as a String including the currency symbol.

isCustomerSignedIn

boolean isCustomerSignedIn()
Returns:
true if the customer is currently signed in

isShippingRequired

boolean isShippingRequired()
Returns true if the cart contains items that must be shipped to the customer.

Returns:
true if the cart contains items that must be shipped to the customer.

setCartItems

void setCartItems(java.util.List cartItems)
Parameters:
cartItems - the cartItems to set

setOrderSummary

void setOrderSummary(java.lang.String orderSummary)
Parameters:
orderSummary - the orderSummary to set

setShoppingCart

void setShoppingCart(ShoppingCart shoppingCart)
Parameters:
shoppingCart - the shoppingCart to set