|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.shephertz.app42.paas.sdk.jme.App42Response
com.shephertz.app42.paas.sdk.jme.shopping.Cart
public class Cart
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 |
---|
public java.lang.String cartId
public java.lang.String cartSession
public java.util.Date checkOutTime
public java.util.Date creationTime
public java.lang.Boolean isEmpty
public java.util.Vector itemList
public Cart.Payment payment
public java.lang.String state
public java.lang.Double totalAmount
public java.lang.String userName
Constructor Detail |
---|
public Cart()
Method Detail |
---|
public java.lang.String getCartId()
public java.lang.String getCartSession()
public java.util.Date getCheckOutTime()
public java.util.Date getCreationTime()
public java.util.Vector getItemList()
public Cart.Payment getPayment()
public java.lang.String getState()
public java.lang.Double getTotalAmount()
public java.lang.String getUserName()
public java.lang.Boolean isEmpty()
public void setCartId(java.lang.String cartId)
cartId
- - cartId of the Userpublic void setCartSession(java.lang.String cartSession)
cartSession
- - cartSession for the Cartpublic void setCheckOutTime(java.util.Date checkOutTime)
checkOutTime
- - checkOutTime of the Cartpublic void setCreationTime(java.util.Date creationTime)
creationTime
- - creationTime of the Cartpublic void setIsEmpty(java.lang.Boolean isEmpty)
isEmpty
- - Check whether it's empty or notpublic void setItemList(java.util.Vector itemList)
itemList
- - List of items in cartpublic void setPayment(Cart.Payment payment)
payment
- - payment of the Cartpublic void setState(java.lang.String state)
state
- - state of the Cartpublic void setTotalAmount(java.lang.Double totalAmount)
totalAmount
- - totalAmount of the Cartpublic void setUserName(java.lang.String userName)
userName
- - userName of the User
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |