Interface CampaignProvider
- All Known Implementing Classes:
ExternalCampaignProvider
Deprecated.
Deprecated as of 1.8, if using OfferService 2.0, this class is not used
Provider for interfacing with
Campaigns
.- Author:
- Sunny Yu
-
Method Summary
Modifier and TypeMethodDescriptiongenerateCodesForVouchers
(VoucherCodeGenerationRequest voucherCodeGenerationRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.GeneratesCampaignCodes
for voucher offers based on the givenVoucherCodeGenerationRequest
.
-
Method Details
-
generateCodesForVouchers
CodeGenerationResult generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.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
-