Subversion Repositories SmartDukaan

Rev

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