Subversion Repositories SmartDukaan

Rev

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

Rev 3379 Rev 3385
Line 310... Line 310...
310
	6:i64 createdOn
310
	6:i64 createdOn
311
}
311
}
312
 
312
 
313
struct Coupon{
313
struct Coupon{
314
	1:string couponCode
314
	1:string couponCode
315
	2:i64 promotionId
315
	2:Promotion promotion
316
	3:string arguments
316
	3:string arguments
317
}
317
}
318
 
318
 
319
struct PromotionTracking{
319
struct PromotionTracking{
320
	1:string couponCode,
320
	1:string couponCode,
Line 336... Line 336...
336
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
336
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
337
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
337
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
338
	void generateCouponsForPromotion(1:i64 promotionId, 2:string couponCode) throws (1:PromotionException pex),
338
	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),
339
	Cart applyCoupon(1:string couponCode, 2:i64 cartId) throws (1:PromotionException pex),
340
    void trackCouponUsage(1:string couponCode, 2:i64 transactionId, 3:i64 userId) throws (1:PromotionException pex),
340
    void trackCouponUsage(1:string couponCode, 2:i64 transactionId, 3:i64 userId) throws (1:PromotionException pex),
341
    i64 getCouponUsageCountByUser(1:string couponCode, 2:i64 userId) throws (1:PromotionException pex)
341
    i64 getCouponUsageCountByUser(1:string couponCode, 2:i64 userId) throws (1:PromotionException pex),
-
 
342
    
-
 
343
    /**
-
 
344
     Returns a list of active coupons
-
 
345
     */
-
 
346
    list<Coupon> getActiveCoupons() throws (1:PromotionException pex),
-
 
347
    
-
 
348
    /**
-
 
349
     Returns the count of successful payments done using a given coupon
-
 
350
     */
-
 
351
    i64 getSuccessfulPaymentCountForCoupon(1:string couponCode) throws (1:PromotionException pex),
-
 
352
    
-
 
353
    /**
-
 
354
     Returns the doc string of the rule module
-
 
355
     */
-
 
356
    string getRuleDocString(1:string ruleName)
342
}
357
}
343
 
358
 
344
/**
359
/**
345
service
360
service
346
*/
361
*/
Line 472... Line 487...
472
	*/
487
	*/
473
	list<i64> getBrowseHistoryItems(1:i64 userId) throws (1:WidgetException scx),
488
	list<i64> getBrowseHistoryItems(1:i64 userId) throws (1:WidgetException scx),
474
	/**
489
	/**
475
	add item to browse history for a user
490
	add item to browse history for a user
476
	*/
491
	*/
477
	void updateBrowseHistory(1:i64 userId, 2:i64 itemId)
492
	void updateBrowseHistory(1:i64 userId, 2:i64 itemId),
478
		
493
	
-
 
494
	/**
-
 
495
	Returns count of Carts with given coupon applied
-
 
496
	*/
-
 
497
	i64 getCartsWithCouponCount(1:string couponCode)
479
}
498
}
480
499