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