com.ibm.commerce.payment.commands
Interface UpdateTADepositRecordsCmd
- All Superinterfaces:
- 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 OrderAccessBean of the order |
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 order items specify the same Trading Agreement. However, if NOT all the order items have the same Trading Agreement, this command inserts multiple rows, one for each order item, with the deposit amount of each order item converted to the default currency of the Store.
- The deposit amount of an order item is the sum of the ORDERITEMS.TOTALPRODUCT + ORDERITEMS.TAXAMOUNT + ORDERITEMS.SHIPCHARGE + ORDERITEMS.SHIPTAXAMOUNT minus ORDERITEMS.TOTALADJUSTMENT.
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 Error View for this command. |
static java.lang.String |
NAME
The name of this command. |
Method Summary |
void |
setDepositAmount(java.math.BigDecimal nDepositAmount)
Sets the depositAmount property of the command. |
void |
setOrder(OrderAccessBean abOrder)
Sets the order property of the command. |
COPYRIGHT
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 Error View for this command. The constant value of this field is "DoDepositErrorView".
- See Also:
- Constant Field Values
setDepositAmount
public void setDepositAmount(java.math.BigDecimal nDepositAmount)
- Sets the depositAmount property of the command.
-
- Parameters:
- nDepositAmount - the deposit amount in the currency of the order
setOrder
public void setOrder(OrderAccessBean abOrder)
- Sets the order property of the command.
-
- Parameters:
- abOrder - the OrderAccessBean of the order whose Trading Agreement deposit record is to be updated
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.