Subversion Repositories SmartDukaan

Rev

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

Rev 6269 Rev 6289
Line 155... Line 155...
155
  print '  bool activateRechargeTxn(i64 rechargeOrderId)'
155
  print '  bool activateRechargeTxn(i64 rechargeOrderId)'
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 '  i64 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)'
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 ''
168
  print ''
168
  sys.exit(0)
169
  sys.exit(0)
169
 
170
 
170
pp = pprint.PrettyPrinter(indent = 2)
171
pp = pprint.PrettyPrinter(indent = 2)
171
host = 'localhost'
172
host = 'localhost'
Line 1070... Line 1071...
1070
  if len(args) != 1:
1071
  if len(args) != 1:
1071
    print 'getPlansForOperator requires 1 args'
1072
    print 'getPlansForOperator requires 1 args'
1072
    sys.exit(1)
1073
    sys.exit(1)
1073
  pp.pprint(client.getPlansForOperator(eval(args[0]),))
1074
  pp.pprint(client.getPlansForOperator(eval(args[0]),))
1074
 
1075
 
-
 
1076
elif cmd == 'getRechargeDenominations':
-
 
1077
  if len(args) != 3:
-
 
1078
    print 'getRechargeDenominations requires 3 args'
-
 
1079
    sys.exit(1)
-
 
1080
  pp.pprint(client.getRechargeDenominations(eval(args[0]),args[1],eval(args[2]),))
-
 
1081
 
1075
else:
1082
else:
1076
  print 'Unrecognized method %s' % cmd
1083
  print 'Unrecognized method %s' % cmd
1077
  sys.exit(1)
1084
  sys.exit(1)
1078
 
1085
 
1079
transport.close()
1086
transport.close()