Subversion Repositories SmartDukaan

Rev

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