com.shephertz.app42.paas.sdk.jme.shopping
Class Cart

java.lang.Object
  extended by com.shephertz.app42.paas.sdk.jme.App42Response
      extended by com.shephertz.app42.paas.sdk.jme.shopping.Cart

public class Cart
extends App42Response

This Cart object is the value object which contains the properties of Cart along with the setter & getter for those properties.


Nested Class Summary
 class Cart.Item
          An inner class that contains the remaining properties of the Cart.
 class Cart.Payment
          An inner class that contains the remaining properties of the Cart.
 
Field Summary
 java.lang.String cartId
           
 java.lang.String cartSession
           
 java.util.Date checkOutTime
           
 java.util.Date creationTime
           
 java.lang.Boolean isEmpty
           
 java.util.Vector itemList
           
 Cart.Payment payment
           
 java.lang.String state
           
 java.lang.Double totalAmount
           
 java.lang.String userName
           
 
Constructor Summary
Cart()
           
 
Method Summary
 java.lang.String getCartId()
          Returns the ID of the cart.
 java.lang.String getCartSession()
          Returns the session of the Cart.
 java.util.Date getCheckOutTime()
          Returns the check out time of cart.
 java.util.Date getCreationTime()
          Returns the creation time of the cart.
 java.util.Vector getItemList()
          Returns the list of all the items in the cart.
 Cart.Payment getPayment()
          Returns the payment information for the cart.
 java.lang.String getState()
          Returns the state of the cart.
 java.lang.Double getTotalAmount()
          Returns the total amount of cart.
 java.lang.String getUserName()
          Returns the name of the User.
 java.lang.Boolean isEmpty()
          Returns true or false as per the cart information whether it's empty or not.
 void setCartId(java.lang.String cartId)
          Sets the cartId for the User.
 void setCartSession(java.lang.String cartSession)
          Sets the cartSession for the Cart.
 void setCheckOutTime(java.util.Date checkOutTime)
          Sets the checkOutTime for the Cart.
 void setCreationTime(java.util.Date creationTime)
          Sets the creationTime for the Cart.
 void setIsEmpty(java.lang.Boolean isEmpty)
          Sets the state whether the cart is empty or not
 void setItemList(java.util.Vector itemList)
          Sets the itemList of Cart.
 void setPayment(Cart.Payment payment)
          Sets the payment of the Cart.
 void setState(java.lang.String state)
          Sets the state for the Cart.
 void setTotalAmount(java.lang.Double totalAmount)
          Sets the totalAmount of the Cart.
 void setUserName(java.lang.String userName)
          Sets the user name for the User.
 
Methods inherited from class com.shephertz.app42.paas.sdk.jme.App42Response
getStrResponse, getTotalRecords, isResponseSuccess, setResponseSuccess, setStrResponse, setTotalRecords, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cartId

public java.lang.String cartId

cartSession

public java.lang.String cartSession

checkOutTime

public java.util.Date checkOutTime

creationTime

public java.util.Date creationTime

isEmpty

public java.lang.Boolean isEmpty

itemList

public java.util.Vector itemList

payment

public Cart.Payment payment

state

public java.lang.String state

totalAmount

public java.lang.Double totalAmount

userName

public java.lang.String userName
Constructor Detail

Cart

public Cart()
Method Detail

getCartId

public java.lang.String getCartId()
Returns the ID of the cart.

Returns:
the cartId.

getCartSession

public java.lang.String getCartSession()
Returns the session of the Cart.

Returns:
the cartSession.

getCheckOutTime

public java.util.Date getCheckOutTime()
Returns the check out time of cart.

Returns:
the checkOutTime.

getCreationTime

public java.util.Date getCreationTime()
Returns the creation time of the cart.

Returns:
the creationTime.

getItemList

public java.util.Vector getItemList()
Returns the list of all the items in the cart.

Returns:
the itemList.

getPayment

public Cart.Payment getPayment()
Returns the payment information for the cart.

Returns:
the payment information.

getState

public java.lang.String getState()
Returns the state of the cart.

Returns:
the cart state.

getTotalAmount

public java.lang.Double getTotalAmount()
Returns the total amount of cart.

Returns:
the total amount of purchase.

getUserName

public java.lang.String getUserName()
Returns the name of the User.

Returns:
the userName.

isEmpty

public java.lang.Boolean isEmpty()
Returns true or false as per the cart information whether it's empty or not.

Returns:
true if cart is empty, false if cart is not empty.

setCartId

public void setCartId(java.lang.String cartId)
Sets the cartId for the User.

Parameters:
cartId - - cartId of the User

setCartSession

public void setCartSession(java.lang.String cartSession)
Sets the cartSession for the Cart.

Parameters:
cartSession - - cartSession for the Cart

setCheckOutTime

public void setCheckOutTime(java.util.Date checkOutTime)
Sets the checkOutTime for the Cart.

Parameters:
checkOutTime - - checkOutTime of the Cart

setCreationTime

public void setCreationTime(java.util.Date creationTime)
Sets the creationTime for the Cart.

Parameters:
creationTime - - creationTime of the Cart

setIsEmpty

public void setIsEmpty(java.lang.Boolean isEmpty)
Sets the state whether the cart is empty or not

Parameters:
isEmpty - - Check whether it's empty or not

setItemList

public void setItemList(java.util.Vector itemList)
Sets the itemList of Cart.

Parameters:
itemList - - List of items in cart

setPayment

public void setPayment(Cart.Payment payment)
Sets the payment of the Cart.

Parameters:
payment - - payment of the Cart

setState

public void setState(java.lang.String state)
Sets the state for the Cart.

Parameters:
state - - state of the Cart

setTotalAmount

public void setTotalAmount(java.lang.Double totalAmount)
Sets the totalAmount of the Cart.

Parameters:
totalAmount - - totalAmount of the Cart

setUserName

public void setUserName(java.lang.String userName)
Sets the user name for the User.

Parameters:
userName - - userName of the User