Subversion Repositories SmartDukaan

Rev

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

Rev 6188 Rev 6206
Line 154... Line 154...
154
  print '  bool updateRechargeOrderStatus(i64 rechargeOrderId, RechargeOrderStatus rechargeOrderStatus)'
154
  print '  bool updateRechargeOrderStatus(i64 rechargeOrderId, RechargeOrderStatus rechargeOrderStatus)'
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)'
159
  print '   getServiceProviders(RechargeType rechargeType, bool onlyActive)'
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 '  RechargeStatistics getRechargeStatistics()'
163
  print '  RechargeStatistics getRechargeStatistics()'
164
  print '   getRechargeOrdersForStatus(i64 status)'
164
  print '   getRechargeOrdersForStatus(i64 status)'
Line 1022... Line 1022...
1022
    print 'getRechargeOrdersForTransaction requires 1 args'
1022
    print 'getRechargeOrdersForTransaction requires 1 args'
1023
    sys.exit(1)
1023
    sys.exit(1)
1024
  pp.pprint(client.getRechargeOrdersForTransaction(eval(args[0]),))
1024
  pp.pprint(client.getRechargeOrdersForTransaction(eval(args[0]),))
1025
 
1025
 
1026
elif cmd == 'getServiceProviders':
1026
elif cmd == 'getServiceProviders':
1027
  if len(args) != 1:
1027
  if len(args) != 2:
1028
    print 'getServiceProviders requires 1 args'
1028
    print 'getServiceProviders requires 2 args'
1029
    sys.exit(1)
1029
    sys.exit(1)
1030
  pp.pprint(client.getServiceProviders(eval(args[0]),))
1030
  pp.pprint(client.getServiceProviders(eval(args[0]),eval(args[1]),))
1031
 
1031
 
1032
elif cmd == 'getServiceProviderForDevice':
1032
elif cmd == 'getServiceProviderForDevice':
1033
  if len(args) != 2:
1033
  if len(args) != 2:
1034
    print 'getServiceProviderForDevice requires 2 args'
1034
    print 'getServiceProviderForDevice requires 2 args'
1035
    sys.exit(1)
1035
    sys.exit(1)