Subversion Repositories SmartDukaan

Rev

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

Rev 5407 Rev 5469
Line 270... Line 270...
270
	1:i64 itemId,
270
	1:i64 itemId,
271
	2:string couponCode,
271
	2:string couponCode,
272
	3:double discount
272
	3:double discount
273
}
273
}
274
 
274
 
-
 
275
enum VoucherType{
-
 
276
	MOBILE,
-
 
277
	DTH
-
 
278
}
-
 
279
 
-
 
280
struct Voucher{
-
 
281
	1:i64 id,
-
 
282
	2:string voucherCode,
-
 
283
	3:VoucherType voucherType,
-
 
284
	4:i64 issuedOn,
-
 
285
	5:double amount,
-
 
286
	6:i64 expiredOn,
-
 
287
	7:string userEmail
-
 
288
}
-
 
289
 
-
 
290
 
275
/**
291
/**
276
Promotion Service
292
Promotion Service
277
*/
293
*/
278
service PromotionService extends GenericService.GenericService{
294
service PromotionService extends GenericService.GenericService{
279
	void createPromotion(1:string name, 2:string ruleExecutionSrc, 3:i64 startOn, 4:i64 endOn) throws (1:PromotionException pex),
295
	void createPromotion(1:string name, 2:string ruleExecutionSrc, 3:i64 startOn, 4:i64 endOn) throws (1:PromotionException pex),
Line 299... Line 315...
299
     */
315
     */
300
    string getRuleDocString(1:string ruleName),
316
    string getRuleDocString(1:string ruleName),
301
    
317
    
302
    list<ItemCouponDiscount> getItemDiscountMap(1:list<i64> itemIds) throws (1:PromotionException pex),
318
    list<ItemCouponDiscount> getItemDiscountMap(1:list<i64> itemIds) throws (1:PromotionException pex),
303
    
319
    
304
    map<string, double> getDiscountsForEntity(1:i64 entityId)
320
    map<string, double> getDiscountsForEntity(1:i64 entityId),
-
 
321
    
-
 
322
    void addVoucher(1:Voucher voucher),
-
 
323
    Voucher assignVoucher(1:i64 userId, 2:string userEmail, 3:VoucherType voucherType, 4:i64 amount),
-
 
324
    bool markVoucherAsRedeemed(1:string voucherCode, 2:i64 redeemedOn)
305
}
325
}
306
 
326
 
307
/**
327
/**
308
service
328
service
309
*/
329
*/