Interface OfferProvider
-
- All Known Implementing Classes:
ExternalOfferProvider
public interface OfferProvider
Provider for interfacing withOffers
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 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
- theOrder
containing theVouchers
to validate againstcontextInfo
- context information surrounding sandboxing and multitenant state- Returns:
- an
OfferAndOfferCodeUsageValidationResult
containing details about any invalidOffers
and failure messages
-
-