Uses of Class
com.broadleafcommerce.promotion.offer.domain.CodeGenerationResult
Package
Description
-
Uses of CodeGenerationResult in com.broadleafcommerce.promotion.offer.service
Modifier and TypeMethodDescriptionprotected CodeGenerationResult
DefaultCodeGenerationService.generateCodes
(CodeGenerator generator, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Generates and returns a list ofoffer codes
based on the givenCodeGenerator
.CodeGenerationService.generateCodesForVouchers
(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns theCodeGenerationResult
containing generated and/or existingOfferCodes
for voucher offers based on the givenVoucherCodeGenerationRequest
.DefaultCodeGenerationService.generateCodesForVouchers
(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected CodeGenerationResult
DefaultCodeGenerationService.generateOrUseAvailableCodes
(VoucherCodeGenerationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns aCodeGenerationResult
containing a list of generated and/or existingoffer codes
based on the givenVoucherCodeGenerationRequest
.protected CodeGenerationResult
DefaultCodeGenerationService.generateVoucherCodes
(VoucherCodeGenerationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Delegates toDefaultCodeGenerationService.generateOrUseAvailableCodes(VoucherCodeGenerationRequest, ContextInfo)
to get aCodeGenerationResult
, then updatesgetGeneratedCodes()
based onVoucherCodeGenerationRequest.getCodeGenerator()
.CodeGenerationService.markInProgressAndGenerateAndGetCodes
(CodeGenerator info, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Updates theCodeGenerator
to have a status ofCodeGenerationStatusType.IN_PROCESS
, then performs the code generation.DefaultCodeGenerationService.markInProgressAndGenerateAndGetCodes
(CodeGenerator codeGenerationInfo, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Modifier and TypeMethodDescriptionprotected void
DefaultCodeGenerationService.processCodeGeneratorError
(CodeGenerationResult generationResult, CodeGenerator codeGenerator, int codesCreated, String errorMessage, Exception exception, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) -
Uses of CodeGenerationResult in com.broadleafcommerce.promotion.offer.web.endpoint
Modifier and TypeMethodDescriptionCampaignEndpoint.generateCodesForVouchers
(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, VoucherCodeGenerationRequest voucherCodeGenerationReq) GenerateOfferCodes
based on the givenVoucherCodeGenerationRequest
.