Subversion Repositories SmartDukaan

Rev

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

Rev 5342 Rev 5469
Line 43... Line 43...
43
  print '  string getDefaultPincode(i64 userId)'
43
  print '  string getDefaultPincode(i64 userId)'
44
  print '  bool saveUserCommunication(i64 userId, string replyTo, i64 communicationType, i64 orderId, string airwaybillNo, string productName, string subject, string message)'
44
  print '  bool saveUserCommunication(i64 userId, string replyTo, i64 communicationType, i64 orderId, string airwaybillNo, string productName, string subject, string message)'
45
  print '  UserCommunication getUserCommunicationById(i64 id)'
45
  print '  UserCommunication getUserCommunicationById(i64 id)'
46
  print '   getUserCommunicationByUser(i64 userId)'
46
  print '   getUserCommunicationByUser(i64 userId)'
47
  print '   getAllUserCommunications()'
47
  print '   getAllUserCommunications()'
-
 
48
  print '  void removeUserCommunication(i64 id)'
48
  print '  MasterAffiliate createMasterAffiliate(string name, i64 addedOn)'
49
  print '  MasterAffiliate createMasterAffiliate(string name, i64 addedOn)'
49
  print '   getAllMasterAffiliates()'
50
  print '   getAllMasterAffiliates()'
50
  print '  MasterAffiliate getMasterAffiliateById(i64 id)'
51
  print '  MasterAffiliate getMasterAffiliateById(i64 id)'
51
  print '  MasterAffiliate getMasterAffiliateByName(string name)'
52
  print '  MasterAffiliate getMasterAffiliateByName(string name)'
52
  print '  Affiliate createAffiliate(string name, string url, i64 masterAffiliateId, i64 addedOn)'
53
  print '  Affiliate createAffiliate(string name, string url, i64 masterAffiliateId, i64 addedOn)'
Line 83... Line 84...
83
  print '  void deleteItemFromMyResearch(i64 userId, i64 itemId)'
84
  print '  void deleteItemFromMyResearch(i64 userId, i64 itemId)'
84
  print '   getBrowseHistoryItems(i64 userId)'
85
  print '   getBrowseHistoryItems(i64 userId)'
85
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
86
  print '  void updateBrowseHistory(i64 userId, i64 itemId)'
86
  print '  i64 getCartsWithCouponCount(string couponCode)'
87
  print '  i64 getCartsWithCouponCount(string couponCode)'
87
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
88
  print '  void increaseTrustLevel(i64 userId, double trustLevelDelta)'
-
 
89
  print '  double getTrustLevel(i64 userId)'
88
  print '  bool showCODOption(i64 cartId, i64 sourceId, string pincode)'
90
  print '  bool showCODOption(i64 cartId, i64 sourceId, string pincode)'
89
  print ''
91
  print ''
90
  sys.exit(0)
92
  sys.exit(0)
91
 
93
 
92
pp = pprint.PrettyPrinter(indent = 2)
94
pp = pprint.PrettyPrinter(indent = 2)
Line 278... Line 280...
278
  if len(args) != 0:
280
  if len(args) != 0:
279
    print 'getAllUserCommunications requires 0 args'
281
    print 'getAllUserCommunications requires 0 args'
280
    sys.exit(1)
282
    sys.exit(1)
281
  pp.pprint(client.getAllUserCommunications())
283
  pp.pprint(client.getAllUserCommunications())
282
 
284
 
-
 
285
elif cmd == 'removeUserCommunication':
-
 
286
  if len(args) != 1:
-
 
287
    print 'removeUserCommunication requires 1 args'
-
 
288
    sys.exit(1)
-
 
289
  pp.pprint(client.removeUserCommunication(eval(args[0]),))
-
 
290
 
283
elif cmd == 'createMasterAffiliate':
291
elif cmd == 'createMasterAffiliate':
284
  if len(args) != 2:
292
  if len(args) != 2:
285
    print 'createMasterAffiliate requires 2 args'
293
    print 'createMasterAffiliate requires 2 args'
286
    sys.exit(1)
294
    sys.exit(1)
287
  pp.pprint(client.createMasterAffiliate(args[0],eval(args[1]),))
295
  pp.pprint(client.createMasterAffiliate(args[0],eval(args[1]),))
Line 518... Line 526...
518
  if len(args) != 2:
526
  if len(args) != 2:
519
    print 'increaseTrustLevel requires 2 args'
527
    print 'increaseTrustLevel requires 2 args'
520
    sys.exit(1)
528
    sys.exit(1)
521
  pp.pprint(client.increaseTrustLevel(eval(args[0]),eval(args[1]),))
529
  pp.pprint(client.increaseTrustLevel(eval(args[0]),eval(args[1]),))
522
 
530
 
-
 
531
elif cmd == 'getTrustLevel':
-
 
532
  if len(args) != 1:
-
 
533
    print 'getTrustLevel requires 1 args'
-
 
534
    sys.exit(1)
-
 
535
  pp.pprint(client.getTrustLevel(eval(args[0]),))
-
 
536
 
523
elif cmd == 'showCODOption':
537
elif cmd == 'showCODOption':
524
  if len(args) != 3:
538
  if len(args) != 3:
525
    print 'showCODOption requires 3 args'
539
    print 'showCODOption requires 3 args'
526
    sys.exit(1)
540
    sys.exit(1)
527
  pp.pprint(client.showCODOption(eval(args[0]),eval(args[1]),args[2],))
541
  pp.pprint(client.showCODOption(eval(args[0]),eval(args[1]),args[2],))