Subversion Repositories SmartDukaan

Rev

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

Rev 6301 Rev 6356
Line 294... Line 294...
294
*/
294
*/
295
service PromotionService extends GenericService.GenericService{
295
service PromotionService extends GenericService.GenericService{
296
	void createPromotion(1:string name, 2:string ruleExecutionSrc, 3:i64 startOn, 4:i64 endOn) throws (1:PromotionException pex),
296
	void createPromotion(1:string name, 2:string ruleExecutionSrc, 3:i64 startOn, 4:i64 endOn) throws (1:PromotionException pex),
297
	Coupon getCoupon(1:string couponCode) throws (1:PromotionException pex),
297
	Coupon getCoupon(1:string couponCode) throws (1:PromotionException pex),
298
	bool isGiftVoucher(1:string couponCode) throws (1:PromotionException pex),
298
	bool isGiftVoucher(1:string couponCode) throws (1:PromotionException pex),
-
 
299
	bool isCodApplicable(1:string couponCode) throws (1:PromotionException pex),
299
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
300
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
300
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
301
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
301
	void generateCouponsForPromotion(1:i64 promotionId, 2:string couponCode) throws (1:PromotionException pex),
302
	void generateCouponsForPromotion(1:i64 promotionId, 2:string couponCode) throws (1:PromotionException pex),
302
	Cart applyCoupon(1:string couponCode, 2:i64 cartId) throws (1:PromotionException pex),
303
	Cart applyCoupon(1:string couponCode, 2:i64 cartId) throws (1:PromotionException pex),
303
    void trackCouponUsage(1:string couponCode, 2:i64 transactionId, 3:i64 userId) throws (1:PromotionException pex),
304
    void trackCouponUsage(1:string couponCode, 2:i64 transactionId, 3:i64 userId) throws (1:PromotionException pex),
Line 309... Line 310...
309
    list<Coupon> getActiveCoupons() throws (1:PromotionException pex),
310
    list<Coupon> getActiveCoupons() throws (1:PromotionException pex),
310
    
311
    
311
    /**
312
    /**
312
     Creates a coupon and returns couponcode if successfully created
313
     Creates a coupon and returns couponcode if successfully created
313
     */
314
     */
314
    string createCoupon(1:i64 promotionId, 2:i64 endOn, 3:string email, 4:i64 amount, 5:i64 usage) throws (1:PromotionException pex),
315
    string createCoupon(1:i64 promotionId, 2:i64 endOn, 3:string email, 4:i64 amount, 5:bool isCod, 6:i64 usage) throws (1:PromotionException pex),
315
    
316
    
316
    /**
317
    /**
317
     Returns the count of successful payments done using a given coupon
318
     Returns the count of successful payments done using a given coupon
318
     */
319
     */
319
    i64 getSuccessfulPaymentCountForCoupon(1:string couponCode) throws (1:PromotionException pex),
320
    i64 getSuccessfulPaymentCountForCoupon(1:string couponCode) throws (1:PromotionException pex),