Interface OfferUsageValidator
-
- All Known Implementing Classes:
DefaultOfferUsageValidator
public interface OfferUsageValidatorValidator used to run checks against offers to determine which offers are still usable.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResultvalidateOfferUsages(List<String> offerIds, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)With the provided offer ids andCustomerContext, determine which offers are no longer usable in a given context.
-
-
-
Method Detail
-
validateOfferUsages
com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult validateOfferUsages(@NonNull List<String> offerIds, @NonNull com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)With the provided offer ids andCustomerContext, determine which offers are no longer usable in a given context.- Parameters:
offerIds- The ids of the offers to check for usability.customerContext- The context of the customer the offers are for.context- Context information around sandbox and multitenant state.- Returns:
- A DTO holding the validation results on the offers.
-
-