Subversion Repositories SmartDukaan

Rev

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