Package com.skava.promotion.service.impl
Class OfferServiceImplBase
java.lang.Object
com.skava.promotion.service.impl.OfferServiceImplBase
- Direct Known Subclasses:
AssignOfferServiceImpl,BlockOfferServiceImpl,UnAssignOfferServiceImpl,UnblockOfferServiceImpl
A class that provides functionality to block a offer.
- Since:
- 8.0
- Version:
- 8.0
- Author:
- Infosys Equinox
-
Field Summary
FieldsModifier and TypeFieldDescriptionHolds the CodeAllocationProcess instance **.Holds the CodeAllocationRepository instance **.Holds the instance for collectionProcess **.static final Stringorg.springframework.context.MessageSourceHolds the MessageSource instance **.Holds the PromotionRepository instance **. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetPromotion(CodeAllocation codeAllocation, long orderCreatedTime) Gets the promotion.booleanisValidRequest(PromotionOfferDO request, PromoCodeStateResponse response) Functionality to validate the request.voidupdatePromoCodeInfo(PromoCodeInfo promoCodeInfo, List<CodeAllocationDO> codeAllocationDOList, BlockAssignServiceType type) Functionalities to process and update promocodes information into database.
-
Field Details
-
DEBUG_MESSAGE_FORMAT
- See Also:
-
codeAllocationRepo
Holds the CodeAllocationRepository instance **. -
codeAllocationProcess
Holds the CodeAllocationProcess instance **. -
promotionRepo
Holds the PromotionRepository instance **. -
collectionProcess
Holds the instance for collectionProcess **. -
messageSource
@Autowired public org.springframework.context.MessageSource messageSourceHolds the MessageSource instance **. -
versionProcess
-
-
Constructor Details
-
OfferServiceImplBase
public OfferServiceImplBase()
-
-
Method Details
-
updatePromoCodeInfo
public void updatePromoCodeInfo(PromoCodeInfo promoCodeInfo, List<CodeAllocationDO> codeAllocationDOList, BlockAssignServiceType type) Functionalities to process and update promocodes information into database.- Parameters:
promoCodeInfo- Instance ofPromoCodeInfocodeAllocationDOList- Instance ofList<CodeAllocationDO>type- defines the type of operation. One ofBlockAssignServiceType
-
isValidRequest
Functionality to validate the request.- Parameters:
request- Instance ofPromotionOfferDOresponse- Instance ofPromoCodeState- Returns:
- A boolean value
-
getPromotion
Gets the promotion.- Parameters:
codeAllocation- Instance ofCodeAllocationorderCreatedTime-- Returns:
- Instance of
Promotion
-