Subversion Repositories SmartDukaan

Rev

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