|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.commerce.pricing.AmountInfo atg.commerce.pricing.ItemPriceInfo
public class ItemPriceInfo
Contains information about a CommerceItem's price. Also contains detailed price information about how individual quantities of the CommerceItem were priced. For example, if a CommerceItem's quantity is 5, and 3 of them received one discount, and the other two recevied another discount, there would be two DetailedItemPriceInfo entries in currentPriceDetails:
Properties:
amount
s
of these DetailedItemPriceInfos should always equals this object's amount
.
DetailedItemPriceInfo
,
Serialized FormField Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
static java.lang.String |
RANGE_PROPERTY
|
Constructor Summary | |
---|---|
ItemPriceInfo()
Constructors |
Method Summary | |
---|---|
java.util.List |
getCurrentPriceDetails()
currentPriceDetails is a list of DetailedItemPriceInfos that constitute a breakdown of the price represented by this object. |
java.util.List |
getCurrentPriceDetailsForRange(atg.core.util.Range pRange)
Get the details for a specific range. |
java.util.List |
getCurrentPriceDetailsSorted()
currentPriceDetailsSorted is the same list returned by currentPriceDetails but is
sorted by range. |
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) |
RepositoryItem |
getPriceList()
The priceList used to calculate this order price |
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. |
boolean |
isOnSale()
Returns true if the price info reflects a sale. |
void |
setCurrentPriceDetails(java.util.List pCurrentPriceDetails)
|
void |
setListPrice(double pListPrice)
|
void |
setOnSale(boolean pOnSale)
|
void |
setOrderDiscountShare(double pOrderDiscountShare)
|
void |
setPriceList(RepositoryItem pPriceList)
|
void |
setQuantityAsQualifier(long pQuantityAsQualifier)
|
void |
setQuantityDiscounted(long pQuantityDiscounted)
|
void |
setRawTotalPrice(double pRawTotalPrice)
|
void |
setSalePrice(double pSalePrice)
|
java.lang.String |
toString()
Produces a String representation for this AmountInfo |
Methods inherited from class atg.commerce.pricing.AmountInfo |
---|
getAdjustments, getAmount, getClosenessQualifiers, getCurrencyCode, isAmountIsFinal, isDiscounted, markAsFinal, markAsFinal, setAmount, setAmountIsFinal, setClosenessQualifiers, setCurrencyCode, setDiscounted |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static java.lang.String CLASS_VERSION
public static final java.lang.String RANGE_PROPERTY
Constructor Detail |
---|
public ItemPriceInfo()
Method Detail |
---|
public void setRawTotalPrice(double pRawTotalPrice)
public double getRawTotalPrice()
public void setListPrice(double pListPrice)
public double getListPrice()
public void setSalePrice(double pSalePrice)
public double getSalePrice()
public void setOnSale(boolean pOnSale)
public boolean isOnSale()
setOnSale
method then this value is computed dynamically.
The price info would be on sale if the sale price is not equal to 0.0.
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 setPriceList(RepositoryItem pPriceList)
public RepositoryItem getPriceList()
public void setCurrentPriceDetails(java.util.List pCurrentPriceDetails)
public java.util.List getCurrentPriceDetails()
amount
s
of these DetailedItemPriceInfos should always equals this object's amount
.
public java.util.List getCurrentPriceDetailsSorted()
currentPriceDetails
but is
sorted by range.
public java.util.List getCurrentPriceDetailsForRange(atg.core.util.Range pRange)
pRange
- The range we are getting DetailedItemPriceInfosFor
public java.lang.String toString()
AmountInfo
toString
in class AmountInfo
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |