Subversion Repositories SmartDukaan

Rev

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