Interface OfferProvider

  • All Known Implementing Classes:
    ExternalOfferProvider

    public interface OfferProvider
    Provider for interfacing with Offers and the Offer Engine.
    Author:
    Sunny Yu
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult validateVoucherOfferUsages​(com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
      Validates existing vouchers stored in Order.getVouchers() to ensure that they are still valid and applicable to the given Order.
    • Method Detail

      • validateVoucherOfferUsages

        com.broadleafcommerce.promotion.offer.client.web.context.OfferAndOfferCodeUsageValidationResult validateVoucherOfferUsages​(com.broadleafcommerce.order.client.domain.Order order,
                                                                                                                                   @Nullable
                                                                                                                                   com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
        Validates existing vouchers stored in Order.getVouchers() to ensure that they are still valid and applicable to the given Order.
        Parameters:
        order - the Order containing the Vouchers to validate against
        contextInfo - context information surrounding sandboxing and multitenant state
        Returns:
        an OfferAndOfferCodeUsageValidationResult containing details about any invalid Offers and failure messages