Interface CampaignProvider
-
- All Known Implementing Classes:
ExternalCampaignProvider
public interface CampaignProviderProvider for interfacing withCampaigns.- Author:
- Sunny Yu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CodeGenerationResultgenerateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)GeneratesCampaignCodesfor voucher offers based on the givenVoucherCodeGenerationRequest.
-
-
-
Method Detail
-
generateCodesForVouchers
CodeGenerationResult generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
GeneratesCampaignCodesfor voucher offers based on the givenVoucherCodeGenerationRequest.This method will generate and return the
CampaignCodesin the same request, therefore it's meant for small batch of code generation only.- Parameters:
voucherCodeGenerationRequest- theVoucherCodeGenerationRequestto generate the voucherCampaignCodeswithcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the
CodeGenerationResultcontaining the generated voucherCampaignCodesbased on the givenVoucherCodeGenerationRequest
-
-