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