Subversion Repositories SmartDukaan

Rev

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