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
FieldsFields inherited from class com.broadleafcommerce.orderoperation.service.provider.external.AbstractExternalProvider
ENTITY_NOT_FOUND, RSQL_FILTER_PARAM -
Constructor Summary
ConstructorsConstructorDescriptionExternalCampaignProvider(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.GeneratesCampaignCodesfor voucher offers based on the givenVoucherCodeGenerationRequest.protected ExternalCampaignPropertiesDeprecated.protected StringDeprecated.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:CampaignProviderGeneratesCampaignCodesfor 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.- Specified by:
generateCodesForVouchersin interfaceCampaignProvider- Parameters:
voucherCodeGenerationRequest- theVoucherCodeGenerationRequestto generate the voucherCampaignCodeswithcontextInfo- context information surrounding sandboxing and multitenant state- Returns:
- the
CodeGenerationResultcontaining the generated voucherCampaignCodesbased on the givenVoucherCodeGenerationRequest
-
getServiceClient
Deprecated. -
getProperties
Deprecated.
-