Subversion Repositories SmartDukaan

Rev

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

Rev 7151 Rev 7169
Line 180... Line 180...
180
  print '  RechargeTransaction getRechargeTransaction(i64 rechargeId)'
180
  print '  RechargeTransaction getRechargeTransaction(i64 rechargeId)'
181
  print '   getFRCs(i64 circleId, i64 operatorId)'
181
  print '   getFRCs(i64 circleId, i64 operatorId)'
182
  print '  HotspotStore getHotspotStore(i64 id, string hotspotid)'
182
  print '  HotspotStore getHotspotStore(i64 id, string hotspotid)'
183
  print '  TelecomCircle getTelecomCircle(i64 id, string code)'
183
  print '  TelecomCircle getTelecomCircle(i64 id, string code)'
184
  print '  string retrieveHotspotRechargeInvoice(i64 rechargeId)'
184
  print '  string retrieveHotspotRechargeInvoice(i64 rechargeId)'
-
 
185
  print '   getRechargeTransactionsByNumber(string number)'
-
 
186
  print '  bool updateHotspotStorePassword(i64 storeId, string password)'
185
  print ''
187
  print ''
186
  sys.exit(0)
188
  sys.exit(0)
187
 
189
 
188
pp = pprint.PrettyPrinter(indent = 2)
190
pp = pprint.PrettyPrinter(indent = 2)
189
host = 'localhost'
191
host = 'localhost'
Line 1196... Line 1198...
1196
  if len(args) != 1:
1198
  if len(args) != 1:
1197
    print 'retrieveHotspotRechargeInvoice requires 1 args'
1199
    print 'retrieveHotspotRechargeInvoice requires 1 args'
1198
    sys.exit(1)
1200
    sys.exit(1)
1199
  pp.pprint(client.retrieveHotspotRechargeInvoice(eval(args[0]),))
1201
  pp.pprint(client.retrieveHotspotRechargeInvoice(eval(args[0]),))
1200
 
1202
 
-
 
1203
elif cmd == 'getRechargeTransactionsByNumber':
-
 
1204
  if len(args) != 1:
-
 
1205
    print 'getRechargeTransactionsByNumber requires 1 args'
-
 
1206
    sys.exit(1)
-
 
1207
  pp.pprint(client.getRechargeTransactionsByNumber(args[0],))
-
 
1208
 
-
 
1209
elif cmd == 'updateHotspotStorePassword':
-
 
1210
  if len(args) != 2:
-
 
1211
    print 'updateHotspotStorePassword requires 2 args'
-
 
1212
    sys.exit(1)
-
 
1213
  pp.pprint(client.updateHotspotStorePassword(eval(args[0]),args[1],))
-
 
1214
 
1201
else:
1215
else:
1202
  print 'Unrecognized method %s' % cmd
1216
  print 'Unrecognized method %s' % cmd
1203
  sys.exit(1)
1217
  sys.exit(1)
1204
 
1218
 
1205
transport.close()
1219
transport.close()