Subversion Repositories SmartDukaan

Rev

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