Interface OfferProvider
- All Known Implementing Classes:
ExternalOfferProvider
public interface OfferProvider
Provider for interfacing with operations around offer related entities. Typically utilizes
WebClient to make requests to an external REST API.- Author:
- Jon Fleschler (jfleschler)
-
Method Summary
Modifier and TypeMethodDescriptionfetchActiveOffersByIds(Collection<String> offerIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves all active offers matching the passed ids.Retrieves any marketing messages for the request.
-
Method Details
-
fetchMarketingMessagesForRequest
Retrieves any marketing messages for the request.- Parameters:
request- all the relevant information to be used to retrieve marketing messages- Returns:
- The marketing message for the parameters provided.
- Throws:
ProviderApiException- if the provider encounters an error with the request.
-
fetchActiveOffersByIds
List<Offer> fetchActiveOffersByIds(Collection<String> offerIds, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Retrieves all active offers matching the passed ids.- Parameters:
offerIds- list of offer ids to fetchcontextInfo- information derived from the original request containing tenant and sandbox info- Returns:
- list of active offers matching the passed ids
-