Subversion Repositories SmartDukaan

Rev

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

Rev 21134 Rev 21844
Line 338... Line 338...
338
  print '  string updatePmsaUser(Pmsa pmsa, string associateEmail)'
338
  print '  string updatePmsaUser(Pmsa pmsa, string associateEmail)'
339
  print '   getPmsaUsers(string associateEmail)'
339
  print '   getPmsaUsers(string associateEmail)'
340
  print '   getPendingAssociates(string associateEmail)'
340
  print '   getPendingAssociates(string associateEmail)'
341
  print '   getStatsForAssociates(string associateEmail)'
341
  print '   getStatsForAssociates(string associateEmail)'
342
  print '  Pmsa getmypmsaprofile(string associateEmail)'
342
  print '  Pmsa getmypmsaprofile(string associateEmail)'
343
  print '  bool creditUserWallet(i64 userId, i64 amount)'
343
  print '  bool creditUserWallet(i64 userId, i64 amount, double cash_back)'
-
 
344
  print '   getPaginatedRechargeOrders(i64 userId, i32 offset, i32 limit)'
344
  print ''
345
  print ''
345
  sys.exit(0)
346
  sys.exit(0)
346
 
347
 
347
pp = pprint.PrettyPrinter(indent = 2)
348
pp = pprint.PrettyPrinter(indent = 2)
348
host = 'localhost'
349
host = 'localhost'
Line 2304... Line 2305...
2304
    print 'getmypmsaprofile requires 1 args'
2305
    print 'getmypmsaprofile requires 1 args'
2305
    sys.exit(1)
2306
    sys.exit(1)
2306
  pp.pprint(client.getmypmsaprofile(args[0],))
2307
  pp.pprint(client.getmypmsaprofile(args[0],))
2307
 
2308
 
2308
elif cmd == 'creditUserWallet':
2309
elif cmd == 'creditUserWallet':
2309
  if len(args) != 2:
2310
  if len(args) != 3:
2310
    print 'creditUserWallet requires 2 args'
2311
    print 'creditUserWallet requires 3 args'
-
 
2312
    sys.exit(1)
-
 
2313
  pp.pprint(client.creditUserWallet(eval(args[0]),eval(args[1]),eval(args[2]),))
-
 
2314
 
-
 
2315
elif cmd == 'getPaginatedRechargeOrders':
-
 
2316
  if len(args) != 3:
-
 
2317
    print 'getPaginatedRechargeOrders requires 3 args'
2311
    sys.exit(1)
2318
    sys.exit(1)
2312
  pp.pprint(client.creditUserWallet(eval(args[0]),eval(args[1]),))
2319
  pp.pprint(client.getPaginatedRechargeOrders(eval(args[0]),eval(args[1]),eval(args[2]),))
2313
 
2320
 
2314
else:
2321
else:
2315
  print 'Unrecognized method %s' % cmd
2322
  print 'Unrecognized method %s' % cmd
2316
  sys.exit(1)
2323
  sys.exit(1)
2317
 
2324