Subversion Repositories SmartDukaan

Rev

Rev 19691 | Rev 19755 | 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
 
19247 kshitij.so 739
struct ItemPricing{
740
	1:i64 item_id,
741
	2:double selling_price,
742
	3:double mrp,
743
	4:i64 preferred_vendor,
19250 kshitij.so 744
	5:double private_deal_price,
745
	6:double weight
19247 kshitij.so 746
}
18719 kshitij.so 747
 
19686 kshitij.so 748
struct BulkUploadCatalog{
749
	1:i64 catalog_item_id,
750
	2:string brand,
751
	3:string model_name,
752
	4:string model_number
753
}
19247 kshitij.so 754
 
19691 manish.sha 755
enum ItemCondition{
756
	DAMAGED,
757
	DEFECTIVE
758
}
19686 kshitij.so 759
 
5945 mandeep.dh 760
service CatalogService extends GenericService.GenericService{
763 rajveer 761
 
85 ashish 762
/**
763
	Availability and inventory attributes	
764
*/
765
	//all add and update methods - added by Ashish
5945 mandeep.dh 766
	i64 addItem(1:Item item) throws (1:CatalogServiceException cex),
767
	i64 updateItem(1:Item item) throws (1:CatalogServiceException cex),
2983 chandransh 768
 
769
	/**
770
	Checks if the item given to the corresponding itemId is active. If it's active,
771
	whether it's risky and if it's risky, its inventory position.
772
	*/
5945 mandeep.dh 773
	ItemShippingInfo isActive(1:i64 itemId) throws (1:CatalogServiceException isex),
7438 amit.gupta 774
 
775
	map<i64, bool> getItemsStatus(1:list<i64> itemIds) throws (1:CatalogServiceException isex),
2983 chandransh 776
 
5945 mandeep.dh 777
	string getItemStatusDescription(1:i64 itemId) throws (1:CatalogServiceException isex),
3323 chandransh 778
 
103 ashish 779
	//Item management apis
5945 mandeep.dh 780
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
781
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
782
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:CatalogServiceException cex),
85 ashish 783
	//Other accessor methods - added by Ashish
5945 mandeep.dh 784
	Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),
13495 amit.gupta 785
	map<i64, Item> getItems(1:list<i64> item_ids) throws (1:CatalogServiceException cex),
5945 mandeep.dh 786
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
787
	list<Item> getValidItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
788
	list<Item> getAllItems(1:bool isActive) throws (1:CatalogServiceException cex),
789
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:CatalogServiceException cex),
9253 rajveer 790
	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 791
	map<i64, double> getVatRates(1:i64 itemId, 2:i64 categoryId) throws (1:CatalogServiceException cex),
646 chandransh 792
 
3355 chandransh 793
	/**
3848 chandransh 794
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
795
	*/
5945 mandeep.dh 796
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 797
 
798
	/**
799
	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.
800
	*/
5945 mandeep.dh 801
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 802
 
803
	/**
804
	Gets a count of all items by status
805
	*/
806
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 807
 
502 rajveer 808
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 809
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
810
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
811
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 812
 
5945 mandeep.dh 813
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
814
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
815
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 816
 
5945 mandeep.dh 817
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
818
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
819
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 820
 
2975 chandransh 821
	/**
822
	Returns a list of items sorted in the descending order by start date.
823
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
824
	*/
5945 mandeep.dh 825
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 826
 
827
	/**
828
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
829
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
830
	*/
5945 mandeep.dh 831
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 832
 
833
	/**
834
	Get the total number of latest arrivals we are willing to show.
835
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
836
	*/
5945 mandeep.dh 837
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 838
 
1157 rajveer 839
 
840
	i64 generateNewEntityID(),
841
 
842
	/**
1967 rajveer 843
	* All category related functions
844
	*/
845
	bool addCategory(1:Category category),
846
	Category getCategory(1:i64 id),
1990 ankur.sing 847
	list<Category> getAllCategories(),
1967 rajveer 848
 
1990 ankur.sing 849
	/**
4423 phani.kuma 850
	Returns the list of similar items.
851
	*/
852
	list<Item> getAllSimilarItems(1:i64 itemId),
853
 
854
	/**
855
	Adds similar item.
856
	*/
5945 mandeep.dh 857
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 858
 
859
	/**
6511 kshitij.so 860
	Tag Related
861
	*/
862
 
863
	bool addTag(1:string displayName, 2:i64 itemId),
864
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
865
	bool deleteTag(1:string displayName),
866
	list<string> getAllTags(),
867
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 868
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 869
 
8579 kshitij.so 870
	/**
871
	Banner Related
872
	*/
873
 
10097 kshitij.so 874
	bool addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 875
	bool updateBanner(1:Banner banner),
876
	list <Banner> getAllBanners(),
9155 kshitij.so 877
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
878
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 879
	map<string,list<Banner>> getActiveBanners(),
880
	bool addBannerMap(1:list<BannerMap> bannerMaps),
881
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 882
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 883
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 884
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 885
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 886
	void addCampaign(1:Campaign campaign),
887
	list<Campaign> getCampaigns(1:string campaignName),
888
	void deleteCampaign(1:i64 campaignId),
889
	list<string> getAllCampaigns(),
9155 kshitij.so 890
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 891
	/**
4423 phani.kuma 892
	Delete similar item.
893
	*/
5945 mandeep.dh 894
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 895
 
896
	/**
4725 phani.kuma 897
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 898
	If yes, returns the itemId else returns 0
899
	*/
4725 phani.kuma 900
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 901
 
902
	/**
5945 mandeep.dh 903
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 904
	*/
5945 mandeep.dh 905
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 906
 
907
	/**
5945 mandeep.dh 908
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
909
    */
910
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
911
 
912
 
913
	/**
2356 ankur.sing 914
	Returns list of items marked as risky.
915
	*/
916
	list<Item> getItemsByRiskyFlag(),
917
 
918
	/**
4957 phani.kuma 919
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 920
	*/
4957 phani.kuma 921
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 922
 
923
	/**
924
	Returns list of catalog ids of items with same similarity index as of the given itemId 
925
	*/
926
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 927
 
928
	/**
929
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
930
	*/
3086 rajveer 931
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 932
 
3086 rajveer 933
	/**
934
		Send the product notifications to the users for items which has stock.
935
	*/
3348 varun.gupt 936
	bool sendProductNotifications(),
3079 rajveer 937
 
3348 varun.gupt 938
	/**
939
		Returns list of brand names for a given category Id
940
	*/
3556 rajveer 941
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 942
 
943
    /**
944
		Returns list of brand names
945
	*/
946
	list<string> getAllBrands(),
947
 
3556 rajveer 948
	/**
949
	Return list of all sources
950
	*/
951
	list<Source> getAllSources(), 
952
 
953
	/**
954
	Returns the pricing information of an item. If no information is found, exception will be thrown.
955
	*/
5945 mandeep.dh 956
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 957
 
958
	/**
959
	Adds prices to be displayed corresponding to the item if user comes from a source.
960
	If item is not found or source is not found, it will throw exception.
961
	*/
5945 mandeep.dh 962
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 963
 
964
	/**
965
	Returns the list of source pricing information of an item.
966
	Raises an exception if item not found corresponding to itemId
967
	*/
5945 mandeep.dh 968
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 969
 
970
	/**
971
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
972
	*/
5945 mandeep.dh 973
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 974
 
975
	/**
976
	Searches items matching the the given terms in the catalog and returns results within the specified range.
977
	*/
978
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
979
 
980
	/**
981
	Gets the count of search results for the given search terms so that the user can go through all the pages.
982
	*/
4024 chandransh 983
	i32 getSearchResultCount(1:list<string> searchTerms),
984
 
985
	/**
4295 varun.gupt 986
	Returns a list of product notifications added after a supplied datetime
987
	*/
988
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
989
 
990
	/**
991
	Returns a list of count of requests for product notification against each item
992
	*/
7897 amar.kumar 993
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 994
 
995
	/**
4649 phani.kuma 996
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
997
	*/
5945 mandeep.dh 998
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 999
 
5945 mandeep.dh 1000
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 1001
 
5945 mandeep.dh 1002
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 1003
 
5512 rajveer 1004
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 1005
 
1006
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 1007
 
6039 amit.gupta 1008
	bool isValidCatalogItemId(1:i64 catalog_item_id),
1009
 
7340 amit.gupta 1010
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 1011
 
1012
	double getVatAmountForItem(1:i64 itemId, 2:double price),
1013
 
6821 amar.kumar 1014
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
1015
 
1016
	list<Item> getAllAliveItems();	
6805 anupam.sin 1017
 
1018
	/**
1019
	This method returns the insurance amount needed to insure the given item for a given quantity.
1020
	*/
6921 anupam.sin 1021
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 1022
 
6921 anupam.sin 1023
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 1024
 
6962 rajveer 1025
	list<Insurer> getAllInsurers(),
1026
 
7190 amar.kumar 1027
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
1028
 
1029
	i64 getFreebieForItem(1:i64 itemId),
1030
 
7256 rajveer 1031
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
1032
 
7272 amit.gupta 1033
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
1034
 
7291 vikram.rag 1035
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 1036
 
7265 rajveer 1037
	StorePricing getStorePricing(1:i64 itemId),
1038
 
7306 rajveer 1039
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
1040
 
7382 rajveer 1041
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 1042
 
1043
	list<Amazonlisted> getAllAmazonListedItems(),
1044
 
8619 kshitij.so 1045
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
1046
 
1047
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
1048
 
1049
	i64 getCountForAmazonlistedItems(),
1050
 
7281 kshitij.so 1051
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
1052
 
8168 kshitij.so 1053
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 1054
 
7291 vikram.rag 1055
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 1056
 
7291 vikram.rag 1057
	list<Item> getAsinItems(),
7281 kshitij.so 1058
 
7291 vikram.rag 1059
	list<Amazonlisted> getAllFbaListedItems(),
1060
 
7460 kshitij.so 1061
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 1062
 
7770 kshitij.so 1063
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 1064
 
7770 kshitij.so 1065
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
1066
 
7897 amar.kumar 1067
	list<Category> getAllParentCategories()
1068
 
7977 kshitij.so 1069
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
1070
 
1071
	void addCartEvent(1:CartEvents cartEvents)
1072
 
8182 amar.kumar 1073
	void addEbayItem(1:EbayItem ebayItem)
1074
 
1075
	EbayItem getEbayItem(1:string listingId)
1076
 
1077
	void updateEbayItem(1:EbayItem ebayItem)
1078
 
8139 kshitij.so 1079
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
1080
 
8168 kshitij.so 1081
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 1082
 
1083
	list<Amazonlisted> getAllItemstoListOnFba()
1084
 
1085
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 1086
 
8619 kshitij.so 1087
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 1088
 
1089
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
1090
 
1091
	SnapdealItem getSnapdealItem(1:i64 item_id)
1092
 
9242 kshitij.so 1093
	SnapdealItemDetails getSnapdealItemDetails(1:i64 item_id)
9155 kshitij.so 1094
 
9242 kshitij.so 1095
	list<SnapdealItemDetails> getAllSnapdealItems()
9155 kshitij.so 1096
 
9242 kshitij.so 1097
	list<SnapdealItemDetails> getSnapdealItems(1:i64 offset,2:i64 limit)
1098
 
1099
	list<SnapdealItemDetails> searchSnapdealItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit)
1100
 
1101
	i64 getCountForSnapdealItems()
1102
 
1103
	i64 getSnapdealSearchResultCount(1:list<string> searchTerm)
9299 kshitij.so 1104
 
1105
	i64 getPrefferedInsurerForItem(1:i64 itemId, 2:InsurerType insurerType)
9456 vikram.rag 1106
 
1107
	SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)
9621 manish.sha 1108
 
1109
	ProductFeedSubmit getProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
1110
 
1111
	bool addProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
1112
 
1113
	bool updateProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
8182 amar.kumar 1114
 
9621 manish.sha 1115
	bool deleteProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
1116
 
9779 kshitij.so 1117
	list<ProductFeedSubmit> getAllProductFeedSubmit() throws (1:CatalogServiceException cex)
9724 kshitij.so 1118
 
1119
	MarketplaceItems getMarketplacedetailsForItem(1:i64 itemId,2:i64 sourceId)
1120
 
1121
	bool updateMarketplaceAttributesForItem(1:MarketplaceItems marketPlaceItem)
9776 vikram.rag 1122
 
9779 kshitij.so 1123
	MarketplacePercentage getCostingForMarketplace(1:i64 source,2:i64 item_id)
1124
 
9776 vikram.rag 1125
	list<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(1:i64 source),
1126
 
9909 kshitij.so 1127
	void updateMarketPlacePriceUpdateStatus(1:list<i64> skulist,2:i64 timestamp,3:i64 source),
9776 vikram.rag 1128
 
10097 kshitij.so 1129
	void updateItemHoldInventory(1:map<i64,i64> itemHoldMap),	
9776 vikram.rag 1130
 
10097 kshitij.so 1131
	void updateNlcAtMarketplaces(1:i64 item_id,2:i64 vendor_id,double nlc),
9895 vikram.rag 1132
 
10097 kshitij.so 1133
	list<FlipkartItem> getAllFlipkartItems(),
9945 vikram.rag 1134
 
10097 kshitij.so 1135
	bool addOrUpdateFlipkartItem(FlipkartItem flipkartitem),
1136
 
1137
	FlipkartItem getFlipkartItem(1:i64 item_id),
1138
 
1139
	FlipkartItemDetails getFlipkartItemDetails(1:i64 item_id),
1140
 
1141
	list<FlipkartItemDetails> getFlipkartItems(1:i64 offset,2:i64 limit),
1142
 
1143
	list<FlipkartItemDetails> searchFlipkartItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
1144
 
1145
	i64 getCountForFlipkartItems(),
1146
 
1147
	i64 getFlipkartSearchResultCount(1:list<string> searchTerm),
1148
 
11531 vikram.rag 1149
	list<FlipkartItemDetails> getAllFkItems()
10097 kshitij.so 1150
 
11531 vikram.rag 1151
	FlipkartItem getFlipkartItemBySkyAtFlipkart(string sku)
10140 vikram.rag 1152
 
11015 kshitij.so 1153
	list<MarketplaceHistory> getMarketplaceHistory(1:i64 source,2:i64 offset,3:i64 itemId),
1154
 
10924 vikram.rag 1155
	list<Amazonlisted> getAllFbbListedItems()
10909 vikram.rag 1156
 
10924 vikram.rag 1157
	list<Amazonlisted> getAllFbbPricingItems()
1158
 
11015 kshitij.so 1159
	i64 getCountForMarketplaceHistory(1:i64 source,2:i64 itemId)
1160
 
1161
	list<MarketplaceHistory> getMarketplaceHistoryByDate(1:i64 source,2:i64 startDate,3:i64 endDate,4:i64 offset,5:i64 limit,6:i64 itemId)
1162
 
11531 vikram.rag 1163
	PrivateDeal getPrivateDealDetails(1:i64 item_id)
1164
 
1165
	list<Item> getPrivateDealItems(1:i64 offset,2:i64 limit)
1166
 
11653 amit.gupta 1167
	map<i64, PrivateDeal> getAllActivePrivateDeals(1:list<i64> itemIds, 2:i64 daysDelta)
11592 amit.gupta 1168
 
11531 vikram.rag 1169
	bool addOrUpdatePrivateDeal(1:PrivateDeal privateDeal)
1170
 
11635 vikram.rag 1171
	list<i64> getPrivateDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:CatalogServiceException cex),
1172
 
12133 kshitij.so 1173
	i32 getPrivateDealsCount(),
11635 vikram.rag 1174
 
12133 kshitij.so 1175
	AmazonOutOfSync getAmazonOutSyncItems(1:i64 item_id),
11635 vikram.rag 1176
 
12133 kshitij.so 1177
	list<PdPriceComp> getAllPrivateDealsComparison(),
11645 amit.gupta 1178
 
13709 manish.sha 1179
	//list<DealTag> getAllDealTags() throws (1:CatalogServiceException cex)
1180
 
1181
	//list<ItemTag> getAllItemTagsByItemId(1:i64 itemId) throws (1:CatalogServiceException cex)
1182
 
1183
	//bool addUpdateItemTag(1:ItemTag itemTag, 2:bool makeStatusInactive) throws (1:CatalogServiceException cex)
1184
 
12133 kshitij.so 1185
	list<SnapdealItem> getAllSnapdealMarketplaceItem(),
11905 kshitij.so 1186
 
12243 kshitij.so 1187
	list<FlipkartItem> getAllFlipkartMarketplaceItem(),
11905 kshitij.so 1188
 
12243 kshitij.so 1189
	void addCompetitorScraping(1:map<i64,CompetitorPricing> competitorPricingMap),
1190
 
12257 kshitij.so 1191
	list<CompetitorPricing> getPreviousCompetitorScraping(1:i64 delta),
12243 kshitij.so 1192
 
12363 kshitij.so 1193
	list<CompetitorPricing> getUploadResultById(1:i64 uploadId),
12257 kshitij.so 1194
 
12947 kshitij.so 1195
	list<string> addAmazonPromotion(1:map<string,AmazonPromotion> amazonPromotions) throws (1:CatalogServiceException cex),
12257 kshitij.so 1196
 
12363 kshitij.so 1197
	list<AmazonPromotion> getAmazonPromotion(1:i64 startDate,2:i64 endDate),
1198
 
12523 amit.gupta 1199
	bool updateAmazonPromotion(1:list<AmazonPromotion> amazonPromotions),
12363 kshitij.so 1200
 
12523 amit.gupta 1201
	bool markPartiallyActive(1:i64 itemId, 2:i64 categoryId),
12363 kshitij.so 1202
 
12523 amit.gupta 1203
	bool updateItemStateVat(1:i64 itemId, 2:map<i64,double> statevat)
1204
 
12620 amit.gupta 1205
	map<i64, ExclusiveAffiliateItemInfo> getExAffiliateItemInfo()
12523 amit.gupta 1206
 
12888 kshitij.so 1207
	list<Amazonlisted> getAllItemstoListOnFbg()
12620 amit.gupta 1208
 
12888 kshitij.so 1209
	list<Amazonlisted> getAllFbgListedItems()
1210
 
13136 amit.gupta 1211
	map<i64, map<string,i64>> checkServices(1:map<i64,map<string,i64>> lines) throws (1:CatalogServiceException cex)
12888 kshitij.so 1212
 
13709 manish.sha 1213
	void addHsItem(1:list<HsItem> hsItems)
13136 amit.gupta 1214
 
13709 manish.sha 1215
	HsItem getHsItem(1:string hsItemId)
1216
 
1217
	void updateHsItem(1:HsItem hsItem)
14182 kshitij.so 1218
 
18719 kshitij.so 1219
	DtrPricing getPricingForDtr(1:i64 catalogItemId)
14358 kshitij.so 1220
 
15701 kshitij.so 1221
	list<Amazonlisted> getAllItemstoListOnFbd()
1222
 
1223
	list<Amazonlisted> getAllFbdListedItems()
1224
 
18150 kshitij.so 1225
	map<i64,list<BulkItemPricing>> getBulkPricingForItems(1:list<i64> itemIds)
1226
 
1227
	BulkItemPricing addBulkPricingForItem(1:BulkItemPricing bulkItemPricing);
1228
 
1229
	bool deleteBulkPricingForItemById(1:i64 id);
1230
 
1231
	bool deleteBulkPricingForItem(1:i64 item_id);
1232
 
1233
	list<BulkItemPricing> getBulkPricingByItemId(1:i64 item_id);
1234
 
18599 kshitij.so 1235
	bool updateBulkPricesOnProduction(1:i64 item_id, 2:list<BulkItemPricing> bulkItemPricingList);
1236
 
18764 kshitij.so 1237
	list<i64> getCartByValue(1:list<i64> cartIds)
1238
 
19247 kshitij.so 1239
	bool updateItemPricing(1:list<ItemPricing> itemPricingList)
1240
 
19686 kshitij.so 1241
	void bulkUpdateCatalog(1:list<BulkUploadCatalog> bulkUploadCatalog) throws (1:CatalogServiceException cex)
1242
 
19714 manish.sha 1243
	map<string, i64> getWarrantyInfoForItem(1:i64 catalogItemId, 2:ItemCondition itemCondition) throws (1:CatalogServiceException cex)
19691 manish.sha 1244
 
19714 manish.sha 1245
	map<i64, map<string, i64>> getWarrantyInfoForItemList(1:list<i64> catalogItemIds, 2:ItemCondition itemCondition) throws (1:CatalogServiceException cex)
5110 mandeep.dh 1246
}