Subversion Repositories SmartDukaan

Rev

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