Subversion Repositories SmartDukaan

Rev

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