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.
|
protected void | setCommandContext(CommandContext newCommandContext)
Set CommandContext.
|
protected void | setCurrency(java.lang.String newCurrency)
Set Currency.
|
void | setCurrentTime(java.util.Calendar newCurrentTime)
Set CurrentTime.
|
void | setDiscounts(Discount[] newDiscounts)
Set Discounts.
|
protected void | setOrderItems(OrderItemAccessBean[] newOrderItems)
Set OrderItems.
|
protected void | setOrderTotalAmount(java.math.BigDecimal newOrderTotalAmount)
Set OrderTotalAmount.
|
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)
public CommandContext getCommandContext()
public java.lang.String getCurrency()
public java.util.Calendar getCurrentTime()
public Discount[] getDiscounts()
public OrderItemAccessBean[] getOrderItems()
public java.math.BigDecimal getOrderTotalAmount()
protected void setCommandContext(CommandContext newCommandContext)
protected void setCurrency(java.lang.String newCurrency)
public void setCurrentTime(java.util.Calendar newCurrentTime)
public void setDiscounts(Discount[] newDiscounts)
protected void setOrderItems(OrderItemAccessBean[] newOrderItems)
protected void setOrderTotalAmount(java.math.BigDecimal newOrderTotalAmount)