public interface CampaignProvider
Campaigns
.Modifier and Type | Method and Description |
---|---|
Optional<String> |
retrieveTrackingIdForUsableCode(String code,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Determine a tracking id for the provided code string, or else an empty string.
|
com.broadleafcommerce.promotion.campaign.client.web.context.CampaignCodeUsageValidationResult |
validateCampaignCodeUsages(com.broadleafcommerce.cart.client.domain.Cart cart,
List<String> campaignCodes,
com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
Retrieve validation information regarding the cart's usage of the provided campaign codes to
determine if the usage is still valid.
|
Optional<String> retrieveTrackingIdForUsableCode(String code, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
code
- The provided code from which to retrieve a tracking id.contextInfo
- Context information around sandbox and multitenant state.com.broadleafcommerce.promotion.campaign.client.web.context.CampaignCodeUsageValidationResult validateCampaignCodeUsages(com.broadleafcommerce.cart.client.domain.Cart cart, List<String> campaignCodes, @Nullable com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo)
cart
- The cart against which to validate code uses.campaignCodes
- The codes to check for validity.contextInfo
- Context information around sandbox and multitenant state.Copyright © 2021. All rights reserved.