com.ibm.commerce.quote.commands

Interface QuoteGenerateOrderCmd

  • All Superinterfaces:
    AccCommand, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, ControllerCommand, ECCommand, Protectable, java.io.Serializable, com.ibm.websphere.command.TargetableCommand
    All Known Implementing Classes:
    QuoteGenerateOrderCmdImpl


    public interface QuoteGenerateOrderCmd
    extends ControllerCommand

    The interface to generate an order from a quote. The quote and its items are copied to a new order using the CopyQuoteCmd along with the payment information if the sensitiveInfoCopy flag is set to "Y" in the request. If the quote has not expired, then the SKIP_REPRICING PrepareFlags in all the OrderItems are turned on. It is to ensure the quoted prices in the generated order. Finally, the order is prepared using the PrepareOrderCmd.

    Parameters

    orderId (mandatory)
    The Id of the quote. This must be a number.
    URL (mandatory)
    The URL to be called when the command completes successfully.
    sensitiveInfoCopy (optional)
    This flag indicates if sensitive information such as payment information needs to be copied. The default value is "N". Change the default value to Y to copy the sensitive information.
    blockInfoCopy (optional)
    This flag indicates if block information needs to be copied. The default is "Y". Change the default value to N if you do not want to copy the block information.
    description (optional)
    The description of the order being generated.

    Response

    outOrderId
    The Id of the order being generated.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • NAME

        static final java.lang.String NAME
        The name of this interface. "com.ibm.commerce.quote.commands.QuoteGenerateOrderCmd".
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class name. "com.ibm.commerce.quote.commands.QuoteGenerateOrderCmdImpl".
        See Also:
        Constant Field Values
    • Method Detail

      • setUrl

        void setUrl(java.lang.String url)
        Sets the redirection url after the command completes successfully.
        Parameters:
        url -
      • setQuote

        void setQuote(OrderAccessBean abQuote)
        Sets the quote to generateOrderFrom.
        Parameters:
        abQuote - Quote access bean
      • setSensitiveInfoCopyFlag

        void setSensitiveInfoCopyFlag(java.lang.String sensitiveInfoCopyFlag)
        Sets the SensitiveInfoCopy flag.
        Parameters:
        sensitiveInfoCopyFlag - Sensitive Info copy flag
      • setBlockInfoCopyFlag

        void setBlockInfoCopyFlag(java.lang.String blockInfoCopyFlag)
        Sets the blockInfoCopy flag.
        Parameters:
        blockInfoCopyFlag - Block Info copy flag
      • setDescription

        void setDescription(java.lang.String description)
        Sets the description of the order to be generated from the quote.
        Parameters:
        description -
      • getGenOrderId

        java.lang.String getGenOrderId()
        Gets the orderId of the generated order.
        Returns:
        orderId of the generated Order