public interface CheckTASpendingLimitCmd extends TaskCommand
Parameter Name | Type | Descriptions |
order | OrderAccessBean | The Order Access Bean |
orderItems | Vector of OrderItemAccess | Vector of OrderItem Access Beans representing the OrderItems that make up the Order. |
totalAmount | BigDecimal | The Total Amount to be checked. This amount is in the Currency of the Order. |
errorViewName | String | Optional error view name passed in by the Caller. |
CheckTASpendingLimit
may be called several
times by various commands during Order Flow. (for example, from Order Capture commands, the
OrderProcess command, and so on.). The actual update of the Trading Agreement Spending Amount
is made during ReleaseToFulfillment by the
CheckPaymentAcceptCmdImpl
Task Command Implementation class
when bReleaseToFulfillment is set to true.
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 Exceeds the Spending Limit of the TradingAgreement.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
static java.lang.String |
defaultCommandClassName
The default implementation class.
|
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.
|
Modifier and Type | Method and Description |
---|---|
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 aOrderItems property of the command.
|
void |
setTotalAmount(java.math.BigDecimal nTotalAmount)
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
- the Error View namevoid setOrder(OrderAccessBean abOrder)
abOrder
- the OrderAccessBean of the Ordervoid setOrderItems(OrderItemAccessBean[] aOrderItems)
aOrderItems
- the Array of the OrderItemAccessBean of the Ordervoid setTotalAmount(java.math.BigDecimal nTotalAmount)
nTotalAmount
- the amount to be checked