Class ExternalCampaignProvider
java.lang.Object
com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
com.broadleafcommerce.orderoperation.service.provider.external.ExternalCampaignProvider
- All Implemented Interfaces:
CampaignProvider
@Deprecated
public class ExternalCampaignProvider
extends AbstractExternalProvider
implements CampaignProvider
Deprecated.
Deprecated as of 1.8, if using OfferService 2.0, this class is not used
- Author:
- Sunny Yu
-
Field Summary
Fields inherited from class com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND, RSQL_FILTER_PARAM
-
Constructor Summary
ConstructorDescriptionExternalCampaignProvider
(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCampaignProperties properties) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptiongenerateCodesForVouchers
(VoucherCodeGenerationRequest voucherCodeGenerationRequest, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.GeneratesCampaignCodes
for voucher offers based on the givenVoucherCodeGenerationRequest
.protected ExternalCampaignProperties
Deprecated.protected String
Deprecated.Methods inherited from class com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
buildNotFoundException, executeRequest, getHeaders, getObjectMapper, getTypeFactory, getWebClient, isEntityNotFound, pageableToParams
-
Field Details
-
CAMPAIGN_CLIENT_ID
Deprecated.- See Also:
-
-
Constructor Details
-
ExternalCampaignProvider
public ExternalCampaignProvider(org.springframework.web.reactive.function.client.WebClient webClient, com.fasterxml.jackson.databind.ObjectMapper objectMapper, com.broadleafcommerce.common.extension.TypeFactory typeFactory, ExternalCampaignProperties properties) Deprecated.
-
-
Method Details
-
generateCodesForVouchers
public CodeGenerationResult generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationRequest, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Deprecated.Description copied from interface:CampaignProvider
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.- Specified by:
generateCodesForVouchers
in interfaceCampaignProvider
- 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
-
getServiceClient
Deprecated. -
getProperties
Deprecated.
-