com.ibm.commerce.me.datatype

Interface CIQuote

  • All Known Implementing Classes:
    CIQuoteImpl


    public interface CIQuote
    This is a generic interface to be implemented by any quote class. This interface consists of methods to authenticate a buyer, populate the data into the quote object, and retrieve shopping cart items from the quote object. To customize the quote, create a new implementation to this interface (a default implementation is provided in CIQuoteImpl).
    • Field Detail

    • Method Detail

      • getMarketPlaceCredentials

        Credentials getMarketPlaceCredentials()
        This method gets the marketplace credentials.
        Returns:
        the marketplace credential information
        See Also:
        com.ibm.commerce.me.datatype
      • getProtocol

        java.lang.String getProtocol()
        This method gets the protocol name.
        Returns:
        the protocol name
      • getShoppingCartItems

        java.util.Vector getShoppingCartItems()
        This method gets a Vector of the items in the shopping cart.
        Returns:
        the Vector of shopping cart items
      • prepareQuote

        int prepareQuote(long orderRefNum,
                         CommandContext context,
                         RequisitionerSessionData reqSession)
                  throws ECException
        This method populates the quote object with the data from the database. This involves hydrating the quote items. This provides the necessary information for the redirect servlet to generate the response.
        Parameters:
        orderRefNum - the order reference number
        context - the current command context
        reqSession - the session data for the current requisitioner session data
        Returns:
        code representing the operation status
        Throws:
        ECException