com.ibm.commerce.payment.commands
Interface UpdateTASpendingCmd

All Superinterfaces:
TaskCommand
All Known Implementing Classes:
UpdateTASpendingForLimitCheckCmdImpl

public interface UpdateTASpendingCmd
extends TaskCommand

Update Trading Agreement's Spending information for the given order. Parameters:

Parameter Name Type Descriptions
order OrderAccessBean The OrderAccessBean of the order
orderItems Vector of OrderItemAccess Vector of OrderItemAccessBeans representing the order items that make up the order.
totalAmount BigDecimal The Total Amount to be recorded. This amount is in the currency of the order.
errorViewName String Optional error view name passed in by the Caller.

Assumption: Behavior: Default Error View Name: ErrorCodes:

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright notice field.
static java.lang.String defaultCommandClassName
          The default implementation of this command.
static java.lang.String ERRTASK_NAME
          Name of the default error view for this command.
static java.lang.String NAME
          The name of this command.
 
Method Summary
 void setErrorViewName(java.lang.String sEVN)
          Sets the error view to be used to report error.
 void setOrder( OrderAccessBean abOrder)
          Sets the order property of the command.
 void setOrderItems( OrderItemAccessBean[] aOrderItems)
          Sets the orderItems property of the command.
 void setTotalAmount(java.math.BigDecimal nTotalAmount)           Sets the totalAmount property of the command.
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
The name of this command.
See Also:
Constant Field Values

defaultCommandClassName

public static final java.lang.String defaultCommandClassName
The default implementation of this command.
See Also:
Constant Field Values

ERRTASK_NAME

public static final java.lang.String ERRTASK_NAME
Name of the default error view for this command. The constant value of this field is "UpdateTASpendingErrorView".
See Also:
Constant Field Values
Method Detail

setErrorViewName

public void setErrorViewName(java.lang.String sEVN)
Sets the error view to be used to report error. This overrides the default error view of the command.
Parameters:
sEVN - the Error View name

setOrder

public void setOrder(OrderAccessBean abOrder)
Sets the order property of the command.
Parameters:
abOrder - the OrderAccessBean of the Order.

setOrderItems

public void setOrderItems(OrderItemAccessBean[] aOrderItems)
Sets the orderItems property of the command.
Parameters:
aOrderItems - the Array of OrderItemAccessBean of order items in the order

setTotalAmount

public void setTotalAmount(java.math.BigDecimal nTotalAmount)
Sets the totalAmount property of the command.
Parameters:
nTotalAmount - the total amount for the Trading Agreement spending limit record update