com.mypos.myposcheckout.ipc

 

Class CartItem

java.lang.Object com.mypos.myposcheckout.ipc.CartItem


public class CartItem
extends java.lang.Object
Represents an item in the customers cart.

 

Constructor Summary

Constructors
Constructor and Description
CartItem(java.lang.String articleName, java.math.BigDecimal price) 
CartItem(java.lang.String articleName, java.math.BigDecimal price, int quantity) 
CartItem(java.lang.String articleName, double price) 
CartItem(java.lang.String articleName, double price, int quantity) 

 

Method Summary

All MethodsInstance MethodsConcrete Methods
Modifier and Type Method and Description
java.lang.String getArticleName() 
java.math.BigDecimal getPrice() 
int getQuantity() 
java.math.BigDecimal getTotal() 
void setArticleName(java.lang.String articleName) 
void setPrice(java.math.BigDecimal price) 
void setPrice(double price) 
void setQuantity(int quantity) 

 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

CartItem

public CartItem(java.lang.String articleName,
                java.math.BigDecimal price,
                int quantity)
         throws IPCException
Throws:
IPCException

CartItem

public CartItem(java.lang.String articleName,
                double price,
                int quantity)
         throws IPCException
Throws:
IPCException

CartItem

public CartItem(java.lang.String articleName,
                java.math.BigDecimal price)
         throws IPCException
Throws:
IPCException

CartItem

public CartItem(java.lang.String articleName,
                double price)
         throws IPCException
Throws:
IPCException

 

Method Detail

getArticleName

public java.lang.String getArticleName()

setArticleName

public void setArticleName(java.lang.String articleName)
                    throws IPCException
Throws:
IPCException

getPrice

public java.math.BigDecimal getPrice()

setPrice

public void setPrice(double price)

setPrice

public void setPrice(java.math.BigDecimal price)

getQuantity

public int getQuantity()

setQuantity

public void setQuantity(int quantity)
                 throws IPCException
Throws:
IPCException

getTotal

public java.math.BigDecimal getTotal()