Uses of Class
com.broadleafcommerce.promotion.offer.domain.Offer
Package
Description
-
Uses of Offer in com.broadleafcommerce.promotion.offer.dataimport
Modifier and TypeMethodDescriptionprotected OfferService<Offer>
OfferCodeImportBatchHandler.getOfferService()
OfferCodeImportBatchHandler.getRelatedOffersForBatch
(com.broadleafcommerce.common.dataimport.messaging.BatchRequest batch, String parentEntityId) Queries for the related offers of the batch records by id or external id.Modifier and TypeMethodDescriptionprotected Map<String,
org.apache.commons.lang3.tuple.Pair<OfferCode, com.broadleafcommerce.common.dataimport.messaging.BatchRecord>> OfferCodeImportBatchHandler.convertBatchRecords
(com.broadleafcommerce.common.dataimport.messaging.BatchRequest batch, List<Offer> offers, List<Campaign> campaigns, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> erroredCompletions, String parentEntityId) Converts all of the batch records in the batch request to offer codes.OfferCodeImportBatchHandler.convertBatchRecordToOfferCode
(com.broadleafcommerce.common.dataimport.messaging.BatchRequest batch, com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, List<Offer> offers, List<Campaign> campaigns, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> erroredCompletions, String parentEntityId) Converts the batch record into an offer code, orOptional.empty()
if conversion failed.protected String
OfferCodeImportBatchHandler.findRelatedOffer
(List<Offer> offers, com.broadleafcommerce.common.dataimport.messaging.BatchRecord record, String batchType, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> erroredCompletions) protected boolean
OfferCodeImportBatchHandler.isMatchingUniqueOfferIds
(OfferCode codeToImport, OfferCode existingCode, com.broadleafcommerce.common.dataimport.messaging.BatchRecord batchRecord, List<Offer> offers) OfferCodeImportBatchHandler.validateAndBuildPersistenceRequests
(Map<String, org.apache.commons.lang3.tuple.Pair<OfferCode, com.broadleafcommerce.common.dataimport.messaging.BatchRecord>> codesToImport, List<Offer> offers, List<Campaign> campaigns, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> errorsResults, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) This method is used to validate that the offer codes can be imported.protected boolean
OfferCodeImportBatchHandler.validOfferCodeUpdateRequest
(OfferCode codeToImport, OfferCode existingCode, com.broadleafcommerce.common.dataimport.messaging.BatchRecord batchRecord, List<Offer> offers, List<Campaign> campaigns, List<com.broadleafcommerce.common.dataimport.messaging.BatchCompletionRecord> errorsResults) ModifierConstructorDescriptionOfferCodeImportBatchHandler
(OfferCodeConverter offerCodeConverter, OfferCodeService<OfferCode> offerCodeService, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator, OfferCodeDefaultsInitializer offerCodeDefaultsInitializer, OfferService<Offer> offerService, CampaignService<Campaign> campaignService) -
Uses of Offer in com.broadleafcommerce.promotion.offer.dataimport.autoconfigure
Modifier and TypeMethodDescriptionOfferServicesImportAutoConfiguration.offerCodeImportBatchHandler
(OfferCodeConverter offerCodeConverter, OfferCodeDefaultsInitializer offerCodeDefaultsInitializer, OfferCodeService<OfferCode> offerCodeService, OfferService<Offer> offerService, CampaignService<Campaign> campaignService, com.broadleafcommerce.data.tracking.core.web.ContextRequestHydrator hydrator) -
Uses of Offer in com.broadleafcommerce.promotion.offer.domain
-
Uses of Offer in com.broadleafcommerce.promotion.offer.service
Modifier and TypeClassDescriptionclass
class
DefaultMarketingMessageResolver<P extends MarketingMessage,
O extends Offer> class
DefaultOfferService<P extends Offer>
interface
MarketingMessageOfferCandidateService<P extends Offer>
This service is responsible for finding all the activeOffers
related to aEnhancedLineItem
in order to provide theItemMarketingMessageResolver
to retrieve every relevantMarketingMessage
.interface
MarketingMessageResolver<P extends MarketingMessage,
O extends Offer> Service API to retrieveMarketingMessages
for aMarketingMessageRequest
based on theOffers
the messages belong to, theMarketingMessageLocationType
, and theMarketingMessageTargetType
.interface
OfferService<P extends Offer>
Modifier and TypeFieldDescriptionprotected final OfferService<Offer>
DefaultOfferAndOfferCodeUsabilityService.offerService
Modifier and TypeMethodDescriptionprotected Offer
DefaultOfferCodeService.convertOfferFromPersistentDomain
(com.broadleafcommerce.data.tracking.core.Trackable domain, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Modifier and TypeMethodDescriptionDefaultOfferCodeService.findOffersAndOfferCodesByCodes
(List<String> codes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferCodeService.findOffersAndOfferCodesByCodes
(List<String> codes, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected OfferService<Offer>
DefaultOfferAuditDetailService.getOfferService()
protected OfferService<Offer>
DefaultOfferCodeService.getOfferService()
Modifier and TypeMethodDescriptionprotected void
DefaultOfferAuditDetailService.buildAuditDetailList
(List<OfferUsageDetails> usageDetailsList, List<OfferCode> offerCodes, List<OfferAuditSummary> offerAuditSummaries, List<P> customerAuditDetailList, Offer offer) protected com.broadleafcommerce.promotion.offer.client.web.context.OfferUsabilityInfo
DefaultOfferAndOfferCodeUsabilityService.buildOfferUsabilityInfo
(Offer offer) protected void
DefaultOfferAndOfferCodeUsabilityService.checkOfferCustomerUsageUsability
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<? extends OfferCode> offerCodesForCode, List<OfferAuditDetail> offerAuditDetails, Instant endDate, Offer offer) protected void
DefaultOfferAndOfferCodeUsabilityService.checkOfferMaxUsageUsability
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<? extends OfferCode> offerCodesForCode, List<OfferAuditSummary> offerAuditSummaries, Offer offer) protected boolean
DefaultOfferAndOfferCodeUsabilityService.checkTotalDiscountedBalance
(Offer offer, javax.money.MonetaryAmount totalAlreadyDiscounted) protected int
DefaultOfferAndOfferCodeUsabilityService.determineMaxUsesPerCustomer
(List<OfferAuditDetail> offerAuditDetails, Instant endDate, Offer offer) protected boolean
DefaultMarketingMessageResolver.isItemOffer
(Offer offer) Checks if theOffer
targets an order or fulfillment group item.protected boolean
DefaultMarketingMessageResolver.isItemQualifier
(Offer offer, EnhancedLineItem item) Checks if any of the rules ingetItemQualifierCriteria()
matches the line item on this request in order to determine if the line item can be used to qualify for the offer.protected boolean
DefaultMarketingMessageResolver.isItemTarget
(Offer offer, EnhancedLineItem item) If this is an item offer, checks if any of the rules ingetTargetItemCriteria()
matches the line item on this request in order to determine if the line item can be used as the target for the offer.protected ItemCriteria
DefaultMarketingMessageResolver.modifyItemCriteria
(Offer offer, ItemCriteria itemCriteria) In certain cases (i.e.void
DefaultOfferMaxUseStatusManager.updateStatusForOffer
(Offer offer, String status, boolean invalidateIfApplicable) void
OfferMaxUseStatusManager.updateStatusForOffer
(Offer offer, String status, boolean invalidateIfApplicable) Set the status for an offer in the persistence store.Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.promotion.offer.client.web.context.CodeUsabilityInfo
DefaultOfferAndOfferCodeUsabilityService.buildCodeUsabilityInfo
(List<? extends Offer> offers, List<? extends OfferCode> offerCodesForCode, String code) protected String
DefaultOfferAndOfferCodeUsabilityService.determineCodeUsabilityType
(List<? extends Offer> offers, OfferCode offerCode) protected void
DefaultOfferAndOfferCodeUsabilityService.markOfferUnavailableToUser
(@NonNull OffersAndOfferCodesUsabilityInfo usabilityInfo, @NonNull List<? extends Offer> maxUsagesPerUserOffers, List<? extends OfferCode> offerCodesForCode) void
DefaultOfferAuditDetailService.setOfferService
(OfferService<Offer> offerService) void
DefaultOfferCodeService.setOfferService
(OfferService<Offer> offerService) protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForCodesEmailRegex
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<Offer> offers, List<? extends OfferCode> offerCodes, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForCustomerUseOfferCodes
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<? extends Offer> offers, List<? extends OfferCode> offerCodesForCode, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForCustomerUseOffers
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<? extends Offer> offers, List<? extends OfferCode> offerCodesForCode, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForMaxUseOffers
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<? extends Offer> offers, List<? extends OfferCode> offerCodesForCode, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForMultiUseOfferCodes
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<? extends Offer> offers, List<? extends OfferCode> offerCodesForCode, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForOfferCodesHook
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<Offer> offers, List<? extends OfferCode> offerCodes, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hookpoint to use to add additional, custom verification logic for offer code usability besides what is provided out of box.protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForOffersHook
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<Offer> offers, List<? extends OfferCode> offerCodes, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Hookpoint to use to add additional, custom verification logic for offer usability besides what is provided out of box.protected void
DefaultOfferAndOfferCodeUsabilityService.verifyUsabilityForSingleUseOfferCodes
(OffersAndOfferCodesUsabilityInfo usabilityInfo, List<? extends Offer> offers, List<? extends OfferCode> offerCodesForCode, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) ModifierConstructorDescriptionDefaultOfferAndOfferCodeUsabilityService
(OfferCodeService<OfferCode> offerCodeService, OfferService<Offer> offerService, CampaignService<Campaign> campaignService, SharedCodeSummaryService<SharedCodeAuditSummary> sharedCodeSummaryService, OfferSummaryService<OfferAuditSummary> offerSummaryService, OfferAuditDetailService<OfferAuditDetail> offerAuditDetailService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.autoconfigure
Modifier and TypeMethodDescription<P extends Offer>
MarketingMessageOfferCandidateService<P>OfferServiceAutoConfiguration.marketingMessageOfferCandidateService
(OfferCandidateService<P> offerCandidateService) <P extends MarketingMessage,
O extends Offer>
MarketingMessageResolver<P,O> OfferServiceAutoConfiguration.marketingMessageRetrievalService
(MarketingMessageService<P> marketingMessageService, OfferCandidateService<O> offerCandidateService, OfferService<O> offerService, MarketingMessageOfferCandidateService<O> marketingMessageOfferCandidateService, com.broadleafcommerce.common.extension.TypeFactory typeFactory) <P extends Offer>
OfferCandidateService<P>OfferServiceAutoConfiguration.offerCandidateService
(OfferService<P> offerService, OfferAuditDetailService<? extends OfferAuditDetail> offerAuditDetailService, OfferUserService offerUserService, CandidateOfferUtility candidateOfferUtility) <P extends Offer>
OfferService<P>OfferServiceAutoConfiguration.offerService
(OfferRepository<com.broadleafcommerce.data.tracking.core.Trackable> offerRepository, com.broadleafcommerce.data.tracking.core.service.RsqlCrudEntityHelper helper, com.broadleafcommerce.common.extension.cache.CacheStateManager cacheStateManager, com.broadleafcommerce.data.tracking.core.filtering.fetch.FilterParser<cz.jirutka.rsql.parser.ast.Node> parser) Modifier and TypeMethodDescriptionOfferServiceAutoConfiguration.codeUsabilityService
(OfferCodeService<OfferCode> codeService, OfferService<Offer> offerService, CampaignService<Campaign> campaignService, SharedCodeSummaryService<SharedCodeAuditSummary> sharedCodeSummaryService, OfferSummaryService<OfferAuditSummary> offerSummaryService, OfferAuditDetailService<OfferAuditDetail> offerAuditDetailService, com.broadleafcommerce.common.extension.TypeFactory factory) -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.dto
Modifier and TypeMethodDescriptionItemOfferPermutationResult.buildAppliedItemOffersMap
(List<LineItemOfferDetail> details) OfferProcessingContext.getAppliedFulfillmentGroupOffers()
OfferProcessingContext.getAppliedFulfillmentItemOffers()
ItemOfferPermutationResult.getAppliedItemOffers()
FulfillmentGroupOfferPermutationResult.getAppliedOffers()
OrderOfferPermutationResult.getAppliedOffers()
OfferProcessingContext.getAppliedOrderItemOffers()
OfferProcessingContext.getAppliedOrderOffers()
Modifier and TypeMethodDescriptionprotected boolean
OfferProcessingContext.isNotAppliedOffer
(Set<Offer> appliedOffers, Offer offer) void
The candidateOffer
.protected void
BaseCandidateOffer.updateAmountCurrency
(@NonNull Offer offer, @NonNull javax.money.CurrencyUnit currencyToSet, @NonNull Function<Offer, javax.money.MonetaryAmount> amountGetter, @NonNull BiConsumer<Offer, javax.money.MonetaryAmount> amountSetter) Modifier and TypeMethodDescriptionprotected boolean
OfferProcessingContext.isNotAppliedOffer
(Set<Offer> appliedOffers, Offer offer) void
FulfillmentGroupOfferPermutationResult.setAppliedOffers
(List<Offer> appliedOffers) void
OrderOfferPermutationResult.setAppliedOffers
(List<Offer> appliedOffers) protected void
BaseCandidateOffer.updateAmountCurrency
(@NonNull Offer offer, @NonNull javax.money.CurrencyUnit currencyToSet, @NonNull Function<Offer, javax.money.MonetaryAmount> amountGetter, @NonNull BiConsumer<Offer, javax.money.MonetaryAmount> amountSetter) protected void
BaseCandidateOffer.updateAmountCurrency
(@NonNull Offer offer, @NonNull javax.money.CurrencyUnit currencyToSet, @NonNull Function<Offer, javax.money.MonetaryAmount> amountGetter, @NonNull BiConsumer<Offer, javax.money.MonetaryAmount> amountSetter) -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.engine
Modifier and TypeMethodDescriptionprotected void
DefaultOfferEngineResponseBuilder.addCampaignTrackingIdToAdjustmentIfUsed
(@NonNull Offer offer, @NonNull com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment adjustment, @NonNull OfferCodeData offerCodeData) protected void
DefaultOfferEngineResponseBuilder.addOrderCodeToAdjustmentIfUsed
(@NonNull Offer offer, @NonNull com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment adjustment, @NonNull OfferCodeData offerCodeData) Adds an offer code to the givenAdjustment
if it is present on the order.protected com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment
DefaultOfferEngineResponseBuilder.getAdjustment
(@NonNull Offer offer, @NonNull javax.money.MonetaryAmount amount, @NonNull OfferCodeData offerCodeData) Creates anAdjustment
caused by theOffer
for an order.protected com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef
DefaultOfferEngineResponseBuilder.getOfferRef
(@NonNull Offer offer) Creates anOfferRef
for the givenOffer
. -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.engine.application.processor
Modifier and TypeMethodDescriptionprotected void
DefaultFulfillmentGroupOfferProcessor.addCodeResponseToPermutationResult
(EnhancedOrder order, Offer offer, FulfillmentGroupOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponse
to theFulfillmentGroupOfferPermutationResult
for the provided offer.protected void
DefaultItemOfferProcessor.addCodeResponseToPermutationResult
(EnhancedOrder order, Offer offer, ItemOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponse
to theItemOfferPermutationResult
for the provided offer.protected void
DefaultOrderOfferProcessor.addCodeResponseToPermutationResult
(EnhancedOrder order, Offer offer, OrderOfferPermutationResult result, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse codeResponse) Adds theCodeResponse
to theOrderOfferPermutationResult
for the provided offer.protected void
DefaultItemOfferProcessor.addOrderCodeToAdjustmentIfUsed
(@NonNull Offer offer, @NonNull com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment adjustment, @NonNull Set<String> allOrderCodes) Adds an offer code to the givenAdjustment
if it is present on the order.protected javax.money.MonetaryAmount
DefaultOrderOfferProcessor.adjustToMaxValueIfNeeded
(Offer offer, javax.money.MonetaryAmount adjustmentValue) protected com.broadleafcommerce.promotion.offer.client.web.context.info.FreeGiftItem
DefaultItemOfferProcessor.buildFreeGiftItem
(Offer offer, int quantityToAdd, com.broadleafcommerce.promotion.offer.client.web.context.info.Adjustment adjustment) Builds aFreeGiftItem
from the givenOffer
, quantity, and qualifier item ids.protected com.broadleafcommerce.promotion.offer.client.web.context.info.Voucher
DefaultOrderOfferProcessor.buildVoucher
(Offer voucherOffer) Deprecated, for removal: This API element is subject to removal in a future version.protected javax.money.MonetaryAmount
DefaultItemOfferProcessor.getEstimatedFreeGiftValue
(EnhancedOrder order, Offer offer) protected javax.money.MonetaryAmount
DefaultOrderOfferProcessor.getEstimatedVoucherValue
(EnhancedOrder order, Offer offer) -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.engine.application.processor.helper.item
Modifier and TypeMethodDescriptionprotected void
DefaultPotentialSavingsCalculator.assertOfferNotNull
(Offer offer) protected ItemCriteriaRule
DefaultQualifierAndTargetMarker.getPreviousItemCriteria
(LineItemOfferDetail detail, Offer offer) protected List<LineItemOfferDetail>
DefaultQualifierAndTargetMarker.getSortedItemOfferDetails
(Offer offer, Collection<? extends EnhancedLineItem> orderLineItems, boolean isForQualifiers) protected boolean
DefaultPotentialSavingsCalculator.isPercentOffOffer
(Offer offer) protected boolean
DefaultPotentialSavingsCalculator.shouldCalculateSimplePercent
(Offer offer) protected boolean
DefaultPotentialSavingsCalculator.usePercentOffValue
(Offer offer) -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.engine.candidate
Modifier and TypeClassDescriptionclass
DefaultOfferCandidateService<P extends Offer>
interface
OfferCandidateService<P extends Offer>
This service determines what offers are candidates for a provided order and context.Modifier and TypeMethodDescriptionDefaultOfferUserService.buildUserTargetsForOfferCustomerContext
(Offer offer, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OfferUserService.buildUserTargetsForOfferCustomerContext
(Offer offer, com.broadleafcommerce.promotion.offer.client.web.context.CustomerContext customerContext, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) For the provided customer information, check if there are no more usages for the provided offer available.DefaultOfferCandidateService.constructCandidateOffer
(Offer offer, EnhancedOrder order) CandidateOfferUtility.createCandidateFulfillmentGroupOffer
(EnhancedOrder order, Offer offer) Creates aCandidateFulfillmentGroupOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateFulfillmentGroupOffer
(EnhancedOrder order, Offer offer) CandidateOfferUtility.createCandidateFulfillmentItemOffer
(EnhancedOrder order, Offer offer) Creates aCandidateItemOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateFulfillmentItemOffer
(EnhancedOrder order, Offer offer) CandidateOfferUtility.createCandidateOrderItemOffer
(EnhancedOrder order, Offer offer) Creates aCandidateItemOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateOrderItemOffer
(EnhancedOrder order, Offer offer) CandidateOfferUtility.createCandidateOrderOffer
(EnhancedOrder order, Offer offer) Creates aCandidateOrderOffer
for the given order and offer.DefaultCandidateOfferUtility.createCandidateOrderOffer
(EnhancedOrder order, Offer offer) protected boolean
DefaultOfferCandidateService.evaluateSubscriptionDiscountAgainstItems
(@NonNull Offer offer, @NonNull Map<ItemCriteriaRule, Collection<EnhancedLineItem>> itemCriteriaMap) protected boolean
DefaultOfferCandidateService.isAnyMatchFoundAcrossAllItems
(@NonNull EnhancedOrder order, @NonNull CandidateFulfillmentGroupOffer candidateOffer, @NonNull Offer offer) protected boolean
DefaultOfferCandidateService.isAnyMatchFoundInAnyFulfillmentGroup
(EnhancedOrder order, CandidateFulfillmentGroupOffer candidateOffer, Offer offer) protected void
DefaultCandidateOfferUtility.populateCandidateOfferCurrency
(@NonNull BaseCandidateOffer candidateOffer, @NonNull EnhancedOrder order, @NonNull Offer offer) protected void
DefaultOfferCandidateService.updateReasonResponsesForTargetNotMet
(@NotNull EnhancedOrder order, Offer offer) -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.engine.proration
Modifier and TypeMethodDescriptionprotected com.broadleafcommerce.promotion.offer.client.web.context.info.OfferRef
DefaultProrationService.createOfferRef
(Offer offer) protected EnhancedProratedItemOfferAdjustment
DefaultProrationService.createProratedAdjustment
(Offer offer, EnhancedLineItem lineItem, LineItemOfferDetail parentDetail, javax.money.MonetaryAmount proratedAmt, int quantity) protected boolean
DefaultProrationService.isMatchingQualifier
(Offer offer, OfferQualifier qualifier) protected Set<EnhancedProratedOfferAdjustment>
DefaultProrationService.prorateAdjustmentAmongItems
(Offer offer, javax.money.MonetaryAmount adjustmentAmount, DiscountableItemInfo discountableItemInfo, List<? extends EnhancedLineItem> lineItems, boolean updateItem) Prorates the given adjustment across the givenEnhancedLineItems
. -
Uses of Offer in com.broadleafcommerce.promotion.offer.service.validation
Modifier and TypeMethodDescriptionprotected OfferCandidateService<? extends Offer>
DefaultVoucherOfferUsageValidator.getOfferCandidateService()
protected OfferService<? extends Offer>
DefaultOfferAndOfferCodeUsageValidator.getOfferService()
Modifier and TypeMethodDescriptionprotected boolean
OfferValidator.isFulfillmentItemTargetType
(Offer offer) protected boolean
OfferValidator.isFulfillmentTargetType
(Offer offer) protected boolean
OfferValidator.isOrderItemTargetType
(Offer offer) protected boolean
OfferValidator.isOrderTargetType
(Offer offer) protected void
OfferValidator.validateActiveEndDate
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateActiveStartDate
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateApplyRemainderToFulfillment
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateCheapestTargetGroupingStrategyOnlyOrderItemTargetType
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateCombinabilityType
(Offer offer, org.springframework.validation.Errors errors) protected boolean
OfferValidator.validateDiscount
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateDiscountTier
(Offer offer, DiscountTier discountTier, org.springframework.validation.Errors errors, String offerDiscountStrategy) protected void
OfferValidator.validateDiscountTiers
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateFreeGiftOffer
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateItemCriteria
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateMaxUsesPerUserStrategy
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateName
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateNotFixedPrice
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateOfferCurrency
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateSubscriptionDiscount
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateUserTargets
(Offer offer, org.springframework.validation.Errors errors) protected void
OfferValidator.validateVoucherOffer
(Offer offer, org.springframework.validation.Errors errors) ModifierConstructorDescriptionDefaultOfferAndOfferCodeUsageValidator
(OfferAndOfferCodeUsabilityService offerAndOfferCodeUsabilityService, OfferService<? extends Offer> offerService, com.broadleafcommerce.common.extension.TypeFactory offerFactory) DefaultVoucherOfferUsageValidator
(OfferCandidateService<? extends Offer> offerCandidateService, OrderAndItemOfferHelper helper, com.broadleafcommerce.common.extension.TypeFactory offerFactory) -
Uses of Offer in com.broadleafcommerce.promotion.offer.web.context
Modifier and TypeMethodDescriptionvoid
EnhancedOrder.removeCodesResponses
(Offer offer) void
EnhancedOrder.removeCodesResponses
(Offer offer, int timesUsed) void
EnhancedOrder.updateCodesResponses
(Offer offer, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse response) void
EnhancedOrder.updateCodesResponses
(Offer offer, com.broadleafcommerce.promotion.offer.client.web.context.discounts.CodeResponse response, Set<String> immutableOfferCodes) -
Uses of Offer in com.broadleafcommerce.promotion.offer.web.context.info
Modifier and TypeMethodDescriptionFulfillmentGroupAdjustment.getOffer()
ItemOfferAdjustment.getOffer()
OfferDiscount.getOffer()
OfferQualifier.getOffer()
TheOffer
using someEnhancedLineItem
as an item qualifier.OrderOfferAdjustment.getOffer()
Modifier and TypeMethodDescriptionprotected boolean
LineItemOfferDetail.checkStackable
(Offer offer, Offer otherOffer) protected boolean
LineItemOfferDetail.isStackable
(Offer offer, Offer otherOffer) void
void
TheOffer
targeting someEnhancedLineItem
.void
TheOffer
targeting someEnhancedLineItem
.void
TheOffer
using someEnhancedLineItem
as an item qualifier.void
-
Uses of Offer in com.broadleafcommerce.promotion.offer.web.endpoint
Modifier and TypeFieldDescriptionprotected final MarketingMessageResolver<MarketingMessage,
Offer> MarketingMessageRetrievalEndpoint.marketingMessageResolver
protected final OfferCandidateService<? extends Offer>
OfferEngineEndpoint.offerCandidateService
protected final OfferService<? extends Offer>
OfferEngineEndpoint.offerService
protected final OfferService<Offer>
SharedCodeAuditSummaryEndpoint.offerService
Modifier and TypeMethodDescriptionprotected Offer
MarketingMessagesEndpoint.assertOfferExistsAndReturn
(String offerContextId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OffersEndpoint.createOffer
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Offer req) protected Offer
OffersEndpoint.ensureOfferExistsAndReturn
(@NonNull String offerId, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) OffersEndpoint.readOfferById
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String offerId) OffersEndpoint.replaceOffer
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, Offer req) OffersEndpoint.updateOffer
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, Offer req) Modifier and TypeMethodDescriptionprotected OfferService<Offer>
MarketingMessagesEndpoint.getOfferService()
protected OfferService<Offer>
OffersEndpoint.getService()
org.springframework.data.domain.Page<Offer>
OffersEndpoint.readAllOffers
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String query, org.springframework.data.domain.Pageable page, cz.jirutka.rsql.parser.ast.Node filters) OffersEndpoint.readOfferByIds
(jakarta.servlet.http.HttpServletRequest request, List<String> offerIds, com.broadleafcommerce.data.tracking.core.context.ContextInfo context) Modifier and TypeMethodDescriptionOffersEndpoint.createOffer
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, Offer req) OffersEndpoint.replaceOffer
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, Offer req) OffersEndpoint.updateOffer
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, String id, Offer req) ModifierConstructorDescriptionMarketingMessageRetrievalEndpoint
(AuditVerficationProperties auditVerificationProperties, MarketingMessageResolver<MarketingMessage, Offer> marketingMessageResolver) MarketingMessagesEndpoint
(MarketingMessageService<MarketingMessage> marketingMessageService, OfferService<Offer> offerService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) OfferEngineEndpoint
(OfferAuditDetailService<? extends OfferAuditDetail> auditService, OfferService<? extends Offer> offerService, OfferUserService offerUserService, OfferEngineService offerEngineService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, OfferCandidateService<? extends Offer> offerCandidateService, OfferAndOfferCodeUsageValidator offerandOfferCodeUsageValidator, VoucherOfferUsageValidator voucherOfferUsageValidator, OfferAndOfferCodeUsabilityService offerAndOfferCodeUsabilityService, AuditVerficationProperties auditVerificationProperties) OfferEngineEndpoint
(OfferAuditDetailService<? extends OfferAuditDetail> auditService, OfferService<? extends Offer> offerService, OfferUserService offerUserService, OfferEngineService offerEngineService, com.broadleafcommerce.common.extension.TypeFactory typeFactory, OfferCandidateService<? extends Offer> offerCandidateService, OfferAndOfferCodeUsageValidator offerandOfferCodeUsageValidator, VoucherOfferUsageValidator voucherOfferUsageValidator, OfferAndOfferCodeUsabilityService offerAndOfferCodeUsabilityService, AuditVerficationProperties auditVerificationProperties) OffersEndpoint
(OfferService<Offer> service, OfferCodeService<OfferCode> offerCodeService, com.broadleafcommerce.translation.service.TranslationEntityService<com.broadleafcommerce.translation.domain.Translation> translationEntityService) SharedCodeAuditSummaryEndpoint
(OfferCodeService<OfferCode> offerCodeService, OfferService<Offer> offerService, CampaignService<Campaign> campaignService, SharedCodeSummaryService<SharedCodeAuditSummary> sharedCodeSummaryService, OfferAndOfferCodeUsabilityService offerAndOfferCodeUsabilityService, OfferAndOfferCodeUsageValidator offerandOfferCodeUsageValidator, AuditVerficationProperties auditVerificationProperties)
DefaultOrderOfferProcessor.buildVoucher(CandidateOrderOffer, EnhancedOrder)