| Line 88... |
Line 88... |
| 88 |
print ' searchItemsInRange( searchTerms, i64 offset, i64 limit)'
|
88 |
print ' searchItemsInRange( searchTerms, i64 offset, i64 limit)'
|
| 89 |
print ' i32 getSearchResultCount( searchTerms)'
|
89 |
print ' i32 getSearchResultCount( searchTerms)'
|
| 90 |
print ' getProductNotifications(i64 startDateTime)'
|
90 |
print ' getProductNotifications(i64 startDateTime)'
|
| 91 |
print ' getProductNotificationRequestCount(i64 startDateTime)'
|
91 |
print ' getProductNotificationRequestCount(i64 startDateTime)'
|
| 92 |
print ' bool addAuthorizationLog(i64 itemId, string username, string reason)'
|
92 |
print ' bool addAuthorizationLog(i64 itemId, string username, string reason)'
|
| 93 |
print ' getClearanceSaleCatalogIds()'
|
- |
|
| 94 |
print ' bool addupdateVoucherForItem(i64 catalog_item_id, i64 voucherType, i64 voucherAmount)'
|
93 |
print ' bool addupdateVoucherForItem(i64 catalog_item_id, i64 voucherType, i64 voucherAmount)'
|
| 95 |
print ' bool deleteVoucherForItem(i64 catalog_item_id, i64 voucherType)'
|
94 |
print ' bool deleteVoucherForItem(i64 catalog_item_id, i64 voucherType)'
|
| 96 |
print ' i64 getVoucherAmount(i64 itemId, i64 voucherType)'
|
95 |
print ' i64 getVoucherAmount(i64 itemId, i64 voucherType)'
|
| 97 |
print ' getAllItemVouchers(i64 itemId)'
|
96 |
print ' getAllItemVouchers(i64 itemId)'
|
| 98 |
print ' bool isValidCatalogItemId(i64 catalog_item_id)'
|
97 |
print ' bool isValidCatalogItemId(i64 catalog_item_id)'
|
| Line 102... |
Line 101... |
| 102 |
print ' getAllAliveItems()'
|
101 |
print ' getAllAliveItems()'
|
| 103 |
print ' i64 getInsuranceAmount(i64 itemId, double price, i64 insurerId, i64 quantity)'
|
102 |
print ' i64 getInsuranceAmount(i64 itemId, double price, i64 insurerId, i64 quantity)'
|
| 104 |
print ' Insurer getInsurer(i64 insurerId)'
|
103 |
print ' Insurer getInsurer(i64 insurerId)'
|
| 105 |
print ' getAllInsurers()'
|
104 |
print ' getAllInsurers()'
|
| 106 |
print ' void updateInsuranceDeclaredAmount(i64 insurerId, double amount)'
|
105 |
print ' void updateInsuranceDeclaredAmount(i64 insurerId, double amount)'
|
| - |
|
106 |
print ' i64 getFreebieForItem(i64 itemId)'
|
| - |
|
107 |
print ' void addOrUpdateFreebieForItem(FreebieItem freebieItem)'
|
| - |
|
108 |
print ' StorePricing getStorePricing(i64 itemId)'
|
| 107 |
print ''
|
109 |
print ''
|
| 108 |
sys.exit(0)
|
110 |
sys.exit(0)
|
| 109 |
|
111 |
|
| 110 |
pp = pprint.PrettyPrinter(indent = 2)
|
112 |
pp = pprint.PrettyPrinter(indent = 2)
|
| 111 |
host = 'localhost'
|
113 |
host = 'localhost'
|
| Line 566... |
Line 568... |
| 566 |
if len(args) != 3:
|
568 |
if len(args) != 3:
|
| 567 |
print 'addAuthorizationLog requires 3 args'
|
569 |
print 'addAuthorizationLog requires 3 args'
|
| 568 |
sys.exit(1)
|
570 |
sys.exit(1)
|
| 569 |
pp.pprint(client.addAuthorizationLog(eval(args[0]),args[1],args[2],))
|
571 |
pp.pprint(client.addAuthorizationLog(eval(args[0]),args[1],args[2],))
|
| 570 |
|
572 |
|
| 571 |
elif cmd == 'getClearanceSaleCatalogIds':
|
- |
|
| 572 |
if len(args) != 0:
|
- |
|
| 573 |
print 'getClearanceSaleCatalogIds requires 0 args'
|
- |
|
| 574 |
sys.exit(1)
|
- |
|
| 575 |
pp.pprint(client.getClearanceSaleCatalogIds())
|
- |
|
| 576 |
|
- |
|
| 577 |
elif cmd == 'addupdateVoucherForItem':
|
573 |
elif cmd == 'addupdateVoucherForItem':
|
| 578 |
if len(args) != 3:
|
574 |
if len(args) != 3:
|
| 579 |
print 'addupdateVoucherForItem requires 3 args'
|
575 |
print 'addupdateVoucherForItem requires 3 args'
|
| 580 |
sys.exit(1)
|
576 |
sys.exit(1)
|
| 581 |
pp.pprint(client.addupdateVoucherForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
|
577 |
pp.pprint(client.addupdateVoucherForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
|
| Line 650... |
Line 646... |
| 650 |
if len(args) != 2:
|
646 |
if len(args) != 2:
|
| 651 |
print 'updateInsuranceDeclaredAmount requires 2 args'
|
647 |
print 'updateInsuranceDeclaredAmount requires 2 args'
|
| 652 |
sys.exit(1)
|
648 |
sys.exit(1)
|
| 653 |
pp.pprint(client.updateInsuranceDeclaredAmount(eval(args[0]),eval(args[1]),))
|
649 |
pp.pprint(client.updateInsuranceDeclaredAmount(eval(args[0]),eval(args[1]),))
|
| 654 |
|
650 |
|
| - |
|
651 |
elif cmd == 'getFreebieForItem':
|
| - |
|
652 |
if len(args) != 1:
|
| - |
|
653 |
print 'getFreebieForItem requires 1 args'
|
| - |
|
654 |
sys.exit(1)
|
| - |
|
655 |
pp.pprint(client.getFreebieForItem(eval(args[0]),))
|
| - |
|
656 |
|
| - |
|
657 |
elif cmd == 'addOrUpdateFreebieForItem':
|
| - |
|
658 |
if len(args) != 1:
|
| - |
|
659 |
print 'addOrUpdateFreebieForItem requires 1 args'
|
| - |
|
660 |
sys.exit(1)
|
| - |
|
661 |
pp.pprint(client.addOrUpdateFreebieForItem(eval(args[0]),))
|
| - |
|
662 |
|
| - |
|
663 |
elif cmd == 'getStorePricing':
|
| - |
|
664 |
if len(args) != 1:
|
| - |
|
665 |
print 'getStorePricing requires 1 args'
|
| - |
|
666 |
sys.exit(1)
|
| - |
|
667 |
pp.pprint(client.getStorePricing(eval(args[0]),))
|
| - |
|
668 |
|
| 655 |
else:
|
669 |
else:
|
| 656 |
print 'Unrecognized method %s' % cmd
|
670 |
print 'Unrecognized method %s' % cmd
|
| 657 |
sys.exit(1)
|
671 |
sys.exit(1)
|
| 658 |
|
672 |
|
| 659 |
transport.close()
|
673 |
transport.close()
|