Subversion Repositories SmartDukaan

Rev

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

Rev 7272 Rev 7306
Line 106... Line 106...
106
  print '  i64 getFreebieForItem(i64 itemId)'
106
  print '  i64 getFreebieForItem(i64 itemId)'
107
  print '  void addOrUpdateFreebieForItem(FreebieItem freebieItem)'
107
  print '  void addOrUpdateFreebieForItem(FreebieItem freebieItem)'
108
  print '  void addOrUpdateBrandInfo(BrandInfo brandInfo)'
108
  print '  void addOrUpdateBrandInfo(BrandInfo brandInfo)'
109
  print '   getBrandInfo()'
109
  print '   getBrandInfo()'
110
  print '  StorePricing getStorePricing(i64 itemId)'
110
  print '  StorePricing getStorePricing(i64 itemId)'
-
 
111
  print '   getStorePricings( itemIds)'
111
  print '  void updateStorePricing(StorePricing sp)'
112
  print '  void updateStorePricing(StorePricing sp)'
-
 
113
  print '   getAllAmazonListedItems()'
-
 
114
  print '  Amazonlisted getAmazonItemDetails(i64 itemId)'
-
 
115
  print '  void updateAmazonItemDetails(i64 itemId, double fbaPrice, double sellingPrice, bool isFba, bool isNonFba, bool isInventoryOverride)'
-
 
116
  print '  void addAmazonItem(Amazonlisted amazonlisted)'
-
 
117
  print '   getAsinItems()'
-
 
118
  print '   getAllFbaListedItems()'
-
 
119
  print '   getAllNonFbaListedItems()'
112
  print ''
120
  print ''
113
  sys.exit(0)
121
  sys.exit(0)
114
 
122
 
115
pp = pprint.PrettyPrinter(indent = 2)
123
pp = pprint.PrettyPrinter(indent = 2)
116
host = 'localhost'
124
host = 'localhost'
Line 679... Line 687...
679
  if len(args) != 1:
687
  if len(args) != 1:
680
    print 'getStorePricing requires 1 args'
688
    print 'getStorePricing requires 1 args'
681
    sys.exit(1)
689
    sys.exit(1)
682
  pp.pprint(client.getStorePricing(eval(args[0]),))
690
  pp.pprint(client.getStorePricing(eval(args[0]),))
683
 
691
 
-
 
692
elif cmd == 'getStorePricings':
-
 
693
  if len(args) != 1:
-
 
694
    print 'getStorePricings requires 1 args'
-
 
695
    sys.exit(1)
-
 
696
  pp.pprint(client.getStorePricings(eval(args[0]),))
-
 
697
 
684
elif cmd == 'updateStorePricing':
698
elif cmd == 'updateStorePricing':
685
  if len(args) != 1:
699
  if len(args) != 1:
686
    print 'updateStorePricing requires 1 args'
700
    print 'updateStorePricing requires 1 args'
687
    sys.exit(1)
701
    sys.exit(1)
688
  pp.pprint(client.updateStorePricing(eval(args[0]),))
702
  pp.pprint(client.updateStorePricing(eval(args[0]),))
689
 
703
 
-
 
704
elif cmd == 'getAllAmazonListedItems':
-
 
705
  if len(args) != 0:
-
 
706
    print 'getAllAmazonListedItems requires 0 args'
-
 
707
    sys.exit(1)
-
 
708
  pp.pprint(client.getAllAmazonListedItems())
-
 
709
 
-
 
710
elif cmd == 'getAmazonItemDetails':
-
 
711
  if len(args) != 1:
-
 
712
    print 'getAmazonItemDetails requires 1 args'
-
 
713
    sys.exit(1)
-
 
714
  pp.pprint(client.getAmazonItemDetails(eval(args[0]),))
-
 
715
 
-
 
716
elif cmd == 'updateAmazonItemDetails':
-
 
717
  if len(args) != 6:
-
 
718
    print 'updateAmazonItemDetails requires 6 args'
-
 
719
    sys.exit(1)
-
 
720
  pp.pprint(client.updateAmazonItemDetails(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
-
 
721
 
-
 
722
elif cmd == 'addAmazonItem':
-
 
723
  if len(args) != 1:
-
 
724
    print 'addAmazonItem requires 1 args'
-
 
725
    sys.exit(1)
-
 
726
  pp.pprint(client.addAmazonItem(eval(args[0]),))
-
 
727
 
-
 
728
elif cmd == 'getAsinItems':
-
 
729
  if len(args) != 0:
-
 
730
    print 'getAsinItems requires 0 args'
-
 
731
    sys.exit(1)
-
 
732
  pp.pprint(client.getAsinItems())
-
 
733
 
-
 
734
elif cmd == 'getAllFbaListedItems':
-
 
735
  if len(args) != 0:
-
 
736
    print 'getAllFbaListedItems requires 0 args'
-
 
737
    sys.exit(1)
-
 
738
  pp.pprint(client.getAllFbaListedItems())
-
 
739
 
-
 
740
elif cmd == 'getAllNonFbaListedItems':
-
 
741
  if len(args) != 0:
-
 
742
    print 'getAllNonFbaListedItems requires 0 args'
-
 
743
    sys.exit(1)
-
 
744
  pp.pprint(client.getAllNonFbaListedItems())
-
 
745
 
690
else:
746
else:
691
  print 'Unrecognized method %s' % cmd
747
  print 'Unrecognized method %s' % cmd
692
  sys.exit(1)
748
  sys.exit(1)
693
 
749
 
694
transport.close()
750
transport.close()