Subversion Repositories SmartDukaan

Rev

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