Uses of Class
com.broadleafcommerce.promotion.offer.domain.CodeGenerationResult
Packages that use CodeGenerationResult
Package
Description
-
Uses of CodeGenerationResult in com.broadleafcommerce.promotion.offer.service
Methods in com.broadleafcommerce.promotion.offer.service that return CodeGenerationResultModifier and TypeMethodDescriptionprotected CodeGenerationResultDefaultCodeGenerationService.generateCodes(CodeGenerator generator, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Generates and returns a list ofoffer codesbased on the givenCodeGenerator.CodeGenerationService.generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns theCodeGenerationResultcontaining generated and/or existingOfferCodesfor voucher offers based on the givenVoucherCodeGenerationRequest.DefaultCodeGenerationService.generateCodesForVouchers(VoucherCodeGenerationRequest voucherCodeGenerationReq, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) protected CodeGenerationResultDefaultCodeGenerationService.generateOrUseAvailableCodes(VoucherCodeGenerationRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo contextInfo) Returns aCodeGenerationResultcontaining a list of generated and/or existingoffer codesbased on the givenVoucherCodeGenerationRequest.protected CodeGenerationResultDefaultCodeGenerationService.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 theCodeGeneratorto have a status ofCodeGenerationStatusType.IN_PROCESS, then performs the code generation.DefaultCodeGenerationService.markInProgressAndGenerateAndGetCodes(CodeGenerator codeGenerationInfo, com.broadleafcommerce.data.tracking.core.context.ContextRequest contextRequest) Methods in com.broadleafcommerce.promotion.offer.service with parameters of type CodeGenerationResultModifier and TypeMethodDescriptionprotected voidDefaultCodeGenerationService.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
Methods in com.broadleafcommerce.promotion.offer.web.endpoint that return CodeGenerationResultModifier and TypeMethodDescriptionCampaignEndpoint.generateCodesForVouchers(jakarta.servlet.http.HttpServletRequest request, com.broadleafcommerce.data.tracking.core.context.ContextInfo context, VoucherCodeGenerationRequest voucherCodeGenerationReq) GenerateOfferCodesbased on the givenVoucherCodeGenerationRequest.