| Line 51... |
Line 51... |
| 51 |
print ' MasterAffiliate getMasterAffiliateById(i64 id)'
|
51 |
print ' MasterAffiliate getMasterAffiliateById(i64 id)'
|
| 52 |
print ' MasterAffiliate getMasterAffiliateByName(string name)'
|
52 |
print ' MasterAffiliate getMasterAffiliateByName(string name)'
|
| 53 |
print ' Affiliate createAffiliate(string name, string url, i64 masterAffiliateId, i64 addedOn)'
|
53 |
print ' Affiliate createAffiliate(string name, string url, i64 masterAffiliateId, i64 addedOn)'
|
| 54 |
print ' Affiliate getAffiliateById(i64 id)'
|
54 |
print ' Affiliate getAffiliateById(i64 id)'
|
| 55 |
print ' Affiliate getAffiliateByName(string name)'
|
55 |
print ' Affiliate getAffiliateByName(string name)'
|
| - |
|
56 |
print ' Tracker getTrackerById(i64 id)'
|
| 56 |
print ' getAffiliatesByMasterAffiliate(i64 id)'
|
57 |
print ' getAffiliatesByMasterAffiliate(i64 id)'
|
| 57 |
print ' Tracker createTracker(i64 affiliateId, i64 addedOn)'
|
- |
|
| 58 |
print ' Tracker getTrackerById(i64 trackerId)'
|
- |
|
| 59 |
print ' getTrackersByAffiliate(i64 affiliateId)'
|
- |
|
| 60 |
print ' i64 addTrackLog(i64 trackerId, i64 userId, string event, string url, string data, i64 addedOn)'
|
58 |
print ' i64 addTrackLog(i64 affiliateId, i64 userId, string event, string url, string data, i64 addedOn)'
|
| 61 |
print ' TrackLog getTrackLogById(i64 id)'
|
59 |
print ' TrackLog getTrackLogById(i64 id)'
|
| 62 |
print ' getTrackLogsByTracker(i64 trackerId)'
|
60 |
print ' getTrackLogsByAffiliate(i64 affiliateId)'
|
| 63 |
print ' getTrackLogsByUser(i64 userId)'
|
61 |
print ' getTrackLogsByUser(i64 userId)'
|
| 64 |
print ' getTrackLogs(i64 trackerId, i64 userId, string event, string url)'
|
62 |
print ' getTrackLogs(i64 userId, string event, string url)'
|
| 65 |
print ' i64 createCart(i64 userId)'
|
63 |
print ' i64 createCart(i64 userId)'
|
| 66 |
print ' Cart getCurrentCart(i64 userId)'
|
64 |
print ' Cart getCurrentCart(i64 userId)'
|
| 67 |
print ' Cart getCart(i64 cartId)'
|
65 |
print ' Cart getCart(i64 cartId)'
|
| 68 |
print ' getCartsForUser(i64 userId, CartStatus status)'
|
66 |
print ' getCartsForUser(i64 userId, CartStatus status)'
|
| 69 |
print ' getCartsByStatus(CartStatus status)'
|
67 |
print ' getCartsByStatus(CartStatus status)'
|
| Line 327... |
Line 325... |
| 327 |
if len(args) != 1:
|
325 |
if len(args) != 1:
|
| 328 |
print 'getAffiliateByName requires 1 args'
|
326 |
print 'getAffiliateByName requires 1 args'
|
| 329 |
sys.exit(1)
|
327 |
sys.exit(1)
|
| 330 |
pp.pprint(client.getAffiliateByName(args[0],))
|
328 |
pp.pprint(client.getAffiliateByName(args[0],))
|
| 331 |
|
329 |
|
| 332 |
elif cmd == 'getAffiliatesByMasterAffiliate':
|
- |
|
| 333 |
if len(args) != 1:
|
- |
|
| 334 |
print 'getAffiliatesByMasterAffiliate requires 1 args'
|
- |
|
| 335 |
sys.exit(1)
|
- |
|
| 336 |
pp.pprint(client.getAffiliatesByMasterAffiliate(eval(args[0]),))
|
- |
|
| 337 |
|
- |
|
| 338 |
elif cmd == 'createTracker':
|
- |
|
| 339 |
if len(args) != 2:
|
- |
|
| 340 |
print 'createTracker requires 2 args'
|
- |
|
| 341 |
sys.exit(1)
|
- |
|
| 342 |
pp.pprint(client.createTracker(eval(args[0]),eval(args[1]),))
|
- |
|
| 343 |
|
- |
|
| 344 |
elif cmd == 'getTrackerById':
|
330 |
elif cmd == 'getTrackerById':
|
| 345 |
if len(args) != 1:
|
331 |
if len(args) != 1:
|
| 346 |
print 'getTrackerById requires 1 args'
|
332 |
print 'getTrackerById requires 1 args'
|
| 347 |
sys.exit(1)
|
333 |
sys.exit(1)
|
| 348 |
pp.pprint(client.getTrackerById(eval(args[0]),))
|
334 |
pp.pprint(client.getTrackerById(eval(args[0]),))
|
| 349 |
|
335 |
|
| 350 |
elif cmd == 'getTrackersByAffiliate':
|
336 |
elif cmd == 'getAffiliatesByMasterAffiliate':
|
| 351 |
if len(args) != 1:
|
337 |
if len(args) != 1:
|
| 352 |
print 'getTrackersByAffiliate requires 1 args'
|
338 |
print 'getAffiliatesByMasterAffiliate requires 1 args'
|
| 353 |
sys.exit(1)
|
339 |
sys.exit(1)
|
| 354 |
pp.pprint(client.getTrackersByAffiliate(eval(args[0]),))
|
340 |
pp.pprint(client.getAffiliatesByMasterAffiliate(eval(args[0]),))
|
| 355 |
|
341 |
|
| 356 |
elif cmd == 'addTrackLog':
|
342 |
elif cmd == 'addTrackLog':
|
| 357 |
if len(args) != 6:
|
343 |
if len(args) != 6:
|
| 358 |
print 'addTrackLog requires 6 args'
|
344 |
print 'addTrackLog requires 6 args'
|
| 359 |
sys.exit(1)
|
345 |
sys.exit(1)
|
| Line 363... |
Line 349... |
| 363 |
if len(args) != 1:
|
349 |
if len(args) != 1:
|
| 364 |
print 'getTrackLogById requires 1 args'
|
350 |
print 'getTrackLogById requires 1 args'
|
| 365 |
sys.exit(1)
|
351 |
sys.exit(1)
|
| 366 |
pp.pprint(client.getTrackLogById(eval(args[0]),))
|
352 |
pp.pprint(client.getTrackLogById(eval(args[0]),))
|
| 367 |
|
353 |
|
| 368 |
elif cmd == 'getTrackLogsByTracker':
|
354 |
elif cmd == 'getTrackLogsByAffiliate':
|
| 369 |
if len(args) != 1:
|
355 |
if len(args) != 1:
|
| 370 |
print 'getTrackLogsByTracker requires 1 args'
|
356 |
print 'getTrackLogsByAffiliate requires 1 args'
|
| 371 |
sys.exit(1)
|
357 |
sys.exit(1)
|
| 372 |
pp.pprint(client.getTrackLogsByTracker(eval(args[0]),))
|
358 |
pp.pprint(client.getTrackLogsByAffiliate(eval(args[0]),))
|
| 373 |
|
359 |
|
| 374 |
elif cmd == 'getTrackLogsByUser':
|
360 |
elif cmd == 'getTrackLogsByUser':
|
| 375 |
if len(args) != 1:
|
361 |
if len(args) != 1:
|
| 376 |
print 'getTrackLogsByUser requires 1 args'
|
362 |
print 'getTrackLogsByUser requires 1 args'
|
| 377 |
sys.exit(1)
|
363 |
sys.exit(1)
|
| 378 |
pp.pprint(client.getTrackLogsByUser(eval(args[0]),))
|
364 |
pp.pprint(client.getTrackLogsByUser(eval(args[0]),))
|
| 379 |
|
365 |
|
| 380 |
elif cmd == 'getTrackLogs':
|
366 |
elif cmd == 'getTrackLogs':
|
| 381 |
if len(args) != 4:
|
367 |
if len(args) != 3:
|
| 382 |
print 'getTrackLogs requires 4 args'
|
368 |
print 'getTrackLogs requires 3 args'
|
| 383 |
sys.exit(1)
|
369 |
sys.exit(1)
|
| 384 |
pp.pprint(client.getTrackLogs(eval(args[0]),eval(args[1]),args[2],args[3],))
|
370 |
pp.pprint(client.getTrackLogs(eval(args[0]),args[1],args[2],))
|
| 385 |
|
371 |
|
| 386 |
elif cmd == 'createCart':
|
372 |
elif cmd == 'createCart':
|
| 387 |
if len(args) != 1:
|
373 |
if len(args) != 1:
|
| 388 |
print 'createCart requires 1 args'
|
374 |
print 'createCart requires 1 args'
|
| 389 |
sys.exit(1)
|
375 |
sys.exit(1)
|