Interface QuoteService

All Known Implementing Classes:
DefaultQuoteService

public interface QuoteService
Defines a service that handles quote-related operations.
Author:
Kyrylo Boiko (kboiko2)
  • Method Summary

    Modifier and Type
    Method
    Description
    changeStatus(QuoteProcessRequest quoteProcessRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Changes the status of a quote based on the given QuoteProcessRequest.
    void
    deleteQuote(@NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull com.broadleafcommerce.order.common.domain.CustomerRef customerRef, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Deletes (archives) a quote.
    org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
    retrieveQuotes(com.broadleafcommerce.order.common.domain.CustomerRef customerRef, cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieve a page of quotes in the current authenticated user's context.
    org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart>
    retrieveRequestedQuotes(cz.jirutka.rsql.parser.ast.Node filters, org.springframework.data.domain.Pageable pageable, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
    Retrieve a page of quotes for sellers to manage.
  • Method Details

    • retrieveQuotes

      org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveQuotes(com.broadleafcommerce.order.common.domain.CustomerRef customerRef, cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieve a page of quotes in the current authenticated user's context.
      Parameters:
      customerRef - the currently authenticated CustomerRef
      filters - exising filters to build on top of
      pageable - the requested page of results
      contextInfo - context information related to multitenancy
      Returns:
      a page of quotes in the current authenticated user's context
    • retrieveRequestedQuotes

      org.springframework.data.domain.Page<com.broadleafcommerce.cart.client.domain.Cart> retrieveRequestedQuotes(@Nullable cz.jirutka.rsql.parser.ast.Node filters, @Nullable org.springframework.data.domain.Pageable pageable, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Retrieve a page of quotes for sellers to manage.
      Parameters:
      filters - exising filters to build on top of
      pageable - the requested page of results
      contextInfo - context information related to multitenancy
      Returns:
      a page of quotes in the current authenticated user's context
    • changeStatus

      QuoteProcessResponse changeStatus(QuoteProcessRequest quoteProcessRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Changes the status of a quote based on the given QuoteProcessRequest.
      Parameters:
      quoteProcessRequest - the QuoteProcessRequest containing the details of the status change
      contextInfo - context information related to multitenancy
      Returns:
      a QuoteProcessResponse representing the result of the status change
    • deleteQuote

      void deleteQuote(@NonNull @NonNull com.broadleafcommerce.cart.client.domain.Cart cart, @NonNull @NonNull com.broadleafcommerce.order.common.domain.CustomerRef customerRef, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Deletes (archives) a quote.
      Parameters:
      cart - Cart of type DefaultCartTypes.QUOTE to delete.
      customerRef - user performing the action.
      contextInfo - context information related to multitenancy.