Subversion Repositories SmartDukaan

Rev

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