public class ItemPriceSummary
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
| Constructor and Description |
|---|
ItemPriceSummary() |
| Modifier and Type | Method and Description |
|---|---|
double |
getAmount()
the price of all items
|
java.lang.String |
getCommerceItemId()
the item id
|
java.lang.String |
getProductId()
the catalog product id
|
long |
getQuantity()
the number of items
|
double |
getQuantityDerivedAsFloatingPoint()
This method will return a derived quantity value which this object represents.
|
double |
getQuantityWithFraction()
the number of items
|
java.lang.String |
getSkuId()
the catalog sku id
|
void |
setAmount(double pAmount)
the price of all items
|
void |
setCommerceItemId(java.lang.String pCommerceItemId)
the item id
|
void |
setProductId(java.lang.String pProductId)
the catalog product id
|
void |
setQuantity(long pQuantity)
the number of items
|
void |
setQuantityWithFraction(double pQuantityWithFraction)
the number of items
|
void |
setSkuId(java.lang.String pSkuId)
the catalog sku id
|
java.lang.String |
toString()
Returns a string form of this price information
|
public void setCommerceItemId(java.lang.String pCommerceItemId)
pCommerceItemId - new value to setpublic java.lang.String getCommerceItemId()
public void setSkuId(java.lang.String pSkuId)
pSkuId - new value to setpublic java.lang.String getSkuId()
public void setProductId(java.lang.String pProductId)
pProductId - new value to setpublic java.lang.String getProductId()
public void setQuantity(long pQuantity)
pQuantity - new value to setpublic long getQuantity()
public void setQuantityWithFraction(double pQuantityWithFraction)
pQuantityWithFraction - new value to setpublic double getQuantityWithFraction()
public double getQuantityDerivedAsFloatingPoint()
It will decide upon the correct quantity value to return, returning the first non zero
value from the properties, quantityWithFraction, quantity, in that order.
The method should be used where there is a need to know the quantity of an item
but it is unknown to the caller as to which property (quantityWithFraction or
quantity holds the value.
public void setAmount(double pAmount)
pAmount - new value to setpublic double getAmount()
public java.lang.String toString()
toString in class java.lang.Object