Interface OfferProvider
- 
- All Known Implementing Classes:
 ExternalOfferProvider
public interface OfferProviderProvider for interfacing withOffersand 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.OfferAndOfferCodeUsageValidationResultvalidateVoucherOfferUsages(com.broadleafcommerce.order.client.domain.Order order, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)Validates existing vouchers stored inOrder.getVouchers()to ensure that they are still valid and applicable to the givenOrder. 
 - 
 
- 
- 
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 inOrder.getVouchers()to ensure that they are still valid and applicable to the givenOrder.- Parameters:
 order- theOrdercontaining theVouchersto validate againstcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
 - an 
OfferAndOfferCodeUsageValidationResultcontaining details about any invalidOffersand failure messages 
 
 - 
 
 -