Subversion Repositories SmartDukaan

Rev

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

Rev 1330 Rev 1343
Line 75... Line 75...
75
	11:string featureDescription,
75
	11:string featureDescription,
76
	12:ItemInventory itemInventory,
76
	12:ItemInventory itemInventory,
77
	13:double mrp, //maxmimum retail price
77
	13:double mrp, //maxmimum retail price
78
	14:double mop, //market operative price
78
	14:double mop, //market operative price
79
	15:double sellingPrice, //Selling price
79
	15:double sellingPrice, //Selling price
80
	16:double transferPrice
80
	16:double transferPrice,
81
	17:double weight,
81
	17:double weight,
82
	18:i64 addedOn,
82
	18:i64 addedOn,
83
	19:i64 startDate,
83
	19:i64 startDate,
84
	20:i64 retireDate,
84
	20:i64 retireDate,
85
	21:status itemStatus,
85
	21:status itemStatus,
Line 88... Line 88...
88
	24:double bestDealValue,
88
	24:double bestDealValue,
89
	25:double dealerPrice,
89
	25:double dealerPrice,
90
	26:i64 updatedOn
90
	26:i64 updatedOn
91
}
91
}
92
 
92
 
-
 
93
struct VendorItemPricing{
-
 
94
	1:Vendor vendor,
-
 
95
	2:Item item,
-
 
96
	3:double transferPrice,
-
 
97
	4:double mop,
-
 
98
	5:double dealerPrice
-
 
99
}
-
 
100
 
93
exception InventoryServiceException{
101
exception InventoryServiceException{
94
	1:i64 id,
102
	1:i64 id,
95
	2:string message
103
	2:string message
96
}
104
}
97
 
105
 
Line 136... Line 144...
136
	  Returns the id of the warehouse with the largest inventory of the item and the inventory size in the given locations.
144
	  Returns the id of the warehouse with the largest inventory of the item and the inventory size in the given locations.
137
	  The size of list will always be 2.
145
	  The size of list will always be 2.
138
	 */
146
	 */
139
	list<i64> getItemAvailabilityAtLocation(1:i64 warehouse_loc, 2:i64 item_id) throws (1:InventoryServiceException isex),
147
	list<i64> getItemAvailabilityAtLocation(1:i64 warehouse_loc, 2:i64 item_id) throws (1:InventoryServiceException isex),
140
	list<Warehouse> getAllWarehouses(1:bool isActive) throws (1:InventoryServiceException cex),
148
	list<Warehouse> getAllWarehouses(1:bool isActive) throws (1:InventoryServiceException cex),
-
 
149
	
-
 
150
	/**
-
 
151
	 Returns the warehouse with the given id.
-
 
152
	*/
141
	Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
153
	Warehouse getWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
142
	list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
154
	list<Warehouse> getAllWarehousesForItem(1:i64 item_id) throws (1:InventoryServiceException cex),
143
	list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
155
	list<Item> getAllItemsForWarehouse(1:i64 warehouse_id) throws (1:InventoryServiceException cex),
144
	
156
	
145
	/**
157
	/**
Line 167... Line 179...
167
	
179
	
168
	
180
	
169
	i64 generateNewEntityID(),
181
	i64 generateNewEntityID(),
170
	
182
	
171
	/**
183
	/**
-
 
184
	Returns the pricing information of an item associated with the vendor of the given warehouse.
-
 
185
	Raises an exception if either the item, vendor or the associated pricing information can't be found.
-
 
186
	*/
-
 
187
	VendorItemPricing getItemPricing(1:i64 itemId, 2:i64 warehouseId) throws (1:InventoryServiceException cex),
-
 
188
	
-
 
189
	/**
172
	* Store category object and retrieve it
190
	* Store category object and retrieve it
173
	*/
191
	*/
174
	bool putCategoryObject(1:binary object),
192
	bool putCategoryObject(1:binary object),
175
	binary getCategoryObject()
193
	binary getCategoryObject()
176
}
194
}