Subversion Repositories SmartDukaan

Rev

Rev 9909 | Rev 9949 | 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
 
9945 vikram.rag 425
struct FlipkartItem{
426
    1:i64 item_id
427
    2:double exceptionPrice
428
    3:i64 warehouseId
429
    4:double commissionValue
430
    5:double serviceTaxValue
431
    6:double maxNlc
432
    7:string skuAtFlipkart
433
    8:bool isListedOnFlipkart
434
    9:bool suppressPriceFeed
435
    10:bool suppressInventoryFeed
436
    11:i64 updatedOn
437
    12:string updatedBy
438
}
439
 
440
 
5945 mandeep.dh 441
service CatalogService extends GenericService.GenericService{
763 rajveer 442
 
85 ashish 443
/**
444
	Availability and inventory attributes	
445
*/
446
	//all add and update methods - added by Ashish
5945 mandeep.dh 447
	i64 addItem(1:Item item) throws (1:CatalogServiceException cex),
448
	i64 updateItem(1:Item item) throws (1:CatalogServiceException cex),
2983 chandransh 449
 
450
	/**
451
	Checks if the item given to the corresponding itemId is active. If it's active,
452
	whether it's risky and if it's risky, its inventory position.
453
	*/
5945 mandeep.dh 454
	ItemShippingInfo isActive(1:i64 itemId) throws (1:CatalogServiceException isex),
7438 amit.gupta 455
 
456
	map<i64, bool> getItemsStatus(1:list<i64> itemIds) throws (1:CatalogServiceException isex),
2983 chandransh 457
 
5945 mandeep.dh 458
	string getItemStatusDescription(1:i64 itemId) throws (1:CatalogServiceException isex),
3323 chandransh 459
 
103 ashish 460
	//Item management apis
5945 mandeep.dh 461
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
462
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
463
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:CatalogServiceException cex),
85 ashish 464
	//Other accessor methods - added by Ashish
5945 mandeep.dh 465
	Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),
466
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
467
	list<Item> getValidItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
468
	list<Item> getAllItems(1:bool isActive) throws (1:CatalogServiceException cex),
469
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:CatalogServiceException cex),
9253 rajveer 470
	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 471
 
3355 chandransh 472
	/**
3848 chandransh 473
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
474
	*/
5945 mandeep.dh 475
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 476
 
477
	/**
478
	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.
479
	*/
5945 mandeep.dh 480
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 481
 
482
	/**
483
	Gets a count of all items by status
484
	*/
485
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 486
 
502 rajveer 487
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 488
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
489
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
490
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 491
 
5945 mandeep.dh 492
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
493
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
494
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 495
 
5945 mandeep.dh 496
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
497
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
498
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 499
 
2975 chandransh 500
	/**
501
	Returns a list of items sorted in the descending order by start date.
502
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
503
	*/
5945 mandeep.dh 504
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 505
 
506
	/**
507
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
508
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
509
	*/
5945 mandeep.dh 510
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 511
 
512
	/**
513
	Get the total number of latest arrivals we are willing to show.
514
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
515
	*/
5945 mandeep.dh 516
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 517
 
1157 rajveer 518
 
519
	i64 generateNewEntityID(),
520
 
521
	/**
1967 rajveer 522
	* All category related functions
523
	*/
524
	bool addCategory(1:Category category),
525
	Category getCategory(1:i64 id),
1990 ankur.sing 526
	list<Category> getAllCategories(),
1967 rajveer 527
 
1990 ankur.sing 528
	/**
4423 phani.kuma 529
	Returns the list of similar items.
530
	*/
531
	list<Item> getAllSimilarItems(1:i64 itemId),
532
 
533
	/**
534
	Adds similar item.
535
	*/
5945 mandeep.dh 536
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 537
 
538
	/**
6511 kshitij.so 539
	Tag Related
540
	*/
541
 
542
	bool addTag(1:string displayName, 2:i64 itemId),
543
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
544
	bool deleteTag(1:string displayName),
545
	list<string> getAllTags(),
546
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 547
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 548
 
8579 kshitij.so 549
	/**
550
	Banner Related
551
	*/
552
 
8590 kshitij.so 553
	void addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 554
	bool updateBanner(1:Banner banner),
555
	list <Banner> getAllBanners(),
9155 kshitij.so 556
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
557
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 558
	map<string,list<Banner>> getActiveBanners(),
559
	bool addBannerMap(1:list<BannerMap> bannerMaps),
560
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 561
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 562
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 563
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 564
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 565
	void addCampaign(1:Campaign campaign),
566
	list<Campaign> getCampaigns(1:string campaignName),
567
	void deleteCampaign(1:i64 campaignId),
568
	list<string> getAllCampaigns(),
9155 kshitij.so 569
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 570
	/**
4423 phani.kuma 571
	Delete similar item.
572
	*/
5945 mandeep.dh 573
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 574
 
575
	/**
4725 phani.kuma 576
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 577
	If yes, returns the itemId else returns 0
578
	*/
4725 phani.kuma 579
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 580
 
581
	/**
5945 mandeep.dh 582
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 583
	*/
5945 mandeep.dh 584
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 585
 
586
	/**
5945 mandeep.dh 587
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
588
    */
589
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
590
 
591
 
592
	/**
2356 ankur.sing 593
	Returns list of items marked as risky.
594
	*/
595
	list<Item> getItemsByRiskyFlag(),
596
 
597
	/**
4957 phani.kuma 598
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 599
	*/
4957 phani.kuma 600
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 601
 
602
	/**
603
	Returns list of catalog ids of items with same similarity index as of the given itemId 
604
	*/
605
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 606
 
607
	/**
608
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
609
	*/
3086 rajveer 610
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 611
 
3086 rajveer 612
	/**
613
		Send the product notifications to the users for items which has stock.
614
	*/
3348 varun.gupt 615
	bool sendProductNotifications(),
3079 rajveer 616
 
3348 varun.gupt 617
	/**
618
		Returns list of brand names for a given category Id
619
	*/
3556 rajveer 620
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 621
 
622
    /**
623
		Returns list of brand names
624
	*/
625
	list<string> getAllBrands(),
626
 
3556 rajveer 627
	/**
628
	Return list of all sources
629
	*/
630
	list<Source> getAllSources(), 
631
 
632
	/**
633
	Returns the pricing information of an item. If no information is found, exception will be thrown.
634
	*/
5945 mandeep.dh 635
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 636
 
637
	/**
638
	Adds prices to be displayed corresponding to the item if user comes from a source.
639
	If item is not found or source is not found, it will throw exception.
640
	*/
5945 mandeep.dh 641
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 642
 
643
	/**
644
	Returns the list of source pricing information of an item.
645
	Raises an exception if item not found corresponding to itemId
646
	*/
5945 mandeep.dh 647
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 648
 
649
	/**
650
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
651
	*/
5945 mandeep.dh 652
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 653
 
654
	/**
655
	Searches items matching the the given terms in the catalog and returns results within the specified range.
656
	*/
657
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
658
 
659
	/**
660
	Gets the count of search results for the given search terms so that the user can go through all the pages.
661
	*/
4024 chandransh 662
	i32 getSearchResultCount(1:list<string> searchTerms),
663
 
664
	/**
4295 varun.gupt 665
	Returns a list of product notifications added after a supplied datetime
666
	*/
667
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
668
 
669
	/**
670
	Returns a list of count of requests for product notification against each item
671
	*/
7897 amar.kumar 672
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 673
 
674
	/**
4649 phani.kuma 675
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
676
	*/
5945 mandeep.dh 677
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 678
 
5945 mandeep.dh 679
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 680
 
5945 mandeep.dh 681
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 682
 
5512 rajveer 683
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 684
 
685
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 686
 
6039 amit.gupta 687
	bool isValidCatalogItemId(1:i64 catalog_item_id),
688
 
7340 amit.gupta 689
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 690
 
691
	double getVatAmountForItem(1:i64 itemId, 2:double price),
692
 
6821 amar.kumar 693
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
694
 
695
	list<Item> getAllAliveItems();	
6805 anupam.sin 696
 
697
	/**
698
	This method returns the insurance amount needed to insure the given item for a given quantity.
699
	*/
6921 anupam.sin 700
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 701
 
6921 anupam.sin 702
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 703
 
6962 rajveer 704
	list<Insurer> getAllInsurers(),
705
 
7190 amar.kumar 706
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
707
 
708
	i64 getFreebieForItem(1:i64 itemId),
709
 
7256 rajveer 710
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
711
 
7272 amit.gupta 712
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
713
 
7291 vikram.rag 714
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 715
 
7265 rajveer 716
	StorePricing getStorePricing(1:i64 itemId),
717
 
7306 rajveer 718
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
719
 
7382 rajveer 720
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 721
 
722
	list<Amazonlisted> getAllAmazonListedItems(),
723
 
8619 kshitij.so 724
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
725
 
726
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
727
 
728
	i64 getCountForAmazonlistedItems(),
729
 
7281 kshitij.so 730
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
731
 
8168 kshitij.so 732
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 733
 
7291 vikram.rag 734
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 735
 
7291 vikram.rag 736
	list<Item> getAsinItems(),
7281 kshitij.so 737
 
7291 vikram.rag 738
	list<Amazonlisted> getAllFbaListedItems(),
739
 
7460 kshitij.so 740
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 741
 
7770 kshitij.so 742
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 743
 
7770 kshitij.so 744
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
745
 
7897 amar.kumar 746
	list<Category> getAllParentCategories()
747
 
7977 kshitij.so 748
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
749
 
750
	void addCartEvent(1:CartEvents cartEvents)
751
 
8182 amar.kumar 752
	void addEbayItem(1:EbayItem ebayItem)
753
 
754
	EbayItem getEbayItem(1:string listingId)
755
 
756
	void updateEbayItem(1:EbayItem ebayItem)
757
 
8139 kshitij.so 758
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
759
 
8168 kshitij.so 760
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 761
 
762
	list<Amazonlisted> getAllItemstoListOnFba()
763
 
764
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 765
 
8619 kshitij.so 766
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 767
 
768
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
769
 
770
	SnapdealItem getSnapdealItem(1:i64 item_id)
771
 
9242 kshitij.so 772
	SnapdealItemDetails getSnapdealItemDetails(1:i64 item_id)
9155 kshitij.so 773
 
9242 kshitij.so 774
	list<SnapdealItemDetails> getAllSnapdealItems()
9155 kshitij.so 775
 
9242 kshitij.so 776
	list<SnapdealItemDetails> getSnapdealItems(1:i64 offset,2:i64 limit)
777
 
778
	list<SnapdealItemDetails> searchSnapdealItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit)
779
 
780
	i64 getCountForSnapdealItems()
781
 
782
	i64 getSnapdealSearchResultCount(1:list<string> searchTerm)
9299 kshitij.so 783
 
784
	i64 getPrefferedInsurerForItem(1:i64 itemId, 2:InsurerType insurerType)
9456 vikram.rag 785
 
786
	SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)
9621 manish.sha 787
 
788
	ProductFeedSubmit getProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
789
 
790
	bool addProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
791
 
792
	bool updateProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
8182 amar.kumar 793
 
9621 manish.sha 794
	bool deleteProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
795
 
9779 kshitij.so 796
	list<ProductFeedSubmit> getAllProductFeedSubmit() throws (1:CatalogServiceException cex)
9724 kshitij.so 797
 
798
	MarketplaceItems getMarketplacedetailsForItem(1:i64 itemId,2:i64 sourceId)
799
 
800
	bool updateMarketplaceAttributesForItem(1:MarketplaceItems marketPlaceItem)
9776 vikram.rag 801
 
9779 kshitij.so 802
	MarketplacePercentage getCostingForMarketplace(1:i64 source,2:i64 item_id)
803
 
9776 vikram.rag 804
	list<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(1:i64 source),
805
 
9909 kshitij.so 806
	void updateMarketPlacePriceUpdateStatus(1:list<i64> skulist,2:i64 timestamp,3:i64 source),
9776 vikram.rag 807
 
9861 rajveer 808
	void updateItemHoldInventory(1:map<i64,i64> itemHoldMap)	
9776 vikram.rag 809
 
9895 vikram.rag 810
	void updateNlcAtMarketplaces(1:i64 item_id,2:i64 vendor_id,double nlc)
811
 
9945 vikram.rag 812
	list<FlipkartItem> getAllFlipkartItems()
813
 
5110 mandeep.dh 814
}