com.ibm.commerce.order.commands

Class DOMValidatePaymentMethodCmdImpl

  • All Implemented Interfaces:
    com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, ValidatePaymentMethodCmd, 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 DOMValidatePaymentMethodCmdImpl
    extends TaskCommandImpl
    implements ValidatePaymentMethodCmd
    This class is the DOM integration implementation of ValidatePaymentMethodCmd task command. The rules are:
    • If the order contains both normal items and in-store pickup items, only normal payment methods can be used.
    • If the order contains only normal items, only normal payment methods can be used.
    • If the order contains only in-store pickup items, there are three cases:
      • If there is no payment instruction for the order, both normal payment methods and in-store pickup payment methods can be used.
      • If there exist payment instructions of normal payment method, only normal payment method can be used.
      • If there exist payment instructions of in-store pickup payment method, only in-store pickup payment method can be used.
      See Also:
      Serialized Form
      • Field Detail

        • COPYRIGHT

          public static final java.lang.String COPYRIGHT
          Deprecated. 
          IBM copyright notice field.
          See Also:
          Constant Field Values
      • Constructor Detail

        • DOMValidatePaymentMethodCmdImpl

          public DOMValidatePaymentMethodCmdImpl()
          Deprecated. 
      • Method Detail

        • setOrderId

          public void setOrderId(java.lang.Long orderId)
          Deprecated. 
          This method is mandatory, specifying the order on which the payment method is validated.
          Specified by:
          setOrderId in interface ValidatePaymentMethodCmd
          Parameters:
          orderId -
        • setPolicyId

          public void setPolicyId(java.lang.Long policyId)
          Deprecated. 
          This method is mandatory, specifying the policy ID of the payment method to be validated.
          Specified by:
          setPolicyId in interface ValidatePaymentMethodCmd
          Parameters:
          policyId -
        • performExecute

          public void performExecute()
                              throws ECException
          Deprecated. 
          This method executes the actual business logic of the command, which validates the passed payment method for the given order.
          Specified by:
          performExecute in interface ECCommand
          Specified by:
          performExecute in interface com.ibm.websphere.command.TargetableCommand
          Overrides:
          performExecute in class AbstractECTargetableCommand
          Throws:
          ECException - if something fails
        • setErrorViewName

          public void setErrorViewName(java.lang.String errorViewName)
          Deprecated. 
          This method sets the error view name. The error view is used if the given payment policy is not valid.
          Specified by:
          setErrorViewName in interface ValidatePaymentMethodCmd
          Parameters:
          errorViewName -