Subversion Repositories SmartDukaan

Rev

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

Rev 6289 Rev 6307
Line 156... Line 156...
156
  print '  UserWallet getUserWallet(i64 userId)'
156
  print '  UserWallet getUserWallet(i64 userId)'
157
  print '   getUserWalletHistory(i64 userId)'
157
  print '   getUserWalletHistory(i64 userId)'
158
  print '  RechargeOrder getRechargeOrdersForTransaction(i64 txnId)'
158
  print '  RechargeOrder getRechargeOrdersForTransaction(i64 txnId)'
159
  print '   getServiceProviders(RechargeType rechargeType, bool onlyActive)'
159
  print '   getServiceProviders(RechargeType rechargeType, bool onlyActive)'
160
  print '  DeviceNumberInfo getServiceProviderForDevice(RechargeType rechargeType, string deviceNumber)'
160
  print '  DeviceNumberInfo getServiceProviderForDevice(RechargeType rechargeType, string deviceNumber)'
161
  print '  string validateRecharge(RechargeType rechargeType, string deviceNumber)'
161
  print '  string validateRecharge(RechargeType rechargeType, string deviceNumber, string circleCode, i64 userSelectedProviderId)'
162
  print '   getRechargeOrdersForDevice(string deviceNumber)'
162
  print '   getRechargeOrdersForDevice(string deviceNumber)'
163
  print '  void addAmountToWallet(i64 userId, i64 orderId, i64 amount)'
163
  print '  void addAmountToWallet(i64 userId, i64 orderId, i64 amount)'
164
  print '  RechargeStatistics getRechargeStatistics()'
164
  print '  RechargeStatistics getRechargeStatistics()'
165
  print '   getRechargeOrdersForStatus(i64 status)'
165
  print '   getRechargeOrdersForStatus(i64 status)'
166
  print '   getPlansForOperator(i64 operatorId)'
166
  print '   getPlansForOperator(i64 operatorId)'
167
  print '   getRechargeDenominations(i64 operatorId, string circleName, DenominationType denominationType)'
167
  print '   getRechargeDenominations(i64 operatorId, string circleCode, DenominationType denominationType)'
168
  print ''
168
  print ''
169
  sys.exit(0)
169
  sys.exit(0)
170
 
170
 
171
pp = pprint.PrettyPrinter(indent = 2)
171
pp = pprint.PrettyPrinter(indent = 2)
172
host = 'localhost'
172
host = 'localhost'
Line 1036... Line 1036...
1036
    print 'getServiceProviderForDevice requires 2 args'
1036
    print 'getServiceProviderForDevice requires 2 args'
1037
    sys.exit(1)
1037
    sys.exit(1)
1038
  pp.pprint(client.getServiceProviderForDevice(eval(args[0]),args[1],))
1038
  pp.pprint(client.getServiceProviderForDevice(eval(args[0]),args[1],))
1039
 
1039
 
1040
elif cmd == 'validateRecharge':
1040
elif cmd == 'validateRecharge':
1041
  if len(args) != 2:
1041
  if len(args) != 4:
1042
    print 'validateRecharge requires 2 args'
1042
    print 'validateRecharge requires 4 args'
1043
    sys.exit(1)
1043
    sys.exit(1)
1044
  pp.pprint(client.validateRecharge(eval(args[0]),args[1],))
1044
  pp.pprint(client.validateRecharge(eval(args[0]),args[1],args[2],eval(args[3]),))
1045
 
1045
 
1046
elif cmd == 'getRechargeOrdersForDevice':
1046
elif cmd == 'getRechargeOrdersForDevice':
1047
  if len(args) != 1:
1047
  if len(args) != 1:
1048
    print 'getRechargeOrdersForDevice requires 1 args'
1048
    print 'getRechargeOrdersForDevice requires 1 args'
1049
    sys.exit(1)
1049
    sys.exit(1)