|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.shephertz.app42.paas.sdk.jme.shopping.Cart.Item
public class Cart.Item
An inner class that contains the remaining properties of the Cart.
Field Summary | |
---|---|
java.lang.String |
image
|
java.lang.String |
itemId
|
java.lang.String |
name
|
java.lang.Double |
price
|
java.lang.Integer |
quantity
|
java.lang.Double |
totalAmount
|
Constructor Summary | |
---|---|
Cart.Item()
This is a constructor that takes no parameter |
Method Summary | |
---|---|
java.lang.String |
getImage()
Returns the image for the item. |
java.lang.String |
getItemId()
Returns the ID of items purchased. |
java.lang.String |
getName()
Returns the name of the item. |
java.lang.Double |
getPrice()
Returns the price of the item in cart. |
java.lang.Integer |
getQuantity()
Returns the number of items purchased i.e Quantity in cart. |
java.lang.Double |
getTotalAmount()
Returns the total amount of the cart. |
void |
setImage(java.lang.String image)
Sets the image of the Item. |
void |
setItemId(java.lang.String itemId)
Sets the itemId for the items in Cart. |
void |
setName(java.lang.String name)
Sets the name of the Item in cart. |
void |
setPrice(java.lang.Double price)
Sets the price of the Item in Cart. |
void |
setQuantity(java.lang.Integer quantity)
Sets the quantity of the Cart. |
void |
setTotalAmount(java.lang.Double totalAmount)
Sets the totalAmount of the Cart. |
java.lang.String |
toString()
Returns the Cart Response in JSON format. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String image
public java.lang.String itemId
public java.lang.String name
public java.lang.Double price
public java.lang.Integer quantity
public java.lang.Double totalAmount
Constructor Detail |
---|
public Cart.Item()
Method Detail |
---|
public java.lang.String getImage()
public java.lang.String getItemId()
public java.lang.String getName()
public java.lang.Double getPrice()
public java.lang.Integer getQuantity()
public java.lang.Double getTotalAmount()
public void setImage(java.lang.String image)
image
- - image of the Itempublic void setItemId(java.lang.String itemId)
itemId
- - itemId of the Itemspublic void setName(java.lang.String name)
name
- - name of the Itempublic void setPrice(java.lang.Double price)
price
- - price of the Itempublic void setQuantity(java.lang.Integer quantity)
quantity
- - quantity in the Cartpublic void setTotalAmount(java.lang.Double totalAmount)
totalAmount
- - totalAmount of the Cartpublic java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |