public class ItemPrice
extends java.lang.Object
amount
s
of these DetailedItemPriceInfos should always equals this object's amount
.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
Constructor and Description |
---|
ItemPrice() |
Modifier and Type | Method and Description |
---|---|
PriceAdjustment[] |
getAdjustments()
an array of all the discounts
|
double |
getAmount()
the price of all items
|
java.lang.String |
getCommerceItemId()
the item id
|
DetailedItemPrice[] |
getCurrentPriceDetails()
currentPriceDetails is an array of DetailedItemPrices that constitute a
breakdown of the price represented by this object.
|
double |
getListPrice()
listPrice is the base price, before any modifications.
|
double |
getOrderDiscountShare()
The amount from all order discounts that apply to this item (and effect the taxable amount)
|
java.lang.String |
getPriceListId()
The priceListId used to calculate this order price
|
java.lang.String |
getProductId()
the catalog product id
|
long |
getQuantity()
the number of items
|
long |
getQuantityAsQualifier()
quantityAsQualifier is the quantity of the CommerceItem that acted as a
qualifier to any discount.
|
long |
getQuantityDiscounted()
quantityDiscounted is the quantity of the CommerceItem that was discounted
in any way.
|
double |
getRawTotalPrice()
rawTotalPrice is the original amount of the item before any discounts or sales
|
double |
getSalePrice()
salePrice is the sale price before any modifications
It is a unit price.
|
java.lang.String |
getSkuId()
the catalog sku id
|
boolean |
isDiscounted()
boolean indicating if any of the items were discounted
|
boolean |
isOnSale()
boolean indicating if the item is on sale
|
void |
setAdjustments(PriceAdjustment[] pAdjustments)
an array of all the discounts
|
void |
setAmount(double pAmount)
the price of all items
|
void |
setCommerceItemId(java.lang.String pCommerceItemId)
the item id
|
void |
setCurrentPriceDetails(DetailedItemPrice[] pCurrentPriceDetails) |
void |
setDiscounted(boolean pDiscounted)
boolean indicating if any of the items were discounted
|
void |
setListPrice(double pListPrice) |
void |
setOnSale(boolean pOnSale)
boolean indicating if the item is on sale
|
void |
setOrderDiscountShare(double pOrderDiscountShare) |
void |
setPriceListId(java.lang.String pPriceListId) |
void |
setProductId(java.lang.String pProductId)
the catalog product id
|
void |
setQuantity(long pQuantity)
the number of items
|
void |
setQuantityAsQualifier(long pQuantityAsQualifier) |
void |
setQuantityDiscounted(long pQuantityDiscounted) |
void |
setRawTotalPrice(double pRawTotalPrice) |
void |
setSalePrice(double pSalePrice) |
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 setAmount(double pAmount)
pAmount
- new value to setpublic double getAmount()
public void setDiscounted(boolean pDiscounted)
pDiscounted
- new value to setpublic boolean isDiscounted()
public void setListPrice(double pListPrice)
public double getListPrice()
public void setRawTotalPrice(double pRawTotalPrice)
public double getRawTotalPrice()
public void setOnSale(boolean pOnSale)
pOnSale
- new value to setpublic boolean isOnSale()
public void setSalePrice(double pSalePrice)
public double getSalePrice()
public void setOrderDiscountShare(double pOrderDiscountShare)
public double getOrderDiscountShare()
public void setQuantityDiscounted(long pQuantityDiscounted)
public long getQuantityDiscounted()
public void setQuantityAsQualifier(long pQuantityAsQualifier)
public long getQuantityAsQualifier()
public void setPriceListId(java.lang.String pPriceListId)
public java.lang.String getPriceListId()
public void setAdjustments(PriceAdjustment[] pAdjustments)
pAdjustments
- new value to setpublic PriceAdjustment[] getAdjustments()
public void setCurrentPriceDetails(DetailedItemPrice[] pCurrentPriceDetails)
public DetailedItemPrice[] getCurrentPriceDetails()
amount
s
of these DetailedItemPrices should always equals this object's amount
.public java.lang.String toString()
toString
in class java.lang.Object