Subversion Repositories SmartDukaan

Rev

Rev 12448 | Rev 12620 | 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,
12396 kshitij.so 298
    33:double fbaSalePrice, //33-40 are only available in getAmazonDetails
12363 kshitij.so 299
    34:double fbbSalePrice,
300
    35:bool overrrideWanlc,
301
    36:double exceptionalWanlc,
12448 kshitij.so 302
    37:bool autoIncrement,
303
    38:bool autoDecrement,
304
    39:bool autoFavourite,
305
    40:bool manualFavourite,
306
    41:double otherCost
7977 kshitij.so 307
}
308
 
309
struct PageViewEvents{
310
    1:i64 catalogId,
311
    2:string url,
312
    3:double sellingPrice,
313
    4:bool comingSoon,
314
    5:string ip,
315
    6:string sessionId,
316
    7:i64 eventDate
317
}
7281 kshitij.so 318
 
7977 kshitij.so 319
struct CartEvents{
320
    1:i64 catalogId,
321
    2:i64 itemId,
322
    3:double sellingPrice,
323
    4:string ip,
324
    5:string sessionId,
325
    6:bool inStock,
326
    7:bool comingSoon,
327
    8:i64 eventDate
328
}
329
 
8182 amar.kumar 330
struct EbayItem{
331
	1:string ebayListingId,
332
	2:i64 itemId,
333
	3:string listingName,
334
	4:i64 listingPrice,
335
	5:i64 listingExpiryDate,
336
	6:double subsidy,
337
	7:i64 defaultWarehouseId
8739 vikram.rag 338
}
339
 
9779 kshitij.so 340
/*
341
	Return Provision, vat, commission, service tax are in percentage
342
*/
343
 
344
struct MarketplaceItems{
345
	1:i64 itemId,
346
	2:i64 source,
347
	3:double emiFee,
348
	4:double courierCost,
349
	5:double closingFee,
350
	6:double returnProvision,
351
	7:double commission,
352
	8:double vat,
353
	9:double packagingCost,
354
	10:double otherCost,
355
	11:double serviceTax,
356
	12:bool autoIncrement,
357
	13:bool autoDecrement,
358
	14:bool manualFavourite,
359
	15:bool autoFavourite,
360
	16:double currentSp,
361
	17:double currentTp,
362
	18:double minimumPossibleSp,
363
	19:double minimumPossibleTp,
9909 kshitij.so 364
	20:i64 lastCheckedTimestamp,
10287 kshitij.so 365
	21:double maximumSellingPrice,
11095 kshitij.so 366
	22:double pgFee,
367
	23:double courierCostMarketplace
9779 kshitij.so 368
}
369
 
8739 vikram.rag 370
struct SnapdealItem{
371
	1:i64 item_id,
372
	2:i64 warehouseId,
373
	3:double exceptionPrice,
9242 kshitij.so 374
	4:bool isListedOnSnapdeal,
375
	5:double transferPrice,
376
    6:double sellingPrice,
377
    7:double courierCost,
378
    8:double commission,
379
    9:double serviceTax,
380
    10:bool suppressPriceFeed,
9404 vikram.rag 381
    11:bool suppressInventoryFeed,
9478 kshitij.so 382
    12:double maxNlc,
9568 kshitij.so 383
    13:string skuAtSnapdeal,
9724 kshitij.so 384
    14:string supc,
9779 kshitij.so 385
    15:string shippingTime,
386
    16:string updatedBy,
11095 kshitij.so 387
    17:MarketplaceItems marketplaceItems,
12133 kshitij.so 388
    18:double courierCostMarketplace,
389
    19:Item item
8182 amar.kumar 390
}    
7977 kshitij.so 391
 
9242 kshitij.so 392
struct SnapdealItemDetails{
393
	1:i64 item_id,
394
	2:i64 warehouseId,
395
	3:double exceptionPrice,
396
	4:bool isListedOnSnapdeal,
397
	5:double transferPrice,
398
    6:double sellingPrice,
399
    7:double courierCost,
400
    8:double commission,
401
    9:double serviceTax,
402
    10:string brand,
403
    11:string model_name,
404
    12:string model_number,
405
    13:string color,
406
    14:bool risky,
407
    15:status itemStatus,
408
    16:bool suppressPriceFeed,
409
    17:bool suppressInventoryFeed,
410
    18:double weight,
411
    19:double mrp,
9478 kshitij.so 412
    20:double websiteSellingPrice,
413
    21:double maxNlc,
9568 kshitij.so 414
    22:string skuAtSnapdeal,
9724 kshitij.so 415
    23:string supc,
416
    24:i64 lastUpdatedInventory,
417
    25:i64 lastUpdatedInventoryTimestamp,
11095 kshitij.so 418
    26:i64 shippingTime,
419
    27:double courierCostMarketplace
9621 manish.sha 420
}
421
 
422
struct ProductFeedSubmit{
423
	1:i64 catalogItemId,
424
	2:bool stockLinkedFeed
9242 kshitij.so 425
}    
426
 
9724 kshitij.so 427
struct MarketplaceSearchFilter{
428
	1:bool isListedOnMarketplace,
429
	2:bool isInventoryOverride,
430
	3:bool isPriceOverride,
431
	4:bool isManualFavourite,
432
	5:bool isAutoFavourite,
433
	6:bool isAutoDecrement,
434
	7:bool isAutoIncrement,
435
	8:i64 source
436
}
437
 
9779 kshitij.so 438
/*
439
	Return Provision, emiFee, commission, service tax are in percentage
440
*/
441
 
442
struct MarketplacePercentage{
443
	1:i64 source,
444
	2:double emiFee,
445
	3:double closingFee,
446
	4:double returnProvision,
447
	5:double commission,
10287 kshitij.so 448
	6:double serviceTax,
449
	7:double pgFee
9779 kshitij.so 450
}
451
 
9776 vikram.rag 452
struct MarketPlaceItemPrice{
10097 kshitij.so 453
    1:i64 item_id,
454
	2:i64 source,
455
	3:double sellingPrice,
456
	4:i64 lastUpdatedOn,
457
	5:i64 lastUpdatedOnMarketplace,
458
	6:bool isPriceOverride,
9776 vikram.rag 459
	7:bool isListedOnSource
460
 
461
}
462
 
9945 vikram.rag 463
struct FlipkartItem{
10097 kshitij.so 464
    1:i64 item_id,
465
    2:double exceptionPrice,
466
    3:i64 warehouseId,
467
    4:double commissionValue,
468
    5:double serviceTaxValue,
469
    6:double maxNlc,
470
    7:string skuAtFlipkart,
471
    8:bool isListedOnFlipkart,
472
    9:bool suppressPriceFeed,
473
    10:bool suppressInventoryFeed,
474
    11:string updatedBy,
475
    12:string flipkartSerialNumber,
476
    13:MarketplaceItems marketplaceItems,
12133 kshitij.so 477
    14:Item item
9945 vikram.rag 478
}
479
 
10097 kshitij.so 480
struct FlipkartItemDetails{
481
	1:i64 item_id,
482
	2:i64 warehouseId,
483
	3:double exceptionPrice,
484
	4:bool isListedOnFlipkart,
485
    5:double commission,
486
    6:double serviceTax,
487
    7:string brand,
488
    8:string model_name,
489
    9:string model_number,
490
    10:string color,
491
    11:bool risky,
492
    12:status itemStatus,
493
    13:bool suppressPriceFeed,
494
    14:bool suppressInventoryFeed,
495
    15:double weight,
496
    16:double mrp,
497
    17:double websiteSellingPrice,
498
    18:double maxNlc,
499
    19:string skuAtFlipkart,
500
    20:i64 lastUpdatedInventory,
501
    21:i64 lastUpdatedInventoryTimestamp,
10156 amar.kumar 502
    22:string flipkartSerialNumber,
503
    23:i64 category
10097 kshitij.so 504
}
9945 vikram.rag 505
 
11531 vikram.rag 506
struct PrivateDeal{
507
	1:i64 item_id,
508
	2:double dealPrice,
509
	3:i64 dealFreebieItemId,
510
    4:i64 startDate,
511
    5:i64 endDate,
11566 vikram.rag 512
    6:i64 dealTextOption,
11531 vikram.rag 513
    7:string dealText,
514
    8:bool isCod,
11566 vikram.rag 515
    9:i64 rank,
11606 vikram.rag 516
    10:i64 dealFreebieOption,
517
    11:bool isActive
11531 vikram.rag 518
}
519
 
11015 kshitij.so 520
struct MarketplaceHistory{
521
	1:i64 item_id,
522
	2:i64 source,
523
	3:i64 timestamp,
11076 kshitij.so 524
	4:i64 lowest_possible_tp,
525
	5:i64 lowest_possible_sp,
11015 kshitij.so 526
	6:i64 ourInventory,
527
	7:i64 otherInventory,
528
	8:i64 secondLowestInventory,
529
	9:i64 ourRank,
11076 kshitij.so 530
	10:i64 ourOfferPrice,
531
	11:i64 ourSellingPrice,
532
	12:i64 ourTp,
533
	13:i64 ourNlc,
11015 kshitij.so 534
	14:CompetitionCategory competitiveCategory,
535
	15:i64 risky,
11076 kshitij.so 536
	16:i64 lowestOfferPrice,
537
	17:i64 lowestSellingPrice,
538
	18:i64 lowestTp,
11015 kshitij.so 539
	19:string lowestSellerName,
11076 kshitij.so 540
	20:i64 proposedSellingPrice,
541
	21:i64 proposedTp,
542
	22:i64 targetNlc,
11015 kshitij.so 543
	23:SalesPotential salesPotential,
544
	24:string secondLowestSellerName,
11076 kshitij.so 545
	25:i64 secondLowestSellingPrice,
546
	26:i64 secondLowestOfferPrice,
547
	27:i64 secondLowestTp,
548
	28:i64 marginIncreasedPotential,
549
	29:i64 margin,
11015 kshitij.so 550
	30:bool ourEnoughStock,
551
	31:i64 totalSeller,
552
	32:double averageSale,
11076 kshitij.so 553
	33:bool toGroup,
554
	34:Decision decision,
555
	35:string reason
11015 kshitij.so 556
}
557
 
11905 kshitij.so 558
struct AmazonOutOfSync{
559
	1:i64 item_id,
560
	2:bool mfn,
561
	3:bool fba,
562
	4:bool fbb
563
}
564
 
565
struct PdPriceComp{
566
	1:i64 item_id,
567
	2:double dealPrice,
568
	3:double saholicPrice,
569
	4:double sdPrice,
570
	5:double fkPrice,
571
	6:double amazonPrice,
12169 kshitij.so 572
	7:string productName,
12243 kshitij.so 573
	8:i64 lastProcessedTimestamp,
574
	9:double diff
11905 kshitij.so 575
}
576
 
12243 kshitij.so 577
struct CompetitorPricing {
578
	1:i64 item_id,
579
	2:bool isSnapdeal,
580
	3:bool isFlipkart,
581
	4:bool isAmazon,
582
	5:double lowestSnapdealPrice,
583
	6:double lowestFlipkartPrice,
12257 kshitij.so 584
	7:bool processed,
585
	8:i64 uploadId,
586
	9:string userEmail,
587
	10:double ourSnapdealPrice,
588
	11:double ourSnapdealOfferPrice,
589
	12:i64 ourSnapdealInventory,
590
	13:double lowestSnapdealOfferPrice,
591
	14:string lowestSnapdealSeller,
592
	15:i64 lowestSnapdealSellerInventory,
593
	16:double ourFlipkartPrice,
594
	17:i64 ourFlipkartInventory,
595
	18:string lowestFlipkartSeller,
596
	19:double ourMfnPrice,
597
	20:double ourFbaPrice,
598
	21:i64 ourMfnInventory,
599
	22:i64 ourFbaInventory,
600
	23:double lowestAmazonPrice,
601
	24:string lowestAmazonSeller,
602
	25:string productName
12243 kshitij.so 603
}
604
 
12363 kshitij.so 605
struct AmazonPromotion{
606
	1:string sku,
607
	2:double standardPrice,
608
	3:double salePrice,
609
	4:i64 startDate,
610
	5:i64 endDate,
611
	6:i64 addedOn,
612
	7:i64 updatedOnMarketplace
613
	8:i64 stateId,
614
	9:bool promotionActive,
615
	10:double subsidyAmount,
616
	11:AmazonPromotionType promotionType
617
}
618
 
5945 mandeep.dh 619
service CatalogService extends GenericService.GenericService{
763 rajveer 620
 
85 ashish 621
/**
622
	Availability and inventory attributes	
623
*/
624
	//all add and update methods - added by Ashish
5945 mandeep.dh 625
	i64 addItem(1:Item item) throws (1:CatalogServiceException cex),
626
	i64 updateItem(1:Item item) throws (1:CatalogServiceException cex),
2983 chandransh 627
 
628
	/**
629
	Checks if the item given to the corresponding itemId is active. If it's active,
630
	whether it's risky and if it's risky, its inventory position.
631
	*/
5945 mandeep.dh 632
	ItemShippingInfo isActive(1:i64 itemId) throws (1:CatalogServiceException isex),
7438 amit.gupta 633
 
634
	map<i64, bool> getItemsStatus(1:list<i64> itemIds) throws (1:CatalogServiceException isex),
2983 chandransh 635
 
5945 mandeep.dh 636
	string getItemStatusDescription(1:i64 itemId) throws (1:CatalogServiceException isex),
3323 chandransh 637
 
103 ashish 638
	//Item management apis
5945 mandeep.dh 639
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
640
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
641
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:CatalogServiceException cex),
85 ashish 642
	//Other accessor methods - added by Ashish
5945 mandeep.dh 643
	Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),
644
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
645
	list<Item> getValidItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
646
	list<Item> getAllItems(1:bool isActive) throws (1:CatalogServiceException cex),
647
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:CatalogServiceException cex),
9253 rajveer 648
	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 649
	map<i64, double> getVatRates(1:i64 itemId, 2:i64 categoryId) throws (1:CatalogServiceException cex),
646 chandransh 650
 
3355 chandransh 651
	/**
3848 chandransh 652
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
653
	*/
5945 mandeep.dh 654
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 655
 
656
	/**
657
	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.
658
	*/
5945 mandeep.dh 659
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 660
 
661
	/**
662
	Gets a count of all items by status
663
	*/
664
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 665
 
502 rajveer 666
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 667
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
668
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
669
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 670
 
5945 mandeep.dh 671
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
672
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
673
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 674
 
5945 mandeep.dh 675
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
676
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
677
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 678
 
2975 chandransh 679
	/**
680
	Returns a list of items sorted in the descending order by start date.
681
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
682
	*/
5945 mandeep.dh 683
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 684
 
685
	/**
686
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
687
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
688
	*/
5945 mandeep.dh 689
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 690
 
691
	/**
692
	Get the total number of latest arrivals we are willing to show.
693
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
694
	*/
5945 mandeep.dh 695
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 696
 
1157 rajveer 697
 
698
	i64 generateNewEntityID(),
699
 
700
	/**
1967 rajveer 701
	* All category related functions
702
	*/
703
	bool addCategory(1:Category category),
704
	Category getCategory(1:i64 id),
1990 ankur.sing 705
	list<Category> getAllCategories(),
1967 rajveer 706
 
1990 ankur.sing 707
	/**
4423 phani.kuma 708
	Returns the list of similar items.
709
	*/
710
	list<Item> getAllSimilarItems(1:i64 itemId),
711
 
712
	/**
713
	Adds similar item.
714
	*/
5945 mandeep.dh 715
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 716
 
717
	/**
6511 kshitij.so 718
	Tag Related
719
	*/
720
 
721
	bool addTag(1:string displayName, 2:i64 itemId),
722
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
723
	bool deleteTag(1:string displayName),
724
	list<string> getAllTags(),
725
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 726
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 727
 
8579 kshitij.so 728
	/**
729
	Banner Related
730
	*/
731
 
10097 kshitij.so 732
	bool addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 733
	bool updateBanner(1:Banner banner),
734
	list <Banner> getAllBanners(),
9155 kshitij.so 735
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
736
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 737
	map<string,list<Banner>> getActiveBanners(),
738
	bool addBannerMap(1:list<BannerMap> bannerMaps),
739
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 740
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 741
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 742
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 743
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 744
	void addCampaign(1:Campaign campaign),
745
	list<Campaign> getCampaigns(1:string campaignName),
746
	void deleteCampaign(1:i64 campaignId),
747
	list<string> getAllCampaigns(),
9155 kshitij.so 748
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 749
	/**
4423 phani.kuma 750
	Delete similar item.
751
	*/
5945 mandeep.dh 752
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 753
 
754
	/**
4725 phani.kuma 755
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 756
	If yes, returns the itemId else returns 0
757
	*/
4725 phani.kuma 758
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 759
 
760
	/**
5945 mandeep.dh 761
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 762
	*/
5945 mandeep.dh 763
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 764
 
765
	/**
5945 mandeep.dh 766
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
767
    */
768
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
769
 
770
 
771
	/**
2356 ankur.sing 772
	Returns list of items marked as risky.
773
	*/
774
	list<Item> getItemsByRiskyFlag(),
775
 
776
	/**
4957 phani.kuma 777
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 778
	*/
4957 phani.kuma 779
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 780
 
781
	/**
782
	Returns list of catalog ids of items with same similarity index as of the given itemId 
783
	*/
784
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 785
 
786
	/**
787
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
788
	*/
3086 rajveer 789
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 790
 
3086 rajveer 791
	/**
792
		Send the product notifications to the users for items which has stock.
793
	*/
3348 varun.gupt 794
	bool sendProductNotifications(),
3079 rajveer 795
 
3348 varun.gupt 796
	/**
797
		Returns list of brand names for a given category Id
798
	*/
3556 rajveer 799
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 800
 
801
    /**
802
		Returns list of brand names
803
	*/
804
	list<string> getAllBrands(),
805
 
3556 rajveer 806
	/**
807
	Return list of all sources
808
	*/
809
	list<Source> getAllSources(), 
810
 
811
	/**
812
	Returns the pricing information of an item. If no information is found, exception will be thrown.
813
	*/
5945 mandeep.dh 814
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 815
 
816
	/**
817
	Adds prices to be displayed corresponding to the item if user comes from a source.
818
	If item is not found or source is not found, it will throw exception.
819
	*/
5945 mandeep.dh 820
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 821
 
822
	/**
823
	Returns the list of source pricing information of an item.
824
	Raises an exception if item not found corresponding to itemId
825
	*/
5945 mandeep.dh 826
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 827
 
828
	/**
829
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
830
	*/
5945 mandeep.dh 831
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 832
 
833
	/**
834
	Searches items matching the the given terms in the catalog and returns results within the specified range.
835
	*/
836
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
837
 
838
	/**
839
	Gets the count of search results for the given search terms so that the user can go through all the pages.
840
	*/
4024 chandransh 841
	i32 getSearchResultCount(1:list<string> searchTerms),
842
 
843
	/**
4295 varun.gupt 844
	Returns a list of product notifications added after a supplied datetime
845
	*/
846
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
847
 
848
	/**
849
	Returns a list of count of requests for product notification against each item
850
	*/
7897 amar.kumar 851
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 852
 
853
	/**
4649 phani.kuma 854
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
855
	*/
5945 mandeep.dh 856
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 857
 
5945 mandeep.dh 858
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 859
 
5945 mandeep.dh 860
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 861
 
5512 rajveer 862
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 863
 
864
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 865
 
6039 amit.gupta 866
	bool isValidCatalogItemId(1:i64 catalog_item_id),
867
 
7340 amit.gupta 868
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 869
 
870
	double getVatAmountForItem(1:i64 itemId, 2:double price),
871
 
6821 amar.kumar 872
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
873
 
874
	list<Item> getAllAliveItems();	
6805 anupam.sin 875
 
876
	/**
877
	This method returns the insurance amount needed to insure the given item for a given quantity.
878
	*/
6921 anupam.sin 879
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 880
 
6921 anupam.sin 881
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 882
 
6962 rajveer 883
	list<Insurer> getAllInsurers(),
884
 
7190 amar.kumar 885
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
886
 
887
	i64 getFreebieForItem(1:i64 itemId),
888
 
7256 rajveer 889
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
890
 
7272 amit.gupta 891
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
892
 
7291 vikram.rag 893
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 894
 
7265 rajveer 895
	StorePricing getStorePricing(1:i64 itemId),
896
 
7306 rajveer 897
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
898
 
7382 rajveer 899
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 900
 
901
	list<Amazonlisted> getAllAmazonListedItems(),
902
 
8619 kshitij.so 903
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
904
 
905
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
906
 
907
	i64 getCountForAmazonlistedItems(),
908
 
7281 kshitij.so 909
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
910
 
8168 kshitij.so 911
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 912
 
7291 vikram.rag 913
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 914
 
7291 vikram.rag 915
	list<Item> getAsinItems(),
7281 kshitij.so 916
 
7291 vikram.rag 917
	list<Amazonlisted> getAllFbaListedItems(),
918
 
7460 kshitij.so 919
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 920
 
7770 kshitij.so 921
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 922
 
7770 kshitij.so 923
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
924
 
7897 amar.kumar 925
	list<Category> getAllParentCategories()
926
 
7977 kshitij.so 927
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
928
 
929
	void addCartEvent(1:CartEvents cartEvents)
930
 
8182 amar.kumar 931
	void addEbayItem(1:EbayItem ebayItem)
932
 
933
	EbayItem getEbayItem(1:string listingId)
934
 
935
	void updateEbayItem(1:EbayItem ebayItem)
936
 
8139 kshitij.so 937
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
938
 
8168 kshitij.so 939
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 940
 
941
	list<Amazonlisted> getAllItemstoListOnFba()
942
 
943
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 944
 
8619 kshitij.so 945
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 946
 
947
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
948
 
949
	SnapdealItem getSnapdealItem(1:i64 item_id)
950
 
9242 kshitij.so 951
	SnapdealItemDetails getSnapdealItemDetails(1:i64 item_id)
9155 kshitij.so 952
 
9242 kshitij.so 953
	list<SnapdealItemDetails> getAllSnapdealItems()
9155 kshitij.so 954
 
9242 kshitij.so 955
	list<SnapdealItemDetails> getSnapdealItems(1:i64 offset,2:i64 limit)
956
 
957
	list<SnapdealItemDetails> searchSnapdealItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit)
958
 
959
	i64 getCountForSnapdealItems()
960
 
961
	i64 getSnapdealSearchResultCount(1:list<string> searchTerm)
9299 kshitij.so 962
 
963
	i64 getPrefferedInsurerForItem(1:i64 itemId, 2:InsurerType insurerType)
9456 vikram.rag 964
 
965
	SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)
9621 manish.sha 966
 
967
	ProductFeedSubmit getProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
968
 
969
	bool addProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
970
 
971
	bool updateProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
8182 amar.kumar 972
 
9621 manish.sha 973
	bool deleteProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
974
 
9779 kshitij.so 975
	list<ProductFeedSubmit> getAllProductFeedSubmit() throws (1:CatalogServiceException cex)
9724 kshitij.so 976
 
977
	MarketplaceItems getMarketplacedetailsForItem(1:i64 itemId,2:i64 sourceId)
978
 
979
	bool updateMarketplaceAttributesForItem(1:MarketplaceItems marketPlaceItem)
9776 vikram.rag 980
 
9779 kshitij.so 981
	MarketplacePercentage getCostingForMarketplace(1:i64 source,2:i64 item_id)
982
 
9776 vikram.rag 983
	list<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(1:i64 source),
984
 
9909 kshitij.so 985
	void updateMarketPlacePriceUpdateStatus(1:list<i64> skulist,2:i64 timestamp,3:i64 source),
9776 vikram.rag 986
 
10097 kshitij.so 987
	void updateItemHoldInventory(1:map<i64,i64> itemHoldMap),	
9776 vikram.rag 988
 
10097 kshitij.so 989
	void updateNlcAtMarketplaces(1:i64 item_id,2:i64 vendor_id,double nlc),
9895 vikram.rag 990
 
10097 kshitij.so 991
	list<FlipkartItem> getAllFlipkartItems(),
9945 vikram.rag 992
 
10097 kshitij.so 993
	bool addOrUpdateFlipkartItem(FlipkartItem flipkartitem),
994
 
995
	FlipkartItem getFlipkartItem(1:i64 item_id),
996
 
997
	FlipkartItemDetails getFlipkartItemDetails(1:i64 item_id),
998
 
999
	list<FlipkartItemDetails> getFlipkartItems(1:i64 offset,2:i64 limit),
1000
 
1001
	list<FlipkartItemDetails> searchFlipkartItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
1002
 
1003
	i64 getCountForFlipkartItems(),
1004
 
1005
	i64 getFlipkartSearchResultCount(1:list<string> searchTerm),
1006
 
11531 vikram.rag 1007
	list<FlipkartItemDetails> getAllFkItems()
10097 kshitij.so 1008
 
11531 vikram.rag 1009
	FlipkartItem getFlipkartItemBySkyAtFlipkart(string sku)
10140 vikram.rag 1010
 
11015 kshitij.so 1011
	list<MarketplaceHistory> getMarketplaceHistory(1:i64 source,2:i64 offset,3:i64 itemId),
1012
 
10924 vikram.rag 1013
	list<Amazonlisted> getAllFbbListedItems()
10909 vikram.rag 1014
 
10924 vikram.rag 1015
	list<Amazonlisted> getAllFbbPricingItems()
1016
 
11015 kshitij.so 1017
	i64 getCountForMarketplaceHistory(1:i64 source,2:i64 itemId)
1018
 
1019
	list<MarketplaceHistory> getMarketplaceHistoryByDate(1:i64 source,2:i64 startDate,3:i64 endDate,4:i64 offset,5:i64 limit,6:i64 itemId)
1020
 
11531 vikram.rag 1021
	PrivateDeal getPrivateDealDetails(1:i64 item_id)
1022
 
1023
	list<Item> getPrivateDealItems(1:i64 offset,2:i64 limit)
1024
 
11653 amit.gupta 1025
	map<i64, PrivateDeal> getAllActivePrivateDeals(1:list<i64> itemIds, 2:i64 daysDelta)
11592 amit.gupta 1026
 
11531 vikram.rag 1027
	bool addOrUpdatePrivateDeal(1:PrivateDeal privateDeal)
1028
 
11635 vikram.rag 1029
	list<i64> getPrivateDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:CatalogServiceException cex),
1030
 
12133 kshitij.so 1031
	i32 getPrivateDealsCount(),
11635 vikram.rag 1032
 
12133 kshitij.so 1033
	AmazonOutOfSync getAmazonOutSyncItems(1:i64 item_id),
11635 vikram.rag 1034
 
12133 kshitij.so 1035
	list<PdPriceComp> getAllPrivateDealsComparison(),
11645 amit.gupta 1036
 
12133 kshitij.so 1037
	list<SnapdealItem> getAllSnapdealMarketplaceItem(),
11905 kshitij.so 1038
 
12243 kshitij.so 1039
	list<FlipkartItem> getAllFlipkartMarketplaceItem(),
11905 kshitij.so 1040
 
12243 kshitij.so 1041
	void addCompetitorScraping(1:map<i64,CompetitorPricing> competitorPricingMap),
1042
 
12257 kshitij.so 1043
	list<CompetitorPricing> getPreviousCompetitorScraping(1:i64 delta),
12243 kshitij.so 1044
 
12363 kshitij.so 1045
	list<CompetitorPricing> getUploadResultById(1:i64 uploadId),
12257 kshitij.so 1046
 
12363 kshitij.so 1047
	bool addAmazonPromotion(1:map<string,AmazonPromotion> amazonPromotions),
12257 kshitij.so 1048
 
12363 kshitij.so 1049
	list<AmazonPromotion> getAmazonPromotion(1:i64 startDate,2:i64 endDate),
1050
 
12523 amit.gupta 1051
	bool updateAmazonPromotion(1:list<AmazonPromotion> amazonPromotions),
12363 kshitij.so 1052
 
12523 amit.gupta 1053
	bool markPartiallyActive(1:i64 itemId, 2:i64 categoryId),
12363 kshitij.so 1054
 
12523 amit.gupta 1055
	bool updateItemStateVat(1:i64 itemId, 2:map<i64,double> statevat)
1056
 
1057
 
5110 mandeep.dh 1058
}