Class EcommPromotionRequestParser
java.lang.Object
com.skava.promotion.ecomm.rule.process.EcommPromotionRequestParser
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHolds total minutes in a hour -
Constructor Summary
ConstructorsConstructorDescriptionEcommPromotionRequestParser(long collectionId, PromotionListProcess promotionListProcess, List<PromotionList> promotionLists) Instantiates a new ecomm promotion rule parser. -
Method Summary
Modifier and TypeMethodDescriptionprotected PromotionCartgetCart(PromotionOfferRequest request) * Provides functionality to get the cart data.getRecurrance(PromotionOfferRequest request) Provides functionality to get the promotion recurrance starttime and endtime data.getStore(PromotionOfferRequest request) Provides functionality to get the store data.protected PromotionUsergetUser(PromotionOfferRequest request) * Functionality to retrieve an user.
-
Field Details
-
TOTALMINUTESINHOUR
public static final int TOTALMINUTESINHOURHolds total minutes in a hour- See Also:
-
-
Constructor Details
-
EcommPromotionRequestParser
public EcommPromotionRequestParser() -
EcommPromotionRequestParser
public EcommPromotionRequestParser(long collectionId, PromotionListProcess promotionListProcess, List<PromotionList> promotionLists) Instantiates a new ecomm promotion rule parser.- Parameters:
collectionId- the collection idpromotionListProcess- the promotion list processpromotionLists- Holds the promotionlists
-
-
Method Details
-
getCart
* Provides functionality to get the cart data.- Parameters:
request- An instance ofPromotionOfferRequest- Returns:
- Returns the instance of
PromotionCart
-
getUser
* Functionality to retrieve an user.- Parameters:
request- Holds the instance ofPromotionOfferRequest- Returns:
- Returns the instance of
PromotionUser
-
getStore
Provides functionality to get the store data.- Parameters:
request- An instance ofPromotionOfferRequest- Returns:
- Returns the instance of
PromotionStore
-
getRecurrance
Provides functionality to get the promotion recurrance starttime and endtime data.- Parameters:
request- An instance ofPromotionOfferRequest- Returns:
- Returns the instance of
PromotionStore
-