public interface UpdateTASpendingCmd extends TaskCommand
UpdateTASpendingForLimitCheckCmdImpl
.
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. |
PaymentConstants.ERR_CODE_CURRENCY_CONVERT_FAIL
(1961)
- Currency conversion not available or failed.
PaymentConstants.ERR_CODE_PURCHASE_AMOUNT_EXCEED_LIMIT_OF_TA
(1962)
- Purchase Amount Exceeded the Spending Limit (Amount) of the TradingAgreement for at least one of the OrderItems.
UpdateTASpendingForLimitCheckCmdImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation of this command.
|
static java.lang.String |
ERRTASK_NAME
The name of the default error view for this command.
|
static java.lang.String |
NAME
The full name of this command.
|
Modifier and Type | Method and Description |
---|---|
void |
setErrorViewName(java.lang.String sEVN)
This method sets the error view to be used to report error.
|
void |
setOrder(OrderAccessBean abOrder)
This method sets the order property of the command.
|
void |
setOrderItems(OrderItemAccessBean[] aOrderItems)
This method sets the orderItems property of the command.
|
void |
setTotalAmount(java.math.BigDecimal nTotalAmount)
This method sets the totalAmount property of the command.
|
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, performExecute, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
static final java.lang.String COPYRIGHT
static final java.lang.String NAME
static final java.lang.String defaultCommandClassName
static final java.lang.String ERRTASK_NAME
void setErrorViewName(java.lang.String sEVN)
sEVN
- A String that specifies the Error View name.void setOrder(OrderAccessBean abOrder)
abOrder
- The OrderAccessBean of the Order.void setOrderItems(OrderItemAccessBean[] aOrderItems)
aOrderItems
- An OrderItemAccessBean[] that represents the Array of OrderItemAccessBean of order items in the order.void setTotalAmount(java.math.BigDecimal nTotalAmount)
nTotalAmount
- A BigDecimal that specifies the total amount for the Trading Agreement spending limit record update.