Subversion Repositories SmartDukaan

Rev

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

Rev 17782 Rev 18530
Line 104... Line 104...
104
  print '   getAllUsersByCounter(i64 counterId)'
104
  print '   getAllUsersByCounter(i64 counterId)'
105
  print '  string getActiveAccessTokenForUser(i64 userId, string source)'
105
  print '  string getActiveAccessTokenForUser(i64 userId, string source)'
106
  print '  bool validateAccessToken(string accessToken)'
106
  print '  bool validateAccessToken(string accessToken)'
107
  print '  bool addItemsToCart(i64 cartId,  itemQty, string couponCode)'
107
  print '  bool addItemsToCart(i64 cartId,  itemQty, string couponCode)'
108
  print '  string validateCartNew(i64 cartId, string pinCode, i64 sourceId)'
108
  print '  string validateCartNew(i64 cartId, string pinCode, i64 sourceId)'
-
 
109
  print '  bool isTaxInvoiceCounter(i64 userId)'
-
 
110
  print '  Address getBillingAddressForUser(i64 userId)'
109
  print ''
111
  print ''
110
  sys.exit(0)
112
  sys.exit(0)
111
 
113
 
112
pp = pprint.PrettyPrinter(indent = 2)
114
pp = pprint.PrettyPrinter(indent = 2)
113
host = 'localhost'
115
host = 'localhost'
Line 664... Line 666...
664
  if len(args) != 3:
666
  if len(args) != 3:
665
    print 'validateCartNew requires 3 args'
667
    print 'validateCartNew requires 3 args'
666
    sys.exit(1)
668
    sys.exit(1)
667
  pp.pprint(client.validateCartNew(eval(args[0]),args[1],eval(args[2]),))
669
  pp.pprint(client.validateCartNew(eval(args[0]),args[1],eval(args[2]),))
668
 
670
 
-
 
671
elif cmd == 'isTaxInvoiceCounter':
-
 
672
  if len(args) != 1:
-
 
673
    print 'isTaxInvoiceCounter requires 1 args'
-
 
674
    sys.exit(1)
-
 
675
  pp.pprint(client.isTaxInvoiceCounter(eval(args[0]),))
-
 
676
 
-
 
677
elif cmd == 'getBillingAddressForUser':
-
 
678
  if len(args) != 1:
-
 
679
    print 'getBillingAddressForUser requires 1 args'
-
 
680
    sys.exit(1)
-
 
681
  pp.pprint(client.getBillingAddressForUser(eval(args[0]),))
-
 
682
 
669
else:
683
else:
670
  print 'Unrecognized method %s' % cmd
684
  print 'Unrecognized method %s' % cmd
671
  sys.exit(1)
685
  sys.exit(1)
672
 
686
 
673
transport.close()
687
transport.close()