Interface CampaignCodeUsageValidator


public interface CampaignCodeUsageValidator
Validator used to run checks against campaign codes to determine which codes are still usable.
  • Method Summary

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

    • validateCampaignCodeUsages

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