Subversion Repositories SmartDukaan

Rev

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