Interface VoucherOfferUsageValidator

All Known Implementing Classes:
DefaultVoucherOfferUsageValidator

public interface VoucherOfferUsageValidator
Validator used to run checks against voucher offers to determine which offers are still usable.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult
    validateVoucherOfferUsages(EnhancedOrder order, boolean isPostCheckout, com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
    With the provided order, determine which voucher offers are no longer usable in a given context.
  • Method Details

    • validateVoucherOfferUsages

      com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult validateVoucherOfferUsages(@NonNull EnhancedOrder order, @NonNull boolean isPostCheckout, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo context)
      With the provided order, determine which voucher offers are no longer usable in a given context.
      Parameters:
      order - The order with offers to check for usability.
      context - Context information around sandbox and multitenant state.
      Returns:
      A DTO holding the validation results on the offers.