public class DiscountContext extends java.lang.Object implements IncentiveContext
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
DiscountContext(CommandContext cmdCtx,
java.lang.String currency,
OrderItemAccessBean[] itemABs,
java.math.BigDecimal orderTotalAmount,
java.util.Calendar currentTime)
Constructor for DiscountContext.
|
Modifier and Type | Method and Description |
---|---|
CommandContext |
getCommandContext()
Get the CommandContext.
|
java.lang.String |
getCurrency()
Get the Currency.
|
java.util.Calendar |
getCurrentTime()
Get the CurrentTime.
|
Discount[] |
getDiscounts()
Get the Discounts.
|
OrderItemAccessBean[] |
getOrderItems()
Get the OrderItems.
|
java.math.BigDecimal |
getOrderTotalAmount()
Get the OrderTotalAmount.
|
void |
setCurrentTime(java.util.Calendar newCurrentTime)
Set CurrentTime.
|
void |
setDiscounts(Discount[] newDiscounts)
Set Discounts.
|
public static final java.lang.String COPYRIGHT
public DiscountContext(CommandContext cmdCtx, java.lang.String currency, OrderItemAccessBean[] itemABs, java.math.BigDecimal orderTotalAmount, java.util.Calendar currentTime)
cmdCtx
- The CommandContext to set.currency
- The currency to set for the DiscountContext object.itemABs
- The order item access beans to set for the DiscountContext object.orderTotalAmount
- The total amount of the order to set for the DiscountContext object.currentTime
- The current time to set.public CommandContext getCommandContext()
public java.lang.String getCurrency()
public java.util.Calendar getCurrentTime()
public Discount[] getDiscounts()
public OrderItemAccessBean[] getOrderItems()
public java.math.BigDecimal getOrderTotalAmount()
public void setCurrentTime(java.util.Calendar newCurrentTime)
newCurrentTime
- java.util.Calendarpublic void setDiscounts(Discount[] newDiscounts)
newDiscounts
- com.ibm.commerce.discount.rules.Discount[]