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 TypeMethodDescriptionchangeStatus
(QuoteProcessRequest quoteProcessRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Changes the status of a quote based on the givenQuoteProcessRequest
.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 authenticatedCustomerRef
filters
- exising filters to build on top ofpageable
- the requested page of resultscontextInfo
- 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 ofpageable
- the requested page of resultscontextInfo
- 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 givenQuoteProcessRequest
.- Parameters:
quoteProcessRequest
- theQuoteProcessRequest
containing the details of the status changecontextInfo
- 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 typeDefaultCartTypes.QUOTE
to delete.customerRef
- user performing the action.contextInfo
- context information related to multitenancy.
-