Subversion Repositories SmartDukaan

Rev

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

Rev 1673 Rev 1845
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 '  MasterAffiliate createMasterAffiliate(string name)'
-
 
49
  print '  MasterAffiliate getMasterAffiliateById(i64 id)'
-
 
50
  print '  MasterAffiliate getMasterAffiliateByName(string name)'
-
 
51
  print '  Affiliate createAffiliate(string name, string url, i64 masterAffiliateId)'
-
 
52
  print '  Affiliate getAffiliateById(i64 id)'
-
 
53
  print '  Affiliate getAffiliateByName(string name)'
-
 
54
  print '   getAffiliatesByMasterAffiliate(i64 id)'
-
 
55
  print '  Tracker createTracker(i64 affiliateId)'
-
 
56
  print '  Tracker getTrackerById(i64 trackerId)'
-
 
57
  print '   getTrackersByAffiliate(i64 affiliateId)'
-
 
58
  print '  i64 addTrackLog(i64 trackerId, i64 userId, string event, string url, string data)'
-
 
59
  print '  TrackLog getTrackLogById(i64 id)'
-
 
60
  print '   getTrackLogsByTracker(i64 trackerId)'
-
 
61
  print '   getTrackLogsByUser(i64 userId)'
-
 
62
  print '   getTrackLogs(i64 trackerId, i64 userId, string event, string url)'
48
  print '  i64 createCart(i64 userId)'
63
  print '  i64 createCart(i64 userId)'
49
  print '  Cart getCurrentCart(i64 userId)'
64
  print '  Cart getCurrentCart(i64 userId)'
50
  print '  Cart getCart(i64 cartId)'
65
  print '  Cart getCart(i64 cartId)'
51
  print '   getCartsForUser(i64 userId, CartStatus status)'
66
  print '   getCartsForUser(i64 userId, CartStatus status)'
52
  print '   getCartsByStatus(CartStatus status)'
67
  print '   getCartsByStatus(CartStatus status)'
Line 260... Line 275...
260
  if len(args) != 0:
275
  if len(args) != 0:
261
    print 'getAllUserCommunications requires 0 args'
276
    print 'getAllUserCommunications requires 0 args'
262
    sys.exit(1)
277
    sys.exit(1)
263
  pp.pprint(client.getAllUserCommunications())
278
  pp.pprint(client.getAllUserCommunications())
264
 
279
 
-
 
280
elif cmd == 'createMasterAffiliate':
-
 
281
  if len(args) != 1:
-
 
282
    print 'createMasterAffiliate requires 1 args'
-
 
283
    sys.exit(1)
-
 
284
  pp.pprint(client.createMasterAffiliate(args[0],))
-
 
285
 
-
 
286
elif cmd == 'getMasterAffiliateById':
-
 
287
  if len(args) != 1:
-
 
288
    print 'getMasterAffiliateById requires 1 args'
-
 
289
    sys.exit(1)
-
 
290
  pp.pprint(client.getMasterAffiliateById(eval(args[0]),))
-
 
291
 
-
 
292
elif cmd == 'getMasterAffiliateByName':
-
 
293
  if len(args) != 1:
-
 
294
    print 'getMasterAffiliateByName requires 1 args'
-
 
295
    sys.exit(1)
-
 
296
  pp.pprint(client.getMasterAffiliateByName(args[0],))
-
 
297
 
-
 
298
elif cmd == 'createAffiliate':
-
 
299
  if len(args) != 3:
-
 
300
    print 'createAffiliate requires 3 args'
-
 
301
    sys.exit(1)
-
 
302
  pp.pprint(client.createAffiliate(args[0],args[1],eval(args[2]),))
-
 
303
 
-
 
304
elif cmd == 'getAffiliateById':
-
 
305
  if len(args) != 1:
-
 
306
    print 'getAffiliateById requires 1 args'
-
 
307
    sys.exit(1)
-
 
308
  pp.pprint(client.getAffiliateById(eval(args[0]),))
-
 
309
 
-
 
310
elif cmd == 'getAffiliateByName':
-
 
311
  if len(args) != 1:
-
 
312
    print 'getAffiliateByName requires 1 args'
-
 
313
    sys.exit(1)
-
 
314
  pp.pprint(client.getAffiliateByName(args[0],))
-
 
315
 
-
 
316
elif cmd == 'getAffiliatesByMasterAffiliate':
-
 
317
  if len(args) != 1:
-
 
318
    print 'getAffiliatesByMasterAffiliate requires 1 args'
-
 
319
    sys.exit(1)
-
 
320
  pp.pprint(client.getAffiliatesByMasterAffiliate(eval(args[0]),))
-
 
321
 
-
 
322
elif cmd == 'createTracker':
-
 
323
  if len(args) != 1:
-
 
324
    print 'createTracker requires 1 args'
-
 
325
    sys.exit(1)
-
 
326
  pp.pprint(client.createTracker(eval(args[0]),))
-
 
327
 
-
 
328
elif cmd == 'getTrackerById':
-
 
329
  if len(args) != 1:
-
 
330
    print 'getTrackerById requires 1 args'
-
 
331
    sys.exit(1)
-
 
332
  pp.pprint(client.getTrackerById(eval(args[0]),))
-
 
333
 
-
 
334
elif cmd == 'getTrackersByAffiliate':
-
 
335
  if len(args) != 1:
-
 
336
    print 'getTrackersByAffiliate requires 1 args'
-
 
337
    sys.exit(1)
-
 
338
  pp.pprint(client.getTrackersByAffiliate(eval(args[0]),))
-
 
339
 
-
 
340
elif cmd == 'addTrackLog':
-
 
341
  if len(args) != 5:
-
 
342
    print 'addTrackLog requires 5 args'
-
 
343
    sys.exit(1)
-
 
344
  pp.pprint(client.addTrackLog(eval(args[0]),eval(args[1]),args[2],args[3],args[4],))
-
 
345
 
-
 
346
elif cmd == 'getTrackLogById':
-
 
347
  if len(args) != 1:
-
 
348
    print 'getTrackLogById requires 1 args'
-
 
349
    sys.exit(1)
-
 
350
  pp.pprint(client.getTrackLogById(eval(args[0]),))
-
 
351
 
-
 
352
elif cmd == 'getTrackLogsByTracker':
-
 
353
  if len(args) != 1:
-
 
354
    print 'getTrackLogsByTracker requires 1 args'
-
 
355
    sys.exit(1)
-
 
356
  pp.pprint(client.getTrackLogsByTracker(eval(args[0]),))
-
 
357
 
-
 
358
elif cmd == 'getTrackLogsByUser':
-
 
359
  if len(args) != 1:
-
 
360
    print 'getTrackLogsByUser requires 1 args'
-
 
361
    sys.exit(1)
-
 
362
  pp.pprint(client.getTrackLogsByUser(eval(args[0]),))
-
 
363
 
-
 
364
elif cmd == 'getTrackLogs':
-
 
365
  if len(args) != 4:
-
 
366
    print 'getTrackLogs requires 4 args'
-
 
367
    sys.exit(1)
-
 
368
  pp.pprint(client.getTrackLogs(eval(args[0]),eval(args[1]),args[2],args[3],))
-
 
369
 
265
elif cmd == 'createCart':
370
elif cmd == 'createCart':
266
  if len(args) != 1:
371
  if len(args) != 1:
267
    print 'createCart requires 1 args'
372
    print 'createCart requires 1 args'
268
    sys.exit(1)
373
    sys.exit(1)
269
  pp.pprint(client.createCart(eval(args[0]),))
374
  pp.pprint(client.createCart(eval(args[0]),))