Subversion Repositories SmartDukaan

Rev

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

Rev 6497 Rev 6561
Line 309... Line 309...
309
     Returns a list of active coupons
309
     Returns a list of active coupons
310
     */
310
     */
311
    list<Coupon> getActiveCoupons() throws (1:PromotionException pex),
311
    list<Coupon> getActiveCoupons() throws (1:PromotionException pex),
312
    
312
    
313
    /**
313
    /**
314
     Creates a coupon and returns couponcode if successfully created
314
     Creates a coupon with prefix (optional, pass null)and returns couponcode if successfully created.
315
     */
315
     */
316
    string createCoupon(1:i64 promotionId, 2:i64 endOn, 3:string email, 4:i64 amount, 5:bool isCod, 6:i64 usage) throws (1:PromotionException pex),
316
    string createCoupon(1:i64 promotionId, 2:i64 endOn, 3:string email, 4:i64 amount, 5:bool isCod, 6:i64 usage,  7:string prefix) throws (1:PromotionException pex),
317
    
317
    
318
    /**
318
    /**
319
     Returns the count of successful payments done using a given coupon
319
     Returns the count of successful payments done using a given coupon
320
     */
320
     */
321
    i64 getSuccessfulPaymentCountForCoupon(1:string couponCode) throws (1:PromotionException pex),
321
    i64 getSuccessfulPaymentCountForCoupon(1:string couponCode) throws (1:PromotionException pex),