public interface Adjustment extends XMLizable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
static java.lang.Integer | ALL_AFFECTED_ITEMS
Indicates all Affected Items.
|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
static java.lang.Integer | INDIVIDUAL_AFFECTED_ITEMS
Indicates Individual Affected Items.
|
static java.lang.Integer | WHOLE_ORDER
Indicates Whole Order.
|
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() |
java.lang.Integer | getAdjustmentType()
This method gets the type of Adjustment.
|
void | setAdjustmentType(java.lang.Integer adjustmentType)
This method sets the type of Adjustment.
|
static final java.lang.String COPYRIGHT
static final java.lang.Integer WHOLE_ORDER
static final java.lang.Integer ALL_AFFECTED_ITEMS
static final java.lang.Integer INDIVIDUAL_AFFECTED_ITEMS
java.lang.Integer getAdjustmentType()
void setAdjustmentType(java.lang.Integer adjustmentType)
boolean apply(LineItemSet targeted, java.math.BigDecimal targetedAmount, int targetedAmountTypes, LineItemSet affected, java.util.Vector affectedVector, java.util.Vector adjustmentVector, PromotionContext context) throws PromotionRuntimeException
java.lang.Object clone() throws java.lang.CloneNotSupportedException