com.ibm.commerce.payment.config.commands

Class PaymentConfigurationUpdateCtrlCmdImpl

    • Field Detail

      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        The internal copyright field.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PaymentConfigurationUpdateCtrlCmdImpl

        public PaymentConfigurationUpdateCtrlCmdImpl()
    • Method Detail

      • validateParameters

        public void validateParameters()
                                throws ECException
        This method validates the parameters passed in. Also ,it gets the payment configuration id which CSR wants to add/update from requestProperties. And it sets the information into the command local variables. It sets the success redirect URL as well.
        Specified by:
        validateParameters in interface ECCommand
        Overrides:
        validateParameters in class AbstractECTargetableCommand
        Throws:
        ECException - If the XMLObject cannot be parsed as expected.
      • performExecute

        public void performExecute()
                            throws ECException
        This method performs the logic of adding/updating the payment configuration ,which invokes Payment Rules PaymentConfigurationUtil to perform this action.
        Specified by:
        performExecute in interface ECCommand
        Specified by:
        performExecute in interface com.ibm.websphere.command.TargetableCommand
        Overrides:
        performExecute in class AbstractECTargetableCommand
        Throws:
        ECException - In case of any error
      • getAction

        public java.lang.String getAction()
        This method returns the action on the payment configuration, which could be "new" or "update".
        Returns:
        action The action on the payment configuration
      • getConfigId

        public java.lang.String getConfigId()
        This method returns the payment configuration id.
        Returns:
        configId The payment configuration id
      • getMethodName

        public java.lang.String getMethodName()
        This method returns the payment/refund method name.
        Returns:
        methodName The payment method name
      • setAction

        public void setAction(java.lang.String string)
        This method sets the action on the payment configuration, which could be "new" or "update".
        Parameters:
        string - The action on the payment configuration
      • setConfigId

        public void setConfigId(java.lang.String string)
        This method sets the payment configuration id.
        Parameters:
        string - The payment configuration id
      • setMethodName

        public void setMethodName(java.lang.String string)
        This method sets the payment/refund method name.
        Parameters:
        string - The payment method name
      • getMethodType

        public java.lang.String getMethodType()
        This method returns the method type, which could be payment or refund.
        Returns:
        methodType The method type
      • setMethodType

        public void setMethodType(java.lang.String string)
        This method sets the method type, which could be payment or refund.
        Parameters:
        string - The method type