Class FinalizeRefundCmdImpl

  • All Implemented Interfaces:, ECCommand, ECTargetableCommand, TaskCommand, AEDPTaskCmd, ARefundTaskCmd, FinalizeRefundCmd,,,,,,

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


    • 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
        performExecute in class AbstractECTargetableCommand
        ECException - The WebSphere Commerce specific exception
      • reset

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

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


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

        Specified by:
        validateParameters in interface ECCommand
        validateParameters in class AbstractECTargetableCommand
        ECException - If there is no RMAABean or there is no vector of RMAItemAccessBean, throws with ECMessage._ERR_BAD_MISSING_CMD_PARAMETER