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

java.lang.Object
  extended by com.shephertz.app42.paas.sdk.jme.shopping.Cart.Item
Enclosing class:
Cart

public class Cart.Item
extends java.lang.Object

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

image

public java.lang.String image

itemId

public java.lang.String itemId

name

public java.lang.String name

price

public java.lang.Double price

quantity

public java.lang.Integer quantity

totalAmount

public java.lang.Double totalAmount
Constructor Detail

Cart.Item

public Cart.Item()
This is a constructor that takes no parameter

Method Detail

getImage

public java.lang.String getImage()
Returns the image for the item.

Returns:
the image for the Item.

getItemId

public java.lang.String getItemId()
Returns the ID of items purchased.

Returns:
the itemId.

getName

public java.lang.String getName()
Returns the name of the item.

Returns:
the name of the item.

getPrice

public java.lang.Double getPrice()
Returns the price of the item in cart.

Returns:
the price of the item.

getQuantity

public java.lang.Integer getQuantity()
Returns the number of items purchased i.e Quantity in cart.

Returns:
the quantity.

getTotalAmount

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

Returns:
the total amount.

setImage

public void setImage(java.lang.String image)
Sets the image of the Item.

Parameters:
image - - image of the Item

setItemId

public void setItemId(java.lang.String itemId)
Sets the itemId for the items in Cart.

Parameters:
itemId - - itemId of the Items

setName

public void setName(java.lang.String name)
Sets the name of the Item in cart.

Parameters:
name - - name of the Item

setPrice

public void setPrice(java.lang.Double price)
Sets the price of the Item in Cart.

Parameters:
price - - price of the Item

setQuantity

public void setQuantity(java.lang.Integer quantity)
Sets the quantity of the Cart.

Parameters:
quantity - - quantity in the Cart

setTotalAmount

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

Parameters:
totalAmount - - totalAmount of the Cart

toString

public java.lang.String toString()
Returns the Cart Response in JSON format.

Overrides:
toString in class java.lang.Object
Returns:
the response in JSON format.