Subversion Repositories SmartDukaan

Rev

Rev 8915 | Rev 9242 | 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
21
	COMING_SOON= 7		//Item is now in Coming Soon Page and will move to ACTIVE gradually as it achieves the Start date.
103 ashish 22
}
23
 
5110 mandeep.dh 24
enum ItemType {
25
    SERIALIZED = 1,
26
    NON_SERIALIZED = 2
27
}
28
 
6805 anupam.sin 29
enum PremiumType {
30
    PERCENT = 1,
31
    ABSOLUTE = 2
32
}
33
 
9155 kshitij.so 34
enum BannerType{
35
	WEBSITE  = 1,
36
	SIDE_BANNER = 2,
37
	MOBILE_SITE = 3
38
}
39
 
85 ashish 40
struct Item{
41
	1:i64 id,
956 chandransh 42
	2:string productGroup
43
	3:string brand,
44
	4:string modelNumber,
2128 ankur.sing 45
	5:string modelName,
46
	6:string color,
47
	7:i64 category,
48
	8:string comments,
49
	9:i64 catalogItemId,
50
	10:i64 featureId,
51
	11:string featureDescription,
2127 ankur.sing 52
	13:optional double mrp, //maxmimum retail price
4762 phani.kuma 53
	14:optional double sellingPrice, //Selling price
54
	15:optional double weight,
55
	16:i64 addedOn,
56
	17:optional i64 startDate,
57
	18:optional i64 retireDate,
58
	19:status itemStatus,
59
	20:string status_description,
5324 rajveer 60
	21:map<string,string> otherInfo,
4762 phani.kuma 61
	22:string bestDealText,
62
	23:optional double bestDealValue,
63
	24:bool defaultForEntity,
64
	25:i64 updatedOn,
65
	26:optional i64 bestSellingRank,
66
	27:bool risky,
67
	28:optional i32 expectedDelay,
5440 phani.kuma 68
	29:optional bool isWarehousePreferenceSticky,
69
	30:i32 warrantyPeriod,
70
	31:optional i64 preferredVendor,
71
	32:ItemType type,
72
	33:optional i64 comingSoonStartDate,
73
	34:optional i64 expectedArrivalDate,
5460 phani.kuma 74
	35:bool hasItemNo,
7256 rajveer 75
	36:bool activeOnStore,
6805 anupam.sin 76
	38:bool showSellingPrice,
6777 vikram.rag 77
	39:string bestDealsDetailsText,
78
	40:string bestDealsDetailsLink,
7291 vikram.rag 79
	41:i64 preferredInsurer,
80
	42:string asin,
81
	43:i64 defaultInventory,
82
	44:i64 holdInventory
8616 vikram.rag 83
	45:bool isListedOnSnapdeal
85 ashish 84
}
85
 
6805 anupam.sin 86
struct Insurer{
87
	1:i64 id,
88
	2:string name,
6903 anupam.sin 89
	3:string address,
90
	4:i64 declaredAmount,
91
	5:i64 creditedAmount
6805 anupam.sin 92
}
93
 
94
struct ItemInsurerMapping{
95
	1:i64 itemId,
96
	2:i64 insurer,
97
	3:PremiumType premiumType,
98
	4:double premiumValue
99
}
100
 
1967 rajveer 101
struct Category{
102
	1:i64 id,
103
	2:string label,
104
	3:string description,
105
	4:i64 parent_category_id,
106
	/**
107
	* This field should not be used.
108
	*/
109
	5:list<i64> children_category_ids
4762 phani.kuma 110
	6:string display_name
1967 rajveer 111
}
2113 ankur.sing 112
 
2983 chandransh 113
struct ItemShippingInfo{
114
	1:bool isActive,
115
	2:optional bool isRisky,
116
	3:optional i64 quantity
117
}
118
 
3556 rajveer 119
struct Source{
120
	1:i64 id,
121
	2:string name,
122
	3:string identifier
123
}
124
 
125
struct SourceItemPricing{
126
	1:i64 sourceId,
127
	2:i64 itemId,
128
	3:double mrp,
129
	4:double sellingPrice
130
}
131
 
4295 varun.gupt 132
struct ProductNotificationRequest	{
133
	1:Item item,
134
	2:string email,
135
	3:i64 addedOn
136
}
137
 
138
struct ProductNotificationRequestCount	{
139
	1:Item item,
140
	2:i64 count
141
}
142
 
5504 phani.kuma 143
struct VoucherItemMapping{
5512 rajveer 144
	1:i64 voucherType,
5504 phani.kuma 145
	2:i64 itemId,
146
	3:i64 amount
147
}
148
 
5945 mandeep.dh 149
exception CatalogServiceException{
85 ashish 150
	1:i64 id,
151
	2:string message
152
}
153
 
6511 kshitij.so 154
struct EntityTag {
155
    1:i64 entityId,
156
    2:string tag
157
}
158
 
6848 kshitij.so 159
struct Banner {
160
    1:string bannerName,
161
    2:string imageName,
162
    3:string link,
8915 kshitij.so 163
    4:bool hasMap,
164
    5:i64 priority,
9155 kshitij.so 165
    6:BannerType bannerType
6848 kshitij.so 166
}
167
 
8579 kshitij.so 168
struct BannerUriMapping{
169
	1:string bannerName,
170
	2:string uri,
171
	3:bool isActive
172
}
173
 
6848 kshitij.so 174
struct BannerMap {
175
    1:string bannerName,
176
    2:string mapLink,
177
    3:string coordinates
178
}
179
 
8590 kshitij.so 180
struct BannerCongregate{
181
	1:Banner banner,
182
	2:list<BannerMap> bannerMaps,
9155 kshitij.so 183
	3:list<BannerUriMapping> bannerUriMappings,
184
	4:Banner antecedent 
8590 kshitij.so 185
}
186
 
8579 kshitij.so 187
struct Campaign {
188
	1:i64 id,
189
	2:string campaignName,
190
	3:string imageName
191
}
192
 
7190 amar.kumar 193
struct FreebieItem {
194
	1:i64 itemId,
195
	2:i64 freebieItemId
196
}
197
 
7272 amit.gupta 198
struct BrandInfo {
199
	1:string name,
200
	2:string serviceCenterLocatorUrl
201
}
202
 
7256 rajveer 203
struct StorePricing {
204
    1:i64 itemId,
205
	2:double recommendedPrice,
206
	3:double minPrice,
207
	4:double maxPrice,
7308 rajveer 208
	5:double minAdvancePrice,
7351 rajveer 209
	6:double absoluteMinPrice,
210
	7:i64 freebieItemId,
211
	8:string bestDealText
7256 rajveer 212
}
213
 
7281 kshitij.so 214
struct Amazonlisted{
215
	1:i64 itemid,
216
    2:string asin,
217
    3:string name,
218
    4:string brand,
219
    5:string model,
220
    6:string manufacturer_name,
221
    7:string part_number,
222
    8:string ean,
223
    9:string upc 
224
    10:double fbaPrice,
225
    11:double sellingPrice,
226
    12:bool isFba,
227
    13:bool isNonFba,
228
    14:bool isInventoryOverride,
229
    15:string color,
7367 kshitij.so 230
    16:string category,
231
    17:i64 handlingTime,
7518 vikram.rag 232
    18:bool isCustomTime,
7770 kshitij.so 233
    19:i64 category_code,
234
    20:i64 mfnPriceLastUpdatedOn,
235
    21:i64 fbaPriceLastUpdatedOn,
236
    22:i64 mfnPriceLastUpdatedOnSc,
237
    23:i64 fbaPriceLastUpdatedOnSc
8139 kshitij.so 238
    24:bool suppressMfnPriceUpdate,
8619 kshitij.so 239
    25:bool suppressFbaPriceUpdate,
240
    26:string taxCode
7977 kshitij.so 241
}
242
 
243
struct PageViewEvents{
244
    1:i64 catalogId,
245
    2:string url,
246
    3:double sellingPrice,
247
    4:bool comingSoon,
248
    5:string ip,
249
    6:string sessionId,
250
    7:i64 eventDate
251
}
7281 kshitij.so 252
 
7977 kshitij.so 253
struct CartEvents{
254
    1:i64 catalogId,
255
    2:i64 itemId,
256
    3:double sellingPrice,
257
    4:string ip,
258
    5:string sessionId,
259
    6:bool inStock,
260
    7:bool comingSoon,
261
    8:i64 eventDate
262
}
263
 
8182 amar.kumar 264
struct EbayItem{
265
	1:string ebayListingId,
266
	2:i64 itemId,
267
	3:string listingName,
268
	4:i64 listingPrice,
269
	5:i64 listingExpiryDate,
270
	6:double subsidy,
271
	7:i64 defaultWarehouseId
8739 vikram.rag 272
}
273
 
274
struct SnapdealItem{
275
	1:i64 item_id,
276
	2:i64 warehouseId,
277
	3:double exceptionPrice,
278
	4:bool isListedOnSnapdeal
8182 amar.kumar 279
}    
7977 kshitij.so 280
 
5945 mandeep.dh 281
service CatalogService extends GenericService.GenericService{
763 rajveer 282
 
85 ashish 283
/**
284
	Availability and inventory attributes	
285
*/
286
	//all add and update methods - added by Ashish
5945 mandeep.dh 287
	i64 addItem(1:Item item) throws (1:CatalogServiceException cex),
288
	i64 updateItem(1:Item item) throws (1:CatalogServiceException cex),
2983 chandransh 289
 
290
	/**
291
	Checks if the item given to the corresponding itemId is active. If it's active,
292
	whether it's risky and if it's risky, its inventory position.
293
	*/
5945 mandeep.dh 294
	ItemShippingInfo isActive(1:i64 itemId) throws (1:CatalogServiceException isex),
7438 amit.gupta 295
 
296
	map<i64, bool> getItemsStatus(1:list<i64> itemIds) throws (1:CatalogServiceException isex),
2983 chandransh 297
 
5945 mandeep.dh 298
	string getItemStatusDescription(1:i64 itemId) throws (1:CatalogServiceException isex),
3323 chandransh 299
 
103 ashish 300
	//Item management apis
5945 mandeep.dh 301
	void startItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
302
	void retireItemOn(1:i64 item_id, 2:i64 timestamp) throws (1:CatalogServiceException cex),
303
	void changeItemStatus(1:i64 item_id, 2:i64 timestamp, 3:status newstatus) throws (1:CatalogServiceException cex),
85 ashish 304
	//Other accessor methods - added by Ashish
5945 mandeep.dh 305
	Item getItem(1:i64 item_id) throws (1:CatalogServiceException cex),
306
	list<Item> getItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
307
	list<Item> getValidItemsByCatalogId(1:i64 catalog_item_id) throws  (1:CatalogServiceException cex),
308
	list<Item> getAllItems(1:bool isActive) throws (1:CatalogServiceException cex),
309
	list<Item> getAllItemsByStatus(1:status itemStatus) throws (1:CatalogServiceException cex),
310
	bool markItemAsContentComplete(1:i64 entityId, 2:i64 category, 3:string brand, 4:string modelName, 5:string modelNumber) throws (1:CatalogServiceException cex),
646 chandransh 311
 
3355 chandransh 312
	/**
3848 chandransh 313
	Gets at most 'limit' items starting at the given offset. Returns an empty list if there are no more items at the given offset.
314
	*/
5945 mandeep.dh 315
	list<Item> getAllItemsInRange(1:i64 offset, 2:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 316
 
317
	/**
318
	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.
319
	*/
5945 mandeep.dh 320
	list<Item> getAllItemsByStatusInRange(1:status itemStatus, 2:i64 offset, 3:i64 limit) throws (1:CatalogServiceException cex),
3848 chandransh 321
 
322
	/**
323
	Gets a count of all items by status
324
	*/
325
	i32 getItemCountByStatus(1:bool useStatus, 2:status itemStatus),
1157 rajveer 326
 
502 rajveer 327
	// for home page .... best deals, best sellers and latest arrivals
5945 mandeep.dh 328
	list<Item> getBestSellers() throws (1:CatalogServiceException isex),
329
	list<i64> getBestSellersCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
330
	i64 getBestSellersCount() throws (1:CatalogServiceException cex),
588 chandransh 331
 
5945 mandeep.dh 332
	list<Item> getBestDeals() throws (1:CatalogServiceException isex),
333
	list<i64> getBestDealsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
334
	i64 getBestDealsCount() throws (1:CatalogServiceException cex),
5217 amit.gupta 335
 
5945 mandeep.dh 336
	list<Item> getComingSoon() throws (1:CatalogServiceException isex),
337
	list<i64> getComingSoonCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:i64 category) throws (1:CatalogServiceException cex),
338
	i64 getComingSoonCount() throws (1:CatalogServiceException cex),
588 chandransh 339
 
2975 chandransh 340
	/**
341
	Returns a list of items sorted in the descending order by start date.
342
	The list is limited to the 'latest_arrivals_count' configuraiton parameter.
343
	*/
5945 mandeep.dh 344
	list<Item> getLatestArrivals() throws (1:CatalogServiceException isex),
2975 chandransh 345
 
346
	/**
347
	Returns the list of catalog ids of latest arrivals in the given categories of the given brand.
348
	To ignore the categories, pass the list as empty. To ignore brand, pass it as null.   
349
	*/
5945 mandeep.dh 350
	list<i64> getLatestArrivalsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:string brand, 4:list<i64> categories) throws (1:CatalogServiceException cex),
2975 chandransh 351
 
352
	/**
353
	Get the total number of latest arrivals we are willing to show.
354
	The count's upper bound is the 'latest_arrivals_count' configuraiton parameter.
355
	*/
5945 mandeep.dh 356
	i64 getLatestArrivalsCount() throws (1:CatalogServiceException cex),
632 rajveer 357
 
1157 rajveer 358
 
359
	i64 generateNewEntityID(),
360
 
361
	/**
1967 rajveer 362
	* All category related functions
363
	*/
364
	bool addCategory(1:Category category),
365
	Category getCategory(1:i64 id),
1990 ankur.sing 366
	list<Category> getAllCategories(),
1967 rajveer 367
 
1990 ankur.sing 368
	/**
4423 phani.kuma 369
	Returns the list of similar items.
370
	*/
371
	list<Item> getAllSimilarItems(1:i64 itemId),
372
 
373
	/**
374
	Adds similar item.
375
	*/
5945 mandeep.dh 376
	Item addSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 377
 
378
	/**
6511 kshitij.so 379
	Tag Related
380
	*/
381
 
382
	bool addTag(1:string displayName, 2:i64 itemId),
383
	bool deleteEntityTag(1:string displayName, 2:i64 itemId),
384
	bool deleteTag(1:string displayName),
385
	list<string> getAllTags(),
386
	list<i64> getAllEntitiesByTagName(1:string displayName)
6842 amit.gupta 387
	map<i64, list<string>> getAllEntityTags()
6511 kshitij.so 388
 
8579 kshitij.so 389
	/**
390
	Banner Related
391
	*/
392
 
8590 kshitij.so 393
	void addBanner(1:BannerCongregate bannerCongregate),
8579 kshitij.so 394
	bool updateBanner(1:Banner banner),
395
	list <Banner> getAllBanners(),
9155 kshitij.so 396
	bool deleteBanner(1:string bannerName,2:BannerType bannerType),
397
	Banner getBannerDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 398
	map<string,list<Banner>> getActiveBanners(),
399
	bool addBannerMap(1:list<BannerMap> bannerMaps),
400
	bool updateBannerMap(1:BannerMap bannerMap),
6848 kshitij.so 401
	bool deleteBannerMap(1:string bannerName),
9155 kshitij.so 402
	list <BannerMap> getBannerMapDetails(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 403
	void addBannerUri(1:list<BannerUriMapping> bannerUriMappings),
9155 kshitij.so 404
	list<BannerUriMapping> getUriMapping(1:string bannerName,2:BannerType bannerType),
8579 kshitij.so 405
	void addCampaign(1:Campaign campaign),
406
	list<Campaign> getCampaigns(1:string campaignName),
407
	void deleteCampaign(1:i64 campaignId),
408
	list<string> getAllCampaigns(),
9155 kshitij.so 409
	map<string,list<Banner>> getActiveBannersForMobileSite(),
6511 kshitij.so 410
	/**
4423 phani.kuma 411
	Delete similar item.
412
	*/
5945 mandeep.dh 413
	bool deleteSimilarItem(1:i64 itemId, 2:i64 catalogItemId) throws (1:CatalogServiceException cex),
4423 phani.kuma 414
 
415
	/**
4725 phani.kuma 416
	Checks if similar item exists (with same Brand, ModelNumber, ModelName, Color)
2113 ankur.sing 417
	If yes, returns the itemId else returns 0
418
	*/
4725 phani.kuma 419
	i64 checkSimilarItem(1:string brand, 2:string modelNumber, 3:string modelName, 4:string color),
2284 ankur.sing 420
 
421
	/**
5945 mandeep.dh 422
	Check wether item is risky and change status if inventory is not available for risky items
2284 ankur.sing 423
	*/
5945 mandeep.dh 424
	void validateRiskyStatus(1:i64 itemId),
2356 ankur.sing 425
 
426
	/**
5945 mandeep.dh 427
    Marks/Unmarks an item as risky. This flag is used for automatic marking of an item as INACTIVE in case of zero inventory.
428
    */
429
    void changeItemRiskyFlag(1:i64 itemId, 2:bool risky),
430
 
431
 
432
	/**
2356 ankur.sing 433
	Returns list of items marked as risky.
434
	*/
435
	list<Item> getItemsByRiskyFlag(),
436
 
437
	/**
4957 phani.kuma 438
	Returns list of items with any status except PHASED_OUT and filtered by category, brand.
2356 ankur.sing 439
	*/
4957 phani.kuma 440
	list<Item> getItemsForMasterSheet(1:string category, 2:string brand),
2807 rajveer 441
 
442
	/**
443
	Returns list of catalog ids of items with same similarity index as of the given itemId 
444
	*/
445
	list<i64> getSimilarItemsCatalogIds(1:i64 beginIndex, 2:i64 totalItems, 3:i64 itemId),
3079 rajveer 446
 
447
	/**
448
	Add user requests for out of stock items. Once user will ask for notify me an entry will 
449
	*/
3086 rajveer 450
	bool addProductNotification(i64 itemId, string email),
3079 rajveer 451
 
3086 rajveer 452
	/**
453
		Send the product notifications to the users for items which has stock.
454
	*/
3348 varun.gupt 455
	bool sendProductNotifications(),
3079 rajveer 456
 
3348 varun.gupt 457
	/**
458
		Returns list of brand names for a given category Id
459
	*/
3556 rajveer 460
	list<string> getAllBrandsByCategory(1:i64 categoryId),
4957 phani.kuma 461
 
462
    /**
463
		Returns list of brand names
464
	*/
465
	list<string> getAllBrands(),
466
 
3556 rajveer 467
	/**
468
	Return list of all sources
469
	*/
470
	list<Source> getAllSources(), 
471
 
472
	/**
473
	Returns the pricing information of an item. If no information is found, exception will be thrown.
474
	*/
5945 mandeep.dh 475
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:CatalogServiceException cex),
3556 rajveer 476
 
477
	/**
478
	Adds prices to be displayed corresponding to the item if user comes from a source.
479
	If item is not found or source is not found, it will throw exception.
480
	*/
5945 mandeep.dh 481
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:CatalogServiceException cex),
3556 rajveer 482
 
483
	/**
484
	Returns the list of source pricing information of an item.
485
	Raises an exception if item not found corresponding to itemId
486
	*/
5945 mandeep.dh 487
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:CatalogServiceException cex),
3556 rajveer 488
 
489
	/**
490
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
491
	*/
5945 mandeep.dh 492
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:CatalogServiceException cex),
3872 chandransh 493
 
494
	/**
495
	Searches items matching the the given terms in the catalog and returns results within the specified range.
496
	*/
497
	list<Item> searchItemsInRange(1:list<string> searchTerms, 2:i64 offset, 3:i64 limit),
498
 
499
	/**
500
	Gets the count of search results for the given search terms so that the user can go through all the pages.
501
	*/
4024 chandransh 502
	i32 getSearchResultCount(1:list<string> searchTerms),
503
 
504
	/**
4295 varun.gupt 505
	Returns a list of product notifications added after a supplied datetime
506
	*/
507
	list<ProductNotificationRequest> getProductNotifications(1:i64 startDateTime),
508
 
509
	/**
510
	Returns a list of count of requests for product notification against each item
511
	*/
7897 amar.kumar 512
	list<ProductNotificationRequestCount> getProductNotificationRequestCount(1:i64 startDateTime, 2:i64 categoryId);
4370 anupam.sin 513
 
514
	/**
4649 phani.kuma 515
	This method adds a log to authorize table with Item Id, username who authorized the change, reason.
516
	*/
5945 mandeep.dh 517
	bool addAuthorizationLog(1:i64 itemId, 2:string username, 3:string reason) throws (1:CatalogServiceException cex),
5504 phani.kuma 518
 
5945 mandeep.dh 519
	bool addupdateVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType, 3:i64 voucherAmount) throws (1:CatalogServiceException cex),
5504 phani.kuma 520
 
5945 mandeep.dh 521
	bool deleteVoucherForItem(1:i64 catalog_item_id, 2:i64 voucherType) throws (1:CatalogServiceException cex),
5504 phani.kuma 522
 
5512 rajveer 523
	i64 getVoucherAmount(1:i64 itemId, 2:i64 voucherType),
5504 phani.kuma 524
 
525
	list<VoucherItemMapping> getAllItemVouchers(1:i64 itemId),
5586 phani.kuma 526
 
6039 amit.gupta 527
	bool isValidCatalogItemId(1:i64 catalog_item_id),
528
 
7340 amit.gupta 529
	double getVatPercentageForItem(1:i64 itemId, 2:i64 stateId, 3:double price) throws (1:CatalogServiceException cex),
6531 vikram.rag 530
 
531
	double getVatAmountForItem(1:i64 itemId, 2:double price),
532
 
6821 amar.kumar 533
	list<Item> getAllIgnoredInventoryUpdateItemsList(1:i32 offset,2:i32 limit),
534
 
535
	list<Item> getAllAliveItems();	
6805 anupam.sin 536
 
537
	/**
538
	This method returns the insurance amount needed to insure the given item for a given quantity.
539
	*/
6921 anupam.sin 540
	i64 getInsuranceAmount(1:i64 itemId, 2:double price, 3:i64 insurerId, 4:i64 quantity),
6805 anupam.sin 541
 
6921 anupam.sin 542
	Insurer getInsurer(1:i64 insurerId),
6838 vikram.rag 543
 
6962 rajveer 544
	list<Insurer> getAllInsurers(),
545
 
7190 amar.kumar 546
	void updateInsuranceDeclaredAmount(1:i64 insurerId, 2:double amount),
547
 
548
	i64 getFreebieForItem(1:i64 itemId),
549
 
7256 rajveer 550
	void addOrUpdateFreebieForItem(1:FreebieItem freebieItem),
551
 
7272 amit.gupta 552
	void addOrUpdateBrandInfo(1:BrandInfo brandInfo),
553
 
7291 vikram.rag 554
	map<string, BrandInfo> getBrandInfo(),
7272 amit.gupta 555
 
7265 rajveer 556
	StorePricing getStorePricing(1:i64 itemId),
557
 
7306 rajveer 558
	list<StorePricing> getStorePricings(1:list<i64> itemIds),
559
 
7382 rajveer 560
	void updateStorePricing(1:StorePricing sp, 2:bool allColors),
7281 kshitij.so 561
 
562
	list<Amazonlisted> getAllAmazonListedItems(),
563
 
8619 kshitij.so 564
	list<Amazonlisted> searchAmazonItems(1:list<string> searchTerm,2:i64 offset,3:i64 limit),
565
 
566
	i64 getAmazonSearchResultCount(1:list<string> searchTerm),
567
 
568
	i64 getCountForAmazonlistedItems(),
569
 
7281 kshitij.so 570
	Amazonlisted getAmazonItemDetails(1:i64 itemId),
571
 
8168 kshitij.so 572
	void updateAmazonItemDetails(1:Amazonlisted amazonlisted),
7281 kshitij.so 573
 
7291 vikram.rag 574
	void addAmazonItem(1:Amazonlisted amazonlisted),
7281 kshitij.so 575
 
7291 vikram.rag 576
	list<Item> getAsinItems(),
7281 kshitij.so 577
 
7291 vikram.rag 578
	list<Amazonlisted> getAllFbaListedItems(),
579
 
7460 kshitij.so 580
	list<Amazonlisted> getAllNonFbaListedItems(),
7291 vikram.rag 581
 
7770 kshitij.so 582
	bool updateItemInventory(1:i64 itemId, 2:i64 holdInventory, 3:i64 defaultInventory),
7460 kshitij.so 583
 
7770 kshitij.so 584
	bool updateTimestampForAmazonFeeds(1:string type, 2: list<i64> sku, 3:i64 timestamp)
585
 
7897 amar.kumar 586
	list<Category> getAllParentCategories()
587
 
7977 kshitij.so 588
	void addPageViewEvent(1:PageViewEvents pageViewEvents)
589
 
590
	void addCartEvent(1:CartEvents cartEvents)
591
 
8182 amar.kumar 592
	void addEbayItem(1:EbayItem ebayItem)
593
 
594
	EbayItem getEbayItem(1:string listingId)
595
 
596
	void updateEbayItem(1:EbayItem ebayItem)
597
 
8139 kshitij.so 598
	list<Amazonlisted> getAmazonListedItems(1:i64 offset,2:i64 limit)
599
 
8168 kshitij.so 600
	bool updateAmazonAttributesInBulk(1:map<i64, Amazonlisted> amazonlisted)
8379 vikram.rag 601
 
602
	list<Amazonlisted> getAllItemstoListOnFba()
603
 
604
	list<Amazonlisted> getAllItemstoListOnNonFba()
8616 vikram.rag 605
 
606
	list<Item> getAllSnapdealListedActiveItems()
8619 kshitij.so 607
 
608
	void updateAsin(1:map<i64, Item> item)
8739 vikram.rag 609
 
610
	bool addOrUpdateSnapdealItem(SnapdealItem snapdealitem)
611
 
612
	SnapdealItem getSnapdealItem(1:i64 item_id)
613
 
614
	list<SnapdealItem> getAllSnapdealItems()
9155 kshitij.so 615
 
616
 
8182 amar.kumar 617
 
5110 mandeep.dh 618
}