Subversion Repositories SmartDukaan

Rev

Rev 9155 | Rev 9253 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
85 ashish 1
namespace java in.shop2020.model.v1.catalog
95 ashish 2
namespace py shop2020.thriftpy.model.v1.catalog
85 ashish 3
 
3374 rajveer 4
include "GenericService.thrift"
5
 
85 ashish 6
/**
7
	Objects
8
*/
9
 
123 ashish 10
/**
1330 chandransh 11
Caution :- Never ever change the numbers in it. Please confirm from @Chandranshu or @Rajveer before any changes in enum and other entries in file.
123 ashish 12
**/
5110 mandeep.dh 13
enum status {
123 ashish 14
	PHASED_OUT = 0,		//Item is no longer selling
15
	DELETED = 1,		//Item has been deliberately deleted 
3009 chandransh 16
	PAUSED = 2,			//Item's sale has been paused manually.
123 ashish 17
	ACTIVE = 3,			//Item is available for sale as of now
2984 rajveer 18
	IN_PROCESS = 4,		//Item has been added, but content is not available for the same
19
	CONTENT_COMPLETE = 5,  //The content for this item has been completed. We can start selling the item now.
5217 amit.gupta 20
	PAUSED_BY_RISK = 6,    //Item's sale has been automatically paused since it was marked as risky
21
	COMING_SOON= 7		//Item is now in Coming Soon Page and will move to ACTIVE gradually as it achieves the Start date.
103 ashish 22
}
23
 
5110 mandeep.dh 24
enum ItemType {
25
    SERIALIZED = 1,
26
    NON_SERIALIZED = 2
27
}
28
 
6805 anupam.sin 29
enum PremiumType {
30
    PERCENT = 1,
31
    ABSOLUTE = 2
32
}
33
 
9155 kshitij.so 34
enum BannerType{
35
	WEBSITE  = 1,
36
	SIDE_BANNER = 2,
37
	MOBILE_SITE = 3
38
}
39
 
85 ashish 40
struct Item{
41
	1:i64 id,
956 chandransh 42
	2:string productGroup
43
	3:string brand,
44
	4:string modelNumber,
2128 ankur.sing 45
	5:string modelName,
46
	6:string color,
47
	7:i64 category,
48
	8:string comments,
49
	9:i64 catalogItemId,
50
	10:i64 featureId,
51
	11:string featureDescription,
2127 ankur.sing 52
	13:optional double mrp, //maxmimum retail price
4762 phani.kuma 53
	14:optional double sellingPrice, //Selling price
54
	15:optional double weight,
55
	16:i64 addedOn,
56
	17:optional i64 startDate,
57
	18:optional i64 retireDate,
58
	19:status itemStatus,
59
	20:string status_description,
5324 rajveer 60
	21:map<string,string> otherInfo,
4762 phani.kuma 61
	22:string bestDealText,
62
	23:optional double bestDealValue,
63
	24:bool defaultForEntity,
64
	25:i64 updatedOn,
65
	26:optional i64 bestSellingRank,
66
	27:bool risky,
67
	28:optional i32 expectedDelay,
5440 phani.kuma 68
	29:optional bool isWarehousePreferenceSticky,
69
	30:i32 warrantyPeriod,
70
	31:optional i64 preferredVendor,
71
	32:ItemType type,
72
	33:optional i64 comingSoonStartDate,
73
	34:optional i64 expectedArrivalDate,
5460 phani.kuma 74
	35:bool hasItemNo,
7256 rajveer 75
	36:bool activeOnStore,
6805 anupam.sin 76
	38:bool showSellingPrice,
6777 vikram.rag 77
	39:string bestDealsDetailsText,
78
	40:string bestDealsDetailsLink,
7291 vikram.rag 79
	41:i64 preferredInsurer,
80
	42:string asin,
81
	43:i64 defaultInventory,
82
	44:i64 holdInventory
85 ashish 83
}
84
 
6805 anupam.sin 85
struct Insurer{
86
	1:i64 id,
87
	2:string name,
6903 anupam.sin 88
	3:string address,
89
	4:i64 declaredAmount,
90
	5:i64 creditedAmount
6805 anupam.sin 91
}
92
 
93
struct ItemInsurerMapping{
94
	1:i64 itemId,
95
	2:i64 insurer,
96
	3:PremiumType premiumType,
97
	4:double premiumValue
98
}
99
 
1967 rajveer 100
struct Category{
101
	1:i64 id,
102
	2:string label,
103
	3:string description,
104
	4:i64 parent_category_id,
105
	/**
106
	* This field should not be used.
107
	*/
108
	5:list<i64> children_category_ids
4762 phani.kuma 109
	6:string display_name
1967 rajveer 110
}
2113 ankur.sing 111
 
2983 chandransh 112
struct ItemShippingInfo{
113
	1:bool isActive,
114
	2:optional bool isRisky,
115
	3:optional i64 quantity
116
}
117
 
3556 rajveer 118
struct Source{
119
	1:i64 id,
120
	2:string name,
121
	3:string identifier
122
}
123
 
124
struct SourceItemPricing{
125
	1:i64 sourceId,
126
	2:i64 itemId,
127
	3:double mrp,
128
	4:double sellingPrice
129
}
130
 
4295 varun.gupt 131
struct ProductNotificationRequest	{
132
	1:Item item,
133
	2:string email,
134
	3:i64 addedOn
135
}
136
 
137
struct ProductNotificationRequestCount	{
138
	1:Item item,
139
	2:i64 count
140
}
141
 
5504 phani.kuma 142
struct VoucherItemMapping{
5512 rajveer 143
	1:i64 voucherType,
5504 phani.kuma 144
	2:i64 itemId,
145
	3:i64 amount
146
}
147
 
5945 mandeep.dh 148
exception CatalogServiceException{
85 ashish 149
	1:i64 id,
150
	2:string message
151
}
152
 
6511 kshitij.so 153
struct EntityTag {
154
    1:i64 entityId,
155
    2:string tag
156
}
157
 
6848 kshitij.so 158
struct Banner {
159
    1:string bannerName,
160
    2:string imageName,
161
    3:string link,
8915 kshitij.so 162
    4:bool hasMap,
163
    5:i64 priority,
9155 kshitij.so 164
    6:BannerType bannerType
6848 kshitij.so 165
}
166
 
8579 kshitij.so 167
struct BannerUriMapping{
168
	1:string bannerName,
169
	2:string uri,
170
	3:bool isActive
171
}
172
 
6848 kshitij.so 173
struct BannerMap {
174
    1:string bannerName,
175
    2:string mapLink,
176
    3:string coordinates
177
}
178
 
8590 kshitij.so 179
struct BannerCongregate{
180
	1:Banner banner,
181
	2:list<BannerMap> bannerMaps,
9155 kshitij.so 182
	3:list<BannerUriMapping> bannerUriMappings,
183
	4:Banner antecedent 
8590 kshitij.so 184
}
185
 
8579 kshitij.so 186
struct Campaign {
187
	1:i64 id,
188
	2:string campaignName,
189
	3:string imageName
190
}
191
 
7190 amar.kumar 192
struct FreebieItem {
193
	1:i64 itemId,
194
	2:i64 freebieItemId
195
}
196
 
7272 amit.gupta 197
struct BrandInfo {
198
	1:string name,
199
	2:string serviceCenterLocatorUrl
200
}
201
 
7256 rajveer 202
struct StorePricing {
203
    1:i64 itemId,
204
	2:double recommendedPrice,
205
	3:double minPrice,
206
	4:double maxPrice,
7308 rajveer 207
	5:double minAdvancePrice,
7351 rajveer 208
	6:double absoluteMinPrice,
209
	7:i64 freebieItemId,
210
	8:string bestDealText
7256 rajveer 211
}
212
 
7281 kshitij.so 213
struct Amazonlisted{
214
	1:i64 itemid,
215
    2:string asin,
216
    3:string name,
217
    4:string brand,
218
    5:string model,
219
    6:string manufacturer_name,
220
    7:string part_number,
221
    8:string ean,
222
    9:string upc 
223
    10:double fbaPrice,
224
    11:double sellingPrice,
225
    12:bool isFba,
226
    13:bool isNonFba,
227
    14:bool isInventoryOverride,
228
    15:string color,
7367 kshitij.so 229
    16:string category,
230
    17:i64 handlingTime,
7518 vikram.rag 231
    18:bool isCustomTime,
7770 kshitij.so 232
    19:i64 category_code,
233
    20:i64 mfnPriceLastUpdatedOn,
234
    21:i64 fbaPriceLastUpdatedOn,
235
    22:i64 mfnPriceLastUpdatedOnSc,
236
    23:i64 fbaPriceLastUpdatedOnSc
8139 kshitij.so 237
    24:bool suppressMfnPriceUpdate,
8619 kshitij.so 238
    25:bool suppressFbaPriceUpdate,
239
    26:string taxCode
7977 kshitij.so 240
}
241
 
242
struct PageViewEvents{
243
    1:i64 catalogId,
244
    2:string url,
245
    3:double sellingPrice,
246
    4:bool comingSoon,
247
    5:string ip,
248
    6:string sessionId,
249
    7:i64 eventDate
250
}
7281 kshitij.so 251
 
7977 kshitij.so 252
struct CartEvents{
253
    1:i64 catalogId,
254
    2:i64 itemId,
255
    3:double sellingPrice,
256
    4:string ip,
257
    5:string sessionId,
258
    6:bool inStock,
259
    7:bool comingSoon,
260
    8:i64 eventDate
261
}
262
 
8182 amar.kumar 263
struct EbayItem{
264
	1:string ebayListingId,
265
	2:i64 itemId,
266
	3:string listingName,
267
	4:i64 listingPrice,
268
	5:i64 listingExpiryDate,
269
	6:double subsidy,
270
	7:i64 defaultWarehouseId
8739 vikram.rag 271
}
272
 
273
struct SnapdealItem{
274
	1:i64 item_id,
275
	2:i64 warehouseId,
276
	3:double exceptionPrice,
9242 kshitij.so 277
	4:bool isListedOnSnapdeal,
278
	5:double transferPrice,
279
    6:double sellingPrice,
280
    7:double courierCost,
281
    8:double commission,
282
    9:double serviceTax,
283
    10:bool suppressPriceFeed,
284
    11:bool suppressInventoryFeed
8182 amar.kumar 285
}    
7977 kshitij.so 286
 
9242 kshitij.so 287
struct SnapdealItemDetails{
288
	1:i64 item_id,
289
	2:i64 warehouseId,
290
	3:double exceptionPrice,
291
	4:bool isListedOnSnapdeal,
292
	5:double transferPrice,
293
    6:double sellingPrice,
294
    7:double courierCost,
295
    8:double commission,
296
    9:double serviceTax,
297
    10:string brand,
298
    11:string model_name,
299
    12:string model_number,
300
    13:string color,
301
    14:bool risky,
302
    15:status itemStatus,
303
    16:bool suppressPriceFeed,
304
    17:bool suppressInventoryFeed,
305
    18:double weight,
306
    19:double mrp,
307
    20:double websiteSellingPrice
308
 
309
}    
310
 
5945 mandeep.dh 311
service CatalogService extends GenericService.GenericService{
763 rajveer 312
 
85 ashish 313
/**
314
	Availability and inventory attributes	
315
*/
316
	//all add and update methods - added by Ashish
5945 mandeep.dh 317
	i64 addItem(1:Item item) throws (1:CatalogServiceException cex),
318
	i64 updateItem(1:Item item) throws (1:CatalogServiceException cex),
2983 chandransh 319
 
320
	/**
321
	Checks if the item given to the corresponding itemId is active. If it's active,
322
	whether it's risky and if it's risky, its inventory position.
323
	*/
5945 mandeep.dh 324
	ItemShippingInfo isActive(1:i64 itemId) throws (1:CatalogServiceException isex),
7438 amit.gupta 325
 
326
	map<i64, bool> getItemsStatus(1:list<i64> itemIds) throws (1:CatalogServiceException isex),
2983 chandransh 327
 
5945 mandeep.dh 328
	string getItemStatusDescription(1:i64 itemId) throws (1:CatalogServiceException isex),
3323 chandransh 329
 
103 ashish 330
	//Item management apis
5945 mandeep.dh 331
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
332
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
333
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:CatalogServiceException cex),
85 ashish 334
	//Other accessor methods - added by Ashish
5945 mandeep.dh 335
	Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),
336
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
337
	list<Item> getValidItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
338
	list<Item> getAllItems(1:bool isActive) throws (1:CatalogServiceException cex),
339
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:CatalogServiceException cex),
340
	bool markItemAsContentComplete(1:i64 entityId, 2:i64 category, 3:string brand, 4:string modelName, 5:string modelNumber) throws (1:CatalogServiceException cex),
646 chandransh 341
 
3355 chandransh 342
	/**
3848 chandransh 343
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
344
	*/
5945 mandeep.dh 345
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 346
 
347
	/**
348
	Gets at most 'limit' items starting at the given offset in the given status. Returns an empty list if there are no more items at the given offset.
349
	*/
5945 mandeep.dh 350
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 351
 
352
	/**
353
	Gets a count of all items by status
354
	*/
355
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 356
 
502 rajveer 357
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 358
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
359
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
360
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 361
 
5945 mandeep.dh 362
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
363
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
364
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 365
 
5945 mandeep.dh 366
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
367
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
368
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 369
 
2975 chandransh 370
	/**
371
	Returns a list of items sorted in the descending order by start date.
372
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
373
	*/
5945 mandeep.dh 374
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 375
 
376
	/**
377
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
378
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
379
	*/
5945 mandeep.dh 380
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 381
 
382
	/**
383
	Get the total number of latest arrivals we are willing to show.
384
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
385
	*/
5945 mandeep.dh 386
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 387
 
1157 rajveer 388
 
389
	i64 generateNewEntityID(),
390
 
391
	/**
1967 rajveer 392
	* All category related functions
393
	*/
394
	bool addCategory(1:Category category),
395
	Category getCategory(1:i64 id),
1990 ankur.sing 396
	list<Category> getAllCategories(),
1967 rajveer 397
 
1990 ankur.sing 398
	/**
4423 phani.kuma 399
	Returns the list of similar items.
400
	*/
401
	list<Item> getAllSimilarItems(1:i64 itemId),
402
 
403
	/**
404
	Adds similar item.
405
	*/
5945 mandeep.dh 406
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 407
 
408
	/**
6511 kshitij.so 409
	Tag Related
410
	*/
411
 
412
	bool addTag(1:string displayName, 2:i64 itemId),
413
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
414
	bool deleteTag(1:string displayName),
415
	list<string> getAllTags(),
416
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 417
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 418
 
8579 kshitij.so 419
	/**
420
	Banner Related
421
	*/
422
 
8590 kshitij.so 423
	void addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 424
	bool updateBanner(1:Banner banner),
425
	list <Banner> getAllBanners(),
9155 kshitij.so 426
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
427
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 428
	map<string,list<Banner>> getActiveBanners(),
429
	bool addBannerMap(1:list<BannerMap> bannerMaps),
430
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 431
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 432
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 433
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 434
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 435
	void addCampaign(1:Campaign campaign),
436
	list<Campaign> getCampaigns(1:string campaignName),
437
	void deleteCampaign(1:i64 campaignId),
438
	list<string> getAllCampaigns(),
9155 kshitij.so 439
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 440
	/**
4423 phani.kuma 441
	Delete similar item.
442
	*/
5945 mandeep.dh 443
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 444
 
445
	/**
4725 phani.kuma 446
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 447
	If yes, returns the itemId else returns 0
448
	*/
4725 phani.kuma 449
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 450
 
451
	/**
5945 mandeep.dh 452
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 453
	*/
5945 mandeep.dh 454
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 455
 
456
	/**
5945 mandeep.dh 457
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
458
    */
459
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
460
 
461
 
462
	/**
2356 ankur.sing 463
	Returns list of items marked as risky.
464
	*/
465
	list<Item> getItemsByRiskyFlag(),
466
 
467
	/**
4957 phani.kuma 468
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 469
	*/
4957 phani.kuma 470
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 471
 
472
	/**
473
	Returns list of catalog ids of items with same similarity index as of the given itemId 
474
	*/
475
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 476
 
477
	/**
478
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
479
	*/
3086 rajveer 480
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 481
 
3086 rajveer 482
	/**
483
		Send the product notifications to the users for items which has stock.
484
	*/
3348 varun.gupt 485
	bool sendProductNotifications(),
3079 rajveer 486
 
3348 varun.gupt 487
	/**
488
		Returns list of brand names for a given category Id
489
	*/
3556 rajveer 490
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 491
 
492
    /**
493
		Returns list of brand names
494
	*/
495
	list<string> getAllBrands(),
496
 
3556 rajveer 497
	/**
498
	Return list of all sources
499
	*/
500
	list<Source> getAllSources(), 
501
 
502
	/**
503
	Returns the pricing information of an item. If no information is found, exception will be thrown.
504
	*/
5945 mandeep.dh 505
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 506
 
507
	/**
508
	Adds prices to be displayed corresponding to the item if user comes from a source.
509
	If item is not found or source is not found, it will throw exception.
510
	*/
5945 mandeep.dh 511
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 512
 
513
	/**
514
	Returns the list of source pricing information of an item.
515
	Raises an exception if item not found corresponding to itemId
516
	*/
5945 mandeep.dh 517
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 518
 
519
	/**
520
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
521
	*/
5945 mandeep.dh 522
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 523
 
524
	/**
525
	Searches items matching the the given terms in the catalog and returns results within the specified range.
526
	*/
527
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
528
 
529
	/**
530
	Gets the count of search results for the given search terms so that the user can go through all the pages.
531
	*/
4024 chandransh 532
	i32 getSearchResultCount(1:list<string> searchTerms),
533
 
534
	/**
4295 varun.gupt 535
	Returns a list of product notifications added after a supplied datetime
536
	*/
537
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
538
 
539
	/**
540
	Returns a list of count of requests for product notification against each item
541
	*/
7897 amar.kumar 542
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 543
 
544
	/**
4649 phani.kuma 545
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
546
	*/
5945 mandeep.dh 547
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 548
 
5945 mandeep.dh 549
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 550
 
5945 mandeep.dh 551
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 552
 
5512 rajveer 553
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 554
 
555
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 556
 
6039 amit.gupta 557
	bool isValidCatalogItemId(1:i64 catalog_item_id),
558
 
7340 amit.gupta 559
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 560
 
561
	double getVatAmountForItem(1:i64 itemId, 2:double price),
562
 
6821 amar.kumar 563
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
564
 
565
	list<Item> getAllAliveItems();	
6805 anupam.sin 566
 
567
	/**
568
	This method returns the insurance amount needed to insure the given item for a given quantity.
569
	*/
6921 anupam.sin 570
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 571
 
6921 anupam.sin 572
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 573
 
6962 rajveer 574
	list<Insurer> getAllInsurers(),
575
 
7190 amar.kumar 576
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
577
 
578
	i64 getFreebieForItem(1:i64 itemId),
579
 
7256 rajveer 580
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
581
 
7272 amit.gupta 582
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
583
 
7291 vikram.rag 584
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 585
 
7265 rajveer 586
	StorePricing getStorePricing(1:i64 itemId),
587
 
7306 rajveer 588
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
589
 
7382 rajveer 590
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 591
 
592
	list<Amazonlisted> getAllAmazonListedItems(),
593
 
8619 kshitij.so 594
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
595
 
596
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
597
 
598
	i64 getCountForAmazonlistedItems(),
599
 
7281 kshitij.so 600
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
601
 
8168 kshitij.so 602
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 603
 
7291 vikram.rag 604
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 605
 
7291 vikram.rag 606
	list<Item> getAsinItems(),
7281 kshitij.so 607
 
7291 vikram.rag 608
	list<Amazonlisted> getAllFbaListedItems(),
609
 
7460 kshitij.so 610
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 611
 
7770 kshitij.so 612
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 613
 
7770 kshitij.so 614
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
615
 
7897 amar.kumar 616
	list<Category> getAllParentCategories()
617
 
7977 kshitij.so 618
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
619
 
620
	void addCartEvent(1:CartEvents cartEvents)
621
 
8182 amar.kumar 622
	void addEbayItem(1:EbayItem ebayItem)
623
 
624
	EbayItem getEbayItem(1:string listingId)
625
 
626
	void updateEbayItem(1:EbayItem ebayItem)
627
 
8139 kshitij.so 628
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
629
 
8168 kshitij.so 630
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 631
 
632
	list<Amazonlisted> getAllItemstoListOnFba()
633
 
634
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 635
 
8619 kshitij.so 636
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 637
 
638
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
639
 
640
	SnapdealItem getSnapdealItem(1:i64 item_id)
641
 
9242 kshitij.so 642
	SnapdealItemDetails getSnapdealItemDetails(1:i64 item_id)
9155 kshitij.so 643
 
9242 kshitij.so 644
	list<SnapdealItemDetails> getAllSnapdealItems()
9155 kshitij.so 645
 
9242 kshitij.so 646
	list<SnapdealItemDetails> getSnapdealItems(1:i64 offset,2:i64 limit)
647
 
648
	list<SnapdealItemDetails> searchSnapdealItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit)
649
 
650
	i64 getCountForSnapdealItems()
651
 
652
	i64 getSnapdealSearchResultCount(1:list<string> searchTerm)
8182 amar.kumar 653
 
5110 mandeep.dh 654
}