Subversion Repositories SmartDukaan

Rev

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