Subversion Repositories SmartDukaan

Rev

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