Subversion Repositories SmartDukaan

Rev

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