Subversion Repositories SmartDukaan

Rev

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

Rev 6507 Rev 6591
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, i64 userSelectedProviderId)'
161
  print '  string validateRecharge(RechargeType rechargeType, string deviceNumber, i64 userSelectedProviderId, string clientAddress)'
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)'
Line 1040... Line 1040...
1040
    print 'getServiceProviderForDevice requires 2 args'
1040
    print 'getServiceProviderForDevice requires 2 args'
1041
    sys.exit(1)
1041
    sys.exit(1)
1042
  pp.pprint(client.getServiceProviderForDevice(eval(args[0]),args[1],))
1042
  pp.pprint(client.getServiceProviderForDevice(eval(args[0]),args[1],))
1043
 
1043
 
1044
elif cmd == 'validateRecharge':
1044
elif cmd == 'validateRecharge':
1045
  if len(args) != 3:
1045
  if len(args) != 4:
1046
    print 'validateRecharge requires 3 args'
1046
    print 'validateRecharge requires 4 args'
1047
    sys.exit(1)
1047
    sys.exit(1)
1048
  pp.pprint(client.validateRecharge(eval(args[0]),args[1],eval(args[2]),))
1048
  pp.pprint(client.validateRecharge(eval(args[0]),args[1],eval(args[2]),args[3],))
1049
 
1049
 
1050
elif cmd == 'getRechargeOrdersForDevice':
1050
elif cmd == 'getRechargeOrdersForDevice':
1051
  if len(args) != 1:
1051
  if len(args) != 1:
1052
    print 'getRechargeOrdersForDevice requires 1 args'
1052
    print 'getRechargeOrdersForDevice requires 1 args'
1053
    sys.exit(1)
1053
    sys.exit(1)