Subversion Repositories SmartDukaan

Rev

Rev 12396 | Rev 12523 | 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),
646 chandransh 649
 
3355 chandransh 650
	/**
3848 chandransh 651
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
652
	*/
5945 mandeep.dh 653
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 654
 
655
	/**
656
	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.
657
	*/
5945 mandeep.dh 658
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 659
 
660
	/**
661
	Gets a count of all items by status
662
	*/
663
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 664
 
502 rajveer 665
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 666
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
667
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
668
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 669
 
5945 mandeep.dh 670
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
671
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
672
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 673
 
5945 mandeep.dh 674
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
675
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
676
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 677
 
2975 chandransh 678
	/**
679
	Returns a list of items sorted in the descending order by start date.
680
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
681
	*/
5945 mandeep.dh 682
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 683
 
684
	/**
685
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
686
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
687
	*/
5945 mandeep.dh 688
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 689
 
690
	/**
691
	Get the total number of latest arrivals we are willing to show.
692
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
693
	*/
5945 mandeep.dh 694
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 695
 
1157 rajveer 696
 
697
	i64 generateNewEntityID(),
698
 
699
	/**
1967 rajveer 700
	* All category related functions
701
	*/
702
	bool addCategory(1:Category category),
703
	Category getCategory(1:i64 id),
1990 ankur.sing 704
	list<Category> getAllCategories(),
1967 rajveer 705
 
1990 ankur.sing 706
	/**
4423 phani.kuma 707
	Returns the list of similar items.
708
	*/
709
	list<Item> getAllSimilarItems(1:i64 itemId),
710
 
711
	/**
712
	Adds similar item.
713
	*/
5945 mandeep.dh 714
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 715
 
716
	/**
6511 kshitij.so 717
	Tag Related
718
	*/
719
 
720
	bool addTag(1:string displayName, 2:i64 itemId),
721
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
722
	bool deleteTag(1:string displayName),
723
	list<string> getAllTags(),
724
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 725
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 726
 
8579 kshitij.so 727
	/**
728
	Banner Related
729
	*/
730
 
10097 kshitij.so 731
	bool addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 732
	bool updateBanner(1:Banner banner),
733
	list <Banner> getAllBanners(),
9155 kshitij.so 734
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
735
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 736
	map<string,list<Banner>> getActiveBanners(),
737
	bool addBannerMap(1:list<BannerMap> bannerMaps),
738
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 739
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 740
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 741
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 742
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 743
	void addCampaign(1:Campaign campaign),
744
	list<Campaign> getCampaigns(1:string campaignName),
745
	void deleteCampaign(1:i64 campaignId),
746
	list<string> getAllCampaigns(),
9155 kshitij.so 747
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 748
	/**
4423 phani.kuma 749
	Delete similar item.
750
	*/
5945 mandeep.dh 751
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 752
 
753
	/**
4725 phani.kuma 754
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 755
	If yes, returns the itemId else returns 0
756
	*/
4725 phani.kuma 757
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 758
 
759
	/**
5945 mandeep.dh 760
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 761
	*/
5945 mandeep.dh 762
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 763
 
764
	/**
5945 mandeep.dh 765
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
766
    */
767
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
768
 
769
 
770
	/**
2356 ankur.sing 771
	Returns list of items marked as risky.
772
	*/
773
	list<Item> getItemsByRiskyFlag(),
774
 
775
	/**
4957 phani.kuma 776
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 777
	*/
4957 phani.kuma 778
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 779
 
780
	/**
781
	Returns list of catalog ids of items with same similarity index as of the given itemId 
782
	*/
783
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 784
 
785
	/**
786
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
787
	*/
3086 rajveer 788
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 789
 
3086 rajveer 790
	/**
791
		Send the product notifications to the users for items which has stock.
792
	*/
3348 varun.gupt 793
	bool sendProductNotifications(),
3079 rajveer 794
 
3348 varun.gupt 795
	/**
796
		Returns list of brand names for a given category Id
797
	*/
3556 rajveer 798
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 799
 
800
    /**
801
		Returns list of brand names
802
	*/
803
	list<string> getAllBrands(),
804
 
3556 rajveer 805
	/**
806
	Return list of all sources
807
	*/
808
	list<Source> getAllSources(), 
809
 
810
	/**
811
	Returns the pricing information of an item. If no information is found, exception will be thrown.
812
	*/
5945 mandeep.dh 813
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 814
 
815
	/**
816
	Adds prices to be displayed corresponding to the item if user comes from a source.
817
	If item is not found or source is not found, it will throw exception.
818
	*/
5945 mandeep.dh 819
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 820
 
821
	/**
822
	Returns the list of source pricing information of an item.
823
	Raises an exception if item not found corresponding to itemId
824
	*/
5945 mandeep.dh 825
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 826
 
827
	/**
828
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
829
	*/
5945 mandeep.dh 830
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 831
 
832
	/**
833
	Searches items matching the the given terms in the catalog and returns results within the specified range.
834
	*/
835
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
836
 
837
	/**
838
	Gets the count of search results for the given search terms so that the user can go through all the pages.
839
	*/
4024 chandransh 840
	i32 getSearchResultCount(1:list<string> searchTerms),
841
 
842
	/**
4295 varun.gupt 843
	Returns a list of product notifications added after a supplied datetime
844
	*/
845
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
846
 
847
	/**
848
	Returns a list of count of requests for product notification against each item
849
	*/
7897 amar.kumar 850
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 851
 
852
	/**
4649 phani.kuma 853
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
854
	*/
5945 mandeep.dh 855
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 856
 
5945 mandeep.dh 857
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 858
 
5945 mandeep.dh 859
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 860
 
5512 rajveer 861
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 862
 
863
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 864
 
6039 amit.gupta 865
	bool isValidCatalogItemId(1:i64 catalog_item_id),
866
 
7340 amit.gupta 867
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 868
 
869
	double getVatAmountForItem(1:i64 itemId, 2:double price),
870
 
6821 amar.kumar 871
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
872
 
873
	list<Item> getAllAliveItems();	
6805 anupam.sin 874
 
875
	/**
876
	This method returns the insurance amount needed to insure the given item for a given quantity.
877
	*/
6921 anupam.sin 878
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 879
 
6921 anupam.sin 880
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 881
 
6962 rajveer 882
	list<Insurer> getAllInsurers(),
883
 
7190 amar.kumar 884
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
885
 
886
	i64 getFreebieForItem(1:i64 itemId),
887
 
7256 rajveer 888
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
889
 
7272 amit.gupta 890
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
891
 
7291 vikram.rag 892
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 893
 
7265 rajveer 894
	StorePricing getStorePricing(1:i64 itemId),
895
 
7306 rajveer 896
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
897
 
7382 rajveer 898
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 899
 
900
	list<Amazonlisted> getAllAmazonListedItems(),
901
 
8619 kshitij.so 902
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
903
 
904
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
905
 
906
	i64 getCountForAmazonlistedItems(),
907
 
7281 kshitij.so 908
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
909
 
8168 kshitij.so 910
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 911
 
7291 vikram.rag 912
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 913
 
7291 vikram.rag 914
	list<Item> getAsinItems(),
7281 kshitij.so 915
 
7291 vikram.rag 916
	list<Amazonlisted> getAllFbaListedItems(),
917
 
7460 kshitij.so 918
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 919
 
7770 kshitij.so 920
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 921
 
7770 kshitij.so 922
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
923
 
7897 amar.kumar 924
	list<Category> getAllParentCategories()
925
 
7977 kshitij.so 926
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
927
 
928
	void addCartEvent(1:CartEvents cartEvents)
929
 
8182 amar.kumar 930
	void addEbayItem(1:EbayItem ebayItem)
931
 
932
	EbayItem getEbayItem(1:string listingId)
933
 
934
	void updateEbayItem(1:EbayItem ebayItem)
935
 
8139 kshitij.so 936
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
937
 
8168 kshitij.so 938
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 939
 
940
	list<Amazonlisted> getAllItemstoListOnFba()
941
 
942
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 943
 
8619 kshitij.so 944
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 945
 
946
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
947
 
948
	SnapdealItem getSnapdealItem(1:i64 item_id)
949
 
9242 kshitij.so 950
	SnapdealItemDetails getSnapdealItemDetails(1:i64 item_id)
9155 kshitij.so 951
 
9242 kshitij.so 952
	list<SnapdealItemDetails> getAllSnapdealItems()
9155 kshitij.so 953
 
9242 kshitij.so 954
	list<SnapdealItemDetails> getSnapdealItems(1:i64 offset,2:i64 limit)
955
 
956
	list<SnapdealItemDetails> searchSnapdealItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit)
957
 
958
	i64 getCountForSnapdealItems()
959
 
960
	i64 getSnapdealSearchResultCount(1:list<string> searchTerm)
9299 kshitij.so 961
 
962
	i64 getPrefferedInsurerForItem(1:i64 itemId, 2:InsurerType insurerType)
9456 vikram.rag 963
 
964
	SnapdealItem getSnapdealItembySkuAtSnapdeal(string skuAtSnapdeal)
9621 manish.sha 965
 
966
	ProductFeedSubmit getProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
967
 
968
	bool addProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
969
 
970
	bool updateProductFeedSubmit(1:ProductFeedSubmit productFeedSubmit) throws (1:CatalogServiceException cex),
8182 amar.kumar 971
 
9621 manish.sha 972
	bool deleteProductFeedSubmit(1:i64 catalogItemId) throws (1:CatalogServiceException cex),
973
 
9779 kshitij.so 974
	list<ProductFeedSubmit> getAllProductFeedSubmit() throws (1:CatalogServiceException cex)
9724 kshitij.so 975
 
976
	MarketplaceItems getMarketplacedetailsForItem(1:i64 itemId,2:i64 sourceId)
977
 
978
	bool updateMarketplaceAttributesForItem(1:MarketplaceItems marketPlaceItem)
9776 vikram.rag 979
 
9779 kshitij.so 980
	MarketplacePercentage getCostingForMarketplace(1:i64 source,2:i64 item_id)
981
 
9776 vikram.rag 982
	list<MarketPlaceItemPrice> getMarketPlaceItemsForPriceUpdate(1:i64 source),
983
 
9909 kshitij.so 984
	void updateMarketPlacePriceUpdateStatus(1:list<i64> skulist,2:i64 timestamp,3:i64 source),
9776 vikram.rag 985
 
10097 kshitij.so 986
	void updateItemHoldInventory(1:map<i64,i64> itemHoldMap),	
9776 vikram.rag 987
 
10097 kshitij.so 988
	void updateNlcAtMarketplaces(1:i64 item_id,2:i64 vendor_id,double nlc),
9895 vikram.rag 989
 
10097 kshitij.so 990
	list<FlipkartItem> getAllFlipkartItems(),
9945 vikram.rag 991
 
10097 kshitij.so 992
	bool addOrUpdateFlipkartItem(FlipkartItem flipkartitem),
993
 
994
	FlipkartItem getFlipkartItem(1:i64 item_id),
995
 
996
	FlipkartItemDetails getFlipkartItemDetails(1:i64 item_id),
997
 
998
	list<FlipkartItemDetails> getFlipkartItems(1:i64 offset,2:i64 limit),
999
 
1000
	list<FlipkartItemDetails> searchFlipkartItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
1001
 
1002
	i64 getCountForFlipkartItems(),
1003
 
1004
	i64 getFlipkartSearchResultCount(1:list<string> searchTerm),
1005
 
11531 vikram.rag 1006
	list<FlipkartItemDetails> getAllFkItems()
10097 kshitij.so 1007
 
11531 vikram.rag 1008
	FlipkartItem getFlipkartItemBySkyAtFlipkart(string sku)
10140 vikram.rag 1009
 
11015 kshitij.so 1010
	list<MarketplaceHistory> getMarketplaceHistory(1:i64 source,2:i64 offset,3:i64 itemId),
1011
 
10924 vikram.rag 1012
	list<Amazonlisted> getAllFbbListedItems()
10909 vikram.rag 1013
 
10924 vikram.rag 1014
	list<Amazonlisted> getAllFbbPricingItems()
1015
 
11015 kshitij.so 1016
	i64 getCountForMarketplaceHistory(1:i64 source,2:i64 itemId)
1017
 
1018
	list<MarketplaceHistory> getMarketplaceHistoryByDate(1:i64 source,2:i64 startDate,3:i64 endDate,4:i64 offset,5:i64 limit,6:i64 itemId)
1019
 
11531 vikram.rag 1020
	PrivateDeal getPrivateDealDetails(1:i64 item_id)
1021
 
1022
	list<Item> getPrivateDealItems(1:i64 offset,2:i64 limit)
1023
 
11653 amit.gupta 1024
	map<i64, PrivateDeal> getAllActivePrivateDeals(1:list<i64> itemIds, 2:i64 daysDelta)
11592 amit.gupta 1025
 
11531 vikram.rag 1026
	bool addOrUpdatePrivateDeal(1:PrivateDeal privateDeal)
1027
 
11635 vikram.rag 1028
	list<i64> getPrivateDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems) throws (1:CatalogServiceException cex),
1029
 
12133 kshitij.so 1030
	i32 getPrivateDealsCount(),
11635 vikram.rag 1031
 
12133 kshitij.so 1032
	AmazonOutOfSync getAmazonOutSyncItems(1:i64 item_id),
11635 vikram.rag 1033
 
12133 kshitij.so 1034
	list<PdPriceComp> getAllPrivateDealsComparison(),
11645 amit.gupta 1035
 
12133 kshitij.so 1036
	list<SnapdealItem> getAllSnapdealMarketplaceItem(),
11905 kshitij.so 1037
 
12243 kshitij.so 1038
	list<FlipkartItem> getAllFlipkartMarketplaceItem(),
11905 kshitij.so 1039
 
12243 kshitij.so 1040
	void addCompetitorScraping(1:map<i64,CompetitorPricing> competitorPricingMap),
1041
 
12257 kshitij.so 1042
	list<CompetitorPricing> getPreviousCompetitorScraping(1:i64 delta),
12243 kshitij.so 1043
 
12363 kshitij.so 1044
	list<CompetitorPricing> getUploadResultById(1:i64 uploadId),
12257 kshitij.so 1045
 
12363 kshitij.so 1046
	bool addAmazonPromotion(1:map<string,AmazonPromotion> amazonPromotions),
12257 kshitij.so 1047
 
12363 kshitij.so 1048
	list<AmazonPromotion> getAmazonPromotion(1:i64 startDate,2:i64 endDate),
1049
 
1050
	bool updateAmazonPromotion(1:list<AmazonPromotion> amazonPromotions)
1051
 
1052
 
5110 mandeep.dh 1053
}