Subversion Repositories SmartDukaan

Rev

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