Subversion Repositories SmartDukaan

Rev

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