Subversion Repositories SmartDukaan

Rev

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

Rev 3374 Rev 3556
Line 137... Line 137...
137
	1:bool isActive,
137
	1:bool isActive,
138
	2:optional bool isRisky,
138
	2:optional bool isRisky,
139
	3:optional i64 quantity
139
	3:optional i64 quantity
140
}
140
}
141
 
141
 
-
 
142
struct Source{
-
 
143
	1:i64 id,
-
 
144
	2:string name,
-
 
145
	3:string identifier
-
 
146
}
-
 
147
 
-
 
148
struct SourceItemPricing{
-
 
149
	1:i64 sourceId,
-
 
150
	2:i64 itemId,
-
 
151
	3:double mrp,
-
 
152
	4:double sellingPrice
-
 
153
}
-
 
154
 
142
exception InventoryServiceException{
155
exception InventoryServiceException{
143
	1:i64 id,
156
	1:i64 id,
144
	2:string message
157
	2:string message
145
}
158
}
146
 
159
 
Line 348... Line 361...
348
	bool sendProductNotifications(),
361
	bool sendProductNotifications(),
349
	
362
	
350
	/**
363
	/**
351
		Returns list of brand names for a given category Id
364
		Returns list of brand names for a given category Id
352
	*/
365
	*/
353
	list<string> getAllBrandsByCategory(1:i64 categoryId)
366
	list<string> getAllBrandsByCategory(1:i64 categoryId),
-
 
367
 
-
 
368
	/**
-
 
369
	Return list of all sources
-
 
370
	*/
-
 
371
	list<Source> getAllSources(), 
-
 
372
		
-
 
373
	/**
-
 
374
	Returns the pricing information of an item. If no information is found, exception will be thrown.
-
 
375
	*/
-
 
376
	SourceItemPricing getItemPricingBySource(1:i64 itemId, 2:i64 sourceId) throws (1:InventoryServiceException cex),
-
 
377
	
-
 
378
	/**
-
 
379
	Adds prices to be displayed corresponding to the item if user comes from a source.
-
 
380
	If item is not found or source is not found, it will throw exception.
-
 
381
	*/
-
 
382
	void addSourceItemPricing(1:SourceItemPricing sourceItemPricing) throws (1:InventoryServiceException cex),
-
 
383
	
-
 
384
	/**
-
 
385
	Returns the list of source pricing information of an item.
-
 
386
	Raises an exception if item not found corresponding to itemId
-
 
387
	*/
-
 
388
	list<SourceItemPricing> getAllSourcePricing(1:i64 itemId) throws (1:InventoryServiceException cex),
-
 
389
	
-
 
390
	/**
-
 
391
	Get the item for a given itemId and sourceId. MRP and sellingPrice will be updated for source if we have different prices for source.
-
 
392
	*/
-
 
393
	Item getItemForSource(1:i64 item_id, 2:optional i64  sourceId) throws (1:InventoryServiceException cex)
354
}
394
}
355
 
395