Subversion Repositories SmartDukaan

Rev

Rev 23310 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5944 mandeep.dh 1
#!/usr/bin/env python
2
#
3
# Autogenerated by Thrift Compiler (0.7.0)
4
#
5
# DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
6
#
7
 
8
import sys
9
import pprint
10
from urlparse import urlparse
11
from thrift.transport import TTransport
12
from thrift.transport import TSocket
13
from thrift.transport import THttpClient
14
from thrift.protocol import TBinaryProtocol
15
 
16
import CatalogService
17
from ttypes import *
18
 
19
if len(sys.argv) <= 1 or sys.argv[1] == '--help':
20
  print ''
21
  print 'Usage: ' + sys.argv[0] + ' [-h host:port] [-u url] [-f[ramed]] function [arg1 [arg2...]]'
22
  print ''
23
  print 'Functions:'
24
  print '  i64 addItem(Item item)'
25
  print '  i64 updateItem(Item item)'
26
  print '  ItemShippingInfo isActive(i64 itemId)'
7438 amit.gupta 27
  print '   getItemsStatus( itemIds)'
5944 mandeep.dh 28
  print '  string getItemStatusDescription(i64 itemId)'
29
  print '  void startItemOn(i64 item_id, i64 timestamp)'
30
  print '  void retireItemOn(i64 item_id, i64 timestamp)'
31
  print '  void changeItemStatus(i64 item_id, i64 timestamp, status newstatus)'
32
  print '  Item getItem(i64 item_id)'
13493 amit.gupta 33
  print '   getItems( item_ids)'
5944 mandeep.dh 34
  print '   getItemsByCatalogId(i64 catalog_item_id)'
35
  print '   getValidItemsByCatalogId(i64 catalog_item_id)'
36
  print '   getAllItems(bool isActive)'
37
  print '   getAllItemsByStatus(status itemStatus)'
9253 rajveer 38
  print '  bool markItemAsContentComplete(i64 entityId, i64 category, string brand, string modelName, string modelNumber, bool isAndroid)'
12567 amit.gupta 39
  print '   getVatRates(i64 itemId, i64 categoryId)'
5944 mandeep.dh 40
  print '   getAllItemsInRange(i64 offset, i64 limit)'
41
  print '   getAllItemsByStatusInRange(status itemStatus, i64 offset, i64 limit)'
42
  print '  i32 getItemCountByStatus(bool useStatus, status itemStatus)'
43
  print '   getBestSellers()'
44
  print '   getBestSellersCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
45
  print '  i64 getBestSellersCount()'
46
  print '   getBestDeals()'
47
  print '   getBestDealsCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
48
  print '  i64 getBestDealsCount()'
49
  print '   getComingSoon()'
50
  print '   getComingSoonCatalogIds(i64 beginIndex, i64 totalItems, string brand, i64 category)'
51
  print '  i64 getComingSoonCount()'
52
  print '   getLatestArrivals()'
53
  print '   getLatestArrivalsCatalogIds(i64 beginIndex, i64 totalItems, string brand,  categories)'
54
  print '  i64 getLatestArrivalsCount()'
55
  print '  i64 generateNewEntityID()'
56
  print '  bool addCategory(Category category)'
57
  print '  Category getCategory(i64 id)'
58
  print '   getAllCategories()'
59
  print '   getAllSimilarItems(i64 itemId)'
60
  print '  Item addSimilarItem(i64 itemId, i64 catalogItemId)'
6512 kshitij.so 61
  print '  bool addTag(string displayName, i64 itemId)'
62
  print '  bool deleteEntityTag(string displayName, i64 itemId)'
63
  print '  bool deleteTag(string displayName)'
64
  print '   getAllTags()'
65
  print '   getAllEntitiesByTagName(string displayName)'
6845 amit.gupta 66
  print '   getAllEntityTags()'
10140 vikram.rag 67
  print '  bool addBanner(BannerCongregate bannerCongregate)'
9253 rajveer 68
  print '  bool updateBanner(Banner banner)'
6903 anupam.sin 69
  print '   getAllBanners()'
9253 rajveer 70
  print '  bool deleteBanner(string bannerName, BannerType bannerType)'
71
  print '  Banner getBannerDetails(string bannerName, BannerType bannerType)'
6903 anupam.sin 72
  print '   getActiveBanners()'
9253 rajveer 73
  print '  bool addBannerMap( bannerMaps)'
74
  print '  bool updateBannerMap(BannerMap bannerMap)'
6849 kshitij.so 75
  print '  bool deleteBannerMap(string bannerName)'
9253 rajveer 76
  print '   getBannerMapDetails(string bannerName, BannerType bannerType)'
77
  print '  void addBannerUri( bannerUriMappings)'
78
  print '   getUriMapping(string bannerName, BannerType bannerType)'
79
  print '  void addCampaign(Campaign campaign)'
80
  print '   getCampaigns(string campaignName)'
81
  print '  void deleteCampaign(i64 campaignId)'
82
  print '   getAllCampaigns()'
83
  print '   getActiveBannersForMobileSite()'
5944 mandeep.dh 84
  print '  bool deleteSimilarItem(i64 itemId, i64 catalogItemId)'
85
  print '  i64 checkSimilarItem(string brand, string modelNumber, string modelName, string color)'
86
  print '  void validateRiskyStatus(i64 itemId)'
87
  print '  void changeItemRiskyFlag(i64 itemId, bool risky)'
88
  print '   getItemsByRiskyFlag()'
89
  print '   getItemsForMasterSheet(string category, string brand)'
90
  print '   getSimilarItemsCatalogIds(i64 beginIndex, i64 totalItems, i64 itemId)'
91
  print '  bool addProductNotification(i64 itemId, string email)'
92
  print '  bool sendProductNotifications()'
93
  print '   getAllBrandsByCategory(i64 categoryId)'
94
  print '   getAllBrands()'
95
  print '   getAllSources()'
96
  print '  SourceItemPricing getItemPricingBySource(i64 itemId, i64 sourceId)'
97
  print '  void addSourceItemPricing(SourceItemPricing sourceItemPricing)'
98
  print '   getAllSourcePricing(i64 itemId)'
99
  print '  Item getItemForSource(i64 item_id, i64 sourceId)'
100
  print '   searchItemsInRange( searchTerms, i64 offset, i64 limit)'
101
  print '  i32 getSearchResultCount( searchTerms)'
102
  print '   getProductNotifications(i64 startDateTime)'
8274 amit.gupta 103
  print '   getProductNotificationRequestCount(i64 startDateTime, i64 categoryId)'
5944 mandeep.dh 104
  print '  bool addAuthorizationLog(i64 itemId, string username, string reason)'
105
  print '  bool addupdateVoucherForItem(i64 catalog_item_id, i64 voucherType, i64 voucherAmount)'
106
  print '  bool deleteVoucherForItem(i64 catalog_item_id, i64 voucherType)'
107
  print '  i64 getVoucherAmount(i64 itemId, i64 voucherType)'
108
  print '   getAllItemVouchers(i64 itemId)'
109
  print '  bool isValidCatalogItemId(i64 catalog_item_id)'
7330 amit.gupta 110
  print '  double getVatPercentageForItem(i64 itemId, i64 stateId, double price)'
6039 amit.gupta 111
  print '  double getVatAmountForItem(i64 itemId, double price)'
6531 vikram.rag 112
  print '   getAllIgnoredInventoryUpdateItemsList(i32 offset, i32 limit)'
6845 amit.gupta 113
  print '   getAllAliveItems()'
6921 anupam.sin 114
  print '  i64 getInsuranceAmount(i64 itemId, double price, i64 insurerId, i64 quantity)'
6805 anupam.sin 115
  print '  Insurer getInsurer(i64 insurerId)'
6849 kshitij.so 116
  print '   getAllInsurers()'
6962 rajveer 117
  print '  void updateInsuranceDeclaredAmount(i64 insurerId, double amount)'
7256 rajveer 118
  print '  i64 getFreebieForItem(i64 itemId)'
119
  print '  void addOrUpdateFreebieForItem(FreebieItem freebieItem)'
7272 amit.gupta 120
  print '  void addOrUpdateBrandInfo(BrandInfo brandInfo)'
121
  print '   getBrandInfo()'
7256 rajveer 122
  print '  StorePricing getStorePricing(i64 itemId)'
7306 rajveer 123
  print '   getStorePricings( itemIds)'
7382 rajveer 124
  print '  void updateStorePricing(StorePricing sp, bool allColors)'
7306 rajveer 125
  print '   getAllAmazonListedItems()'
9253 rajveer 126
  print '   searchAmazonItems( searchTerm, i64 offset, i64 limit)'
127
  print '  i64 getAmazonSearchResultCount( searchTerm)'
128
  print '  i64 getCountForAmazonlistedItems()'
7306 rajveer 129
  print '  Amazonlisted getAmazonItemDetails(i64 itemId)'
8274 amit.gupta 130
  print '  void updateAmazonItemDetails(Amazonlisted amazonlisted)'
7306 rajveer 131
  print '  void addAmazonItem(Amazonlisted amazonlisted)'
132
  print '   getAsinItems()'
133
  print '   getAllFbaListedItems()'
134
  print '   getAllNonFbaListedItems()'
7516 vikram.rag 135
  print '  bool updateItemInventory(i64 itemId, i64 holdInventory, i64 defaultInventory)'
8274 amit.gupta 136
  print '  bool updateTimestampForAmazonFeeds(string type,  sku, i64 timestamp)'
137
  print '   getAllParentCategories()'
138
  print '  void addPageViewEvent(PageViewEvents pageViewEvents)'
139
  print '  void addCartEvent(CartEvents cartEvents)'
140
  print '  void addEbayItem(EbayItem ebayItem)'
141
  print '  EbayItem getEbayItem(string listingId)'
142
  print '  void updateEbayItem(EbayItem ebayItem)'
143
  print '   getAmazonListedItems(i64 offset, i64 limit)'
144
  print '  bool updateAmazonAttributesInBulk( amazonlisted)'
9253 rajveer 145
  print '   getAllItemstoListOnFba()'
146
  print '   getAllItemstoListOnNonFba()'
147
  print '  void updateAsin( item)'
148
  print '  bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)'
149
  print '  SnapdealItem getSnapdealItem(i64 item_id)'
150
  print '  SnapdealItemDetails getSnapdealItemDetails(i64 item_id)'
151
  print '   getAllSnapdealItems()'
152
  print '   getSnapdealItems(i64 offset, i64 limit)'
153
  print '   searchSnapdealItems( searchTerm, i64 offset, i64 limit)'
154
  print '  i64 getCountForSnapdealItems()'
155
  print '  i64 getSnapdealSearchResultCount( searchTerm)'
9404 vikram.rag 156
  print '  i64 getPrefferedInsurerForItem(i64 itemId, InsurerType insurerType)'
9456 vikram.rag 157
  print '  SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)'
9621 manish.sha 158
  print '  ProductFeedSubmit getProductFeedSubmit(i64 catalogItemId)'
159
  print '  bool addProductFeedSubmit(ProductFeedSubmit productFeedSubmit)'
160
  print '  bool updateProductFeedSubmit(ProductFeedSubmit productFeedSubmit)'
161
  print '  bool deleteProductFeedSubmit(i64 catalogItemId)'
162
  print '   getAllProductFeedSubmit()'
9776 vikram.rag 163
  print '  MarketplaceItems getMarketplacedetailsForItem(i64 itemId, i64 sourceId)'
164
  print '  bool updateMarketplaceAttributesForItem(MarketplaceItems marketPlaceItem)'
9841 rajveer 165
  print '  MarketplacePercentage getCostingForMarketplace(i64 source, i64 item_id)'
9776 vikram.rag 166
  print '   getMarketPlaceItemsForPriceUpdate(i64 source)'
9841 rajveer 167
  print '  void updateMarketPlacePriceUpdateStatus( skulist, i64 timestamp, i64 source)'
9861 rajveer 168
  print '  void updateItemHoldInventory( itemHoldMap)'
9895 vikram.rag 169
  print '  void updateNlcAtMarketplaces(i64 item_id, i64 vendor_id, double nlc)'
9945 vikram.rag 170
  print '   getAllFlipkartItems()'
10140 vikram.rag 171
  print '  bool addOrUpdateFlipkartItem(FlipkartItem flipkartitem)'
172
  print '  FlipkartItem getFlipkartItem(i64 item_id)'
173
  print '  FlipkartItemDetails getFlipkartItemDetails(i64 item_id)'
174
  print '   getFlipkartItems(i64 offset, i64 limit)'
175
  print '   searchFlipkartItems( searchTerm, i64 offset, i64 limit)'
176
  print '  i64 getCountForFlipkartItems()'
177
  print '  i64 getFlipkartSearchResultCount( searchTerm)'
178
  print '   getAllFkItems()'
179
  print '  FlipkartItem getFlipkartItemBySkyAtFlipkart(string sku)'
11531 vikram.rag 180
  print '   getMarketplaceHistory(i64 source, i64 offset, i64 itemId)'
10909 vikram.rag 181
  print '   getAllFbbListedItems()'
10924 vikram.rag 182
  print '   getAllFbbPricingItems()'
11531 vikram.rag 183
  print '  i64 getCountForMarketplaceHistory(i64 source, i64 itemId)'
184
  print '   getMarketplaceHistoryByDate(i64 source, i64 startDate, i64 endDate, i64 offset, i64 limit, i64 itemId)'
185
  print '  PrivateDeal getPrivateDealDetails(i64 item_id)'
186
  print '   getPrivateDealItems(i64 offset, i64 limit)'
11653 amit.gupta 187
  print '   getAllActivePrivateDeals( itemIds, i64 daysDelta)'
11531 vikram.rag 188
  print '  bool addOrUpdatePrivateDeal(PrivateDeal privateDeal)'
11635 vikram.rag 189
  print '   getPrivateDealsCatalogIds(i64 beginIndex, i64 totalItems)'
11645 amit.gupta 190
  print '  i32 getPrivateDealsCount()'
12567 amit.gupta 191
  print '  AmazonOutOfSync getAmazonOutSyncItems(i64 item_id)'
192
  print '   getAllPrivateDealsComparison()'
193
  print '   getAllSnapdealMarketplaceItem()'
194
  print '   getAllFlipkartMarketplaceItem()'
195
  print '  void addCompetitorScraping( competitorPricingMap)'
196
  print '   getPreviousCompetitorScraping(i64 delta)'
197
  print '   getUploadResultById(i64 uploadId)'
13136 amit.gupta 198
  print '   addAmazonPromotion( amazonPromotions)'
12567 amit.gupta 199
  print '   getAmazonPromotion(i64 startDate, i64 endDate)'
200
  print '  bool updateAmazonPromotion( amazonPromotions)'
201
  print '  bool markPartiallyActive(i64 itemId, i64 categoryId)'
202
  print '  bool updateItemStateVat(i64 itemId,  statevat)'
12620 amit.gupta 203
  print '   getExAffiliateItemInfo()'
13136 amit.gupta 204
  print '   getAllItemstoListOnFbg()'
205
  print '   getAllFbgListedItems()'
206
  print '   checkServices( lines)'
13709 manish.sha 207
  print '  void addHsItem( hsItems)'
208
  print '  HsItem getHsItem(string hsItemId)'
209
  print '  void updateHsItem(HsItem hsItem)'
19691 manish.sha 210
  print '  DtrPricing getPricingForDtr(i64 catalogItemId)'
211
  print '   getAllItemstoListOnFbd()'
212
  print '   getAllFbdListedItems()'
213
  print '   getBulkPricingForItems( itemIds)'
214
  print '  BulkItemPricing addBulkPricingForItem(BulkItemPricing bulkItemPricing)'
215
  print '  bool deleteBulkPricingForItemById(i64 id)'
216
  print '  bool deleteBulkPricingForItem(i64 item_id)'
217
  print '   getBulkPricingByItemId(i64 item_id)'
218
  print '  bool updateBulkPricesOnProduction(i64 item_id,  bulkItemPricingList)'
219
  print '   getCartByValue( cartIds)'
220
  print '  bool updateItemPricing( itemPricingList)'
221
  print '  void bulkUpdateCatalog( bulkUploadCatalog)'
19714 manish.sha 222
  print '   getWarrantyInfoForItem(i64 catalogItemId, ItemCondition itemCondition)'
223
  print '   getWarrantyInfoForItemList( catalogItemIds, ItemCondition itemCondition)'
23152 ashik.ali 224
  print '   getStateTaxRate( itemIds, i64 stateId)'
23148 ashik.ali 225
  print '   getIgstTaxRate( itemIds)'
23313 amit.gupta 226
  print '  void persistGstRate( stateGstRates)'
21838 amit.gupta 227
  print '   getHsnCodesByCategory(i64 categoryId)'
22566 amit.gupta 228
  print '   getAllFofoDeals( itemIds,  tagIds)'
5944 mandeep.dh 229
  print ''
230
  sys.exit(0)
231
 
232
pp = pprint.PrettyPrinter(indent = 2)
233
host = 'localhost'
234
port = 9090
235
uri = ''
236
framed = False
237
http = False
238
argi = 1
239
 
240
if sys.argv[argi] == '-h':
241
  parts = sys.argv[argi+1].split(':')
242
  host = parts[0]
243
  port = int(parts[1])
244
  argi += 2
245
 
246
if sys.argv[argi] == '-u':
247
  url = urlparse(sys.argv[argi+1])
248
  parts = url[1].split(':')
249
  host = parts[0]
250
  if len(parts) > 1:
251
    port = int(parts[1])
252
  else:
253
    port = 80
254
  uri = url[2]
255
  if url[4]:
256
    uri += '?%s' % url[4]
257
  http = True
258
  argi += 2
259
 
260
if sys.argv[argi] == '-f' or sys.argv[argi] == '-framed':
261
  framed = True
262
  argi += 1
263
 
264
cmd = sys.argv[argi]
265
args = sys.argv[argi+1:]
266
 
267
if http:
268
  transport = THttpClient.THttpClient(host, port, uri)
269
else:
270
  socket = TSocket.TSocket(host, port)
271
  if framed:
272
    transport = TTransport.TFramedTransport(socket)
273
  else:
274
    transport = TTransport.TBufferedTransport(socket)
275
protocol = TBinaryProtocol.TBinaryProtocol(transport)
276
client = CatalogService.Client(protocol)
277
transport.open()
278
 
279
if cmd == 'addItem':
280
  if len(args) != 1:
281
    print 'addItem requires 1 args'
282
    sys.exit(1)
283
  pp.pprint(client.addItem(eval(args[0]),))
284
 
285
elif cmd == 'updateItem':
286
  if len(args) != 1:
287
    print 'updateItem requires 1 args'
288
    sys.exit(1)
289
  pp.pprint(client.updateItem(eval(args[0]),))
290
 
291
elif cmd == 'isActive':
292
  if len(args) != 1:
293
    print 'isActive requires 1 args'
294
    sys.exit(1)
295
  pp.pprint(client.isActive(eval(args[0]),))
296
 
7438 amit.gupta 297
elif cmd == 'getItemsStatus':
298
  if len(args) != 1:
299
    print 'getItemsStatus requires 1 args'
300
    sys.exit(1)
301
  pp.pprint(client.getItemsStatus(eval(args[0]),))
302
 
5944 mandeep.dh 303
elif cmd == 'getItemStatusDescription':
304
  if len(args) != 1:
305
    print 'getItemStatusDescription requires 1 args'
306
    sys.exit(1)
307
  pp.pprint(client.getItemStatusDescription(eval(args[0]),))
308
 
309
elif cmd == 'startItemOn':
310
  if len(args) != 2:
311
    print 'startItemOn requires 2 args'
312
    sys.exit(1)
313
  pp.pprint(client.startItemOn(eval(args[0]),eval(args[1]),))
314
 
315
elif cmd == 'retireItemOn':
316
  if len(args) != 2:
317
    print 'retireItemOn requires 2 args'
318
    sys.exit(1)
319
  pp.pprint(client.retireItemOn(eval(args[0]),eval(args[1]),))
320
 
321
elif cmd == 'changeItemStatus':
322
  if len(args) != 3:
323
    print 'changeItemStatus requires 3 args'
324
    sys.exit(1)
325
  pp.pprint(client.changeItemStatus(eval(args[0]),eval(args[1]),eval(args[2]),))
326
 
327
elif cmd == 'getItem':
328
  if len(args) != 1:
329
    print 'getItem requires 1 args'
330
    sys.exit(1)
331
  pp.pprint(client.getItem(eval(args[0]),))
332
 
13493 amit.gupta 333
elif cmd == 'getItems':
334
  if len(args) != 1:
335
    print 'getItems requires 1 args'
336
    sys.exit(1)
337
  pp.pprint(client.getItems(eval(args[0]),))
338
 
5944 mandeep.dh 339
elif cmd == 'getItemsByCatalogId':
340
  if len(args) != 1:
341
    print 'getItemsByCatalogId requires 1 args'
342
    sys.exit(1)
343
  pp.pprint(client.getItemsByCatalogId(eval(args[0]),))
344
 
345
elif cmd == 'getValidItemsByCatalogId':
346
  if len(args) != 1:
347
    print 'getValidItemsByCatalogId requires 1 args'
348
    sys.exit(1)
349
  pp.pprint(client.getValidItemsByCatalogId(eval(args[0]),))
350
 
351
elif cmd == 'getAllItems':
352
  if len(args) != 1:
353
    print 'getAllItems requires 1 args'
354
    sys.exit(1)
355
  pp.pprint(client.getAllItems(eval(args[0]),))
356
 
357
elif cmd == 'getAllItemsByStatus':
358
  if len(args) != 1:
359
    print 'getAllItemsByStatus requires 1 args'
360
    sys.exit(1)
361
  pp.pprint(client.getAllItemsByStatus(eval(args[0]),))
362
 
363
elif cmd == 'markItemAsContentComplete':
9253 rajveer 364
  if len(args) != 6:
365
    print 'markItemAsContentComplete requires 6 args'
5944 mandeep.dh 366
    sys.exit(1)
9253 rajveer 367
  pp.pprint(client.markItemAsContentComplete(eval(args[0]),eval(args[1]),args[2],args[3],args[4],eval(args[5]),))
5944 mandeep.dh 368
 
12567 amit.gupta 369
elif cmd == 'getVatRates':
370
  if len(args) != 2:
371
    print 'getVatRates requires 2 args'
372
    sys.exit(1)
373
  pp.pprint(client.getVatRates(eval(args[0]),eval(args[1]),))
374
 
5944 mandeep.dh 375
elif cmd == 'getAllItemsInRange':
376
  if len(args) != 2:
377
    print 'getAllItemsInRange requires 2 args'
378
    sys.exit(1)
379
  pp.pprint(client.getAllItemsInRange(eval(args[0]),eval(args[1]),))
380
 
381
elif cmd == 'getAllItemsByStatusInRange':
382
  if len(args) != 3:
383
    print 'getAllItemsByStatusInRange requires 3 args'
384
    sys.exit(1)
385
  pp.pprint(client.getAllItemsByStatusInRange(eval(args[0]),eval(args[1]),eval(args[2]),))
386
 
387
elif cmd == 'getItemCountByStatus':
388
  if len(args) != 2:
389
    print 'getItemCountByStatus requires 2 args'
390
    sys.exit(1)
391
  pp.pprint(client.getItemCountByStatus(eval(args[0]),eval(args[1]),))
392
 
393
elif cmd == 'getBestSellers':
394
  if len(args) != 0:
395
    print 'getBestSellers requires 0 args'
396
    sys.exit(1)
397
  pp.pprint(client.getBestSellers())
398
 
399
elif cmd == 'getBestSellersCatalogIds':
400
  if len(args) != 4:
401
    print 'getBestSellersCatalogIds requires 4 args'
402
    sys.exit(1)
403
  pp.pprint(client.getBestSellersCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
404
 
405
elif cmd == 'getBestSellersCount':
406
  if len(args) != 0:
407
    print 'getBestSellersCount requires 0 args'
408
    sys.exit(1)
409
  pp.pprint(client.getBestSellersCount())
410
 
411
elif cmd == 'getBestDeals':
412
  if len(args) != 0:
413
    print 'getBestDeals requires 0 args'
414
    sys.exit(1)
415
  pp.pprint(client.getBestDeals())
416
 
417
elif cmd == 'getBestDealsCatalogIds':
418
  if len(args) != 4:
419
    print 'getBestDealsCatalogIds requires 4 args'
420
    sys.exit(1)
421
  pp.pprint(client.getBestDealsCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
422
 
423
elif cmd == 'getBestDealsCount':
424
  if len(args) != 0:
425
    print 'getBestDealsCount requires 0 args'
426
    sys.exit(1)
427
  pp.pprint(client.getBestDealsCount())
428
 
429
elif cmd == 'getComingSoon':
430
  if len(args) != 0:
431
    print 'getComingSoon requires 0 args'
432
    sys.exit(1)
433
  pp.pprint(client.getComingSoon())
434
 
435
elif cmd == 'getComingSoonCatalogIds':
436
  if len(args) != 4:
437
    print 'getComingSoonCatalogIds requires 4 args'
438
    sys.exit(1)
439
  pp.pprint(client.getComingSoonCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
440
 
441
elif cmd == 'getComingSoonCount':
442
  if len(args) != 0:
443
    print 'getComingSoonCount requires 0 args'
444
    sys.exit(1)
445
  pp.pprint(client.getComingSoonCount())
446
 
447
elif cmd == 'getLatestArrivals':
448
  if len(args) != 0:
449
    print 'getLatestArrivals requires 0 args'
450
    sys.exit(1)
451
  pp.pprint(client.getLatestArrivals())
452
 
453
elif cmd == 'getLatestArrivalsCatalogIds':
454
  if len(args) != 4:
455
    print 'getLatestArrivalsCatalogIds requires 4 args'
456
    sys.exit(1)
457
  pp.pprint(client.getLatestArrivalsCatalogIds(eval(args[0]),eval(args[1]),args[2],eval(args[3]),))
458
 
459
elif cmd == 'getLatestArrivalsCount':
460
  if len(args) != 0:
461
    print 'getLatestArrivalsCount requires 0 args'
462
    sys.exit(1)
463
  pp.pprint(client.getLatestArrivalsCount())
464
 
465
elif cmd == 'generateNewEntityID':
466
  if len(args) != 0:
467
    print 'generateNewEntityID requires 0 args'
468
    sys.exit(1)
469
  pp.pprint(client.generateNewEntityID())
470
 
471
elif cmd == 'addCategory':
472
  if len(args) != 1:
473
    print 'addCategory requires 1 args'
474
    sys.exit(1)
475
  pp.pprint(client.addCategory(eval(args[0]),))
476
 
477
elif cmd == 'getCategory':
478
  if len(args) != 1:
479
    print 'getCategory requires 1 args'
480
    sys.exit(1)
481
  pp.pprint(client.getCategory(eval(args[0]),))
482
 
483
elif cmd == 'getAllCategories':
484
  if len(args) != 0:
485
    print 'getAllCategories requires 0 args'
486
    sys.exit(1)
487
  pp.pprint(client.getAllCategories())
488
 
489
elif cmd == 'getAllSimilarItems':
490
  if len(args) != 1:
491
    print 'getAllSimilarItems requires 1 args'
492
    sys.exit(1)
493
  pp.pprint(client.getAllSimilarItems(eval(args[0]),))
494
 
495
elif cmd == 'addSimilarItem':
496
  if len(args) != 2:
497
    print 'addSimilarItem requires 2 args'
498
    sys.exit(1)
499
  pp.pprint(client.addSimilarItem(eval(args[0]),eval(args[1]),))
500
 
6512 kshitij.so 501
elif cmd == 'addTag':
502
  if len(args) != 2:
503
    print 'addTag requires 2 args'
504
    sys.exit(1)
505
  pp.pprint(client.addTag(args[0],eval(args[1]),))
506
 
507
elif cmd == 'deleteEntityTag':
508
  if len(args) != 2:
509
    print 'deleteEntityTag requires 2 args'
510
    sys.exit(1)
511
  pp.pprint(client.deleteEntityTag(args[0],eval(args[1]),))
512
 
513
elif cmd == 'deleteTag':
514
  if len(args) != 1:
515
    print 'deleteTag requires 1 args'
516
    sys.exit(1)
517
  pp.pprint(client.deleteTag(args[0],))
518
 
519
elif cmd == 'getAllTags':
520
  if len(args) != 0:
521
    print 'getAllTags requires 0 args'
522
    sys.exit(1)
523
  pp.pprint(client.getAllTags())
524
 
525
elif cmd == 'getAllEntitiesByTagName':
526
  if len(args) != 1:
527
    print 'getAllEntitiesByTagName requires 1 args'
528
    sys.exit(1)
529
  pp.pprint(client.getAllEntitiesByTagName(args[0],))
530
 
6845 amit.gupta 531
elif cmd == 'getAllEntityTags':
532
  if len(args) != 0:
533
    print 'getAllEntityTags requires 0 args'
534
    sys.exit(1)
535
  pp.pprint(client.getAllEntityTags())
536
 
6903 anupam.sin 537
elif cmd == 'addBanner':
9253 rajveer 538
  if len(args) != 1:
539
    print 'addBanner requires 1 args'
6903 anupam.sin 540
    sys.exit(1)
9253 rajveer 541
  pp.pprint(client.addBanner(eval(args[0]),))
6903 anupam.sin 542
 
9253 rajveer 543
elif cmd == 'updateBanner':
544
  if len(args) != 1:
545
    print 'updateBanner requires 1 args'
546
    sys.exit(1)
547
  pp.pprint(client.updateBanner(eval(args[0]),))
548
 
6903 anupam.sin 549
elif cmd == 'getAllBanners':
550
  if len(args) != 0:
551
    print 'getAllBanners requires 0 args'
552
    sys.exit(1)
553
  pp.pprint(client.getAllBanners())
554
 
555
elif cmd == 'deleteBanner':
9253 rajveer 556
  if len(args) != 2:
557
    print 'deleteBanner requires 2 args'
6903 anupam.sin 558
    sys.exit(1)
9253 rajveer 559
  pp.pprint(client.deleteBanner(args[0],eval(args[1]),))
6903 anupam.sin 560
 
561
elif cmd == 'getBannerDetails':
9253 rajveer 562
  if len(args) != 2:
563
    print 'getBannerDetails requires 2 args'
6903 anupam.sin 564
    sys.exit(1)
9253 rajveer 565
  pp.pprint(client.getBannerDetails(args[0],eval(args[1]),))
6903 anupam.sin 566
 
567
elif cmd == 'getActiveBanners':
568
  if len(args) != 0:
569
    print 'getActiveBanners requires 0 args'
570
    sys.exit(1)
571
  pp.pprint(client.getActiveBanners())
572
 
6849 kshitij.so 573
elif cmd == 'addBannerMap':
9253 rajveer 574
  if len(args) != 1:
575
    print 'addBannerMap requires 1 args'
6849 kshitij.so 576
    sys.exit(1)
9253 rajveer 577
  pp.pprint(client.addBannerMap(eval(args[0]),))
6849 kshitij.so 578
 
9253 rajveer 579
elif cmd == 'updateBannerMap':
580
  if len(args) != 1:
581
    print 'updateBannerMap requires 1 args'
582
    sys.exit(1)
583
  pp.pprint(client.updateBannerMap(eval(args[0]),))
584
 
6849 kshitij.so 585
elif cmd == 'deleteBannerMap':
586
  if len(args) != 1:
587
    print 'deleteBannerMap requires 1 args'
588
    sys.exit(1)
589
  pp.pprint(client.deleteBannerMap(args[0],))
590
 
591
elif cmd == 'getBannerMapDetails':
9253 rajveer 592
  if len(args) != 2:
593
    print 'getBannerMapDetails requires 2 args'
594
    sys.exit(1)
595
  pp.pprint(client.getBannerMapDetails(args[0],eval(args[1]),))
596
 
597
elif cmd == 'addBannerUri':
6849 kshitij.so 598
  if len(args) != 1:
9253 rajveer 599
    print 'addBannerUri requires 1 args'
6849 kshitij.so 600
    sys.exit(1)
9253 rajveer 601
  pp.pprint(client.addBannerUri(eval(args[0]),))
6849 kshitij.so 602
 
9253 rajveer 603
elif cmd == 'getUriMapping':
604
  if len(args) != 2:
605
    print 'getUriMapping requires 2 args'
606
    sys.exit(1)
607
  pp.pprint(client.getUriMapping(args[0],eval(args[1]),))
608
 
609
elif cmd == 'addCampaign':
610
  if len(args) != 1:
611
    print 'addCampaign requires 1 args'
612
    sys.exit(1)
613
  pp.pprint(client.addCampaign(eval(args[0]),))
614
 
615
elif cmd == 'getCampaigns':
616
  if len(args) != 1:
617
    print 'getCampaigns requires 1 args'
618
    sys.exit(1)
619
  pp.pprint(client.getCampaigns(args[0],))
620
 
621
elif cmd == 'deleteCampaign':
622
  if len(args) != 1:
623
    print 'deleteCampaign requires 1 args'
624
    sys.exit(1)
625
  pp.pprint(client.deleteCampaign(eval(args[0]),))
626
 
627
elif cmd == 'getAllCampaigns':
628
  if len(args) != 0:
629
    print 'getAllCampaigns requires 0 args'
630
    sys.exit(1)
631
  pp.pprint(client.getAllCampaigns())
632
 
633
elif cmd == 'getActiveBannersForMobileSite':
634
  if len(args) != 0:
635
    print 'getActiveBannersForMobileSite requires 0 args'
636
    sys.exit(1)
637
  pp.pprint(client.getActiveBannersForMobileSite())
638
 
5944 mandeep.dh 639
elif cmd == 'deleteSimilarItem':
640
  if len(args) != 2:
641
    print 'deleteSimilarItem requires 2 args'
642
    sys.exit(1)
643
  pp.pprint(client.deleteSimilarItem(eval(args[0]),eval(args[1]),))
644
 
645
elif cmd == 'checkSimilarItem':
646
  if len(args) != 4:
647
    print 'checkSimilarItem requires 4 args'
648
    sys.exit(1)
649
  pp.pprint(client.checkSimilarItem(args[0],args[1],args[2],args[3],))
650
 
651
elif cmd == 'validateRiskyStatus':
652
  if len(args) != 1:
653
    print 'validateRiskyStatus requires 1 args'
654
    sys.exit(1)
655
  pp.pprint(client.validateRiskyStatus(eval(args[0]),))
656
 
657
elif cmd == 'changeItemRiskyFlag':
658
  if len(args) != 2:
659
    print 'changeItemRiskyFlag requires 2 args'
660
    sys.exit(1)
661
  pp.pprint(client.changeItemRiskyFlag(eval(args[0]),eval(args[1]),))
662
 
663
elif cmd == 'getItemsByRiskyFlag':
664
  if len(args) != 0:
665
    print 'getItemsByRiskyFlag requires 0 args'
666
    sys.exit(1)
667
  pp.pprint(client.getItemsByRiskyFlag())
668
 
669
elif cmd == 'getItemsForMasterSheet':
670
  if len(args) != 2:
671
    print 'getItemsForMasterSheet requires 2 args'
672
    sys.exit(1)
673
  pp.pprint(client.getItemsForMasterSheet(args[0],args[1],))
674
 
675
elif cmd == 'getSimilarItemsCatalogIds':
676
  if len(args) != 3:
677
    print 'getSimilarItemsCatalogIds requires 3 args'
678
    sys.exit(1)
679
  pp.pprint(client.getSimilarItemsCatalogIds(eval(args[0]),eval(args[1]),eval(args[2]),))
680
 
681
elif cmd == 'addProductNotification':
682
  if len(args) != 2:
683
    print 'addProductNotification requires 2 args'
684
    sys.exit(1)
685
  pp.pprint(client.addProductNotification(eval(args[0]),args[1],))
686
 
687
elif cmd == 'sendProductNotifications':
688
  if len(args) != 0:
689
    print 'sendProductNotifications requires 0 args'
690
    sys.exit(1)
691
  pp.pprint(client.sendProductNotifications())
692
 
693
elif cmd == 'getAllBrandsByCategory':
694
  if len(args) != 1:
695
    print 'getAllBrandsByCategory requires 1 args'
696
    sys.exit(1)
697
  pp.pprint(client.getAllBrandsByCategory(eval(args[0]),))
698
 
699
elif cmd == 'getAllBrands':
700
  if len(args) != 0:
701
    print 'getAllBrands requires 0 args'
702
    sys.exit(1)
703
  pp.pprint(client.getAllBrands())
704
 
705
elif cmd == 'getAllSources':
706
  if len(args) != 0:
707
    print 'getAllSources requires 0 args'
708
    sys.exit(1)
709
  pp.pprint(client.getAllSources())
710
 
711
elif cmd == 'getItemPricingBySource':
712
  if len(args) != 2:
713
    print 'getItemPricingBySource requires 2 args'
714
    sys.exit(1)
715
  pp.pprint(client.getItemPricingBySource(eval(args[0]),eval(args[1]),))
716
 
717
elif cmd == 'addSourceItemPricing':
718
  if len(args) != 1:
719
    print 'addSourceItemPricing requires 1 args'
720
    sys.exit(1)
721
  pp.pprint(client.addSourceItemPricing(eval(args[0]),))
722
 
723
elif cmd == 'getAllSourcePricing':
724
  if len(args) != 1:
725
    print 'getAllSourcePricing requires 1 args'
726
    sys.exit(1)
727
  pp.pprint(client.getAllSourcePricing(eval(args[0]),))
728
 
729
elif cmd == 'getItemForSource':
730
  if len(args) != 2:
731
    print 'getItemForSource requires 2 args'
732
    sys.exit(1)
733
  pp.pprint(client.getItemForSource(eval(args[0]),eval(args[1]),))
734
 
735
elif cmd == 'searchItemsInRange':
736
  if len(args) != 3:
737
    print 'searchItemsInRange requires 3 args'
738
    sys.exit(1)
739
  pp.pprint(client.searchItemsInRange(eval(args[0]),eval(args[1]),eval(args[2]),))
740
 
741
elif cmd == 'getSearchResultCount':
742
  if len(args) != 1:
743
    print 'getSearchResultCount requires 1 args'
744
    sys.exit(1)
745
  pp.pprint(client.getSearchResultCount(eval(args[0]),))
746
 
747
elif cmd == 'getProductNotifications':
748
  if len(args) != 1:
749
    print 'getProductNotifications requires 1 args'
750
    sys.exit(1)
751
  pp.pprint(client.getProductNotifications(eval(args[0]),))
752
 
753
elif cmd == 'getProductNotificationRequestCount':
8274 amit.gupta 754
  if len(args) != 2:
755
    print 'getProductNotificationRequestCount requires 2 args'
5944 mandeep.dh 756
    sys.exit(1)
8274 amit.gupta 757
  pp.pprint(client.getProductNotificationRequestCount(eval(args[0]),eval(args[1]),))
5944 mandeep.dh 758
 
759
elif cmd == 'addAuthorizationLog':
760
  if len(args) != 3:
761
    print 'addAuthorizationLog requires 3 args'
762
    sys.exit(1)
763
  pp.pprint(client.addAuthorizationLog(eval(args[0]),args[1],args[2],))
764
 
765
elif cmd == 'addupdateVoucherForItem':
766
  if len(args) != 3:
767
    print 'addupdateVoucherForItem requires 3 args'
768
    sys.exit(1)
769
  pp.pprint(client.addupdateVoucherForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
770
 
771
elif cmd == 'deleteVoucherForItem':
772
  if len(args) != 2:
773
    print 'deleteVoucherForItem requires 2 args'
774
    sys.exit(1)
775
  pp.pprint(client.deleteVoucherForItem(eval(args[0]),eval(args[1]),))
776
 
777
elif cmd == 'getVoucherAmount':
778
  if len(args) != 2:
779
    print 'getVoucherAmount requires 2 args'
780
    sys.exit(1)
781
  pp.pprint(client.getVoucherAmount(eval(args[0]),eval(args[1]),))
782
 
783
elif cmd == 'getAllItemVouchers':
784
  if len(args) != 1:
785
    print 'getAllItemVouchers requires 1 args'
786
    sys.exit(1)
787
  pp.pprint(client.getAllItemVouchers(eval(args[0]),))
788
 
789
elif cmd == 'isValidCatalogItemId':
790
  if len(args) != 1:
791
    print 'isValidCatalogItemId requires 1 args'
792
    sys.exit(1)
793
  pp.pprint(client.isValidCatalogItemId(eval(args[0]),))
794
 
6039 amit.gupta 795
elif cmd == 'getVatPercentageForItem':
7330 amit.gupta 796
  if len(args) != 3:
797
    print 'getVatPercentageForItem requires 3 args'
6039 amit.gupta 798
    sys.exit(1)
7330 amit.gupta 799
  pp.pprint(client.getVatPercentageForItem(eval(args[0]),eval(args[1]),eval(args[2]),))
6039 amit.gupta 800
 
801
elif cmd == 'getVatAmountForItem':
802
  if len(args) != 2:
803
    print 'getVatAmountForItem requires 2 args'
804
    sys.exit(1)
805
  pp.pprint(client.getVatAmountForItem(eval(args[0]),eval(args[1]),))
806
 
6531 vikram.rag 807
elif cmd == 'getAllIgnoredInventoryUpdateItemsList':
808
  if len(args) != 2:
809
    print 'getAllIgnoredInventoryUpdateItemsList requires 2 args'
810
    sys.exit(1)
811
  pp.pprint(client.getAllIgnoredInventoryUpdateItemsList(eval(args[0]),eval(args[1]),))
812
 
6845 amit.gupta 813
elif cmd == 'getAllAliveItems':
814
  if len(args) != 0:
815
    print 'getAllAliveItems requires 0 args'
816
    sys.exit(1)
817
  pp.pprint(client.getAllAliveItems())
818
 
6805 anupam.sin 819
elif cmd == 'getInsuranceAmount':
6921 anupam.sin 820
  if len(args) != 4:
821
    print 'getInsuranceAmount requires 4 args'
6805 anupam.sin 822
    sys.exit(1)
6921 anupam.sin 823
  pp.pprint(client.getInsuranceAmount(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),))
6805 anupam.sin 824
 
825
elif cmd == 'getInsurer':
826
  if len(args) != 1:
827
    print 'getInsurer requires 1 args'
828
    sys.exit(1)
829
  pp.pprint(client.getInsurer(eval(args[0]),))
830
 
6849 kshitij.so 831
elif cmd == 'getAllInsurers':
832
  if len(args) != 0:
833
    print 'getAllInsurers requires 0 args'
834
    sys.exit(1)
835
  pp.pprint(client.getAllInsurers())
836
 
6962 rajveer 837
elif cmd == 'updateInsuranceDeclaredAmount':
838
  if len(args) != 2:
839
    print 'updateInsuranceDeclaredAmount requires 2 args'
840
    sys.exit(1)
841
  pp.pprint(client.updateInsuranceDeclaredAmount(eval(args[0]),eval(args[1]),))
842
 
7256 rajveer 843
elif cmd == 'getFreebieForItem':
844
  if len(args) != 1:
845
    print 'getFreebieForItem requires 1 args'
846
    sys.exit(1)
847
  pp.pprint(client.getFreebieForItem(eval(args[0]),))
848
 
849
elif cmd == 'addOrUpdateFreebieForItem':
850
  if len(args) != 1:
851
    print 'addOrUpdateFreebieForItem requires 1 args'
852
    sys.exit(1)
853
  pp.pprint(client.addOrUpdateFreebieForItem(eval(args[0]),))
854
 
7272 amit.gupta 855
elif cmd == 'addOrUpdateBrandInfo':
856
  if len(args) != 1:
857
    print 'addOrUpdateBrandInfo requires 1 args'
858
    sys.exit(1)
859
  pp.pprint(client.addOrUpdateBrandInfo(eval(args[0]),))
860
 
861
elif cmd == 'getBrandInfo':
862
  if len(args) != 0:
863
    print 'getBrandInfo requires 0 args'
864
    sys.exit(1)
865
  pp.pprint(client.getBrandInfo())
866
 
7256 rajveer 867
elif cmd == 'getStorePricing':
868
  if len(args) != 1:
869
    print 'getStorePricing requires 1 args'
870
    sys.exit(1)
871
  pp.pprint(client.getStorePricing(eval(args[0]),))
872
 
7306 rajveer 873
elif cmd == 'getStorePricings':
874
  if len(args) != 1:
875
    print 'getStorePricings requires 1 args'
876
    sys.exit(1)
877
  pp.pprint(client.getStorePricings(eval(args[0]),))
878
 
7265 rajveer 879
elif cmd == 'updateStorePricing':
7382 rajveer 880
  if len(args) != 2:
881
    print 'updateStorePricing requires 2 args'
7265 rajveer 882
    sys.exit(1)
7382 rajveer 883
  pp.pprint(client.updateStorePricing(eval(args[0]),eval(args[1]),))
7265 rajveer 884
 
7306 rajveer 885
elif cmd == 'getAllAmazonListedItems':
886
  if len(args) != 0:
887
    print 'getAllAmazonListedItems requires 0 args'
888
    sys.exit(1)
889
  pp.pprint(client.getAllAmazonListedItems())
890
 
9253 rajveer 891
elif cmd == 'searchAmazonItems':
892
  if len(args) != 3:
893
    print 'searchAmazonItems requires 3 args'
894
    sys.exit(1)
895
  pp.pprint(client.searchAmazonItems(eval(args[0]),eval(args[1]),eval(args[2]),))
896
 
897
elif cmd == 'getAmazonSearchResultCount':
898
  if len(args) != 1:
899
    print 'getAmazonSearchResultCount requires 1 args'
900
    sys.exit(1)
901
  pp.pprint(client.getAmazonSearchResultCount(eval(args[0]),))
902
 
903
elif cmd == 'getCountForAmazonlistedItems':
904
  if len(args) != 0:
905
    print 'getCountForAmazonlistedItems requires 0 args'
906
    sys.exit(1)
907
  pp.pprint(client.getCountForAmazonlistedItems())
908
 
7306 rajveer 909
elif cmd == 'getAmazonItemDetails':
910
  if len(args) != 1:
911
    print 'getAmazonItemDetails requires 1 args'
912
    sys.exit(1)
913
  pp.pprint(client.getAmazonItemDetails(eval(args[0]),))
914
 
915
elif cmd == 'updateAmazonItemDetails':
8274 amit.gupta 916
  if len(args) != 1:
917
    print 'updateAmazonItemDetails requires 1 args'
7306 rajveer 918
    sys.exit(1)
8274 amit.gupta 919
  pp.pprint(client.updateAmazonItemDetails(eval(args[0]),))
7306 rajveer 920
 
921
elif cmd == 'addAmazonItem':
922
  if len(args) != 1:
923
    print 'addAmazonItem requires 1 args'
924
    sys.exit(1)
925
  pp.pprint(client.addAmazonItem(eval(args[0]),))
926
 
927
elif cmd == 'getAsinItems':
928
  if len(args) != 0:
929
    print 'getAsinItems requires 0 args'
930
    sys.exit(1)
931
  pp.pprint(client.getAsinItems())
932
 
933
elif cmd == 'getAllFbaListedItems':
934
  if len(args) != 0:
935
    print 'getAllFbaListedItems requires 0 args'
936
    sys.exit(1)
937
  pp.pprint(client.getAllFbaListedItems())
938
 
939
elif cmd == 'getAllNonFbaListedItems':
940
  if len(args) != 0:
941
    print 'getAllNonFbaListedItems requires 0 args'
942
    sys.exit(1)
943
  pp.pprint(client.getAllNonFbaListedItems())
944
 
7516 vikram.rag 945
elif cmd == 'updateItemInventory':
946
  if len(args) != 3:
947
    print 'updateItemInventory requires 3 args'
948
    sys.exit(1)
949
  pp.pprint(client.updateItemInventory(eval(args[0]),eval(args[1]),eval(args[2]),))
950
 
8274 amit.gupta 951
elif cmd == 'updateTimestampForAmazonFeeds':
952
  if len(args) != 3:
953
    print 'updateTimestampForAmazonFeeds requires 3 args'
954
    sys.exit(1)
955
  pp.pprint(client.updateTimestampForAmazonFeeds(args[0],eval(args[1]),eval(args[2]),))
956
 
957
elif cmd == 'getAllParentCategories':
958
  if len(args) != 0:
959
    print 'getAllParentCategories requires 0 args'
960
    sys.exit(1)
961
  pp.pprint(client.getAllParentCategories())
962
 
963
elif cmd == 'addPageViewEvent':
964
  if len(args) != 1:
965
    print 'addPageViewEvent requires 1 args'
966
    sys.exit(1)
967
  pp.pprint(client.addPageViewEvent(eval(args[0]),))
968
 
969
elif cmd == 'addCartEvent':
970
  if len(args) != 1:
971
    print 'addCartEvent requires 1 args'
972
    sys.exit(1)
973
  pp.pprint(client.addCartEvent(eval(args[0]),))
974
 
975
elif cmd == 'addEbayItem':
976
  if len(args) != 1:
977
    print 'addEbayItem requires 1 args'
978
    sys.exit(1)
979
  pp.pprint(client.addEbayItem(eval(args[0]),))
980
 
981
elif cmd == 'getEbayItem':
982
  if len(args) != 1:
983
    print 'getEbayItem requires 1 args'
984
    sys.exit(1)
985
  pp.pprint(client.getEbayItem(args[0],))
986
 
987
elif cmd == 'updateEbayItem':
988
  if len(args) != 1:
989
    print 'updateEbayItem requires 1 args'
990
    sys.exit(1)
991
  pp.pprint(client.updateEbayItem(eval(args[0]),))
992
 
993
elif cmd == 'getAmazonListedItems':
994
  if len(args) != 2:
995
    print 'getAmazonListedItems requires 2 args'
996
    sys.exit(1)
997
  pp.pprint(client.getAmazonListedItems(eval(args[0]),eval(args[1]),))
998
 
999
elif cmd == 'updateAmazonAttributesInBulk':
1000
  if len(args) != 1:
1001
    print 'updateAmazonAttributesInBulk requires 1 args'
1002
    sys.exit(1)
1003
  pp.pprint(client.updateAmazonAttributesInBulk(eval(args[0]),))
1004
 
9253 rajveer 1005
elif cmd == 'getAllItemstoListOnFba':
1006
  if len(args) != 0:
1007
    print 'getAllItemstoListOnFba requires 0 args'
1008
    sys.exit(1)
1009
  pp.pprint(client.getAllItemstoListOnFba())
1010
 
1011
elif cmd == 'getAllItemstoListOnNonFba':
1012
  if len(args) != 0:
1013
    print 'getAllItemstoListOnNonFba requires 0 args'
1014
    sys.exit(1)
1015
  pp.pprint(client.getAllItemstoListOnNonFba())
1016
 
1017
elif cmd == 'updateAsin':
1018
  if len(args) != 1:
1019
    print 'updateAsin requires 1 args'
1020
    sys.exit(1)
1021
  pp.pprint(client.updateAsin(eval(args[0]),))
1022
 
1023
elif cmd == 'addOrUpdateSnapdealItem':
1024
  if len(args) != 1:
1025
    print 'addOrUpdateSnapdealItem requires 1 args'
1026
    sys.exit(1)
1027
  pp.pprint(client.addOrUpdateSnapdealItem(eval(args[0]),))
1028
 
1029
elif cmd == 'getSnapdealItem':
1030
  if len(args) != 1:
1031
    print 'getSnapdealItem requires 1 args'
1032
    sys.exit(1)
1033
  pp.pprint(client.getSnapdealItem(eval(args[0]),))
1034
 
1035
elif cmd == 'getSnapdealItemDetails':
1036
  if len(args) != 1:
1037
    print 'getSnapdealItemDetails requires 1 args'
1038
    sys.exit(1)
1039
  pp.pprint(client.getSnapdealItemDetails(eval(args[0]),))
1040
 
1041
elif cmd == 'getAllSnapdealItems':
1042
  if len(args) != 0:
1043
    print 'getAllSnapdealItems requires 0 args'
1044
    sys.exit(1)
1045
  pp.pprint(client.getAllSnapdealItems())
1046
 
1047
elif cmd == 'getSnapdealItems':
1048
  if len(args) != 2:
1049
    print 'getSnapdealItems requires 2 args'
1050
    sys.exit(1)
1051
  pp.pprint(client.getSnapdealItems(eval(args[0]),eval(args[1]),))
1052
 
1053
elif cmd == 'searchSnapdealItems':
1054
  if len(args) != 3:
1055
    print 'searchSnapdealItems requires 3 args'
1056
    sys.exit(1)
1057
  pp.pprint(client.searchSnapdealItems(eval(args[0]),eval(args[1]),eval(args[2]),))
1058
 
1059
elif cmd == 'getCountForSnapdealItems':
1060
  if len(args) != 0:
1061
    print 'getCountForSnapdealItems requires 0 args'
1062
    sys.exit(1)
1063
  pp.pprint(client.getCountForSnapdealItems())
1064
 
1065
elif cmd == 'getSnapdealSearchResultCount':
1066
  if len(args) != 1:
1067
    print 'getSnapdealSearchResultCount requires 1 args'
1068
    sys.exit(1)
1069
  pp.pprint(client.getSnapdealSearchResultCount(eval(args[0]),))
1070
 
9404 vikram.rag 1071
elif cmd == 'getPrefferedInsurerForItem':
1072
  if len(args) != 2:
1073
    print 'getPrefferedInsurerForItem requires 2 args'
1074
    sys.exit(1)
1075
  pp.pprint(client.getPrefferedInsurerForItem(eval(args[0]),eval(args[1]),))
1076
 
9456 vikram.rag 1077
elif cmd == 'getSnapdealItembySkuAtSnapdeal':
1078
  if len(args) != 1:
1079
    print 'getSnapdealItembySkuAtSnapdeal requires 1 args'
1080
    sys.exit(1)
1081
  pp.pprint(client.getSnapdealItembySkuAtSnapdeal(args[0],))
1082
 
9621 manish.sha 1083
elif cmd == 'getProductFeedSubmit':
1084
  if len(args) != 1:
1085
    print 'getProductFeedSubmit requires 1 args'
1086
    sys.exit(1)
1087
  pp.pprint(client.getProductFeedSubmit(eval(args[0]),))
1088
 
1089
elif cmd == 'addProductFeedSubmit':
1090
  if len(args) != 1:
1091
    print 'addProductFeedSubmit requires 1 args'
1092
    sys.exit(1)
1093
  pp.pprint(client.addProductFeedSubmit(eval(args[0]),))
1094
 
1095
elif cmd == 'updateProductFeedSubmit':
1096
  if len(args) != 1:
1097
    print 'updateProductFeedSubmit requires 1 args'
1098
    sys.exit(1)
1099
  pp.pprint(client.updateProductFeedSubmit(eval(args[0]),))
1100
 
1101
elif cmd == 'deleteProductFeedSubmit':
1102
  if len(args) != 1:
1103
    print 'deleteProductFeedSubmit requires 1 args'
1104
    sys.exit(1)
1105
  pp.pprint(client.deleteProductFeedSubmit(eval(args[0]),))
1106
 
1107
elif cmd == 'getAllProductFeedSubmit':
1108
  if len(args) != 0:
1109
    print 'getAllProductFeedSubmit requires 0 args'
1110
    sys.exit(1)
1111
  pp.pprint(client.getAllProductFeedSubmit())
1112
 
9776 vikram.rag 1113
elif cmd == 'getMarketplacedetailsForItem':
1114
  if len(args) != 2:
1115
    print 'getMarketplacedetailsForItem requires 2 args'
1116
    sys.exit(1)
1117
  pp.pprint(client.getMarketplacedetailsForItem(eval(args[0]),eval(args[1]),))
1118
 
1119
elif cmd == 'updateMarketplaceAttributesForItem':
1120
  if len(args) != 1:
1121
    print 'updateMarketplaceAttributesForItem requires 1 args'
1122
    sys.exit(1)
1123
  pp.pprint(client.updateMarketplaceAttributesForItem(eval(args[0]),))
1124
 
9841 rajveer 1125
elif cmd == 'getCostingForMarketplace':
1126
  if len(args) != 2:
1127
    print 'getCostingForMarketplace requires 2 args'
1128
    sys.exit(1)
1129
  pp.pprint(client.getCostingForMarketplace(eval(args[0]),eval(args[1]),))
1130
 
9776 vikram.rag 1131
elif cmd == 'getMarketPlaceItemsForPriceUpdate':
1132
  if len(args) != 1:
1133
    print 'getMarketPlaceItemsForPriceUpdate requires 1 args'
1134
    sys.exit(1)
1135
  pp.pprint(client.getMarketPlaceItemsForPriceUpdate(eval(args[0]),))
1136
 
1137
elif cmd == 'updateMarketPlacePriceUpdateStatus':
9841 rajveer 1138
  if len(args) != 3:
1139
    print 'updateMarketPlacePriceUpdateStatus requires 3 args'
9776 vikram.rag 1140
    sys.exit(1)
9841 rajveer 1141
  pp.pprint(client.updateMarketPlacePriceUpdateStatus(eval(args[0]),eval(args[1]),eval(args[2]),))
9776 vikram.rag 1142
 
9861 rajveer 1143
elif cmd == 'updateItemHoldInventory':
1144
  if len(args) != 1:
1145
    print 'updateItemHoldInventory requires 1 args'
1146
    sys.exit(1)
1147
  pp.pprint(client.updateItemHoldInventory(eval(args[0]),))
1148
 
9895 vikram.rag 1149
elif cmd == 'updateNlcAtMarketplaces':
1150
  if len(args) != 3:
1151
    print 'updateNlcAtMarketplaces requires 3 args'
1152
    sys.exit(1)
1153
  pp.pprint(client.updateNlcAtMarketplaces(eval(args[0]),eval(args[1]),eval(args[2]),))
1154
 
9945 vikram.rag 1155
elif cmd == 'getAllFlipkartItems':
1156
  if len(args) != 0:
1157
    print 'getAllFlipkartItems requires 0 args'
1158
    sys.exit(1)
1159
  pp.pprint(client.getAllFlipkartItems())
1160
 
10140 vikram.rag 1161
elif cmd == 'addOrUpdateFlipkartItem':
1162
  if len(args) != 1:
1163
    print 'addOrUpdateFlipkartItem requires 1 args'
1164
    sys.exit(1)
1165
  pp.pprint(client.addOrUpdateFlipkartItem(eval(args[0]),))
1166
 
1167
elif cmd == 'getFlipkartItem':
1168
  if len(args) != 1:
1169
    print 'getFlipkartItem requires 1 args'
1170
    sys.exit(1)
1171
  pp.pprint(client.getFlipkartItem(eval(args[0]),))
1172
 
1173
elif cmd == 'getFlipkartItemDetails':
1174
  if len(args) != 1:
1175
    print 'getFlipkartItemDetails requires 1 args'
1176
    sys.exit(1)
1177
  pp.pprint(client.getFlipkartItemDetails(eval(args[0]),))
1178
 
1179
elif cmd == 'getFlipkartItems':
1180
  if len(args) != 2:
1181
    print 'getFlipkartItems requires 2 args'
1182
    sys.exit(1)
1183
  pp.pprint(client.getFlipkartItems(eval(args[0]),eval(args[1]),))
1184
 
1185
elif cmd == 'searchFlipkartItems':
1186
  if len(args) != 3:
1187
    print 'searchFlipkartItems requires 3 args'
1188
    sys.exit(1)
1189
  pp.pprint(client.searchFlipkartItems(eval(args[0]),eval(args[1]),eval(args[2]),))
1190
 
1191
elif cmd == 'getCountForFlipkartItems':
1192
  if len(args) != 0:
1193
    print 'getCountForFlipkartItems requires 0 args'
1194
    sys.exit(1)
1195
  pp.pprint(client.getCountForFlipkartItems())
1196
 
1197
elif cmd == 'getFlipkartSearchResultCount':
1198
  if len(args) != 1:
1199
    print 'getFlipkartSearchResultCount requires 1 args'
1200
    sys.exit(1)
1201
  pp.pprint(client.getFlipkartSearchResultCount(eval(args[0]),))
1202
 
1203
elif cmd == 'getAllFkItems':
1204
  if len(args) != 0:
1205
    print 'getAllFkItems requires 0 args'
1206
    sys.exit(1)
1207
  pp.pprint(client.getAllFkItems())
1208
 
1209
elif cmd == 'getFlipkartItemBySkyAtFlipkart':
1210
  if len(args) != 1:
1211
    print 'getFlipkartItemBySkyAtFlipkart requires 1 args'
1212
    sys.exit(1)
1213
  pp.pprint(client.getFlipkartItemBySkyAtFlipkart(args[0],))
1214
 
11531 vikram.rag 1215
elif cmd == 'getMarketplaceHistory':
1216
  if len(args) != 3:
1217
    print 'getMarketplaceHistory requires 3 args'
1218
    sys.exit(1)
1219
  pp.pprint(client.getMarketplaceHistory(eval(args[0]),eval(args[1]),eval(args[2]),))
1220
 
10909 vikram.rag 1221
elif cmd == 'getAllFbbListedItems':
1222
  if len(args) != 0:
1223
    print 'getAllFbbListedItems requires 0 args'
1224
    sys.exit(1)
1225
  pp.pprint(client.getAllFbbListedItems())
1226
 
10924 vikram.rag 1227
elif cmd == 'getAllFbbPricingItems':
1228
  if len(args) != 0:
1229
    print 'getAllFbbPricingItems requires 0 args'
1230
    sys.exit(1)
1231
  pp.pprint(client.getAllFbbPricingItems())
1232
 
11531 vikram.rag 1233
elif cmd == 'getCountForMarketplaceHistory':
1234
  if len(args) != 2:
1235
    print 'getCountForMarketplaceHistory requires 2 args'
1236
    sys.exit(1)
1237
  pp.pprint(client.getCountForMarketplaceHistory(eval(args[0]),eval(args[1]),))
1238
 
1239
elif cmd == 'getMarketplaceHistoryByDate':
1240
  if len(args) != 6:
1241
    print 'getMarketplaceHistoryByDate requires 6 args'
1242
    sys.exit(1)
1243
  pp.pprint(client.getMarketplaceHistoryByDate(eval(args[0]),eval(args[1]),eval(args[2]),eval(args[3]),eval(args[4]),eval(args[5]),))
1244
 
1245
elif cmd == 'getPrivateDealDetails':
1246
  if len(args) != 1:
1247
    print 'getPrivateDealDetails requires 1 args'
1248
    sys.exit(1)
1249
  pp.pprint(client.getPrivateDealDetails(eval(args[0]),))
1250
 
1251
elif cmd == 'getPrivateDealItems':
1252
  if len(args) != 2:
1253
    print 'getPrivateDealItems requires 2 args'
1254
    sys.exit(1)
1255
  pp.pprint(client.getPrivateDealItems(eval(args[0]),eval(args[1]),))
1256
 
11592 amit.gupta 1257
elif cmd == 'getAllActivePrivateDeals':
11653 amit.gupta 1258
  if len(args) != 2:
1259
    print 'getAllActivePrivateDeals requires 2 args'
11592 amit.gupta 1260
    sys.exit(1)
11653 amit.gupta 1261
  pp.pprint(client.getAllActivePrivateDeals(eval(args[0]),eval(args[1]),))
11592 amit.gupta 1262
 
11531 vikram.rag 1263
elif cmd == 'addOrUpdatePrivateDeal':
1264
  if len(args) != 1:
1265
    print 'addOrUpdatePrivateDeal requires 1 args'
1266
    sys.exit(1)
1267
  pp.pprint(client.addOrUpdatePrivateDeal(eval(args[0]),))
1268
 
11635 vikram.rag 1269
elif cmd == 'getPrivateDealsCatalogIds':
1270
  if len(args) != 2:
1271
    print 'getPrivateDealsCatalogIds requires 2 args'
1272
    sys.exit(1)
1273
  pp.pprint(client.getPrivateDealsCatalogIds(eval(args[0]),eval(args[1]),))
1274
 
11645 amit.gupta 1275
elif cmd == 'getPrivateDealsCount':
1276
  if len(args) != 0:
1277
    print 'getPrivateDealsCount requires 0 args'
1278
    sys.exit(1)
1279
  pp.pprint(client.getPrivateDealsCount())
1280
 
12567 amit.gupta 1281
elif cmd == 'getAmazonOutSyncItems':
1282
  if len(args) != 1:
1283
    print 'getAmazonOutSyncItems requires 1 args'
1284
    sys.exit(1)
1285
  pp.pprint(client.getAmazonOutSyncItems(eval(args[0]),))
1286
 
1287
elif cmd == 'getAllPrivateDealsComparison':
1288
  if len(args) != 0:
1289
    print 'getAllPrivateDealsComparison requires 0 args'
1290
    sys.exit(1)
1291
  pp.pprint(client.getAllPrivateDealsComparison())
1292
 
1293
elif cmd == 'getAllSnapdealMarketplaceItem':
1294
  if len(args) != 0:
1295
    print 'getAllSnapdealMarketplaceItem requires 0 args'
1296
    sys.exit(1)
1297
  pp.pprint(client.getAllSnapdealMarketplaceItem())
1298
 
1299
elif cmd == 'getAllFlipkartMarketplaceItem':
1300
  if len(args) != 0:
1301
    print 'getAllFlipkartMarketplaceItem requires 0 args'
1302
    sys.exit(1)
1303
  pp.pprint(client.getAllFlipkartMarketplaceItem())
1304
 
1305
elif cmd == 'addCompetitorScraping':
1306
  if len(args) != 1:
1307
    print 'addCompetitorScraping requires 1 args'
1308
    sys.exit(1)
1309
  pp.pprint(client.addCompetitorScraping(eval(args[0]),))
1310
 
1311
elif cmd == 'getPreviousCompetitorScraping':
1312
  if len(args) != 1:
1313
    print 'getPreviousCompetitorScraping requires 1 args'
1314
    sys.exit(1)
1315
  pp.pprint(client.getPreviousCompetitorScraping(eval(args[0]),))
1316
 
1317
elif cmd == 'getUploadResultById':
1318
  if len(args) != 1:
1319
    print 'getUploadResultById requires 1 args'
1320
    sys.exit(1)
1321
  pp.pprint(client.getUploadResultById(eval(args[0]),))
1322
 
1323
elif cmd == 'addAmazonPromotion':
1324
  if len(args) != 1:
1325
    print 'addAmazonPromotion requires 1 args'
1326
    sys.exit(1)
1327
  pp.pprint(client.addAmazonPromotion(eval(args[0]),))
1328
 
1329
elif cmd == 'getAmazonPromotion':
1330
  if len(args) != 2:
1331
    print 'getAmazonPromotion requires 2 args'
1332
    sys.exit(1)
1333
  pp.pprint(client.getAmazonPromotion(eval(args[0]),eval(args[1]),))
1334
 
1335
elif cmd == 'updateAmazonPromotion':
1336
  if len(args) != 1:
1337
    print 'updateAmazonPromotion requires 1 args'
1338
    sys.exit(1)
1339
  pp.pprint(client.updateAmazonPromotion(eval(args[0]),))
1340
 
1341
elif cmd == 'markPartiallyActive':
1342
  if len(args) != 2:
1343
    print 'markPartiallyActive requires 2 args'
1344
    sys.exit(1)
1345
  pp.pprint(client.markPartiallyActive(eval(args[0]),eval(args[1]),))
1346
 
1347
elif cmd == 'updateItemStateVat':
1348
  if len(args) != 2:
1349
    print 'updateItemStateVat requires 2 args'
1350
    sys.exit(1)
1351
  pp.pprint(client.updateItemStateVat(eval(args[0]),eval(args[1]),))
1352
 
12620 amit.gupta 1353
elif cmd == 'getExAffiliateItemInfo':
1354
  if len(args) != 0:
1355
    print 'getExAffiliateItemInfo requires 0 args'
1356
    sys.exit(1)
1357
  pp.pprint(client.getExAffiliateItemInfo())
1358
 
13136 amit.gupta 1359
elif cmd == 'getAllItemstoListOnFbg':
1360
  if len(args) != 0:
1361
    print 'getAllItemstoListOnFbg requires 0 args'
1362
    sys.exit(1)
1363
  pp.pprint(client.getAllItemstoListOnFbg())
1364
 
1365
elif cmd == 'getAllFbgListedItems':
1366
  if len(args) != 0:
1367
    print 'getAllFbgListedItems requires 0 args'
1368
    sys.exit(1)
1369
  pp.pprint(client.getAllFbgListedItems())
1370
 
1371
elif cmd == 'checkServices':
1372
  if len(args) != 1:
1373
    print 'checkServices requires 1 args'
1374
    sys.exit(1)
1375
  pp.pprint(client.checkServices(eval(args[0]),))
1376
 
13709 manish.sha 1377
elif cmd == 'addHsItem':
1378
  if len(args) != 1:
1379
    print 'addHsItem requires 1 args'
1380
    sys.exit(1)
1381
  pp.pprint(client.addHsItem(eval(args[0]),))
1382
 
1383
elif cmd == 'getHsItem':
1384
  if len(args) != 1:
1385
    print 'getHsItem requires 1 args'
1386
    sys.exit(1)
1387
  pp.pprint(client.getHsItem(args[0],))
1388
 
1389
elif cmd == 'updateHsItem':
1390
  if len(args) != 1:
1391
    print 'updateHsItem requires 1 args'
1392
    sys.exit(1)
1393
  pp.pprint(client.updateHsItem(eval(args[0]),))
1394
 
14780 manish.sha 1395
elif cmd == 'getPricingForDtr':
1396
  if len(args) != 1:
1397
    print 'getPricingForDtr requires 1 args'
1398
    sys.exit(1)
1399
  pp.pprint(client.getPricingForDtr(eval(args[0]),))
1400
 
19691 manish.sha 1401
elif cmd == 'getAllItemstoListOnFbd':
1402
  if len(args) != 0:
1403
    print 'getAllItemstoListOnFbd requires 0 args'
1404
    sys.exit(1)
1405
  pp.pprint(client.getAllItemstoListOnFbd())
1406
 
1407
elif cmd == 'getAllFbdListedItems':
1408
  if len(args) != 0:
1409
    print 'getAllFbdListedItems requires 0 args'
1410
    sys.exit(1)
1411
  pp.pprint(client.getAllFbdListedItems())
1412
 
1413
elif cmd == 'getBulkPricingForItems':
1414
  if len(args) != 1:
1415
    print 'getBulkPricingForItems requires 1 args'
1416
    sys.exit(1)
1417
  pp.pprint(client.getBulkPricingForItems(eval(args[0]),))
1418
 
1419
elif cmd == 'addBulkPricingForItem':
1420
  if len(args) != 1:
1421
    print 'addBulkPricingForItem requires 1 args'
1422
    sys.exit(1)
1423
  pp.pprint(client.addBulkPricingForItem(eval(args[0]),))
1424
 
1425
elif cmd == 'deleteBulkPricingForItemById':
1426
  if len(args) != 1:
1427
    print 'deleteBulkPricingForItemById requires 1 args'
1428
    sys.exit(1)
1429
  pp.pprint(client.deleteBulkPricingForItemById(eval(args[0]),))
1430
 
1431
elif cmd == 'deleteBulkPricingForItem':
1432
  if len(args) != 1:
1433
    print 'deleteBulkPricingForItem requires 1 args'
1434
    sys.exit(1)
1435
  pp.pprint(client.deleteBulkPricingForItem(eval(args[0]),))
1436
 
1437
elif cmd == 'getBulkPricingByItemId':
1438
  if len(args) != 1:
1439
    print 'getBulkPricingByItemId requires 1 args'
1440
    sys.exit(1)
1441
  pp.pprint(client.getBulkPricingByItemId(eval(args[0]),))
1442
 
1443
elif cmd == 'updateBulkPricesOnProduction':
1444
  if len(args) != 2:
1445
    print 'updateBulkPricesOnProduction requires 2 args'
1446
    sys.exit(1)
1447
  pp.pprint(client.updateBulkPricesOnProduction(eval(args[0]),eval(args[1]),))
1448
 
1449
elif cmd == 'getCartByValue':
1450
  if len(args) != 1:
1451
    print 'getCartByValue requires 1 args'
1452
    sys.exit(1)
1453
  pp.pprint(client.getCartByValue(eval(args[0]),))
1454
 
1455
elif cmd == 'updateItemPricing':
1456
  if len(args) != 1:
1457
    print 'updateItemPricing requires 1 args'
1458
    sys.exit(1)
1459
  pp.pprint(client.updateItemPricing(eval(args[0]),))
1460
 
1461
elif cmd == 'bulkUpdateCatalog':
1462
  if len(args) != 1:
1463
    print 'bulkUpdateCatalog requires 1 args'
1464
    sys.exit(1)
1465
  pp.pprint(client.bulkUpdateCatalog(eval(args[0]),))
1466
 
1467
elif cmd == 'getWarrantyInfoForItem':
1468
  if len(args) != 2:
1469
    print 'getWarrantyInfoForItem requires 2 args'
1470
    sys.exit(1)
1471
  pp.pprint(client.getWarrantyInfoForItem(eval(args[0]),eval(args[1]),))
1472
 
19714 manish.sha 1473
elif cmd == 'getWarrantyInfoForItemList':
1474
  if len(args) != 2:
1475
    print 'getWarrantyInfoForItemList requires 2 args'
1476
    sys.exit(1)
1477
  pp.pprint(client.getWarrantyInfoForItemList(eval(args[0]),eval(args[1]),))
1478
 
23148 ashik.ali 1479
elif cmd == 'getStateTaxRate':
23143 ashik.ali 1480
  if len(args) != 2:
23148 ashik.ali 1481
    print 'getStateTaxRate requires 2 args'
23143 ashik.ali 1482
    sys.exit(1)
23148 ashik.ali 1483
  pp.pprint(client.getStateTaxRate(eval(args[0]),eval(args[1]),))
23143 ashik.ali 1484
 
23148 ashik.ali 1485
elif cmd == 'getIgstTaxRate':
1486
  if len(args) != 1:
1487
    print 'getIgstTaxRate requires 1 args'
1488
    sys.exit(1)
1489
  pp.pprint(client.getIgstTaxRate(eval(args[0]),))
1490
 
23313 amit.gupta 1491
elif cmd == 'persistGstRate':
23306 ashik.ali 1492
  if len(args) != 1:
23313 amit.gupta 1493
    print 'persistGstRate requires 1 args'
23306 ashik.ali 1494
    sys.exit(1)
23313 amit.gupta 1495
  pp.pprint(client.persistGstRate(eval(args[0]),))
23306 ashik.ali 1496
 
21838 amit.gupta 1497
elif cmd == 'getHsnCodesByCategory':
1498
  if len(args) != 1:
1499
    print 'getHsnCodesByCategory requires 1 args'
1500
    sys.exit(1)
1501
  pp.pprint(client.getHsnCodesByCategory(eval(args[0]),))
1502
 
22566 amit.gupta 1503
elif cmd == 'getAllFofoDeals':
1504
  if len(args) != 2:
1505
    print 'getAllFofoDeals requires 2 args'
1506
    sys.exit(1)
1507
  pp.pprint(client.getAllFofoDeals(eval(args[0]),eval(args[1]),))
1508
 
5944 mandeep.dh 1509
else:
1510
  print 'Unrecognized method %s' % cmd
1511
  sys.exit(1)
1512
 
1513
transport.close()