Subversion Repositories SmartDukaan

Rev

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

Rev 6730 Rev 6736
Line 210... Line 210...
210
	6:i64 checkedOutOn,		//commited timestamp
210
	6:i64 checkedOutOn,		//commited timestamp
211
	7:i64 addressId,	    //address on which this will be shipped
211
	7:i64 addressId,	    //address on which this will be shipped
212
	8:double totalPrice,
212
	8:double totalPrice,
213
	9:double discountedPrice,
213
	9:double discountedPrice,
214
	10:string couponCode,
214
	10:string couponCode,
215
	11:i64 pickupStoreId
215
	11:i64 pickupStoreId,
-
 
216
	12:string message		//This is introduced to display custom message as and when required to the Website for user display.
216
}
217
}
217
 
218
 
218
enum WidgetType{
219
enum WidgetType{
219
	MY_RESEARCH,
220
	MY_RESEARCH,
220
	BROWSE_HISTORY
221
	BROWSE_HISTORY
Line 297... Line 298...
297
	bool isCodApplicable(1:string couponCode) throws (1:PromotionException pex),
298
	bool isCodApplicable(1:string couponCode) throws (1:PromotionException pex),
298
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
299
	list<Promotion> getAllPromotions() throws (1:PromotionException pex),
299
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
300
	Promotion getPromotionById(1:i64 promotionId) throws (1:PromotionException pex),
300
	void generateCouponsForPromotion(1:i64 promotionId, 2:string couponCode) throws (1:PromotionException pex),
301
	void generateCouponsForPromotion(1:i64 promotionId, 2:string couponCode) throws (1:PromotionException pex),
301
	Cart applyCoupon(1:string couponCode, 2:i64 cartId) throws (1:PromotionException pex),
302
	Cart applyCoupon(1:string couponCode, 2:i64 cartId) throws (1:PromotionException pex),
-
 
303
	map<i64,double>  getEmiDiscount(1:i64 cartId) throws (1:PromotionException pex),
302
	map<i64, string> applyRechargeCoupon(1:string couponCode, 2:i64 totalAmount, 3:i64 userId) throws (1:PromotionException pex),
304
	map<i64, string> applyRechargeCoupon(1:string couponCode, 2:i64 totalAmount, 3:i64 userId) throws (1:PromotionException pex),
303
    void trackCouponUsage(1:string couponCode, 2:i64 transactionId, 3:i64 userId) throws (1:PromotionException pex),
305
    void trackCouponUsage(1:string couponCode, 2:i64 transactionId, 3:i64 userId) throws (1:PromotionException pex),
304
    i64 getCouponUsageCountByUser(1:string couponCode, 2:i64 userId) throws (1:PromotionException pex),
306
    i64 getCouponUsageCountByUser(1:string couponCode, 2:i64 userId) throws (1:PromotionException pex),
305
    list<Coupon> getActiveCodes(1:i64 promotionId) throws (1:PromotionException pex),
307
    list<Coupon> getActiveCodes(1:i64 promotionId) throws (1:PromotionException pex),
306
    void deleteCoupon(1:string couponCode) throws (1:PromotionException pex),
308
    void deleteCoupon(1:string couponCode) throws (1:PromotionException pex),
Line 411... Line 413...
411
	 1. The checkout timestamp is greater than the updatedOn timestamp.
413
	 1. The checkout timestamp is greater than the updatedOn timestamp.
412
	 2. All of the lines in the cart are active items.
414
	 2. All of the lines in the cart are active items.
413
	 3. The estimate for any of the lines in cart doesn't change.
415
	 3. The estimate for any of the lines in cart doesn't change.
414
	 If all three are true, returns empty string; else returns appropriate message.
416
	 If all three are true, returns empty string; else returns appropriate message.
415
	*/
417
	*/
416
	string validateCart(1:i64 cartId, 2:i64 sourceId) throws (1:ShoppingCartException scex),
418
	list<string> validateCart(1:i64 cartId, 2:i64 sourceId) throws (1:ShoppingCartException scex),
417
	
419
	
418
	/**
420
	/**
419
	 Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
421
	 Merges the lines from the first cart into the second cart. Lines with duplicate items are removed.
420
	*/
422
	*/
421
	void mergeCart(1:i64 fromCartId, 2:i64 toCartId),
423
	void mergeCart(1:i64 fromCartId, 2:i64 toCartId),