Subversion Repositories SmartDukaan

Rev

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