|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectatg.commerce.pricing.definition.DiscountStructure
public class DiscountStructure
Holds information about the discount to apply to target items for a promotion
Properties:
DiscountDetail| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string |
| Constructor Summary | |
|---|---|
DiscountStructure(java.lang.String pCalculatorType)
Constructor. |
|
| Method Summary | |
|---|---|
void |
addAttribute(java.lang.String pName,
java.lang.Object pValue)
Adds an attribute to the attribute map. |
void |
addDiscountDetail(DiscountDetail pDiscountDetail)
Adds a discount details to the discountDetails list. |
java.lang.Double |
getAdjuster()
Getter for the adjuster property. |
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Getter for the 'attributes' property |
java.lang.String |
getCalculatorType()
Getter for the 'calculatorType' property. |
java.util.List<DiscountDetail> |
getDiscountDetails()
Getter for the discountDetails property. |
int |
getDiscountIndex()
Getter for the 'discountIndex' property The index of this discount structure if it is just one of many in a promotion. |
java.lang.String |
getDiscountType()
Getter for the 'discountType' property. |
void |
setAdjuster(java.lang.Double pAdjuster)
Setter for the adjuster property. |
void |
setAttributes(java.util.Map<java.lang.String,java.lang.Object> pAttributes)
Setter for the 'attributes' property. |
void |
setCalculatorType(java.lang.String pCalculatorType)
Setter for the 'calculatorType' property. |
void |
setDiscountDetails(java.util.List<DiscountDetail> pDiscountDetails)
Setter for the discountDetails property. |
void |
setDiscountIndex(int pDiscountIndex)
Setter for the 'discountIndex' property The index of this discount structure if it is just one of many in a promotion. |
void |
setDiscountType(java.lang.String pDiscountType)
Setter for the 'discountType' property. |
java.lang.String |
toString()
Writes out this object |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CLASS_VERSION
| Constructor Detail |
|---|
public DiscountStructure(java.lang.String pCalculatorType)
pCalculatorType - String calculator type.| Method Detail |
|---|
public int getDiscountIndex()
public void setDiscountIndex(int pDiscountIndex)
pDiscountIndex - int discountIndex defaults to 0.public java.lang.String getCalculatorType()
public void setCalculatorType(java.lang.String pCalculatorType)
pCalculatorType - String calculator typepublic java.lang.String getDiscountType()
public void setDiscountType(java.lang.String pDiscountType)
pDiscountType - String discount typepublic java.lang.Double getAdjuster()
Defaults to null.
public void setAdjuster(java.lang.Double pAdjuster)
Defaults to null.
pAdjuster - Double adjuster amountpublic java.util.List<DiscountDetail> getDiscountDetails()
public void setDiscountDetails(java.util.List<DiscountDetail> pDiscountDetails)
pDiscountDetails - List of DiscountDetailpublic java.util.Map<java.lang.String,java.lang.Object> getAttributes()
public void setAttributes(java.util.Map<java.lang.String,java.lang.Object> pAttributes)
pAttributes - Map of String name to value object entriespublic void addDiscountDetail(DiscountDetail pDiscountDetail)
pDiscountDetail - DiscountDetail to add
public void addAttribute(java.lang.String pName,
java.lang.Object pValue)
pName - String attribute namepValue - Object attribute valuepublic 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 | ||||||||