com.ibm.commerce.quote.commands

Interface QuoteCopyCmd

  • 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:
    QuoteCopyCmdImpl


    public interface QuoteCopyCmd
    extends ControllerCommand

    The interface to copy a quote. This command creates a new quote container and copies the contents of the quote specified in the request into the new quote. If you indicate that the sensitive information should be copied to the new quote, then the payment information is copied.

    You may specify multiple orderIds for the quotes in the request. In this case, the quote-level and payment information from only the first quote are copied into the new quote. However, the items from all the quotes specified in the request are copied into the new quote.

    Parameters

    quoteId (required)
    The Id of the quote that needs to be copied. This must be a number. Multiple orderIds for the quotes may be specified in the request.
    URL (required)
    The URL to be called when the command completes successfully.
    sensitiveInfoCopy (optional) default is "N"
    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) default is "Y"
    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 quote created after copying.

    Response

    outOrderId
    The Id of the quote after it is copied.
    • 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.QuoteCopyCmd".
        See Also:
        Constant Field Values
      • defaultCommandClassName

        static final java.lang.String defaultCommandClassName
        The default implementation class name. "com.ibm.commerce.quote.commands.QuoteCopyCmdImpl".
        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 be copied.
        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 -
      • setDescription

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

        OrderAccessBean getToQuote()
        Gets the quote access bean that was copied.
        Returns:
        Quote access bean that has been copied to