com.ibm.commerce.payment.commands

Class DoDepositCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, DoDepositCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable

    Deprecated. 

    public class DoDepositCmdImpl
    extends TaskCommandImpl
    implements DoDepositCmd
    Default DoDeposit task command implementation.

    Parameters:

    Parameter Name Type Descriptions
    order OrderAccessBean The Order Access Bean
    depositAmount BigDecimal The amount to be deposited

    Behavior:

    • Calls DebitAccount command to debit the account through an external Accounting System.
    • Calls UpdateTADepositRecords command to update the deposit records for this order by Trading Agreement.
    • Calls the DoDeposit payment Policy command for the Payment Policy used for the Purchase. (The ID of the Payment Policy is stored in the ORDPAYMTHD Table).
    • Finally, update the CaptureDate field of the OrderRelease and the Order and Order Item Status fields to OrderConstants.ORDER_DEPOSITED.

    Error View Name:

    • DoDepositErrorView

    ErrorCodes:

    • (Include error codes from the other subordinate commands)

    This command uses the following AccessBeans:

    This command calls the following TaskCommands:

    This command calls the following BusinessPolicyCommands:

    See Also:
    Serialized Form
    • Constructor Detail

      • DoDepositCmdImpl

        public DoDepositCmdImpl()
        Deprecated. 
    • Method Detail

      • isReadyToCallExecute

        public boolean isReadyToCallExecute()
        Deprecated. 
        This method is called by the Command Framework to check if all basic mandatory parameters have been set for this command. This is done before the Framework calls the performExecute method of the command.
        Specified by:
        isReadyToCallExecute in interface com.ibm.websphere.command.Command
        Overrides:
        isReadyToCallExecute in class AbstractECTargetableCommand
        Returns:
        true if we can execute the command; false otherwise.
      • reset

        public void reset()
        Deprecated. 
        Resets the instance variables of the command. The reset() method will reset all instance variables. If the command includes any output values that are accessible via getters, then make sure those values are no longer needed before calling this method to reset the instance variables of the command.

        This is useful if the command instance is to be called multiple times with different command parameters.

        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class AbstractECTargetableCommand
      • setDepositAmount

        public void setDepositAmount(java.math.BigDecimal depositAmount)
        Deprecated. 
        Sets the depositAmount property of the command.
        Specified by:
        setDepositAmount in interface DoDepositCmd
        Parameters:
        depositAmount - the amount to be deposited.
      • setOrder

        public void setOrder(OrderAccessBean ab)
        Deprecated. 
        Sets the order property of the command.
        Specified by:
        setOrder in interface DoDepositCmd
        Parameters:
        ab - the OrderAccessBean of the Order whose payment is to be deposited