Subversion Repositories SmartDukaan

Rev

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

Rev 6154 Rev 6159
Line 159... Line 159...
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 '   getRechargeOrdersForStatus(i64 status)'
-
 
164
  print '   getPlansForOperator(i64 operatorId)'
164
  print ''
165
  print ''
165
  sys.exit(0)
166
  sys.exit(0)
166
 
167
 
167
pp = pprint.PrettyPrinter(indent = 2)
168
pp = pprint.PrettyPrinter(indent = 2)
168
host = 'localhost'
169
host = 'localhost'
Line 1049... Line 1050...
1049
  if len(args) != 1:
1050
  if len(args) != 1:
1050
    print 'getRechargeOrdersForStatus requires 1 args'
1051
    print 'getRechargeOrdersForStatus requires 1 args'
1051
    sys.exit(1)
1052
    sys.exit(1)
1052
  pp.pprint(client.getRechargeOrdersForStatus(eval(args[0]),))
1053
  pp.pprint(client.getRechargeOrdersForStatus(eval(args[0]),))
1053
 
1054
 
-
 
1055
elif cmd == 'getPlansForOperator':
-
 
1056
  if len(args) != 1:
-
 
1057
    print 'getPlansForOperator requires 1 args'
-
 
1058
    sys.exit(1)
-
 
1059
  pp.pprint(client.getPlansForOperator(eval(args[0]),))
-
 
1060
 
1054
else:
1061
else:
1055
  print 'Unrecognized method %s' % cmd
1062
  print 'Unrecognized method %s' % cmd
1056
  sys.exit(1)
1063
  sys.exit(1)
1057
 
1064
 
1058
transport.close()
1065
transport.close()