Subversion Repositories SmartDukaan

Rev

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

Rev 6094 Rev 6154
Line 158... Line 158...
158
  print '  RechargeOrder getRechargeOrdersForTransaction(i64 txnId)'
158
  print '  RechargeOrder getRechargeOrdersForTransaction(i64 txnId)'
159
  print '   getServiceProviders(RechargeType rechargeType)'
159
  print '   getServiceProviders(RechargeType rechargeType)'
160
  print '  i64 getServiceProviderForDevice(RechargeType rechargeType, string deviceNumber)'
160
  print '  i64 getServiceProviderForDevice(RechargeType rechargeType, string deviceNumber)'
161
  print '   getRechargeOrdersForDevice(string deviceNumber)'
161
  print '   getRechargeOrdersForDevice(string deviceNumber)'
162
  print '  void addAmountToWallet(i64 userId, i64 orderId, i64 amount)'
162
  print '  void addAmountToWallet(i64 userId, i64 orderId, i64 amount)'
-
 
163
  print '   getRechargeOrdersForStatus(i64 status)'
163
  print ''
164
  print ''
164
  sys.exit(0)
165
  sys.exit(0)
165
 
166
 
166
pp = pprint.PrettyPrinter(indent = 2)
167
pp = pprint.PrettyPrinter(indent = 2)
167
host = 'localhost'
168
host = 'localhost'
Line 1042... Line 1043...
1042
  if len(args) != 3:
1043
  if len(args) != 3:
1043
    print 'addAmountToWallet requires 3 args'
1044
    print 'addAmountToWallet requires 3 args'
1044
    sys.exit(1)
1045
    sys.exit(1)
1045
  pp.pprint(client.addAmountToWallet(eval(args[0]),eval(args[1]),eval(args[2]),))
1046
  pp.pprint(client.addAmountToWallet(eval(args[0]),eval(args[1]),eval(args[2]),))
1046
 
1047
 
-
 
1048
elif cmd == 'getRechargeOrdersForStatus':
-
 
1049
  if len(args) != 1:
-
 
1050
    print 'getRechargeOrdersForStatus requires 1 args'
-
 
1051
    sys.exit(1)
-
 
1052
  pp.pprint(client.getRechargeOrdersForStatus(eval(args[0]),))
-
 
1053
 
1047
else:
1054
else:
1048
  print 'Unrecognized method %s' % cmd
1055
  print 'Unrecognized method %s' % cmd
1049
  sys.exit(1)
1056
  sys.exit(1)
1050
 
1057
 
1051
transport.close()
1058
transport.close()