Subversion Repositories SmartDukaan

Rev

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

Rev 7730 Rev 7967
Line 207... Line 207...
207
  print '   getAllEdcBanks()'
207
  print '   getAllEdcBanks()'
208
  print '  bool saveRefundAmountsForStoreOrder(i64 orderId, i64 storeId, double cashRefundAmount, double cardRefundAmount)'
208
  print '  bool saveRefundAmountsForStoreOrder(i64 orderId, i64 storeId, double cashRefundAmount, double cardRefundAmount)'
209
  print '   getCollectionsForStore(i64 storeId, i64 startDate, i64 endDate)'
209
  print '   getCollectionsForStore(i64 storeId, i64 startDate, i64 endDate)'
210
  print '   getAmazonOrdersToAcknowledge()'
210
  print '   getAmazonOrdersToAcknowledge()'
211
  print '  void changeAmazonOrderStatus(string amazonOrderCode, string status)'
211
  print '  void changeAmazonOrderStatus(string amazonOrderCode, string status)'
212
  print '  bool updateTimestampForAmazonOrder(i64 orderId, i64 expectedDelivery, i64 promisedDelivery, i64 expectedShipping, i64 promisedShipping)'
212
  print '  bool updateTimestampForAmazonOrder( amazonOrderDelivery)'
213
  print '  bool updateSourceDetailTimestamp(i64 id, i64 lastUpdatedOn)'
213
  print '  bool updateSourceDetailTimestamp(i64 id, i64 lastUpdatedOn)'
214
  print '   getOrdersByMobileNumber(string mobileNumber)'
214
  print '   getOrdersByMobileNumber(string mobileNumber)'
215
  print '   getOrdersByAmazonOrderCode(string amazonId)'
215
  print '   getOrdersByAmazonOrderCode(string amazonId)'
216
  print '  bool convertStoreToNormal(i64 orderId)'
216
  print '  bool convertStoreToNormal(i64 orderId)'
-
 
217
  print '  Order updateFreebieItem(i64 orderId, i64 newFreebieItemId)'
-
 
218
  print '   getHotspotServiceMatrices()'
-
 
219
  print '  Order updateOrderAWB(i64 orderId, string airwayBillNo)'
217
  print ''
220
  print ''
218
  sys.exit(0)
221
  sys.exit(0)
219
 
222
 
220
pp = pprint.PrettyPrinter(indent = 2)
223
pp = pprint.PrettyPrinter(indent = 2)
221
host = 'localhost'
224
host = 'localhost'
Line 1391... Line 1394...
1391
    print 'changeAmazonOrderStatus requires 2 args'
1394
    print 'changeAmazonOrderStatus requires 2 args'
1392
    sys.exit(1)
1395
    sys.exit(1)
1393
  pp.pprint(client.changeAmazonOrderStatus(args[0],args[1],))
1396
  pp.pprint(client.changeAmazonOrderStatus(args[0],args[1],))
1394
 
1397
 
1395
elif cmd == 'updateTimestampForAmazonOrder':
1398
elif cmd == 'updateTimestampForAmazonOrder':
1396
  if len(args) != 5:
1399
  if len(args) != 1:
1397
    print 'updateTimestampForAmazonOrder requires 5 args'
1400
    print 'updateTimestampForAmazonOrder requires 1 args'
1398
    sys.exit(1)
1401
    sys.exit(1)
1399
  pp.pprint(client.updateTimestampForAmazonOrder(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),))
1402
  pp.pprint(client.updateTimestampForAmazonOrder(eval(args[0]),))
1400
 
1403
 
1401
elif cmd == 'updateSourceDetailTimestamp':
1404
elif cmd == 'updateSourceDetailTimestamp':
1402
  if len(args) != 2:
1405
  if len(args) != 2:
1403
    print 'updateSourceDetailTimestamp requires 2 args'
1406
    print 'updateSourceDetailTimestamp requires 2 args'
1404
    sys.exit(1)
1407
    sys.exit(1)
Line 1420... Line 1423...
1420
  if len(args) != 1:
1423
  if len(args) != 1:
1421
    print 'convertStoreToNormal requires 1 args'
1424
    print 'convertStoreToNormal requires 1 args'
1422
    sys.exit(1)
1425
    sys.exit(1)
1423
  pp.pprint(client.convertStoreToNormal(eval(args[0]),))
1426
  pp.pprint(client.convertStoreToNormal(eval(args[0]),))
1424
 
1427
 
-
 
1428
elif cmd == 'updateFreebieItem':
-
 
1429
  if len(args) != 2:
-
 
1430
    print 'updateFreebieItem requires 2 args'
-
 
1431
    sys.exit(1)
-
 
1432
  pp.pprint(client.updateFreebieItem(eval(args[0]),eval(args[1]),))
-
 
1433
 
-
 
1434
elif cmd == 'getHotspotServiceMatrices':
-
 
1435
  if len(args) != 0:
-
 
1436
    print 'getHotspotServiceMatrices requires 0 args'
-
 
1437
    sys.exit(1)
-
 
1438
  pp.pprint(client.getHotspotServiceMatrices())
-
 
1439
 
-
 
1440
elif cmd == 'updateOrderAWB':
-
 
1441
  if len(args) != 2:
-
 
1442
    print 'updateOrderAWB requires 2 args'
-
 
1443
    sys.exit(1)
-
 
1444
  pp.pprint(client.updateOrderAWB(eval(args[0]),args[1],))
-
 
1445
 
1425
else:
1446
else:
1426
  print 'Unrecognized method %s' % cmd
1447
  print 'Unrecognized method %s' % cmd
1427
  sys.exit(1)
1448
  sys.exit(1)
1428
 
1449
 
1429
transport.close()
1450
transport.close()