Subversion Repositories SmartDukaan

Rev

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