Subversion Repositories SmartDukaan

Rev

Rev 2076 | Rev 2127 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2076 Rev 2113
Line 88... Line 88...
88
	24:string bestDealText,
88
	24:string bestDealText,
89
	25:double bestDealValue,
89
	25:double bestDealValue,
90
	26:double dealerPrice,
90
	26:double dealerPrice,
91
	27:bool defaultForEntity,
91
	27:bool defaultForEntity,
92
	28:i64 updatedOn,
92
	28:i64 updatedOn,
93
	29:i64 bestSellingRank
93
	29:i64 bestSellingRank, 
-
 
94
	30:string hotspotCategory
94
}
95
}
95
 
96
 
96
struct VendorItemPricing{
97
struct VendorItemPricing{
97
	1:i64 vendorId,
98
	1:i64 vendorId,
98
	2:i64 itemId,
99
	2:i64 itemId,
Line 109... Line 110...
109
	/**
110
	/**
110
	* This field should not be used.
111
	* This field should not be used.
111
	*/
112
	*/
112
	5:list<i64> children_category_ids
113
	5:list<i64> children_category_ids
113
}
114
}
-
 
115
 
-
 
116
struct VendorItemMapping{
-
 
117
	1:i64 vendorId,
-
 
118
	2:string itemKey,
-
 
119
	3:i64 itemId,
-
 
120
	4:string vendorCategory
-
 
121
}
114
   
122
   
115
exception InventoryServiceException{
123
exception InventoryServiceException{
116
	1:i64 id,
124
	1:i64 id,
117
	2:string message
125
	2:string message
118
}
126
}
Line 222... Line 230...
222
	*/
230
	*/
223
	list<VendorItemPricing> getAllItemPricing(1:i64 itemId) throws (1:InventoryServiceException cex),
231
	list<VendorItemPricing> getAllItemPricing(1:i64 itemId) throws (1:InventoryServiceException cex),
224
	
232
	
225
	
233
	
226
	/**
234
	/**
227
	Updates Vendor item pricing.
235
	Adds vendor prices corresponding to the item. If pricing already exists then updates the prices. 
228
	Raises an exception if either the item or vendor can't be found corresponding to their ids.
236
	Raises an exception if either the item or vendor can't be found corresponding to their ids.
229
	Raises an exception if no pricing exists for vendor-item mapping.
-
 
230
	*/
237
	*/
231
	void updateVendorItemPricing(1:VendorItemPricing vendorItemPricing) throws (1:InventoryServiceException cex),
238
	void addVendorItemPricing(1:VendorItemPricing vendorItemPricing) throws (1:InventoryServiceException cex),
232
	
239
	
233
	/**
240
	/**
234
	Return list of all vendors
241
	Return list of all vendors
235
	*/
242
	*/
236
	list<Vendor> getAllVendors()
243
	list<Vendor> getAllVendors(), 
-
 
244
	
-
 
245
	/**
-
 
246
	Checks if the item exists in VendorItemMapping for the given hotspot parameters (ProductGroup,Brand,ModelNumber,Color),
-
 
247
	vendor and category.
-
 
248
	Returns true if it exists else false.
-
 
249
	*/
-
 
250
	bool itemExists(1:string productGroup, 2:string brand, 3:string modelNumber, 4:string color, 5:i64 vendor_id, 6:string category),
237
	
251
	
-
 
252
	/**
-
 
253
	Adds vendor item mapping. Updates the key it the mapping already exists.  
-
 
254
	*/
-
 
255
	void addVendorItemMapping(1:VendorItemMapping vendorItemMapping) throws (1:InventoryServiceException cex),
-
 
256
	
-
 
257
	/**
-
 
258
	Returns the list of vendor item mapping corresponding to itemId passed as parameter.
-
 
259
	Raises an exception if item not found corresponding to itemId
-
 
260
	*/
-
 
261
	list<VendorItemMapping> getVendorItemMappings(1:i64 itemId) throws (1:InventoryServiceException cex),
-
 
262
	
-
 
263
	/**
-
 
264
	Checks if similar item exists (with same ProductGroup, Brand, ModelNumber, Color)
-
 
265
	If yes, returns the itemId else returns 0
-
 
266
	*/
-
 
267
	i64 checkSimilarItem(1:string productGroup, 2:string brand, 3:string modelNumber, 4:string color)
238
}
268
}
239
 
269