Subversion Repositories SmartDukaan

Rev

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

Rev 7267 Rev 7285
Line 183... Line 183...
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 '  Order splitFreebieOrder(i64 orderId, string splitReason, i64 shippingDate)'
185
  print '  Order splitFreebieOrder(i64 orderId, string splitReason, i64 shippingDate)'
186
  print '   getRechargeTransactionsByNumber(string number, i64 storeId)'
186
  print '   getRechargeTransactionsByNumber(string number, i64 storeId)'
187
  print '  bool updateHotspotStorePassword(i64 storeId, string password)'
187
  print '  bool updateHotspotStorePassword(i64 storeId, string password)'
-
 
188
  print '  i64 topupCompanyWallet(i64 companyId, i64 amount)'
-
 
189
  print '  i64 getWalletBalanceForCompany(i64 companyId)'
188
  print '  SourceDetail getSourceDetail(i64 source)'
190
  print '  SourceDetail getSourceDetail(i64 source)'
189
  print '   getAllCircles()'
-
 
190
  print '  bool deleteFrcs( frcIdsToDelete)'
-
 
191
  print ''
191
  print ''
192
  sys.exit(0)
192
  sys.exit(0)
193
 
193
 
194
pp = pprint.PrettyPrinter(indent = 2)
194
pp = pprint.PrettyPrinter(indent = 2)
195
host = 'localhost'
195
host = 'localhost'
Line 1220... Line 1220...
1220
  if len(args) != 2:
1220
  if len(args) != 2:
1221
    print 'updateHotspotStorePassword requires 2 args'
1221
    print 'updateHotspotStorePassword requires 2 args'
1222
    sys.exit(1)
1222
    sys.exit(1)
1223
  pp.pprint(client.updateHotspotStorePassword(eval(args[0]),args[1],))
1223
  pp.pprint(client.updateHotspotStorePassword(eval(args[0]),args[1],))
1224
 
1224
 
1225
elif cmd == 'getSourceDetail':
1225
elif cmd == 'topupCompanyWallet':
1226
  if len(args) != 1:
1226
  if len(args) != 2:
1227
    print 'getSourceDetail requires 1 args'
1227
    print 'topupCompanyWallet requires 2 args'
1228
    sys.exit(1)
1228
    sys.exit(1)
1229
  pp.pprint(client.getSourceDetail(eval(args[0]),))
1229
  pp.pprint(client.topupCompanyWallet(eval(args[0]),eval(args[1]),))
1230
 
1230
 
1231
elif cmd == 'getAllCircles':
1231
elif cmd == 'getWalletBalanceForCompany':
1232
  if len(args) != 0:
1232
  if len(args) != 1:
1233
    print 'getAllCircles requires 0 args'
1233
    print 'getWalletBalanceForCompany requires 1 args'
1234
    sys.exit(1)
1234
    sys.exit(1)
1235
  pp.pprint(client.getAllCircles())
1235
  pp.pprint(client.getWalletBalanceForCompany(eval(args[0]),))
1236
 
1236
 
1237
elif cmd == 'deleteFrcs':
1237
elif cmd == 'getSourceDetail':
1238
  if len(args) != 1:
1238
  if len(args) != 1:
1239
    print 'deleteFrcs requires 1 args'
1239
    print 'getSourceDetail requires 1 args'
1240
    sys.exit(1)
1240
    sys.exit(1)
1241
  pp.pprint(client.deleteFrcs(eval(args[0]),))
1241
  pp.pprint(client.getSourceDetail(eval(args[0]),))
1242
 
1242
 
1243
else:
1243
else:
1244
  print 'Unrecognized method %s' % cmd
1244
  print 'Unrecognized method %s' % cmd
1245
  sys.exit(1)
1245
  sys.exit(1)
1246
 
1246