Interface OfferAndOfferCodeUsageValidator

All Known Implementing Classes:
DefaultOfferAndOfferCodeUsageValidator

public interface OfferAndOfferCodeUsageValidator
Validator used to run checks against offers and offer codes to determine which offers and codes are still usable.
Author:
mariestandeven
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult
    validateOfferAndOfferCodeUsages(List<String> offerCodes, List<String> offerIds, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    With a provided list of offer codes and offer ids, determine which offers and codes are no longer usable in a given context.
  • Method Details

    • validateOfferAndOfferCodeUsages

      com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult validateOfferAndOfferCodeUsages(@NonNull List<String> offerCodes, @NonNull List<String> offerIds, @Nullable com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      With a provided list of offer codes and offer ids, determine which offers and codes are no longer usable in a given context.
      Parameters:
      offerCodes - The offer codes to validate.
      offerIds - The offer IDs to validate.
      customerContext - Context information around the customer.
      context - Context information around sandbox and multitenant state.
      Returns:
      A DTO holding the validation results for the offers and offer codes.