IProductService
Defines the Vendr Product service
public interface IProductService
Namespace
Methods
GetProduct
Get a IProductSnapshot
of a given product
public IProductSnapshot GetProduct(string productReference, string languageIsoCode)
Parameters
Parameter | Description |
---|---|
productReference
|
The unique reference of the product to snapshot
|
languageIsoCode
|
The ISO Code of the language of the snapshot to create
|
Returns
An IProductSnapshot
of the given product
GetProductStock
Gets the stock level of a given product
public decimal? GetProductStock(string productReference)
Parameters
Parameter | Description |
---|---|
productReference
|
The unique reference of the product who's stock level to retrieve
|
Returns
The stock level of the product
IncreaseProductStock
Increases the stock level of a given product
public void IncreaseProductStock(string productReference, decimal increaseBy)
Parameters
Parameter | Description |
---|---|
productReference
|
The unique reference of the product who's stock level to increase
|
increaseBy
|
The amount to increase the stock level by
|
ReduceProductStock
Reduces the stock level of a given product
public void ReduceProductStock(string productReference, decimal reduceBy)
Parameters
Parameter | Description |
---|---|
productReference
|
The unique reference of the product who's stock level to reduce
|
reduceBy
|
The amount to reduce the stock level by
|
SetProductStock
Sets the stock level of a given product
public void SetProductStock(string productReference, decimal value)
Parameters
Parameter | Description |
---|---|
productReference
|
The unique reference of the product who's stock level to set
|
value
|
The value to set the stock level to
|