Subversion Repositories SmartDukaan

Rev

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

Rev 8707 Rev 11819
Line 23... Line 23...
23
  print 'Functions:'
23
  print 'Functions:'
24
  print '  void createPromotion(string name, string ruleExecutionSrc, i64 startOn, i64 endOn)'
24
  print '  void createPromotion(string name, string ruleExecutionSrc, i64 startOn, i64 endOn)'
25
  print '  i64 removeAllCouponsByPromotionId(i64 promotionId)'
25
  print '  i64 removeAllCouponsByPromotionId(i64 promotionId)'
26
  print '  Coupon getCoupon(string couponCode)'
26
  print '  Coupon getCoupon(string couponCode)'
27
  print '  bool isGiftVoucher(string couponCode)'
27
  print '  bool isGiftVoucher(string couponCode)'
28
  print '  bool isCodApplicable(string couponCode)'
28
  print '  bool isCodApplicable(Cart cart)'
29
  print '   getAllPromotions()'
29
  print '   getAllPromotions()'
30
  print '  Promotion getPromotionById(i64 promotionId)'
30
  print '  Promotion getPromotionById(i64 promotionId)'
31
  print '  void generateCouponsForPromotion(i64 promotionId, string couponCode)'
31
  print '  void generateCouponsForPromotion(i64 promotionId, string couponCode)'
32
  print '  Cart applyCoupon(string couponCode, i64 cartId)'
32
  print '  Cart applyCoupon(string couponCode, i64 cartId)'
33
  print '   getEmiDiscount(i64 cartId)'
33
  print '   getEmiDiscount(i64 cartId)'
Line 122... Line 122...
122
 
122
 
123
elif cmd == 'isCodApplicable':
123
elif cmd == 'isCodApplicable':
124
  if len(args) != 1:
124
  if len(args) != 1:
125
    print 'isCodApplicable requires 1 args'
125
    print 'isCodApplicable requires 1 args'
126
    sys.exit(1)
126
    sys.exit(1)
127
  pp.pprint(client.isCodApplicable(args[0],))
127
  pp.pprint(client.isCodApplicable(eval(args[0]),))
128
 
128
 
129
elif cmd == 'getAllPromotions':
129
elif cmd == 'getAllPromotions':
130
  if len(args) != 0:
130
  if len(args) != 0:
131
    print 'getAllPromotions requires 0 args'
131
    print 'getAllPromotions requires 0 args'
132
    sys.exit(1)
132
    sys.exit(1)