|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.pricing.AmountInfo
public class AmountInfo
Represents price information about an object. In DCS, a price is more than just a number. In addition to the actual amount, AmountInfo also stores information about how to interpret that amount, and how the current price was calculated.
Properties
PricingAdjustment,
Serialized Form| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Constructor Summary | |
|---|---|
AmountInfo()
|
|
| Method Summary | |
|---|---|
java.util.List |
getAdjustments()
A list of PricingAdjustment objects which record an audit trail of changes that have happened to the amount in this AmountInfo |
double |
getAmount()
the raw number about which this AmountInfo stores interpretive information |
java.util.List |
getClosenessQualifiers()
A list of closenessQualifiers that this order/item satisfies. |
java.lang.String |
getCurrencyCode()
the currency code for the price that this AmountInfo represents |
boolean |
isAmountIsFinal()
If this flag is true, this amount info should never be changed. |
boolean |
isDiscounted()
Test property Discounted |
void |
markAsFinal()
This method will mark this AmountInfo as final. |
void |
markAsFinal(java.lang.String pReason)
This method will mark this AmountInfo as final. |
void |
setAmount(double pAmount)
the raw number about which this AmountInfo stores interpretive information |
void |
setAmountIsFinal(boolean pAmountIsFinal)
If true, this amountInfo will not be recalculated If you want a PricingAdjustment to be created that reflects this change, then use markAsFinal
instead. |
void |
setClosenessQualifiers(java.util.List pClosenessQualifiers)
A list of closenessQualifiers that this order/item satisfies. |
void |
setCurrencyCode(java.lang.String pCurrencyCode)
the currency code for the price that this AmountInfo represents |
void |
setDiscounted(boolean pDiscounted)
Flag that states whether or not this AmountInfo has been discounted |
java.lang.String |
toString()
Produces a String representation for this AmountInfo |
| 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
| Constructor Detail |
|---|
public AmountInfo()
| Method Detail |
|---|
public void setCurrencyCode(java.lang.String pCurrencyCode)
pCurrencyCode - new value to setpublic java.lang.String getCurrencyCode()
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 java.util.List getAdjustments()
public void setAmountIsFinal(boolean pAmountIsFinal)
markAsFinal
instead.
pAmountIsFinal - the new valuepublic boolean isAmountIsFinal()
public void setClosenessQualifiers(java.util.List pClosenessQualifiers)
pClosenessQualifiers - the new valuepublic java.util.List getClosenessQualifiers()
public void markAsFinal()
public void markAsFinal(java.lang.String pReason)
pReason - A string that explains why the AmountInfo was marked final.public java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||