Subversion Repositories SmartDukaan

Rev

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