com.ibm.commerce.payment.commands

Interface UpdateTADepositRecordsCmd

  • All Superinterfaces:
    com.ibm.websphere.command.CacheableCommand, com.ibm.commerce.command.CacheableECCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ECCommand, java.io.Serializable, com.ibm.websphere.command.TargetableCommand, TaskCommand
    All Known Implementing Classes:
    UpdateTADepositRecordsCmdImpl


    public interface UpdateTADepositRecordsCmd
    extends TaskCommand
    This task command is used to update Trading Agreement's Deposit Records for the given order. The default implementation of this command is UpdateTADepositRecordsCmdImpl.

    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:
    • DoDepositErrorView
    ErrorCodes:
    See Also:
    UpdateTADepositRecordsCmdImpl
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        The IBM copyright notice field.
        See Also:
        Constant Field Values
      • NAME

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

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

        static final java.lang.String ERRTASK_NAME
        The name of the Error View for this command. The constant value of this field is "DoDepositErrorView".
        See Also:
        Constant Field Values
    • Method Detail

      • setDepositAmount

        void setDepositAmount(java.math.BigDecimal nDepositAmount)
        This method sets the depositAmount property of the command.
        Parameters:
        nDepositAmount - The deposit amount in the currency of the order.
      • setOrder

        void setOrder(OrderAccessBean abOrder)
        This method sets the order property of the command.
        Parameters:
        abOrder - The OrderAccessBean of the order whose Trading Agreement deposit record is to be updated.