public class FixedAmountOffPriceAdjustment extends FixedAmountOffAdjustment
XML Snippet for FixedAmountOffPriceAdjustment:
<Adjustment impl= "com.ibm.commerce.marketing.promotion.reward.FixedAmountOffPriceAdjustment"> <!-- Possible values are: -1: Standard offer price -2: Contract price -3: Discounted price --> <PriceAdjustmentBase>-1</PriceAdjustmentBase> <AmountOff>15</AmountOff> <Currency>CAD</Currency> <AdjustmentType>IndividualAffectedItems</AdjustmentType> </Adjustment>
Modifier and Type | Field and Description |
---|---|
static int | CONTRACT_PRICE
The basis for price adjustment.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static int | DISCOUNTED_PRICE
The basis for price adjustment.
|
static int | STANDARD_OFFER_PRICE
The basis for price adjustment.
|
Constructor and Description |
---|
FixedAmountOffPriceAdjustment()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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()
Returns an Integer representing the adjustment type of IndividualAffectedItems.
|
java.math.BigDecimal | getPerUnitAdjustment(AssociatedOrderItem one, AssociatedOrderItem[] all, PromotionContext context)
This method returns the monetary adjustment that needs to be applied to each unit.
|
int | getPriceAdjustmentBasis()
Returns the basis for price adjustment.
|
void | setAdjustmentType(java.lang.Integer adjustmentType)
This method sets the type of Adjustment.
|
void | setPriceAdjustmentBasis(int i)
Sets the basis for price adjustment.
|
java.lang.String | toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public static final int STANDARD_OFFER_PRICE
public static final int CONTRACT_PRICE
public static final int DISCOUNTED_PRICE
public FixedAmountOffPriceAdjustment()
public java.math.BigDecimal getPerUnitAdjustment(AssociatedOrderItem one, AssociatedOrderItem[] all, PromotionContext context)
public java.lang.Integer getAdjustmentType()
public void setAdjustmentType(java.lang.Integer adjustmentType)
public java.lang.Object clone()
public java.lang.String toXML() throws XMLizationException
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
public int getPriceAdjustmentBasis()
public void setPriceAdjustmentBasis(int i)