Subversion Repositories SmartDukaan

Rev

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

Rev 18530 Rev 18590
Line 106... Line 106...
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)'
109
  print '  bool isTaxInvoiceCounter(i64 userId)'
110
  print '  Address getBillingAddressForUser(i64 userId)'
110
  print '  Address getBillingAddressForUser(i64 userId)'
-
 
111
  print '  bool isCreditorAssigned(i64 userId)'
111
  print ''
112
  print ''
112
  sys.exit(0)
113
  sys.exit(0)
113
 
114
 
114
pp = pprint.PrettyPrinter(indent = 2)
115
pp = pprint.PrettyPrinter(indent = 2)
115
host = 'localhost'
116
host = 'localhost'
Line 678... Line 679...
678
  if len(args) != 1:
679
  if len(args) != 1:
679
    print 'getBillingAddressForUser requires 1 args'
680
    print 'getBillingAddressForUser requires 1 args'
680
    sys.exit(1)
681
    sys.exit(1)
681
  pp.pprint(client.getBillingAddressForUser(eval(args[0]),))
682
  pp.pprint(client.getBillingAddressForUser(eval(args[0]),))
682
 
683
 
-
 
684
elif cmd == 'isCreditorAssigned':
-
 
685
  if len(args) != 1:
-
 
686
    print 'isCreditorAssigned requires 1 args'
-
 
687
    sys.exit(1)
-
 
688
  pp.pprint(client.isCreditorAssigned(eval(args[0]),))
-
 
689
 
683
else:
690
else:
684
  print 'Unrecognized method %s' % cmd
691
  print 'Unrecognized method %s' % cmd
685
  sys.exit(1)
692
  sys.exit(1)
686
 
693
 
687
transport.close()
694
transport.close()