Subversion Repositories SmartDukaan

Rev

Rev 12257 | Rev 12396 | 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"
5
 
85 ashish 6
/**
7
	Objects
8
*/
9
 
123 ashish 10
/**
1330 chandransh 11
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 12
**/
5110 mandeep.dh 13
enum status {
123 ashish 14
	PHASED_OUT = 0,		//Item is no longer selling
15
	DELETED = 1,		//Item has been deliberately deleted 
3009 chandransh 16
	PAUSED = 2,			//Item's sale has been paused manually.
123 ashish 17
	ACTIVE = 3,			//Item is available for sale as of now
2984 rajveer 18
	IN_PROCESS = 4,		//Item has been added, but content is not available for the same
19
	CONTENT_COMPLETE = 5,  //The content for this item has been completed. We can start selling the item now.
5217 amit.gupta 20
	PAUSED_BY_RISK = 6,    //Item's sale has been automatically paused since it was marked as risky
10403 rajveer 21
	COMING_SOON= 7,		//Item is now in Coming Soon Page and will move to ACTIVE gradually as it achieves the Start date.
22
	PARTIALLY_ACTIVE=8
103 ashish 23
}
24
 
5110 mandeep.dh 25
enum ItemType {
26
    SERIALIZED = 1,
27
    NON_SERIALIZED = 2
28
}
29
 
6805 anupam.sin 30
enum PremiumType {
31
    PERCENT = 1,
32
    ABSOLUTE = 2
33
}
34
 
9155 kshitij.so 35
enum BannerType{
36
	WEBSITE  = 1,
37
	SIDE_BANNER = 2,
38
	MOBILE_SITE = 3
39
}
40
 
9299 kshitij.so 41
enum InsurerType {
42
	DEVICE = 1,
43
	DATA = 2
44
}
45
 
9884 kshitij.so 46
enum CompetitionCategory {
47
	CANT_COMPETE = 1,
48
	BUY_BOX = 2,
49
	COMPETITIVE = 3,
50
	COMPETITIVE_NO_INVENTORY = 4,
51
	EXCEPTION = 5,
11015 kshitij.so 52
	NEGATIVE_MARGIN = 6,
53
	CHEAP_BUT_NOT_PREF = 7,
12363 kshitij.so 54
	PREF_BUT_NOT_CHEAP = 8,
55
	AMONG_CHEAPEST_CAN_COMPETE = 9,
56
	ALMOST_COMPETE = 10
9884 kshitij.so 57
}
58
 
59
enum CompetitionBasis {
60
	SP = 1, 
61
	TP = 2
62
}
63
 
64
enum SalesPotential {
65
	HIGH = 1,
66
	MEDIUM = 2,
67
	LOW = 3 
68
}
69
 
9909 kshitij.so 70
enum Decision {
71
	AUTO_DECREMENT_SUCCESS = 1,
72
	AUTO_INCREMENT_SUCCESS = 2,
73
	AUTO_DECREMENT_FAILED = 3,
74
	AUTO_INCREMENT_FAILED = 4
75
}
76
 
9949 kshitij.so 77
enum RunType {
78
	FULL = 1,
79
	FAVOURITE = 2
80
}
81
 
12363 kshitij.so 82
enum AmazonPromotionType {
83
	LONGTERM = 1,
84
	SHORTTERM = 2
85
}
86
 
85 ashish 87
struct Item{
88
	1:i64 id,
956 chandransh 89
	2:string productGroup
90
	3:string brand,
91
	4:string modelNumber,
2128 ankur.sing 92
	5:string modelName,
93
	6:string color,
94
	7:i64 category,
95
	8:string comments,
96
	9:i64 catalogItemId,
97
	10:i64 featureId,
98
	11:string featureDescription,
2127 ankur.sing 99
	13:optional double mrp, //maxmimum retail price
4762 phani.kuma 100
	14:optional double sellingPrice, //Selling price
101
	15:optional double weight,
102
	16:i64 addedOn,
103
	17:optional i64 startDate,
104
	18:optional i64 retireDate,
105
	19:status itemStatus,
106
	20:string status_description,
5324 rajveer 107
	21:map<string,string> otherInfo,
4762 phani.kuma 108
	22:string bestDealText,
109
	23:optional double bestDealValue,
110
	24:bool defaultForEntity,
111
	25:i64 updatedOn,
112
	26:optional i64 bestSellingRank,
113
	27:bool risky,
114
	28:optional i32 expectedDelay,
5440 phani.kuma 115
	29:optional bool isWarehousePreferenceSticky,
116
	30:i32 warrantyPeriod,
117
	31:optional i64 preferredVendor,
118
	32:ItemType type,
119
	33:optional i64 comingSoonStartDate,
120
	34:optional i64 expectedArrivalDate,
5460 phani.kuma 121
	35:bool hasItemNo,
7256 rajveer 122
	36:bool activeOnStore,
6805 anupam.sin 123
	38:bool showSellingPrice,
6777 vikram.rag 124
	39:string bestDealsDetailsText,
125
	40:string bestDealsDetailsLink,
7291 vikram.rag 126
	41:i64 preferredInsurer,
127
	42:string asin,
128
	43:i64 defaultInventory,
9841 rajveer 129
	44:i64 holdInventory,
130
	45:bool holdOverride
85 ashish 131
}
132
 
6805 anupam.sin 133
struct Insurer{
134
	1:i64 id,
135
	2:string name,
6903 anupam.sin 136
	3:string address,
137
	4:i64 declaredAmount,
9299 kshitij.so 138
	5:i64 creditedAmount,
139
	6:InsurerType insurerType
6805 anupam.sin 140
}
141
 
142
struct ItemInsurerMapping{
143
	1:i64 itemId,
144
	2:i64 insurer,
145
	3:PremiumType premiumType,
9299 kshitij.so 146
	4:double premiumValue,
147
	5:InsurerType insurerType
6805 anupam.sin 148
}
149
 
1967 rajveer 150
struct Category{
151
	1:i64 id,
152
	2:string label,
153
	3:string description,
154
	4:i64 parent_category_id,
155
	/**
156
	* This field should not be used.
157
	*/
158
	5:list<i64> children_category_ids
4762 phani.kuma 159
	6:string display_name
1967 rajveer 160
}
2113 ankur.sing 161
 
2983 chandransh 162
struct ItemShippingInfo{
163
	1:bool isActive,
164
	2:optional bool isRisky,
165
	3:optional i64 quantity
166
}
167
 
3556 rajveer 168
struct Source{
169
	1:i64 id,
170
	2:string name,
171
	3:string identifier
172
}
173
 
174
struct SourceItemPricing{
175
	1:i64 sourceId,
176
	2:i64 itemId,
177
	3:double mrp,
178
	4:double sellingPrice
179
}
180
 
4295 varun.gupt 181
struct ProductNotificationRequest	{
182
	1:Item item,
183
	2:string email,
184
	3:i64 addedOn
185
}
186
 
187
struct ProductNotificationRequestCount	{
188
	1:Item item,
189
	2:i64 count
190
}
191
 
5504 phani.kuma 192
struct VoucherItemMapping{
5512 rajveer 193
	1:i64 voucherType,
5504 phani.kuma 194
	2:i64 itemId,
195
	3:i64 amount
196
}
197
 
5945 mandeep.dh 198
exception CatalogServiceException{
85 ashish 199
	1:i64 id,
200
	2:string message
201
}
202
 
6511 kshitij.so 203
struct EntityTag {
204
    1:i64 entityId,
205
    2:string tag
206
}
207
 
6848 kshitij.so 208
struct Banner {
209
    1:string bannerName,
210
    2:string imageName,
211
    3:string link,
8915 kshitij.so 212
    4:bool hasMap,
213
    5:i64 priority,
10097 kshitij.so 214
    6:BannerType bannerType,
215
    7:bool target
6848 kshitij.so 216
}
217
 
8579 kshitij.so 218
struct BannerUriMapping{
219
	1:string bannerName,
220
	2:string uri,
10097 kshitij.so 221
	3:bool isActive,
222
	4:bool target
8579 kshitij.so 223
}
224
 
6848 kshitij.so 225
struct BannerMap {
226
    1:string bannerName,
227
    2:string mapLink,
228
    3:string coordinates
229
}
230
 
8590 kshitij.so 231
struct BannerCongregate{
232
	1:Banner banner,
233
	2:list<BannerMap> bannerMaps,
9155 kshitij.so 234
	3:list<BannerUriMapping> bannerUriMappings,
235
	4:Banner antecedent 
8590 kshitij.so 236
}
237
 
8579 kshitij.so 238
struct Campaign {
239
	1:i64 id,
240
	2:string campaignName,
241
	3:string imageName
242
}
243
 
7190 amar.kumar 244
struct FreebieItem {
245
	1:i64 itemId,
246
	2:i64 freebieItemId
247
}
248
 
7272 amit.gupta 249
struct BrandInfo {
250
	1:string name,
251
	2:string serviceCenterLocatorUrl
252
}
253
 
7256 rajveer 254
struct StorePricing {
255
    1:i64 itemId,
256
	2:double recommendedPrice,
257
	3:double minPrice,
258
	4:double maxPrice,
7308 rajveer 259
	5:double minAdvancePrice,
7351 rajveer 260
	6:double absoluteMinPrice,
261
	7:i64 freebieItemId,
262
	8:string bestDealText
7256 rajveer 263
}
264
 
7281 kshitij.so 265
struct Amazonlisted{
266
	1:i64 itemid,
267
    2:string asin,
268
    3:string name,
269
    4:string brand,
270
    5:string model,
271
    6:string manufacturer_name,
272
    7:string part_number,
273
    8:string ean,
274
    9:string upc 
275
    10:double fbaPrice,
276
    11:double sellingPrice,
277
    12:bool isFba,
278
    13:bool isNonFba,
279
    14:bool isInventoryOverride,
280
    15:string color,
7367 kshitij.so 281
    16:string category,
282
    17:i64 handlingTime,
7518 vikram.rag 283
    18:bool isCustomTime,
7770 kshitij.so 284
    19:i64 category_code,
285
    20:i64 mfnPriceLastUpdatedOn,
286
    21:i64 fbaPriceLastUpdatedOn,
287
    22:i64 mfnPriceLastUpdatedOnSc,
288
    23:i64 fbaPriceLastUpdatedOnSc
8139 kshitij.so 289
    24:bool suppressMfnPriceUpdate,
8619 kshitij.so 290
    25:bool suppressFbaPriceUpdate,
10909 vikram.rag 291
    26:string taxCode,
292
    27:string fbbtaxCode,
12363 kshitij.so 293
    28:double fbbPrice,
10909 vikram.rag 294
    29:i64 fbbPriceLastUpdatedOnSc,
295
    30:i64 fbbPriceLastUpdatedOn,
296
    31:bool isFbb,
12363 kshitij.so 297
    32:bool suppressFbbPriceUpdate,
298
    33:double fbaSalePrice, //Sale Price is only available in getAmazonItemDetails
299
    34:double fbbSalePrice,
300
    35:bool overrrideWanlc,
301
    36:double exceptionalWanlc,
302
    37:bool fcAutoPricing
7977 kshitij.so 303
}
304
 
305
struct PageViewEvents{
306
    1:i64 catalogId,
307
    2:string url,
308
    3:double sellingPrice,
309
    4:bool comingSoon,
310
    5:string ip,
311
    6:string sessionId,
312
    7:i64 eventDate
313
}
7281 kshitij.so 314
 
7977 kshitij.so 315
struct CartEvents{
316
    1:i64 catalogId,
317
    2:i64 itemId,
318
    3:double sellingPrice,
319
    4:string ip,
320
    5:string sessionId,
321
    6:bool inStock,
322
    7:bool comingSoon,
323
    8:i64 eventDate
324
}
325
 
8182 amar.kumar 326
struct EbayItem{
327
	1:string ebayListingId,
328
	2:i64 itemId,
329
	3:string listingName,
330
	4:i64 listingPrice,
331
	5:i64 listingExpiryDate,
332
	6:double subsidy,
333
	7:i64 defaultWarehouseId
8739 vikram.rag 334
}
335
 
9779 kshitij.so 336
/*
337
	Return Provision, vat, commission, service tax are in percentage
338
*/
339
 
340
struct MarketplaceItems{
341
	1:i64 itemId,
342
	2:i64 source,
343
	3:double emiFee,
344
	4:double courierCost,
345
	5:double closingFee,
346
	6:double returnProvision,
347
	7:double commission,
348
	8:double vat,
349
	9:double packagingCost,
350
	10:double otherCost,
351
	11:double serviceTax,
352
	12:bool autoIncrement,
353
	13:bool autoDecrement,
354
	14:bool manualFavourite,
355
	15:bool autoFavourite,
356
	16:double currentSp,
357
	17:double currentTp,
358
	18:double minimumPossibleSp,
359
	19:double minimumPossibleTp,
9909 kshitij.so 360
	20:i64 lastCheckedTimestamp,
10287 kshitij.so 361
	21:double maximumSellingPrice,
11095 kshitij.so 362
	22:double pgFee,
363
	23:double courierCostMarketplace
9779 kshitij.so 364
}
365
 
8739 vikram.rag 366
struct SnapdealItem{
367
	1:i64 item_id,
368
	2:i64 warehouseId,
369
	3:double exceptionPrice,
9242 kshitij.so 370
	4:bool isListedOnSnapdeal,
371
	5:double transferPrice,
372
    6:double sellingPrice,
373
    7:double courierCost,
374
    8:double commission,
375
    9:double serviceTax,
376
    10:bool suppressPriceFeed,
9404 vikram.rag 377
    11:bool suppressInventoryFeed,
9478 kshitij.so 378
    12:double maxNlc,
9568 kshitij.so 379
    13:string skuAtSnapdeal,
9724 kshitij.so 380
    14:string supc,
9779 kshitij.so 381
    15:string shippingTime,
382
    16:string updatedBy,
11095 kshitij.so 383
    17:MarketplaceItems marketplaceItems,
12133 kshitij.so 384
    18:double courierCostMarketplace,
385
    19:Item item
8182 amar.kumar 386
}    
7977 kshitij.so 387
 
9242 kshitij.so 388
struct SnapdealItemDetails{
389
	1:i64 item_id,
390
	2:i64 warehouseId,
391
	3:double exceptionPrice,
392
	4:bool isListedOnSnapdeal,
393
	5:double transferPrice,
394
    6:double sellingPrice,
395
    7:double courierCost,
396
    8:double commission,
397
    9:double serviceTax,
398
    10:string brand,
399
    11:string model_name,
400
    12:string model_number,
401
    13:string color,
402
    14:bool risky,
403
    15:status itemStatus,
404
    16:bool suppressPriceFeed,
405
    17:bool suppressInventoryFeed,
406
    18:double weight,
407
    19:double mrp,
9478 kshitij.so 408
    20:double websiteSellingPrice,
409
    21:double maxNlc,
9568 kshitij.so 410
    22:string skuAtSnapdeal,
9724 kshitij.so 411
    23:string supc,
412
    24:i64 lastUpdatedInventory,
413
    25:i64 lastUpdatedInventoryTimestamp,
11095 kshitij.so 414
    26:i64 shippingTime,
415
    27:double courierCostMarketplace
9621 manish.sha 416
}
417
 
418
struct ProductFeedSubmit{
419
	1:i64 catalogItemId,
420
	2:bool stockLinkedFeed
9242 kshitij.so 421
}    
422
 
9724 kshitij.so 423
struct MarketplaceSearchFilter{
424
	1:bool isListedOnMarketplace,
425
	2:bool isInventoryOverride,
426
	3:bool isPriceOverride,
427
	4:bool isManualFavourite,
428
	5:bool isAutoFavourite,
429
	6:bool isAutoDecrement,
430
	7:bool isAutoIncrement,
431
	8:i64 source
432
}
433
 
9779 kshitij.so 434
/*
435
	Return Provision, emiFee, commission, service tax are in percentage
436
*/
437
 
438
struct MarketplacePercentage{
439
	1:i64 source,
440
	2:double emiFee,
441
	3:double closingFee,
442
	4:double returnProvision,
443
	5:double commission,
10287 kshitij.so 444
	6:double serviceTax,
445
	7:double pgFee
9779 kshitij.so 446
}
447
 
9776 vikram.rag 448
struct MarketPlaceItemPrice{
10097 kshitij.so 449
    1:i64 item_id,
450
	2:i64 source,
451
	3:double sellingPrice,
452
	4:i64 lastUpdatedOn,
453
	5:i64 lastUpdatedOnMarketplace,
454
	6:bool isPriceOverride,
9776 vikram.rag 455
	7:bool isListedOnSource
456
 
457
}
458
 
9945 vikram.rag 459
struct FlipkartItem{
10097 kshitij.so 460
    1:i64 item_id,
461
    2:double exceptionPrice,
462
    3:i64 warehouseId,
463
    4:double commissionValue,
464
    5:double serviceTaxValue,
465
    6:double maxNlc,
466
    7:string skuAtFlipkart,
467
    8:bool isListedOnFlipkart,
468
    9:bool suppressPriceFeed,
469
    10:bool suppressInventoryFeed,
470
    11:string updatedBy,
471
    12:string flipkartSerialNumber,
472
    13:MarketplaceItems marketplaceItems,
12133 kshitij.so 473
    14:Item item
9945 vikram.rag 474
}
475
 
10097 kshitij.so 476
struct FlipkartItemDetails{
477
	1:i64 item_id,
478
	2:i64 warehouseId,
479
	3:double exceptionPrice,
480
	4:bool isListedOnFlipkart,
481
    5:double commission,
482
    6:double serviceTax,
483
    7:string brand,
484
    8:string model_name,
485
    9:string model_number,
486
    10:string color,
487
    11:bool risky,
488
    12:status itemStatus,
489
    13:bool suppressPriceFeed,
490
    14:bool suppressInventoryFeed,
491
    15:double weight,
492
    16:double mrp,
493
    17:double websiteSellingPrice,
494
    18:double maxNlc,
495
    19:string skuAtFlipkart,
496
    20:i64 lastUpdatedInventory,
497
    21:i64 lastUpdatedInventoryTimestamp,
10156 amar.kumar 498
    22:string flipkartSerialNumber,
499
    23:i64 category
10097 kshitij.so 500
}
9945 vikram.rag 501
 
11531 vikram.rag 502
struct PrivateDeal{
503
	1:i64 item_id,
504
	2:double dealPrice,
505
	3:i64 dealFreebieItemId,
506
    4:i64 startDate,
507
    5:i64 endDate,
11566 vikram.rag 508
    6:i64 dealTextOption,
11531 vikram.rag 509
    7:string dealText,
510
    8:bool isCod,
11566 vikram.rag 511
    9:i64 rank,
11606 vikram.rag 512
    10:i64 dealFreebieOption,
513
    11:bool isActive
11531 vikram.rag 514
}
515
 
11015 kshitij.so 516
struct MarketplaceHistory{
517
	1:i64 item_id,
518
	2:i64 source,
519
	3:i64 timestamp,
11076 kshitij.so 520
	4:i64 lowest_possible_tp,
521
	5:i64 lowest_possible_sp,
11015 kshitij.so 522
	6:i64 ourInventory,
523
	7:i64 otherInventory,
524
	8:i64 secondLowestInventory,
525
	9:i64 ourRank,
11076 kshitij.so 526
	10:i64 ourOfferPrice,
527
	11:i64 ourSellingPrice,
528
	12:i64 ourTp,
529
	13:i64 ourNlc,
11015 kshitij.so 530
	14:CompetitionCategory competitiveCategory,
531
	15:i64 risky,
11076 kshitij.so 532
	16:i64 lowestOfferPrice,
533
	17:i64 lowestSellingPrice,
534
	18:i64 lowestTp,
11015 kshitij.so 535
	19:string lowestSellerName,
11076 kshitij.so 536
	20:i64 proposedSellingPrice,
537
	21:i64 proposedTp,
538
	22:i64 targetNlc,
11015 kshitij.so 539
	23:SalesPotential salesPotential,
540
	24:string secondLowestSellerName,
11076 kshitij.so 541
	25:i64 secondLowestSellingPrice,
542
	26:i64 secondLowestOfferPrice,
543
	27:i64 secondLowestTp,
544
	28:i64 marginIncreasedPotential,
545
	29:i64 margin,
11015 kshitij.so 546
	30:bool ourEnoughStock,
547
	31:i64 totalSeller,
548
	32:double averageSale,
11076 kshitij.so 549
	33:bool toGroup,
550
	34:Decision decision,
551
	35:string reason
11015 kshitij.so 552
}
553
 
11905 kshitij.so 554
struct AmazonOutOfSync{
555
	1:i64 item_id,
556
	2:bool mfn,
557
	3:bool fba,
558
	4:bool fbb
559
}
560
 
561
struct PdPriceComp{
562
	1:i64 item_id,
563
	2:double dealPrice,
564
	3:double saholicPrice,
565
	4:double sdPrice,
566
	5:double fkPrice,
567
	6:double amazonPrice,
12169 kshitij.so 568
	7:string productName,
12243 kshitij.so 569
	8:i64 lastProcessedTimestamp,
570
	9:double diff
11905 kshitij.so 571
}
572
 
12243 kshitij.so 573
struct CompetitorPricing {
574
	1:i64 item_id,
575
	2:bool isSnapdeal,
576
	3:bool isFlipkart,
577
	4:bool isAmazon,
578
	5:double lowestSnapdealPrice,
579
	6:double lowestFlipkartPrice,
12257 kshitij.so 580
	7:bool processed,
581
	8:i64 uploadId,
582
	9:string userEmail,
583
	10:double ourSnapdealPrice,
584
	11:double ourSnapdealOfferPrice,
585
	12:i64 ourSnapdealInventory,
586
	13:double lowestSnapdealOfferPrice,
587
	14:string lowestSnapdealSeller,
588
	15:i64 lowestSnapdealSellerInventory,
589
	16:double ourFlipkartPrice,
590
	17:i64 ourFlipkartInventory,
591
	18:string lowestFlipkartSeller,
592
	19:double ourMfnPrice,
593
	20:double ourFbaPrice,
594
	21:i64 ourMfnInventory,
595
	22:i64 ourFbaInventory,
596
	23:double lowestAmazonPrice,
597
	24:string lowestAmazonSeller,
598
	25:string productName
12243 kshitij.so 599
}
600
 
12363 kshitij.so 601
struct AmazonPromotion{
602
	1:string sku,
603
	2:double standardPrice,
604
	3:double salePrice,
605
	4:i64 startDate,
606
	5:i64 endDate,
607
	6:i64 addedOn,
608
	7:i64 updatedOnMarketplace
609
	8:i64 stateId,
610
	9:bool promotionActive,
611
	10:double subsidyAmount,
612
	11:AmazonPromotionType promotionType
613
}
614
 
5945 mandeep.dh 615
service CatalogService extends GenericService.GenericService{
763 rajveer 616
 
85 ashish 617
/**
618
	Availability and inventory attributes	
619
*/
620
	//all add and update methods - added by Ashish
5945 mandeep.dh 621
	i64 addItem(1:Item item) throws (1:CatalogServiceException cex),
622
	i64 updateItem(1:Item item) throws (1:CatalogServiceException cex),
2983 chandransh 623
 
624
	/**
625
	Checks if the item given to the corresponding itemId is active. If it's active,
626
	whether it's risky and if it's risky, its inventory position.
627
	*/
5945 mandeep.dh 628
	ItemShippingInfo isActive(1:i64 itemId) throws (1:CatalogServiceException isex),
7438 amit.gupta 629
 
630
	map<i64, bool> getItemsStatus(1:list<i64> itemIds) throws (1:CatalogServiceException isex),
2983 chandransh 631
 
5945 mandeep.dh 632
	string getItemStatusDescription(1:i64 itemId) throws (1:CatalogServiceException isex),
3323 chandransh 633
 
103 ashish 634
	//Item management apis
5945 mandeep.dh 635
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
636
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
637
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:CatalogServiceException cex),
85 ashish 638
	//Other accessor methods - added by Ashish
5945 mandeep.dh 639
	Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),
640
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
641
	list<Item> getValidItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
642
	list<Item> getAllItems(1:bool isActive) throws (1:CatalogServiceException cex),
643
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:CatalogServiceException cex),
9253 rajveer 644
	bool markItemAsContentComplete(1:i64 entityId, 2:i64 category, 3:string brand, 4:string modelName, 5:string modelNumber, 6:bool isAndroid) throws (1:CatalogServiceException cex),
646 chandransh 645
 
3355 chandransh 646
	/**
3848 chandransh 647
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
648
	*/
5945 mandeep.dh 649
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 650
 
651
	/**
652
	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.
653
	*/
5945 mandeep.dh 654
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 655
 
656
	/**
657
	Gets a count of all items by status
658
	*/
659
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 660
 
502 rajveer 661
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 662
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
663
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
664
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 665
 
5945 mandeep.dh 666
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
667
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
668
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 669
 
5945 mandeep.dh 670
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
671
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
672
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 673
 
2975 chandransh 674
	/**
675
	Returns a list of items sorted in the descending order by start date.
676
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
677
	*/
5945 mandeep.dh 678
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 679
 
680
	/**
681
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
682
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
683
	*/
5945 mandeep.dh 684
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 685
 
686
	/**
687
	Get the total number of latest arrivals we are willing to show.
688
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
689
	*/
5945 mandeep.dh 690
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 691
 
1157 rajveer 692
 
693
	i64 generateNewEntityID(),
694
 
695
	/**
1967 rajveer 696
	* All category related functions
697
	*/
698
	bool addCategory(1:Category category),
699
	Category getCategory(1:i64 id),
1990 ankur.sing 700
	list<Category> getAllCategories(),
1967 rajveer 701
 
1990 ankur.sing 702
	/**
4423 phani.kuma 703
	Returns the list of similar items.
704
	*/
705
	list<Item> getAllSimilarItems(1:i64 itemId),
706
 
707
	/**
708
	Adds similar item.
709
	*/
5945 mandeep.dh 710
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 711
 
712
	/**
6511 kshitij.so 713
	Tag Related
714
	*/
715
 
716
	bool addTag(1:string displayName, 2:i64 itemId),
717
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
718
	bool deleteTag(1:string displayName),
719
	list<string> getAllTags(),
720
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 721
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 722
 
8579 kshitij.so 723
	/**
724
	Banner Related
725
	*/
726
 
10097 kshitij.so 727
	bool addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 728
	bool updateBanner(1:Banner banner),
729
	list <Banner> getAllBanners(),
9155 kshitij.so 730
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
731
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 732
	map<string,list<Banner>> getActiveBanners(),
733
	bool addBannerMap(1:list<BannerMap> bannerMaps),
734
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 735
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 736
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 737
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 738
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 739
	void addCampaign(1:Campaign campaign),
740
	list<Campaign> getCampaigns(1:string campaignName),
741
	void deleteCampaign(1:i64 campaignId),
742
	list<string> getAllCampaigns(),
9155 kshitij.so 743
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 744
	/**
4423 phani.kuma 745
	Delete similar item.
746
	*/
5945 mandeep.dh 747
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 748
 
749
	/**
4725 phani.kuma 750
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 751
	If yes, returns the itemId else returns 0
752
	*/
4725 phani.kuma 753
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 754
 
755
	/**
5945 mandeep.dh 756
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 757
	*/
5945 mandeep.dh 758
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 759
 
760
	/**
5945 mandeep.dh 761
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
762
    */
763
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
764
 
765
 
766
	/**
2356 ankur.sing 767
	Returns list of items marked as risky.
768
	*/
769
	list<Item> getItemsByRiskyFlag(),
770
 
771
	/**
4957 phani.kuma 772
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 773
	*/
4957 phani.kuma 774
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 775
 
776
	/**
777
	Returns list of catalog ids of items with same similarity index as of the given itemId 
778
	*/
779
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 780
 
781
	/**
782
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
783
	*/
3086 rajveer 784
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 785
 
3086 rajveer 786
	/**
787
		Send the product notifications to the users for items which has stock.
788
	*/
3348 varun.gupt 789
	bool sendProductNotifications(),
3079 rajveer 790
 
3348 varun.gupt 791
	/**
792
		Returns list of brand names for a given category Id
793
	*/
3556 rajveer 794
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 795
 
796
    /**
797
		Returns list of brand names
798
	*/
799
	list<string> getAllBrands(),
800
 
3556 rajveer 801
	/**
802
	Return list of all sources
803
	*/
804
	list<Source> getAllSources(), 
805
 
806
	/**
807
	Returns the pricing information of an item. If no information is found, exception will be thrown.
808
	*/
5945 mandeep.dh 809
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 810
 
811
	/**
812
	Adds prices to be displayed corresponding to the item if user comes from a source.
813
	If item is not found or source is not found, it will throw exception.
814
	*/
5945 mandeep.dh 815
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 816
 
817
	/**
818
	Returns the list of source pricing information of an item.
819
	Raises an exception if item not found corresponding to itemId
820
	*/
5945 mandeep.dh 821
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 822
 
823
	/**
824
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
825
	*/
5945 mandeep.dh 826
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 827
 
828
	/**
829
	Searches items matching the the given terms in the catalog and returns results within the specified range.
830
	*/
831
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
832
 
833
	/**
834
	Gets the count of search results for the given search terms so that the user can go through all the pages.
835
	*/
4024 chandransh 836
	i32 getSearchResultCount(1:list<string> searchTerms),
837
 
838
	/**
4295 varun.gupt 839
	Returns a list of product notifications added after a supplied datetime
840
	*/
841
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
842
 
843
	/**
844
	Returns a list of count of requests for product notification against each item
845
	*/
7897 amar.kumar 846
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 847
 
848
	/**
4649 phani.kuma 849
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
850
	*/
5945 mandeep.dh 851
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 852
 
5945 mandeep.dh 853
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 854
 
5945 mandeep.dh 855
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 856
 
5512 rajveer 857
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 858
 
859
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 860
 
6039 amit.gupta 861
	bool isValidCatalogItemId(1:i64 catalog_item_id),
862
 
7340 amit.gupta 863
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 864
 
865
	double getVatAmountForItem(1:i64 itemId, 2:double price),
866
 
6821 amar.kumar 867
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
868
 
869
	list<Item> getAllAliveItems();	
6805 anupam.sin 870
 
871
	/**
872
	This method returns the insurance amount needed to insure the given item for a given quantity.
873
	*/
6921 anupam.sin 874
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 875
 
6921 anupam.sin 876
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 877
 
6962 rajveer 878
	list<Insurer> getAllInsurers(),
879
 
7190 amar.kumar 880
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
881
 
882
	i64 getFreebieForItem(1:i64 itemId),
883
 
7256 rajveer 884
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
885
 
7272 amit.gupta 886
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
887
 
7291 vikram.rag 888
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 889
 
7265 rajveer 890
	StorePricing getStorePricing(1:i64 itemId),
891
 
7306 rajveer 892
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
893
 
7382 rajveer 894
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 895
 
896
	list<Amazonlisted> getAllAmazonListedItems(),
897
 
8619 kshitij.so 898
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
899
 
900
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
901
 
902
	i64 getCountForAmazonlistedItems(),
903
 
7281 kshitij.so 904
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
905
 
8168 kshitij.so 906
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 907
 
7291 vikram.rag 908
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 909
 
7291 vikram.rag 910
	list<Item> getAsinItems(),
7281 kshitij.so 911
 
7291 vikram.rag 912
	list<Amazonlisted> getAllFbaListedItems(),
913
 
7460 kshitij.so 914
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 915
 
7770 kshitij.so 916
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 917
 
7770 kshitij.so 918
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
919
 
7897 amar.kumar 920
	list<Category> getAllParentCategories()
921
 
7977 kshitij.so 922
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
923
 
924
	void addCartEvent(1:CartEvents cartEvents)
925
 
8182 amar.kumar 926
	void addEbayItem(1:EbayItem ebayItem)
927
 
928
	EbayItem getEbayItem(1:string listingId)
929
 
930
	void updateEbayItem(1:EbayItem ebayItem)
931
 
8139 kshitij.so 932
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
933
 
8168 kshitij.so 934
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 935
 
936
	list<Amazonlisted> getAllItemstoListOnFba()
937
 
938
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 939
 
8619 kshitij.so 940
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 941
 
942
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
943
 
944
	SnapdealItem getSnapdealItem(1:i64 item_id)
945
 
9242 kshitij.so 946
	SnapdealItemDetails getSnapdealItemDetails(1:i64 item_id)
9155 kshitij.so 947
 
9242 kshitij.so 948
	list<SnapdealItemDetails> getAllSnapdealItems()
9155 kshitij.so 949
 
9242 kshitij.so 950
	list<SnapdealItemDetails> getSnapdealItems(1:i64 offset,2:i64 limit)
951
 
952
	list<SnapdealItemDetails> searchSnapdealItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit)
953
 
954
	i64 getCountForSnapdealItems()
955
 
956
	i64 getSnapdealSearchResultCount(1:list<string> searchTerm)
9299 kshitij.so 957
 
958
	i64 getPrefferedInsurerForItem(1:i64 itemId, 2:InsurerType insurerType)
9456 vikram.rag 959
 
960
	SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)
9621 manish.sha 961
 
962
	ProductFeedSubmit getProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
963
 
964
	bool addProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
965
 
966
	bool updateProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
8182 amar.kumar 967
 
9621 manish.sha 968
	bool deleteProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
969
 
9779 kshitij.so 970
	list<ProductFeedSubmit> getAllProductFeedSubmit() throws (1:CatalogServiceException cex)
9724 kshitij.so 971
 
972
	MarketplaceItems getMarketplacedetailsForItem(1:i64 itemId,2:i64 sourceId)
973
 
974
	bool updateMarketplaceAttributesForItem(1:MarketplaceItems marketPlaceItem)
9776 vikram.rag 975
 
9779 kshitij.so 976
	MarketplacePercentage getCostingForMarketplace(1:i64 source,2:i64 item_id)
977
 
9776 vikram.rag 978
	list<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(1:i64 source),
979
 
9909 kshitij.so 980
	void updateMarketPlacePriceUpdateStatus(1:list<i64> skulist,2:i64 timestamp,3:i64 source),
9776 vikram.rag 981
 
10097 kshitij.so 982
	void updateItemHoldInventory(1:map<i64,i64> itemHoldMap),	
9776 vikram.rag 983
 
10097 kshitij.so 984
	void updateNlcAtMarketplaces(1:i64 item_id,2:i64 vendor_id,double nlc),
9895 vikram.rag 985
 
10097 kshitij.so 986
	list<FlipkartItem> getAllFlipkartItems(),
9945 vikram.rag 987
 
10097 kshitij.so 988
	bool addOrUpdateFlipkartItem(FlipkartItem flipkartitem),
989
 
990
	FlipkartItem getFlipkartItem(1:i64 item_id),
991
 
992
	FlipkartItemDetails getFlipkartItemDetails(1:i64 item_id),
993
 
994
	list<FlipkartItemDetails> getFlipkartItems(1:i64 offset,2:i64 limit),
995
 
996
	list<FlipkartItemDetails> searchFlipkartItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
997
 
998
	i64 getCountForFlipkartItems(),
999
 
1000
	i64 getFlipkartSearchResultCount(1:list<string> searchTerm),
1001
 
11531 vikram.rag 1002
	list<FlipkartItemDetails> getAllFkItems()
10097 kshitij.so 1003
 
11531 vikram.rag 1004
	FlipkartItem getFlipkartItemBySkyAtFlipkart(string sku)
10140 vikram.rag 1005
 
11015 kshitij.so 1006
	list<MarketplaceHistory> getMarketplaceHistory(1:i64 source,2:i64 offset,3:i64 itemId),
1007
 
10924 vikram.rag 1008
	list<Amazonlisted> getAllFbbListedItems()
10909 vikram.rag 1009
 
10924 vikram.rag 1010
	list<Amazonlisted> getAllFbbPricingItems()
1011
 
11015 kshitij.so 1012
	i64 getCountForMarketplaceHistory(1:i64 source,2:i64 itemId)
1013
 
1014
	list<MarketplaceHistory> getMarketplaceHistoryByDate(1:i64 source,2:i64 startDate,3:i64 endDate,4:i64 offset,5:i64 limit,6:i64 itemId)
1015
 
11531 vikram.rag 1016
	PrivateDeal getPrivateDealDetails(1:i64 item_id)
1017
 
1018
	list<Item> getPrivateDealItems(1:i64 offset,2:i64 limit)
1019
 
11653 amit.gupta 1020
	map<i64, PrivateDeal> getAllActivePrivateDeals(1:list<i64> itemIds, 2:i64 daysDelta)
11592 amit.gupta 1021
 
11531 vikram.rag 1022
	bool addOrUpdatePrivateDeal(1:PrivateDeal privateDeal)
1023
 
11635 vikram.rag 1024
	list<i64> getPrivateDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:CatalogServiceException cex),
1025
 
12133 kshitij.so 1026
	i32 getPrivateDealsCount(),
11635 vikram.rag 1027
 
12133 kshitij.so 1028
	AmazonOutOfSync getAmazonOutSyncItems(1:i64 item_id),
11635 vikram.rag 1029
 
12133 kshitij.so 1030
	list<PdPriceComp> getAllPrivateDealsComparison(),
11645 amit.gupta 1031
 
12133 kshitij.so 1032
	list<SnapdealItem> getAllSnapdealMarketplaceItem(),
11905 kshitij.so 1033
 
12243 kshitij.so 1034
	list<FlipkartItem> getAllFlipkartMarketplaceItem(),
11905 kshitij.so 1035
 
12243 kshitij.so 1036
	void addCompetitorScraping(1:map<i64,CompetitorPricing> competitorPricingMap),
1037
 
12257 kshitij.so 1038
	list<CompetitorPricing> getPreviousCompetitorScraping(1:i64 delta),
12243 kshitij.so 1039
 
12363 kshitij.so 1040
	list<CompetitorPricing> getUploadResultById(1:i64 uploadId),
12257 kshitij.so 1041
 
12363 kshitij.so 1042
	bool addAmazonPromotion(1:map<string,AmazonPromotion> amazonPromotions),
12257 kshitij.so 1043
 
12363 kshitij.so 1044
	list<AmazonPromotion> getAmazonPromotion(1:i64 startDate,2:i64 endDate),
1045
 
1046
	bool updateAmazonPromotion(1:list<AmazonPromotion> amazonPromotions)
1047
 
1048
 
5110 mandeep.dh 1049
}