public class ItemUpgradeAtExtraCostAdjustment extends java.lang.Object implements Adjustment
<Adjustment impl="com.ibm.commerce.marketing.promotion.reward.ItemUpgradeAtExtraCostAdjustment"> <UpgradedItem> <CatalogEntryKey> <SKU>SKU-20101099</SKU> <DN>o=Root Organization</DN> </CatalogEntryKey> </UpgradedItem> <ExtraCost>3</ExtraCost> <Currency>CAD</Currency> <!-- wholeOrder or AllAffectedItems or IndividualAffectedItems --> <AdjustmentType>IndividualAffectedItems</AdjustmentType> </Adjustment>
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
ItemUpgradeAtExtraCostAdjustment()
Constructor for ItemUpgradeAtExtraCostAdjustment.
|
Modifier and Type | Method and Description |
---|---|
boolean | apply(LineItemSet targeted, java.math.BigDecimal targetedAmount, int targetedAmountTypes, LineItemSet affected, java.util.Vector affectedVector, java.util.Vector adjustmentVector, PromotionContext context)
This method evaluates the targeted order items to see if they fulfill the conditions of this adjustment ( for example, if the quantity of the order items falls into one of the ranges of the adjustment).
|
java.lang.Object | clone()
Returns null if the CloneNotSupportedException is thrown.
|
void | fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
java.lang.Integer | getAdjustmentType()
This method gets the type of Adjustment.
|
java.lang.String | getCurrency()
This method gets the Currency.
|
java.math.BigDecimal | getExtraCost()
This method gets the extra cost to upgrade the item.
|
CatalogEntryKey | getUpGradedItem()
This method gets the UpGraded Item.
|
void | setAdjustmentType(java.lang.Integer _adjustmentType)
This method sets the type of Adjustment.
|
void | setCurrency(java.lang.String newCurrency)
This method sets Currency.
|
void | setExtraCost(java.math.BigDecimal _extraCost)
This method sets the extra cost to upgrade the item.
|
void | setUpGradedItem(CatalogEntryKey newItem)
This method sets the UpGraded Item.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public ItemUpgradeAtExtraCostAdjustment()
public CatalogEntryKey getUpGradedItem()
public java.math.BigDecimal getExtraCost()
public java.lang.String getCurrency()
public void setUpGradedItem(CatalogEntryKey newItem)
public void setExtraCost(java.math.BigDecimal _extraCost)
public void setCurrency(java.lang.String newCurrency)
public java.lang.Integer getAdjustmentType()
public void setAdjustmentType(java.lang.Integer _adjustmentType)
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public java.lang.Object clone()
public boolean apply(LineItemSet targeted, java.math.BigDecimal targetedAmount, int targetedAmountTypes, LineItemSet affected, java.util.Vector affectedVector, java.util.Vector adjustmentVector, PromotionContext context) throws PromotionRuntimeException