Subversion Repositories SmartDukaan

Rev

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