Subversion Repositories SmartDukaan

Rev

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