com.ibm.commerce.returns.commands

Class FinalizeRefundCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AEDPTaskCmd, ARefundTaskCmd, FinalizeRefundCmd, 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


    public class FinalizeRefundCmdImpl
    extends ARefundTaskCmdImpl
    implements FinalizeRefundCmd
    This class is the default implementation of the FinalizeRefundCmdImpl interface.

    Behaviour

    • If there is a refund for the RMA then the business policy command ApproveRefundPolicyCmd is called to see if the refund is approved. If it is, the Payment Rules FinalizeRefund API is called to do the refund finalization.
    • If FinalizeRefund does not raise an exception then the CREDITDATE field of each RMA item is filled in with the current timestamp.

    This class utilizes these access beans

    See Also:
    Serialized Form
    • Constructor Detail

      • FinalizeRefundCmdImpl

        public FinalizeRefundCmdImpl()
        This method is the default constructor of this class.
    • Method Detail

      • performExecute

        public void performExecute()
                            throws ECException
        This method executes the main business logic of this command, which actually executes the credit according to the refund method and amount to process.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - The WebSphere Commerce specific exception
      • reset

        public void reset()
        This method resets the instance variable of this command.
        Specified by:
        reset in interface com.ibm.websphere.command.Command
        Overrides:
        reset in class ARefundTaskCmdImpl
      • validateParameters

        public void validateParameters()
                                throws ECException
        This method checks the mandatory parameters, which checks the following parameters.

        Parameters

        • RMAAB
          • RMAAccessBean of the RMA
        • RMAItemAB
          • Vector RMAItemAccessBeans

        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - If there is no RMAABean or there is no vector of RMAItemAccessBean, throws com.ibm.commerce.exception.ECApplicationException with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER