Subversion Repositories SmartDukaan

Rev

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