public interface MonetaryAdjustment extends Adjustment
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static int |
MAX_SCALE_FOR_DIVIDE
The scale to use for division of BigDecimal.
|
static int |
PRICE
Adjustment is on the sub total of an order or a subset of an order
|
static int |
SHIPPING
Adjustment is on the shipping charges of an order or a subset of an order
|
static int |
SHIPPING_TAX
Adjustment is on the tax levied on the shipping charges of an order or a subset of an order
|
static int |
TAX
Adjustment is on the tax levied on an order or a subset of an order
|
static java.math.BigDecimal |
ZERO
A simple BigDecimal constant value of 0
|
ALL_AFFECTED_ITEMS, INDIVIDUAL_AFFECTED_ITEMS, WHOLE_ORDER
Modifier and Type | Method and Description |
---|---|
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 |
getTheTypeOfMonetaryValueToBeAdjusted()
Returns the target of a monetary adjustment.
|
apply, clone, getAdjustmentType, setAdjustmentType
static final java.lang.String COPYRIGHT
static final int PRICE
static final int SHIPPING
static final int SHIPPING_TAX
static final int TAX
static final java.math.BigDecimal ZERO
static final int MAX_SCALE_FOR_DIVIDE
int getTheTypeOfMonetaryValueToBeAdjusted()
java.math.BigDecimal getPerUnitAdjustment(AssociatedOrderItem one, AssociatedOrderItem[] all, PromotionContext context)
AssociationOrderItem
). It is guaranteed that all units in
one
have been adjusted by exactly the same set of
monetary adjustments.one
- the order item or portion of an order item for which a per unit adjustment
amount needs to be calculated.all
- all of the AssociatedOrderItems to which this adjustment applies.context
- PromotionContext