Subversion Repositories SmartDukaan

Rev

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

Rev 11980 Rev 12696
Line 261... Line 261...
261
}
261
}
262
 
262
 
263
/**
263
/**
264
Exceptions for Promotion Service
264
Exceptions for Promotion Service
265
*/
265
*/
-
 
266
 
266
exception PromotionException{
267
exception PromotionException{
267
	1:i64 id,
268
	1:i64 id,
268
	2:string message
269
	2:string message
269
}
270
}
270
 
271
 
Line 279... Line 280...
279
	4:i64 startOn,
280
	4:i64 startOn,
280
	5:i64 endOn,
281
	5:i64 endOn,
281
	6:i64 createdOn
282
	6:i64 createdOn
282
}
283
}
283
 
284
 
-
 
285
 
-
 
286
struct Counter {
-
 
287
	1:i64 id,
-
 
288
	2:string code,
-
 
289
	3:string name,
-
 
290
	4:string ownerName,
-
 
291
	5:string email,
-
 
292
	6:string mobile,
-
 
293
	7:string alternateMobile,
-
 
294
	8:bool striker,
-
 
295
	9:string tin,
-
 
296
	10:i64 spCounterSize,
-
 
297
	11:i64 fpCounterSize,
-
 
298
	12:i64 dob,
-
 
299
	13:i64 addedOn,
-
 
300
	14:i64 address
-
 
301
}
-
 
302
 
284
struct Coupon{
303
struct Coupon{
285
	1:string couponCode,
304
	1:string couponCode, 
286
	2:Promotion promotion,
305
	2:Promotion promotion,
287
	3:string arguments,
306
	3:string arguments,
288
	4:CouponCategory coupon_category
307
	4:CouponCategory coupon_category
289
}
308
}
290
 
309
 
Line 316... Line 335...
316
}
335
}
317
 
336
 
318
struct PrivateDealUser{
337
struct PrivateDealUser{
319
	1:i64 userId,
338
	1:i64 userId,
320
	2:i64 addedOn,
339
	2:i64 addedOn,
321
	3:bool isActive
340
	3:bool isActive,
-
 
341
	4:i64 counterId,
-
 
342
	5:string tin
322
}
343
}
323
 
344
 
324
 
345
 
325
/**
346
/**
326
Promotion Service
347
Promotion Service
Line 579... Line 600...
579
	
600
	
580
	bool changePrivateDealUserStatus(1:i64 userId,2:bool isActive)
601
	bool changePrivateDealUserStatus(1:i64 userId,2:bool isActive)
581
		
602
		
582
	PrivateDealUser getPrivateDealUser(1:i64 userId)
603
	PrivateDealUser getPrivateDealUser(1:i64 userId)
583
	
604
	
584
	
-
 
-
 
605
	map<string,string> registerCounter(1:Counter counter, 2:i64 userId) 
585
	
606
	
586
	
607
	
587
	
608
	
588
}
609
}
589
610