com.ibm.commerce.payment.extern

Class CreditAccountCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, CreditAccountCmd, 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 CreditAccountCmdImpl
    extends TaskCommandImpl
    implements CreditAccountCmd
    This CreditAccountCmdImpl Task Command implementation class is called to credit the customer account through an external accounting system.

    This implementation class is empty. It is intended for third-parties to extend and write implementation code for integration with an external accounting system.

    See Also:
    Serialized Form
    • Constructor Detail

      • CreditAccountCmdImpl

        public CreditAccountCmdImpl()
    • Method Detail

      • reset

        public void reset()
        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
      • setErrorViewName

        public void setErrorViewName(java.lang.String sEVN)
        Sets the error view to be used to report error. This overrides the default error view of the command.
        Specified by:
        setErrorViewName in interface CreditAccountCmd
        Parameters:
        sEVN - the Error View name
        See Also:
        CreditAccountCmd.ERRTASK_NAME
      • setOrder

        public void setOrder(OrderAccessBean ab)
        Sets the order associated with the Return Merchandise Authorization.
        Specified by:
        setOrder in interface CreditAccountCmd
        Parameters:
        ab - the OrderAccessBean of the order
      • setRefundAmount

        public void setRefundAmount(java.math.BigDecimal refundAmount)
        Sets the refund amount in the currency specified in the Return Merchandise Authorization.
        Specified by:
        setRefundAmount in interface CreditAccountCmd
        Parameters:
        refundAmount - the amount to be refunded
      • setRMA

        public void setRMA(RMAAccessBean ab)
        Sets the Return Merchandise Authorization record that authorizes the return of the merchandise.
        Specified by:
        setRMA in interface CreditAccountCmd
        Parameters:
        ab - the RMAAccessBean representing the Return Merchandise Authorization record