Subversion Repositories SmartDukaan

Rev

Rev 3385 | Rev 3499 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3385 Rev 3428
Line 325... Line 325...
325
 
325
 
326
/**
326
/**
327
Promotion Service
327
Promotion Service
328
*/
328
*/
329
service PromotionService extends GenericService.GenericService{
329
service PromotionService extends GenericService.GenericService{
330
	/**
-
 
331
	* For closing the open session in sqlalchemy
-
 
332
	*/
-
 
333
	void closeSession(),
-
 
334
	
-
 
335
	void createPromotion(1:string name, 2:string ruleExecutionSrc, 3:i64 startOn, 4:i64 endOn) throws (1:PromotionException pex),
330
	void createPromotion(1:string name, 2:string ruleExecutionSrc, 3:i64 startOn, 4:i64 endOn) throws (1:PromotionException pex),
336
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
331
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
337
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
332
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
338
	void generateCouponsForPromotion(1:i64 promotionId, 2:string couponCode) throws (1:PromotionException pex),
333
	void generateCouponsForPromotion(1:i64 promotionId, 2:string couponCode) throws (1:PromotionException pex),
339
	Cart applyCoupon(1:string couponCode, 2:i64 cartId) throws (1:PromotionException pex),
334
	Cart applyCoupon(1:string couponCode, 2:i64 cartId) throws (1:PromotionException pex),