Subversion Repositories SmartDukaan

Rev

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

Rev 14780 Rev 19691
Line 205... Line 205...
205
  print '   getAllFbgListedItems()'
205
  print '   getAllFbgListedItems()'
206
  print '   checkServices( lines)'
206
  print '   checkServices( lines)'
207
  print '  void addHsItem( hsItems)'
207
  print '  void addHsItem( hsItems)'
208
  print '  HsItem getHsItem(string hsItemId)'
208
  print '  HsItem getHsItem(string hsItemId)'
209
  print '  void updateHsItem(HsItem hsItem)'
209
  print '  void updateHsItem(HsItem hsItem)'
210
  print '  Item getPricingForDtr(i64 catalogItemId)'
210
  print '  DtrPricing getPricingForDtr(i64 catalogItemId)'
-
 
211
  print '   getAllItemstoListOnFbd()'
-
 
212
  print '   getAllFbdListedItems()'
-
 
213
  print '   getBulkPricingForItems( itemIds)'
-
 
214
  print '  BulkItemPricing addBulkPricingForItem(BulkItemPricing bulkItemPricing)'
-
 
215
  print '  bool deleteBulkPricingForItemById(i64 id)'
-
 
216
  print '  bool deleteBulkPricingForItem(i64 item_id)'
-
 
217
  print '   getBulkPricingByItemId(i64 item_id)'
-
 
218
  print '  bool updateBulkPricesOnProduction(i64 item_id,  bulkItemPricingList)'
-
 
219
  print '   getCartByValue( cartIds)'
-
 
220
  print '  bool updateItemPricing( itemPricingList)'
-
 
221
  print '  void bulkUpdateCatalog( bulkUploadCatalog)'
-
 
222
  print '   getWarrantyInfoForItem(i64 itemId, ItemCondition itemCondition)'
211
  print ''
223
  print ''
212
  sys.exit(0)
224
  sys.exit(0)
213
 
225
 
214
pp = pprint.PrettyPrinter(indent = 2)
226
pp = pprint.PrettyPrinter(indent = 2)
215
host = 'localhost'
227
host = 'localhost'
Line 1378... Line 1390...
1378
  if len(args) != 1:
1390
  if len(args) != 1:
1379
    print 'getPricingForDtr requires 1 args'
1391
    print 'getPricingForDtr requires 1 args'
1380
    sys.exit(1)
1392
    sys.exit(1)
1381
  pp.pprint(client.getPricingForDtr(eval(args[0]),))
1393
  pp.pprint(client.getPricingForDtr(eval(args[0]),))
1382
 
1394
 
-
 
1395
elif cmd == 'getAllItemstoListOnFbd':
-
 
1396
  if len(args) != 0:
-
 
1397
    print 'getAllItemstoListOnFbd requires 0 args'
-
 
1398
    sys.exit(1)
-
 
1399
  pp.pprint(client.getAllItemstoListOnFbd())
-
 
1400
 
-
 
1401
elif cmd == 'getAllFbdListedItems':
-
 
1402
  if len(args) != 0:
-
 
1403
    print 'getAllFbdListedItems requires 0 args'
-
 
1404
    sys.exit(1)
-
 
1405
  pp.pprint(client.getAllFbdListedItems())
-
 
1406
 
-
 
1407
elif cmd == 'getBulkPricingForItems':
-
 
1408
  if len(args) != 1:
-
 
1409
    print 'getBulkPricingForItems requires 1 args'
-
 
1410
    sys.exit(1)
-
 
1411
  pp.pprint(client.getBulkPricingForItems(eval(args[0]),))
-
 
1412
 
-
 
1413
elif cmd == 'addBulkPricingForItem':
-
 
1414
  if len(args) != 1:
-
 
1415
    print 'addBulkPricingForItem requires 1 args'
-
 
1416
    sys.exit(1)
-
 
1417
  pp.pprint(client.addBulkPricingForItem(eval(args[0]),))
-
 
1418
 
-
 
1419
elif cmd == 'deleteBulkPricingForItemById':
-
 
1420
  if len(args) != 1:
-
 
1421
    print 'deleteBulkPricingForItemById requires 1 args'
-
 
1422
    sys.exit(1)
-
 
1423
  pp.pprint(client.deleteBulkPricingForItemById(eval(args[0]),))
-
 
1424
 
-
 
1425
elif cmd == 'deleteBulkPricingForItem':
-
 
1426
  if len(args) != 1:
-
 
1427
    print 'deleteBulkPricingForItem requires 1 args'
-
 
1428
    sys.exit(1)
-
 
1429
  pp.pprint(client.deleteBulkPricingForItem(eval(args[0]),))
-
 
1430
 
-
 
1431
elif cmd == 'getBulkPricingByItemId':
-
 
1432
  if len(args) != 1:
-
 
1433
    print 'getBulkPricingByItemId requires 1 args'
-
 
1434
    sys.exit(1)
-
 
1435
  pp.pprint(client.getBulkPricingByItemId(eval(args[0]),))
-
 
1436
 
-
 
1437
elif cmd == 'updateBulkPricesOnProduction':
-
 
1438
  if len(args) != 2:
-
 
1439
    print 'updateBulkPricesOnProduction requires 2 args'
-
 
1440
    sys.exit(1)
-
 
1441
  pp.pprint(client.updateBulkPricesOnProduction(eval(args[0]),eval(args[1]),))
-
 
1442
 
-
 
1443
elif cmd == 'getCartByValue':
-
 
1444
  if len(args) != 1:
-
 
1445
    print 'getCartByValue requires 1 args'
-
 
1446
    sys.exit(1)
-
 
1447
  pp.pprint(client.getCartByValue(eval(args[0]),))
-
 
1448
 
-
 
1449
elif cmd == 'updateItemPricing':
-
 
1450
  if len(args) != 1:
-
 
1451
    print 'updateItemPricing requires 1 args'
-
 
1452
    sys.exit(1)
-
 
1453
  pp.pprint(client.updateItemPricing(eval(args[0]),))
-
 
1454
 
-
 
1455
elif cmd == 'bulkUpdateCatalog':
-
 
1456
  if len(args) != 1:
-
 
1457
    print 'bulkUpdateCatalog requires 1 args'
-
 
1458
    sys.exit(1)
-
 
1459
  pp.pprint(client.bulkUpdateCatalog(eval(args[0]),))
-
 
1460
 
-
 
1461
elif cmd == 'getWarrantyInfoForItem':
-
 
1462
  if len(args) != 2:
-
 
1463
    print 'getWarrantyInfoForItem requires 2 args'
-
 
1464
    sys.exit(1)
-
 
1465
  pp.pprint(client.getWarrantyInfoForItem(eval(args[0]),eval(args[1]),))
-
 
1466
 
1383
else:
1467
else:
1384
  print 'Unrecognized method %s' % cmd
1468
  print 'Unrecognized method %s' % cmd
1385
  sys.exit(1)
1469
  sys.exit(1)
1386
 
1470
 
1387
transport.close()
1471
transport.close()