Subversion Repositories SmartDukaan

Rev

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

Rev 8201 Rev 8707
Line 44... Line 44...
44
enum AddressType{
44
enum AddressType{
45
	WORK = 0,
45
	WORK = 0,
46
	HOME = 1
46
	HOME = 1
47
}
47
}
48
 
48
 
-
 
49
/** Added by Manish Sharma
-
 
50
*/
-
 
51
enum CouponCategory{
-
 
52
	CUSTOMER_SATISFACTION = 0,
-
 
53
	MARKETING = 1,
-
 
54
	REFUND = 2
-
 
55
}
49
 
56
 
50
/**
57
/**
51
Form types for Contact Us form
58
Form types for Contact Us form
52
*/
59
*/
53
enum UserCommunicationType{
60
enum UserCommunicationType{
Line 261... Line 268...
261
}
268
}
262
 
269
 
263
struct Coupon{
270
struct Coupon{
264
	1:string couponCode,
271
	1:string couponCode,
265
	2:Promotion promotion,
272
	2:Promotion promotion,
266
	3:string arguments
273
	3:string arguments,
-
 
274
	4:CouponCategory coupon_category
267
}
275
}
268
 
276
 
269
struct PromotionTracking{
277
struct PromotionTracking{
270
	1:string couponCode,
278
	1:string couponCode,
271
	2:i64 transactionId,
279
	2:i64 transactionId,
Line 321... Line 329...
321
    list<Coupon> getActiveCoupons() throws (1:PromotionException pex),
329
    list<Coupon> getActiveCoupons() throws (1:PromotionException pex),
322
    
330
    
323
    /**
331
    /**
324
     Creates a coupon with prefix (optional, pass null)and returns couponcode if successfully created.
332
     Creates a coupon with prefix (optional, pass null)and returns couponcode if successfully created.
325
     */
333
     */
326
    string createCoupon(1:i64 promotionId, 2:string couponCode, 3:string arguments 4:bool isCod, 5:string prefix) throws (1:PromotionException pex),
334
    string createCoupon(1:i64 promotionId,2:i64 couponCategory, 3:string couponCode, 4:string arguments 5:bool isCod, 6:string prefix) throws (1:PromotionException pex),
327
    
335
    
328
    /**
336
    /**
329
     Returns the count of successful payments done using a given coupon
337
     Returns the count of successful payments done using a given coupon
330
     */
338
     */
331
    i64 getSuccessfulPaymentCountForCoupon(1:string couponCode) throws (1:PromotionException pex),
339
    i64 getSuccessfulPaymentCountForCoupon(1:string couponCode) throws (1:PromotionException pex),