com.ibm.commerce.payment.commands
Interface UpdateTADepositRecordsCmd
- All Superinterfaces:
- ECCommand, TaskCommand
- All Known Implementing Classes:
- UpdateTADepositRecordsCmdImpl
- public interface UpdateTADepositRecordsCmd
- extends TaskCommand
Update Trading Agreement's Deposit Records for the given order.
Parameter:
Parameter Name |
Type |
Descriptions |
order |
OrderAccessBean |
The Order Access Bean |
depositAmount |
BigDecimal |
The amount of the deposit in the currency of the Order. |
Behavior:
- The default implementation inserts a row into the TRDDEPAMT table for the Order with
the depositAmount in the default Currency of the Store if all OrderItems specify the
same Trading Agreement. However, if NOT all the OrderItems have the same TradingAgreement,
this command inserts multiple rows, one for each OrderItems, with the deposit Amount of each
OrderItems converted to the default currency of the Store.
- The deposit amount of an OrderItem is the sum of the
ORDERITEMS.TOTALPRODUCT + ORDERITEMS.TAXAMOUNT + ORDERITEMS.SHIPCHARGE + ORDERITEMS.SHIPTAXAMOUNT minus ORDERITEMS.TOTALADJUSTMENT.
Error View Name:
ErrorCodes:
Method Summary |
void |
setDepositAmount(java.math.BigDecimal nDepositAmount)
Sets the nDepositAmount property of the command. |
void |
setOrder(OrderAccessBean abOrder)
Sets the order property of the command. |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, performExecute, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
defaultCommandClassName
public static final java.lang.String defaultCommandClassName
- The default implementation class.
ERRTASK_NAME
public static final java.lang.String ERRTASK_NAME
- Name of the Error View for this command.
The constant value of this field is "DoDepositErrorView".
NAME
public static final java.lang.String NAME
setDepositAmount
public void setDepositAmount(java.math.BigDecimal nDepositAmount)
- Sets the nDepositAmount property of the command.
- Parameters:
nDepositAmount
- the amount to be deposited.
setOrder
public void setOrder(OrderAccessBean abOrder)
- Sets the order property of the command.
- Parameters:
abOrder
- the OrderAccessBean of the Order.