Subversion Repositories SmartDukaan

Rev

Rev 15488 | Rev 18002 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
85 ashish 1
namespace java in.shop2020.model.v1.catalog
95 ashish 2
namespace py shop2020.thriftpy.model.v1.catalog
85 ashish 3
 
3374 rajveer 4
include "GenericService.thrift"
5
 
85 ashish 6
/**
7
	Objects
8
*/
9
 
123 ashish 10
/**
1330 chandransh 11
Caution :- Never ever change the numbers in it. Please confirm from @Chandranshu or @Rajveer before any changes in enum and other entries in file.
123 ashish 12
**/
5110 mandeep.dh 13
enum status {
123 ashish 14
	PHASED_OUT = 0,		//Item is no longer selling
15
	DELETED = 1,		//Item has been deliberately deleted 
3009 chandransh 16
	PAUSED = 2,			//Item's sale has been paused manually.
123 ashish 17
	ACTIVE = 3,			//Item is available for sale as of now
2984 rajveer 18
	IN_PROCESS = 4,		//Item has been added, but content is not available for the same
19
	CONTENT_COMPLETE = 5,  //The content for this item has been completed. We can start selling the item now.
5217 amit.gupta 20
	PAUSED_BY_RISK = 6,    //Item's sale has been automatically paused since it was marked as risky
10403 rajveer 21
	COMING_SOON= 7,		//Item is now in Coming Soon Page and will move to ACTIVE gradually as it achieves the Start date.
22
	PARTIALLY_ACTIVE=8
103 ashish 23
}
24
 
5110 mandeep.dh 25
enum ItemType {
26
    SERIALIZED = 1,
27
    NON_SERIALIZED = 2
28
}
29
 
6805 anupam.sin 30
enum PremiumType {
31
    PERCENT = 1,
32
    ABSOLUTE = 2
33
}
34
 
9155 kshitij.so 35
enum BannerType{
36
	WEBSITE  = 1,
37
	SIDE_BANNER = 2,
38
	MOBILE_SITE = 3
39
}
40
 
9299 kshitij.so 41
enum InsurerType {
42
	DEVICE = 1,
43
	DATA = 2
44
}
45
 
9884 kshitij.so 46
enum CompetitionCategory {
47
	CANT_COMPETE = 1,
48
	BUY_BOX = 2,
49
	COMPETITIVE = 3,
50
	COMPETITIVE_NO_INVENTORY = 4,
51
	EXCEPTION = 5,
11015 kshitij.so 52
	NEGATIVE_MARGIN = 6,
53
	CHEAP_BUT_NOT_PREF = 7,
12363 kshitij.so 54
	PREF_BUT_NOT_CHEAP = 8,
55
	AMONG_CHEAPEST_CAN_COMPETE = 9,
56
	ALMOST_COMPETE = 10
9884 kshitij.so 57
}
58
 
59
enum CompetitionBasis {
60
	SP = 1, 
61
	TP = 2
62
}
63
 
64
enum SalesPotential {
65
	HIGH = 1,
66
	MEDIUM = 2,
67
	LOW = 3 
68
}
69
 
9909 kshitij.so 70
enum Decision {
71
	AUTO_DECREMENT_SUCCESS = 1,
72
	AUTO_INCREMENT_SUCCESS = 2,
73
	AUTO_DECREMENT_FAILED = 3,
74
	AUTO_INCREMENT_FAILED = 4
75
}
76
 
9949 kshitij.so 77
enum RunType {
78
	FULL = 1,
79
	FAVOURITE = 2
80
}
81
 
12363 kshitij.so 82
enum AmazonPromotionType {
83
	LONGTERM = 1,
84
	SHORTTERM = 2
85
}
86
 
85 ashish 87
struct Item{
88
	1:i64 id,
956 chandransh 89
	2:string productGroup
90
	3:string brand,
91
	4:string modelNumber,
2128 ankur.sing 92
	5:string modelName,
93
	6:string color,
94
	7:i64 category,
95
	8:string comments,
96
	9:i64 catalogItemId,
97
	10:i64 featureId,
98
	11:string featureDescription,
2127 ankur.sing 99
	13:optional double mrp, //maxmimum retail price
4762 phani.kuma 100
	14:optional double sellingPrice, //Selling price
101
	15:optional double weight,
102
	16:i64 addedOn,
103
	17:optional i64 startDate,
104
	18:optional i64 retireDate,
105
	19:status itemStatus,
106
	20:string status_description,
5324 rajveer 107
	21:map<string,string> otherInfo,
4762 phani.kuma 108
	22:string bestDealText,
109
	23:optional double bestDealValue,
110
	24:bool defaultForEntity,
111
	25:i64 updatedOn,
112
	26:optional i64 bestSellingRank,
113
	27:bool risky,
114
	28:optional i32 expectedDelay,
5440 phani.kuma 115
	29:optional bool isWarehousePreferenceSticky,
116
	30:i32 warrantyPeriod,
117
	31:optional i64 preferredVendor,
118
	32:ItemType type,
119
	33:optional i64 comingSoonStartDate,
120
	34:optional i64 expectedArrivalDate,
5460 phani.kuma 121
	35:bool hasItemNo,
7256 rajveer 122
	36:bool activeOnStore,
6805 anupam.sin 123
	38:bool showSellingPrice,
6777 vikram.rag 124
	39:string bestDealsDetailsText,
125
	40:string bestDealsDetailsLink,
7291 vikram.rag 126
	41:i64 preferredInsurer,
127
	42:string asin,
128
	43:i64 defaultInventory,
9841 rajveer 129
	44:i64 holdInventory,
130
	45:bool holdOverride
85 ashish 131
}
132
 
6805 anupam.sin 133
struct Insurer{
134
	1:i64 id,
135
	2:string name,
6903 anupam.sin 136
	3:string address,
137
	4:i64 declaredAmount,
9299 kshitij.so 138
	5:i64 creditedAmount,
139
	6:InsurerType insurerType
6805 anupam.sin 140
}
141
 
142
struct ItemInsurerMapping{
143
	1:i64 itemId,
144
	2:i64 insurer,
145
	3:PremiumType premiumType,
9299 kshitij.so 146
	4:double premiumValue,
147
	5:InsurerType insurerType
6805 anupam.sin 148
}
149
 
1967 rajveer 150
struct Category{
151
	1:i64 id,
152
	2:string label,
153
	3:string description,
154
	4:i64 parent_category_id,
155
	/**
156
	* This field should not be used.
157
	*/
158
	5:list<i64> children_category_ids
4762 phani.kuma 159
	6:string display_name
1967 rajveer 160
}
2113 ankur.sing 161
 
2983 chandransh 162
struct ItemShippingInfo{
163
	1:bool isActive,
164
	2:optional bool isRisky,
165
	3:optional i64 quantity
166
}
167
 
3556 rajveer 168
struct Source{
169
	1:i64 id,
170
	2:string name,
171
	3:string identifier
172
}
173
 
174
struct SourceItemPricing{
175
	1:i64 sourceId,
176
	2:i64 itemId,
177
	3:double mrp,
178
	4:double sellingPrice
179
}
180
 
12620 amit.gupta 181
struct OutbuoundAffiliate {
182
	1:i64 id,
183
	2:string name
184
}
185
 
186
struct ExclusiveAffiliateItemInfo {
187
	1:i64 itemId,
188
	2:i64 affiliateId,
189
	3:string affiliateName,
190
	4:string offerText,
191
	5:string offerImageUrl,
192
	6:string mOfferText,
193
	7:string mOfferImageUrl,
194
	8:string affiliateSku,
195
	9:string affiliateUrl,
196
	10:bool active
197
}
198
 
4295 varun.gupt 199
struct ProductNotificationRequest	{
200
	1:Item item,
201
	2:string email,
202
	3:i64 addedOn
203
}
204
 
205
struct ProductNotificationRequestCount	{
206
	1:Item item,
207
	2:i64 count
208
}
209
 
5504 phani.kuma 210
struct VoucherItemMapping{
5512 rajveer 211
	1:i64 voucherType,
5504 phani.kuma 212
	2:i64 itemId,
213
	3:i64 amount
214
}
215
 
5945 mandeep.dh 216
exception CatalogServiceException{
85 ashish 217
	1:i64 id,
218
	2:string message
219
}
220
 
6511 kshitij.so 221
struct EntityTag {
222
    1:i64 entityId,
223
    2:string tag
224
}
225
 
6848 kshitij.so 226
struct Banner {
227
    1:string bannerName,
228
    2:string imageName,
229
    3:string link,
8915 kshitij.so 230
    4:bool hasMap,
231
    5:i64 priority,
10097 kshitij.so 232
    6:BannerType bannerType,
233
    7:bool target
6848 kshitij.so 234
}
235
 
8579 kshitij.so 236
struct BannerUriMapping{
237
	1:string bannerName,
238
	2:string uri,
10097 kshitij.so 239
	3:bool isActive,
240
	4:bool target
8579 kshitij.so 241
}
242
 
6848 kshitij.so 243
struct BannerMap {
244
    1:string bannerName,
245
    2:string mapLink,
246
    3:string coordinates
247
}
248
 
8590 kshitij.so 249
struct BannerCongregate{
250
	1:Banner banner,
251
	2:list<BannerMap> bannerMaps,
9155 kshitij.so 252
	3:list<BannerUriMapping> bannerUriMappings,
253
	4:Banner antecedent 
8590 kshitij.so 254
}
255
 
8579 kshitij.so 256
struct Campaign {
257
	1:i64 id,
258
	2:string campaignName,
259
	3:string imageName
260
}
261
 
7190 amar.kumar 262
struct FreebieItem {
263
	1:i64 itemId,
264
	2:i64 freebieItemId
265
}
266
 
7272 amit.gupta 267
struct BrandInfo {
268
	1:string name,
269
	2:string serviceCenterLocatorUrl
270
}
271
 
7256 rajveer 272
struct StorePricing {
273
    1:i64 itemId,
274
	2:double recommendedPrice,
275
	3:double minPrice,
276
	4:double maxPrice,
7308 rajveer 277
	5:double minAdvancePrice,
7351 rajveer 278
	6:double absoluteMinPrice,
279
	7:i64 freebieItemId,
280
	8:string bestDealText
7256 rajveer 281
}
282
 
7281 kshitij.so 283
struct Amazonlisted{
284
	1:i64 itemid,
285
    2:string asin,
286
    3:string name,
287
    4:string brand,
288
    5:string model,
289
    6:string manufacturer_name,
290
    7:string part_number,
291
    8:string ean,
292
    9:string upc 
293
    10:double fbaPrice,
294
    11:double sellingPrice,
295
    12:bool isFba,
296
    13:bool isNonFba,
297
    14:bool isInventoryOverride,
298
    15:string color,
7367 kshitij.so 299
    16:string category,
300
    17:i64 handlingTime,
7518 vikram.rag 301
    18:bool isCustomTime,
7770 kshitij.so 302
    19:i64 category_code,
303
    20:i64 mfnPriceLastUpdatedOn,
304
    21:i64 fbaPriceLastUpdatedOn,
305
    22:i64 mfnPriceLastUpdatedOnSc,
306
    23:i64 fbaPriceLastUpdatedOnSc
8139 kshitij.so 307
    24:bool suppressMfnPriceUpdate,
8619 kshitij.so 308
    25:bool suppressFbaPriceUpdate,
10909 vikram.rag 309
    26:string taxCode,
310
    27:string fbbtaxCode,
12363 kshitij.so 311
    28:double fbbPrice,
10909 vikram.rag 312
    29:i64 fbbPriceLastUpdatedOnSc,
313
    30:i64 fbbPriceLastUpdatedOn,
314
    31:bool isFbb,
12363 kshitij.so 315
    32:bool suppressFbbPriceUpdate,
12663 kshitij.so 316
    33:double fbaPromoPrice,
317
    34:double fbbPromoPrice,
12363 kshitij.so 318
    35:bool overrrideWanlc,
319
    36:double exceptionalWanlc,
12448 kshitij.so 320
    37:bool autoIncrement,
321
    38:bool autoDecrement,
322
    39:bool autoFavourite,
323
    40:bool manualFavourite,
12663 kshitij.so 324
    41:double otherCost,
325
    42:i64 fbaPromoStartDate,
326
    43:i64 fbaPromoEndDate,
327
    44:i64 fbbPromoStartDate,
328
    45:i64 fbbPromoEndDate,
329
    46:bool isFbaPromotionActive,
330
    47:bool isFbbPromotionActive,
331
    48:double maxFbaSalePrice,
12888 kshitij.so 332
    49:double maxFbbSalePrice,
333
    50:bool isFbg,
334
    51:double fbgPrice,
335
    52:string fbgtaxCode,
336
    53:i64 fbgPriceLastUpdatedOnSc,
337
    54:i64 fbgPriceLastUpdatedOn,
338
    55:bool suppressFbgPriceUpdate,
339
    56:double fbgPromoPrice,
340
    57:i64 fbgPromoStartDate,
341
    58:i64 fbgPromoEndDate,
342
    59:double maxFbgSalePrice,
15701 kshitij.so 343
    60:bool isFbgPromotionActive,
344
    61:bool isFbd,
345
    62:double fbdPrice,
346
    63:string fbdtaxCode,
347
    64:i64 fbdPriceLastUpdatedOnSc,
348
    65:i64 fbdPriceLastUpdatedOn,
349
    66:bool suppressFbdPriceUpdate,
350
    67:double fbdPromoPrice,
351
    68:i64 fbdPromoStartDate,
352
    69:i64 fbdPromoEndDate,
353
    70:double maxFbdSalePrice,
354
    71:bool isFbdPromotionActive,
355
    72:double packagingHeight,  //Inches
356
    73:double packagingLength,  //Inches
357
    74:double packagingWidth, //Inches
358
    75:double packagingWeight   //Pounds 
7977 kshitij.so 359
}
360
 
361
struct PageViewEvents{
362
    1:i64 catalogId,
363
    2:string url,
364
    3:double sellingPrice,
365
    4:bool comingSoon,
366
    5:string ip,
367
    6:string sessionId,
368
    7:i64 eventDate
369
}
7281 kshitij.so 370
 
7977 kshitij.so 371
struct CartEvents{
372
    1:i64 catalogId,
373
    2:i64 itemId,
374
    3:double sellingPrice,
375
    4:string ip,
376
    5:string sessionId,
377
    6:bool inStock,
378
    7:bool comingSoon,
379
    8:i64 eventDate
380
}
381
 
8182 amar.kumar 382
struct EbayItem{
383
	1:string ebayListingId,
384
	2:i64 itemId,
385
	3:string listingName,
386
	4:i64 listingPrice,
387
	5:i64 listingExpiryDate,
388
	6:double subsidy,
389
	7:i64 defaultWarehouseId
8739 vikram.rag 390
}
391
 
9779 kshitij.so 392
/*
393
	Return Provision, vat, commission, service tax are in percentage
394
*/
395
 
396
struct MarketplaceItems{
397
	1:i64 itemId,
398
	2:i64 source,
399
	3:double emiFee,
400
	4:double courierCost,
401
	5:double closingFee,
402
	6:double returnProvision,
403
	7:double commission,
404
	8:double vat,
405
	9:double packagingCost,
406
	10:double otherCost,
407
	11:double serviceTax,
408
	12:bool autoIncrement,
409
	13:bool autoDecrement,
410
	14:bool manualFavourite,
411
	15:bool autoFavourite,
412
	16:double currentSp,
413
	17:double currentTp,
414
	18:double minimumPossibleSp,
415
	19:double minimumPossibleTp,
9909 kshitij.so 416
	20:i64 lastCheckedTimestamp,
10287 kshitij.so 417
	21:double maximumSellingPrice,
11095 kshitij.so 418
	22:double pgFee,
419
	23:double courierCostMarketplace
9779 kshitij.so 420
}
421
 
8739 vikram.rag 422
struct SnapdealItem{
423
	1:i64 item_id,
424
	2:i64 warehouseId,
425
	3:double exceptionPrice,
9242 kshitij.so 426
	4:bool isListedOnSnapdeal,
427
	5:double transferPrice,
428
    6:double sellingPrice,
429
    7:double courierCost,
430
    8:double commission,
431
    9:double serviceTax,
432
    10:bool suppressPriceFeed,
9404 vikram.rag 433
    11:bool suppressInventoryFeed,
9478 kshitij.so 434
    12:double maxNlc,
9568 kshitij.so 435
    13:string skuAtSnapdeal,
9724 kshitij.so 436
    14:string supc,
9779 kshitij.so 437
    15:string shippingTime,
438
    16:string updatedBy,
11095 kshitij.so 439
    17:MarketplaceItems marketplaceItems,
12133 kshitij.so 440
    18:double courierCostMarketplace,
14780 manish.sha 441
    19:Item item,
442
    20:bool isVoiListed,
443
    21:double voiSellingPrice,
444
    22:bool suppressVoiPriceFeed,
445
    23:i64 voiPriceLastUpdatedOn,
446
    24:string voiSkuAtSnapdeal,
447
    25:double minimumPossibleSpVoi,
448
	26:double minimumPossibleTpVoi,
449
	27:double courierCostVoi,
450
	28:double serviceTaxVoi,
451
	29:double transferPriceVoi,
14862 manish.sha 452
	30:double commissionVoi,
453
	31:double courierCostMarketplaceVoi,
454
	32:double commissionPercentageVoi
8182 amar.kumar 455
}    
7977 kshitij.so 456
 
14862 manish.sha 457
struct VoiSnapdealItemInfo {
458
	1:i64 item_id,
459
	2:string voiSkuAtSnapdeal,
460
	3:double sellingPriceSnapdeal,
461
	4:double transferPriceSnapdeal,
462
	5:double fixedMargin,
463
	6:double fixedMarginPercentage,
464
	7:double logisticCostSnapdeal,
465
	8:double woodenPackagingCost,
466
	9:double weightSnapdeal
467
}
468
 
9242 kshitij.so 469
struct SnapdealItemDetails{
470
	1:i64 item_id,
471
	2:i64 warehouseId,
472
	3:double exceptionPrice,
473
	4:bool isListedOnSnapdeal,
474
	5:double transferPrice,
475
    6:double sellingPrice,
476
    7:double courierCost,
477
    8:double commission,
478
    9:double serviceTax,
479
    10:string brand,
480
    11:string model_name,
481
    12:string model_number,
482
    13:string color,
483
    14:bool risky,
484
    15:status itemStatus,
485
    16:bool suppressPriceFeed,
486
    17:bool suppressInventoryFeed,
487
    18:double weight,
488
    19:double mrp,
9478 kshitij.so 489
    20:double websiteSellingPrice,
490
    21:double maxNlc,
9568 kshitij.so 491
    22:string skuAtSnapdeal,
9724 kshitij.so 492
    23:string supc,
493
    24:i64 lastUpdatedInventory,
494
    25:i64 lastUpdatedInventoryTimestamp,
11095 kshitij.so 495
    26:i64 shippingTime,
14780 manish.sha 496
    27:double courierCostMarketplace,
497
    28:bool isVoiListed
9621 manish.sha 498
}
499
 
500
struct ProductFeedSubmit{
501
	1:i64 catalogItemId,
502
	2:bool stockLinkedFeed
9242 kshitij.so 503
}    
504
 
9724 kshitij.so 505
struct MarketplaceSearchFilter{
506
	1:bool isListedOnMarketplace,
507
	2:bool isInventoryOverride,
508
	3:bool isPriceOverride,
509
	4:bool isManualFavourite,
510
	5:bool isAutoFavourite,
511
	6:bool isAutoDecrement,
512
	7:bool isAutoIncrement,
513
	8:i64 source
514
}
515
 
9779 kshitij.so 516
/*
517
	Return Provision, emiFee, commission, service tax are in percentage
518
*/
519
 
520
struct MarketplacePercentage{
521
	1:i64 source,
522
	2:double emiFee,
523
	3:double closingFee,
524
	4:double returnProvision,
525
	5:double commission,
10287 kshitij.so 526
	6:double serviceTax,
527
	7:double pgFee
9779 kshitij.so 528
}
529
 
9776 vikram.rag 530
struct MarketPlaceItemPrice{
10097 kshitij.so 531
    1:i64 item_id,
532
	2:i64 source,
533
	3:double sellingPrice,
534
	4:i64 lastUpdatedOn,
535
	5:i64 lastUpdatedOnMarketplace,
536
	6:bool isPriceOverride,
9776 vikram.rag 537
	7:bool isListedOnSource
538
 
539
}
540
 
9945 vikram.rag 541
struct FlipkartItem{
10097 kshitij.so 542
    1:i64 item_id,
543
    2:double exceptionPrice,
544
    3:i64 warehouseId,
545
    4:double commissionValue,
546
    5:double serviceTaxValue,
547
    6:double maxNlc,
548
    7:string skuAtFlipkart,
549
    8:bool isListedOnFlipkart,
550
    9:bool suppressPriceFeed,
551
    10:bool suppressInventoryFeed,
552
    11:string updatedBy,
553
    12:string flipkartSerialNumber,
554
    13:MarketplaceItems marketplaceItems,
14780 manish.sha 555
    14:Item item,
556
    15:bool isFaListed
9945 vikram.rag 557
}
558
 
10097 kshitij.so 559
struct FlipkartItemDetails{
560
	1:i64 item_id,
561
	2:i64 warehouseId,
562
	3:double exceptionPrice,
563
	4:bool isListedOnFlipkart,
564
    5:double commission,
565
    6:double serviceTax,
566
    7:string brand,
567
    8:string model_name,
568
    9:string model_number,
569
    10:string color,
570
    11:bool risky,
571
    12:status itemStatus,
572
    13:bool suppressPriceFeed,
573
    14:bool suppressInventoryFeed,
574
    15:double weight,
575
    16:double mrp,
576
    17:double websiteSellingPrice,
577
    18:double maxNlc,
578
    19:string skuAtFlipkart,
579
    20:i64 lastUpdatedInventory,
580
    21:i64 lastUpdatedInventoryTimestamp,
10156 amar.kumar 581
    22:string flipkartSerialNumber,
14780 manish.sha 582
    23:i64 category,
583
    24:bool isFaListed
10097 kshitij.so 584
}
9945 vikram.rag 585
 
11531 vikram.rag 586
struct PrivateDeal{
587
	1:i64 item_id,
588
	2:double dealPrice,
589
	3:i64 dealFreebieItemId,
590
    4:i64 startDate,
591
    5:i64 endDate,
11566 vikram.rag 592
    6:i64 dealTextOption,
11531 vikram.rag 593
    7:string dealText,
594
    8:bool isCod,
11566 vikram.rag 595
    9:i64 rank,
11606 vikram.rag 596
    10:i64 dealFreebieOption,
597
    11:bool isActive
11531 vikram.rag 598
}
599
 
11015 kshitij.so 600
struct MarketplaceHistory{
601
	1:i64 item_id,
602
	2:i64 source,
603
	3:i64 timestamp,
11076 kshitij.so 604
	4:i64 lowest_possible_tp,
605
	5:i64 lowest_possible_sp,
11015 kshitij.so 606
	6:i64 ourInventory,
607
	7:i64 otherInventory,
608
	8:i64 secondLowestInventory,
609
	9:i64 ourRank,
11076 kshitij.so 610
	10:i64 ourOfferPrice,
611
	11:i64 ourSellingPrice,
612
	12:i64 ourTp,
613
	13:i64 ourNlc,
11015 kshitij.so 614
	14:CompetitionCategory competitiveCategory,
615
	15:i64 risky,
11076 kshitij.so 616
	16:i64 lowestOfferPrice,
617
	17:i64 lowestSellingPrice,
618
	18:i64 lowestTp,
11015 kshitij.so 619
	19:string lowestSellerName,
11076 kshitij.so 620
	20:i64 proposedSellingPrice,
621
	21:i64 proposedTp,
622
	22:i64 targetNlc,
11015 kshitij.so 623
	23:SalesPotential salesPotential,
624
	24:string secondLowestSellerName,
11076 kshitij.so 625
	25:i64 secondLowestSellingPrice,
626
	26:i64 secondLowestOfferPrice,
627
	27:i64 secondLowestTp,
628
	28:i64 marginIncreasedPotential,
629
	29:i64 margin,
11015 kshitij.so 630
	30:bool ourEnoughStock,
631
	31:i64 totalSeller,
632
	32:double averageSale,
11076 kshitij.so 633
	33:bool toGroup,
634
	34:Decision decision,
635
	35:string reason
11015 kshitij.so 636
}
637
 
11905 kshitij.so 638
struct AmazonOutOfSync{
639
	1:i64 item_id,
640
	2:bool mfn,
641
	3:bool fba,
642
	4:bool fbb
643
}
644
 
645
struct PdPriceComp{
646
	1:i64 item_id,
647
	2:double dealPrice,
648
	3:double saholicPrice,
649
	4:double sdPrice,
650
	5:double fkPrice,
651
	6:double amazonPrice,
12169 kshitij.so 652
	7:string productName,
12243 kshitij.so 653
	8:i64 lastProcessedTimestamp,
654
	9:double diff
11905 kshitij.so 655
}
13709 manish.sha 656
/*
657
struct DealTag{
658
	1:i64 id,
659
	2:string name
660
}
11905 kshitij.so 661
 
13709 manish.sha 662
struct ItemTag{
663
	1:i64 itemId,
664
	2:i64 tagId,
665
	3:i64 startDate,
666
	4:i64 endDate,
667
	5:bool status
668
}*/
669
 
12243 kshitij.so 670
struct CompetitorPricing {
671
	1:i64 item_id,
672
	2:bool isSnapdeal,
673
	3:bool isFlipkart,
674
	4:bool isAmazon,
675
	5:double lowestSnapdealPrice,
676
	6:double lowestFlipkartPrice,
12257 kshitij.so 677
	7:bool processed,
678
	8:i64 uploadId,
679
	9:string userEmail,
680
	10:double ourSnapdealPrice,
681
	11:double ourSnapdealOfferPrice,
682
	12:i64 ourSnapdealInventory,
683
	13:double lowestSnapdealOfferPrice,
684
	14:string lowestSnapdealSeller,
685
	15:i64 lowestSnapdealSellerInventory,
686
	16:double ourFlipkartPrice,
687
	17:i64 ourFlipkartInventory,
688
	18:string lowestFlipkartSeller,
15488 kshitij.so 689
	19:double ourAmazonPrice,
690
	20:double lowestAmazonPrice,
691
	21:string lowestAmazonSeller,
692
	22:string productName
12243 kshitij.so 693
}
694
 
12363 kshitij.so 695
struct AmazonPromotion{
696
	1:string sku,
697
	2:double standardPrice,
698
	3:double salePrice,
699
	4:i64 startDate,
700
	5:i64 endDate,
701
	6:i64 addedOn,
702
	7:i64 updatedOnMarketplace
703
	8:i64 stateId,
704
	9:bool promotionActive,
705
	10:double subsidyAmount,
706
	11:AmazonPromotionType promotionType
707
}
708
 
13709 manish.sha 709
struct HsItem{
710
	1:string hsItemId,
711
	2:i64 itemId,
712
	3:string hsProductId,
713
	4:i64 listingPrice,
714
	5:i64 defaultWarehouseId
715
	6:i64 addedTimestamp,
716
	7:string addedBy
717
}
718
 
5945 mandeep.dh 719
service CatalogService extends GenericService.GenericService{
763 rajveer 720
 
85 ashish 721
/**
722
	Availability and inventory attributes	
723
*/
724
	//all add and update methods - added by Ashish
5945 mandeep.dh 725
	i64 addItem(1:Item item) throws (1:CatalogServiceException cex),
726
	i64 updateItem(1:Item item) throws (1:CatalogServiceException cex),
2983 chandransh 727
 
728
	/**
729
	Checks if the item given to the corresponding itemId is active. If it's active,
730
	whether it's risky and if it's risky, its inventory position.
731
	*/
5945 mandeep.dh 732
	ItemShippingInfo isActive(1:i64 itemId) throws (1:CatalogServiceException isex),
7438 amit.gupta 733
 
734
	map<i64, bool> getItemsStatus(1:list<i64> itemIds) throws (1:CatalogServiceException isex),
2983 chandransh 735
 
5945 mandeep.dh 736
	string getItemStatusDescription(1:i64 itemId) throws (1:CatalogServiceException isex),
3323 chandransh 737
 
103 ashish 738
	//Item management apis
5945 mandeep.dh 739
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
740
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
741
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:CatalogServiceException cex),
85 ashish 742
	//Other accessor methods - added by Ashish
5945 mandeep.dh 743
	Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),
13495 amit.gupta 744
	map<i64, Item> getItems(1:list<i64> item_ids) throws (1:CatalogServiceException cex),
5945 mandeep.dh 745
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
746
	list<Item> getValidItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
747
	list<Item> getAllItems(1:bool isActive) throws (1:CatalogServiceException cex),
748
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:CatalogServiceException cex),
9253 rajveer 749
	bool markItemAsContentComplete(1:i64 entityId, 2:i64 category, 3:string brand, 4:string modelName, 5:string modelNumber, 6:bool isAndroid) throws (1:CatalogServiceException cex),
12523 amit.gupta 750
	map<i64, double> getVatRates(1:i64 itemId, 2:i64 categoryId) throws (1:CatalogServiceException cex),
646 chandransh 751
 
3355 chandransh 752
	/**
3848 chandransh 753
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
754
	*/
5945 mandeep.dh 755
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 756
 
757
	/**
758
	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.
759
	*/
5945 mandeep.dh 760
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 761
 
762
	/**
763
	Gets a count of all items by status
764
	*/
765
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 766
 
502 rajveer 767
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 768
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
769
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
770
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 771
 
5945 mandeep.dh 772
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
773
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
774
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 775
 
5945 mandeep.dh 776
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
777
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
778
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 779
 
2975 chandransh 780
	/**
781
	Returns a list of items sorted in the descending order by start date.
782
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
783
	*/
5945 mandeep.dh 784
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 785
 
786
	/**
787
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
788
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
789
	*/
5945 mandeep.dh 790
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 791
 
792
	/**
793
	Get the total number of latest arrivals we are willing to show.
794
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
795
	*/
5945 mandeep.dh 796
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 797
 
1157 rajveer 798
 
799
	i64 generateNewEntityID(),
800
 
801
	/**
1967 rajveer 802
	* All category related functions
803
	*/
804
	bool addCategory(1:Category category),
805
	Category getCategory(1:i64 id),
1990 ankur.sing 806
	list<Category> getAllCategories(),
1967 rajveer 807
 
1990 ankur.sing 808
	/**
4423 phani.kuma 809
	Returns the list of similar items.
810
	*/
811
	list<Item> getAllSimilarItems(1:i64 itemId),
812
 
813
	/**
814
	Adds similar item.
815
	*/
5945 mandeep.dh 816
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 817
 
818
	/**
6511 kshitij.so 819
	Tag Related
820
	*/
821
 
822
	bool addTag(1:string displayName, 2:i64 itemId),
823
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
824
	bool deleteTag(1:string displayName),
825
	list<string> getAllTags(),
826
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 827
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 828
 
8579 kshitij.so 829
	/**
830
	Banner Related
831
	*/
832
 
10097 kshitij.so 833
	bool addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 834
	bool updateBanner(1:Banner banner),
835
	list <Banner> getAllBanners(),
9155 kshitij.so 836
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
837
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 838
	map<string,list<Banner>> getActiveBanners(),
839
	bool addBannerMap(1:list<BannerMap> bannerMaps),
840
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 841
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 842
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 843
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 844
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 845
	void addCampaign(1:Campaign campaign),
846
	list<Campaign> getCampaigns(1:string campaignName),
847
	void deleteCampaign(1:i64 campaignId),
848
	list<string> getAllCampaigns(),
9155 kshitij.so 849
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 850
	/**
4423 phani.kuma 851
	Delete similar item.
852
	*/
5945 mandeep.dh 853
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 854
 
855
	/**
4725 phani.kuma 856
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 857
	If yes, returns the itemId else returns 0
858
	*/
4725 phani.kuma 859
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 860
 
861
	/**
5945 mandeep.dh 862
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 863
	*/
5945 mandeep.dh 864
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 865
 
866
	/**
5945 mandeep.dh 867
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
868
    */
869
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
870
 
871
 
872
	/**
2356 ankur.sing 873
	Returns list of items marked as risky.
874
	*/
875
	list<Item> getItemsByRiskyFlag(),
876
 
877
	/**
4957 phani.kuma 878
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 879
	*/
4957 phani.kuma 880
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 881
 
882
	/**
883
	Returns list of catalog ids of items with same similarity index as of the given itemId 
884
	*/
885
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 886
 
887
	/**
888
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
889
	*/
3086 rajveer 890
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 891
 
3086 rajveer 892
	/**
893
		Send the product notifications to the users for items which has stock.
894
	*/
3348 varun.gupt 895
	bool sendProductNotifications(),
3079 rajveer 896
 
3348 varun.gupt 897
	/**
898
		Returns list of brand names for a given category Id
899
	*/
3556 rajveer 900
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 901
 
902
    /**
903
		Returns list of brand names
904
	*/
905
	list<string> getAllBrands(),
906
 
3556 rajveer 907
	/**
908
	Return list of all sources
909
	*/
910
	list<Source> getAllSources(), 
911
 
912
	/**
913
	Returns the pricing information of an item. If no information is found, exception will be thrown.
914
	*/
5945 mandeep.dh 915
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 916
 
917
	/**
918
	Adds prices to be displayed corresponding to the item if user comes from a source.
919
	If item is not found or source is not found, it will throw exception.
920
	*/
5945 mandeep.dh 921
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 922
 
923
	/**
924
	Returns the list of source pricing information of an item.
925
	Raises an exception if item not found corresponding to itemId
926
	*/
5945 mandeep.dh 927
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 928
 
929
	/**
930
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
931
	*/
5945 mandeep.dh 932
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 933
 
934
	/**
935
	Searches items matching the the given terms in the catalog and returns results within the specified range.
936
	*/
937
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
938
 
939
	/**
940
	Gets the count of search results for the given search terms so that the user can go through all the pages.
941
	*/
4024 chandransh 942
	i32 getSearchResultCount(1:list<string> searchTerms),
943
 
944
	/**
4295 varun.gupt 945
	Returns a list of product notifications added after a supplied datetime
946
	*/
947
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
948
 
949
	/**
950
	Returns a list of count of requests for product notification against each item
951
	*/
7897 amar.kumar 952
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 953
 
954
	/**
4649 phani.kuma 955
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
956
	*/
5945 mandeep.dh 957
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 958
 
5945 mandeep.dh 959
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 960
 
5945 mandeep.dh 961
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 962
 
5512 rajveer 963
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 964
 
965
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 966
 
6039 amit.gupta 967
	bool isValidCatalogItemId(1:i64 catalog_item_id),
968
 
7340 amit.gupta 969
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 970
 
971
	double getVatAmountForItem(1:i64 itemId, 2:double price),
972
 
6821 amar.kumar 973
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
974
 
975
	list<Item> getAllAliveItems();	
6805 anupam.sin 976
 
977
	/**
978
	This method returns the insurance amount needed to insure the given item for a given quantity.
979
	*/
6921 anupam.sin 980
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 981
 
6921 anupam.sin 982
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 983
 
6962 rajveer 984
	list<Insurer> getAllInsurers(),
985
 
7190 amar.kumar 986
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
987
 
988
	i64 getFreebieForItem(1:i64 itemId),
989
 
7256 rajveer 990
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
991
 
7272 amit.gupta 992
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
993
 
7291 vikram.rag 994
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 995
 
7265 rajveer 996
	StorePricing getStorePricing(1:i64 itemId),
997
 
7306 rajveer 998
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
999
 
7382 rajveer 1000
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 1001
 
1002
	list<Amazonlisted> getAllAmazonListedItems(),
1003
 
8619 kshitij.so 1004
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
1005
 
1006
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
1007
 
1008
	i64 getCountForAmazonlistedItems(),
1009
 
7281 kshitij.so 1010
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
1011
 
8168 kshitij.so 1012
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 1013
 
7291 vikram.rag 1014
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 1015
 
7291 vikram.rag 1016
	list<Item> getAsinItems(),
7281 kshitij.so 1017
 
7291 vikram.rag 1018
	list<Amazonlisted> getAllFbaListedItems(),
1019
 
7460 kshitij.so 1020
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 1021
 
7770 kshitij.so 1022
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 1023
 
7770 kshitij.so 1024
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
1025
 
7897 amar.kumar 1026
	list<Category> getAllParentCategories()
1027
 
7977 kshitij.so 1028
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
1029
 
1030
	void addCartEvent(1:CartEvents cartEvents)
1031
 
8182 amar.kumar 1032
	void addEbayItem(1:EbayItem ebayItem)
1033
 
1034
	EbayItem getEbayItem(1:string listingId)
1035
 
1036
	void updateEbayItem(1:EbayItem ebayItem)
1037
 
8139 kshitij.so 1038
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
1039
 
8168 kshitij.so 1040
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 1041
 
1042
	list<Amazonlisted> getAllItemstoListOnFba()
1043
 
1044
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 1045
 
8619 kshitij.so 1046
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 1047
 
1048
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
1049
 
1050
	SnapdealItem getSnapdealItem(1:i64 item_id)
1051
 
9242 kshitij.so 1052
	SnapdealItemDetails getSnapdealItemDetails(1:i64 item_id)
9155 kshitij.so 1053
 
9242 kshitij.so 1054
	list<SnapdealItemDetails> getAllSnapdealItems()
9155 kshitij.so 1055
 
9242 kshitij.so 1056
	list<SnapdealItemDetails> getSnapdealItems(1:i64 offset,2:i64 limit)
1057
 
1058
	list<SnapdealItemDetails> searchSnapdealItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit)
1059
 
1060
	i64 getCountForSnapdealItems()
1061
 
1062
	i64 getSnapdealSearchResultCount(1:list<string> searchTerm)
9299 kshitij.so 1063
 
1064
	i64 getPrefferedInsurerForItem(1:i64 itemId, 2:InsurerType insurerType)
9456 vikram.rag 1065
 
1066
	SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)
9621 manish.sha 1067
 
1068
	ProductFeedSubmit getProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
1069
 
1070
	bool addProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
1071
 
1072
	bool updateProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
8182 amar.kumar 1073
 
9621 manish.sha 1074
	bool deleteProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
1075
 
9779 kshitij.so 1076
	list<ProductFeedSubmit> getAllProductFeedSubmit() throws (1:CatalogServiceException cex)
9724 kshitij.so 1077
 
1078
	MarketplaceItems getMarketplacedetailsForItem(1:i64 itemId,2:i64 sourceId)
1079
 
1080
	bool updateMarketplaceAttributesForItem(1:MarketplaceItems marketPlaceItem)
9776 vikram.rag 1081
 
9779 kshitij.so 1082
	MarketplacePercentage getCostingForMarketplace(1:i64 source,2:i64 item_id)
1083
 
9776 vikram.rag 1084
	list<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(1:i64 source),
1085
 
9909 kshitij.so 1086
	void updateMarketPlacePriceUpdateStatus(1:list<i64> skulist,2:i64 timestamp,3:i64 source),
9776 vikram.rag 1087
 
10097 kshitij.so 1088
	void updateItemHoldInventory(1:map<i64,i64> itemHoldMap),	
9776 vikram.rag 1089
 
10097 kshitij.so 1090
	void updateNlcAtMarketplaces(1:i64 item_id,2:i64 vendor_id,double nlc),
9895 vikram.rag 1091
 
10097 kshitij.so 1092
	list<FlipkartItem> getAllFlipkartItems(),
9945 vikram.rag 1093
 
10097 kshitij.so 1094
	bool addOrUpdateFlipkartItem(FlipkartItem flipkartitem),
1095
 
1096
	FlipkartItem getFlipkartItem(1:i64 item_id),
1097
 
1098
	FlipkartItemDetails getFlipkartItemDetails(1:i64 item_id),
1099
 
1100
	list<FlipkartItemDetails> getFlipkartItems(1:i64 offset,2:i64 limit),
1101
 
1102
	list<FlipkartItemDetails> searchFlipkartItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
1103
 
1104
	i64 getCountForFlipkartItems(),
1105
 
1106
	i64 getFlipkartSearchResultCount(1:list<string> searchTerm),
1107
 
11531 vikram.rag 1108
	list<FlipkartItemDetails> getAllFkItems()
10097 kshitij.so 1109
 
11531 vikram.rag 1110
	FlipkartItem getFlipkartItemBySkyAtFlipkart(string sku)
10140 vikram.rag 1111
 
11015 kshitij.so 1112
	list<MarketplaceHistory> getMarketplaceHistory(1:i64 source,2:i64 offset,3:i64 itemId),
1113
 
10924 vikram.rag 1114
	list<Amazonlisted> getAllFbbListedItems()
10909 vikram.rag 1115
 
10924 vikram.rag 1116
	list<Amazonlisted> getAllFbbPricingItems()
1117
 
11015 kshitij.so 1118
	i64 getCountForMarketplaceHistory(1:i64 source,2:i64 itemId)
1119
 
1120
	list<MarketplaceHistory> getMarketplaceHistoryByDate(1:i64 source,2:i64 startDate,3:i64 endDate,4:i64 offset,5:i64 limit,6:i64 itemId)
1121
 
11531 vikram.rag 1122
	PrivateDeal getPrivateDealDetails(1:i64 item_id)
1123
 
1124
	list<Item> getPrivateDealItems(1:i64 offset,2:i64 limit)
1125
 
11653 amit.gupta 1126
	map<i64, PrivateDeal> getAllActivePrivateDeals(1:list<i64> itemIds, 2:i64 daysDelta)
11592 amit.gupta 1127
 
11531 vikram.rag 1128
	bool addOrUpdatePrivateDeal(1:PrivateDeal privateDeal)
1129
 
11635 vikram.rag 1130
	list<i64> getPrivateDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:CatalogServiceException cex),
1131
 
12133 kshitij.so 1132
	i32 getPrivateDealsCount(),
11635 vikram.rag 1133
 
12133 kshitij.so 1134
	AmazonOutOfSync getAmazonOutSyncItems(1:i64 item_id),
11635 vikram.rag 1135
 
12133 kshitij.so 1136
	list<PdPriceComp> getAllPrivateDealsComparison(),
11645 amit.gupta 1137
 
13709 manish.sha 1138
	//list<DealTag> getAllDealTags() throws (1:CatalogServiceException cex)
1139
 
1140
	//list<ItemTag> getAllItemTagsByItemId(1:i64 itemId) throws (1:CatalogServiceException cex)
1141
 
1142
	//bool addUpdateItemTag(1:ItemTag itemTag, 2:bool makeStatusInactive) throws (1:CatalogServiceException cex)
1143
 
12133 kshitij.so 1144
	list<SnapdealItem> getAllSnapdealMarketplaceItem(),
11905 kshitij.so 1145
 
12243 kshitij.so 1146
	list<FlipkartItem> getAllFlipkartMarketplaceItem(),
11905 kshitij.so 1147
 
12243 kshitij.so 1148
	void addCompetitorScraping(1:map<i64,CompetitorPricing> competitorPricingMap),
1149
 
12257 kshitij.so 1150
	list<CompetitorPricing> getPreviousCompetitorScraping(1:i64 delta),
12243 kshitij.so 1151
 
12363 kshitij.so 1152
	list<CompetitorPricing> getUploadResultById(1:i64 uploadId),
12257 kshitij.so 1153
 
12947 kshitij.so 1154
	list<string> addAmazonPromotion(1:map<string,AmazonPromotion> amazonPromotions) throws (1:CatalogServiceException cex),
12257 kshitij.so 1155
 
12363 kshitij.so 1156
	list<AmazonPromotion> getAmazonPromotion(1:i64 startDate,2:i64 endDate),
1157
 
12523 amit.gupta 1158
	bool updateAmazonPromotion(1:list<AmazonPromotion> amazonPromotions),
12363 kshitij.so 1159
 
12523 amit.gupta 1160
	bool markPartiallyActive(1:i64 itemId, 2:i64 categoryId),
12363 kshitij.so 1161
 
12523 amit.gupta 1162
	bool updateItemStateVat(1:i64 itemId, 2:map<i64,double> statevat)
1163
 
12620 amit.gupta 1164
	map<i64, ExclusiveAffiliateItemInfo> getExAffiliateItemInfo()
12523 amit.gupta 1165
 
12888 kshitij.so 1166
	list<Amazonlisted> getAllItemstoListOnFbg()
12620 amit.gupta 1167
 
12888 kshitij.so 1168
	list<Amazonlisted> getAllFbgListedItems()
1169
 
13136 amit.gupta 1170
	map<i64, map<string,i64>> checkServices(1:map<i64,map<string,i64>> lines) throws (1:CatalogServiceException cex)
12888 kshitij.so 1171
 
13709 manish.sha 1172
	void addHsItem(1:list<HsItem> hsItems)
13136 amit.gupta 1173
 
13709 manish.sha 1174
	HsItem getHsItem(1:string hsItemId)
1175
 
1176
	void updateHsItem(1:HsItem hsItem)
14182 kshitij.so 1177
 
1178
	Item getPricingForDtr(1:i64 catalogItemId)
14358 kshitij.so 1179
 
15701 kshitij.so 1180
	list<Amazonlisted> getAllItemstoListOnFbd()
1181
 
1182
	list<Amazonlisted> getAllFbdListedItems()
1183
 
5110 mandeep.dh 1184
}