Class StockService
- Namespace
- Dynamicweb.Ecommerce.Stocks
- Assembly
- Dynamicweb.Ecommerce.dll
public class StockService : ICacheStorage<LanguageBasedKey<string>, IEnumerable<ProductStock>>, ICacheStorage<LanguageBasedKey<string>>, ICacheStorage
- Inheritance
-
Stock
Service
- Implements
- Inherited Members
Constructors
StockService()
Methods
ClearCache()
Resets all keys to the default value for objects stored in the object cache
ClearCache(LanguageBasedKey<string>)
Resets the specified key to the default value for objects stored in the object cache
Parameters
key
LanguageBased <string>Key Key to reset
ClearCache(IEnumerable<LanguageBasedKey<string>>)
Resets the specified keys to the default value for objects stored in the object cache
Parameters
keys
IEnumerable<LanguageBased <string>>Key Keys to reset
ClearStockGroupCache()
CreateStockLocationRelation(string, long)
Parameters
DeleteAllStockLocationRelationsFromShop(string)
Parameters
shopId
string
DeleteStockGroup(string)
Parameters
stockGroupId
string
DeleteStockLocation(StockLocation)
Parameters
theStockLocation
StockLocation
DeleteStockLocationCategory(string)
Parameters
locationCategoryId
string
DeleteStockLocationRelation(string, long)
Parameters
DeleteStockLocationRelations(StockLocation)
Parameters
theStockLocation
StockLocation
DeleteStockStatus(StockStatus)
Parameters
theStockStatus
StockStatus
DeleteStockStatusesByGroupId(string)
Parameters
groupId
string
DeleteStockUnit(StockUnitIdentifier)
Parameters
identifier
StockUnit Identifier
DeleteStockUnitDetail(StockUnitDetail)
Parameters
detail
StockUnit Detail
DeleteStockUnitDetail(StockUnitDetailIdentifier)
Parameters
identifier
StockUnit Detail Identifier
DeleteStockUnits(string, string)
Parameters
DeleteStockUnits(string, string, string, long)
public void DeleteStockUnits(string productId, string variantId, string unitId, long stockLocationId)
Parameters
GetStockGroup(string)
Parameters
id
string
Returns
GetStockGroups()
Returns
GetStockLocation(long)
Parameters
stockLocationId
long
Returns
GetStockLocationCategories()
Returns
GetStockLocationCategory(string)
Parameters
id
string
Returns
GetStockLocationRelations(string)
Parameters
shopId
string
Returns
GetStockLocations()
Returns
GetStockLocations(Product)
Parameters
product
Product
Returns
GetStockLocations(bool)
Parameters
sortByOrder
bool
Returns
GetStockStatus(string)
Parameters
id
string
Returns
GetStockStatuses(string, bool)
Parameters
Returns
GetStockUnit(StockUnitIdentifier)
Parameters
identifier
StockUnit Identifier
Returns
GetStockUnit(string, string, string, StockLocation)
public StockUnit? GetStockUnit(string productId, string variantId, string unitId, StockLocation stockLocation)
Parameters
productId
stringvariantId
stringunitId
stringstockLocation
StockLocation
Returns
GetStockUnitDetail(StockUnitDetailIdentifier)
Parameters
identifier
StockUnit Detail Identifier
Returns
GetStockUnitTotals(Product, string)
Parameters
Returns
GetStockUnits(string, string)
Parameters
Returns
GetStockUnitsByUnitId(string)
Parameters
unitId
string
Returns
GetStockUnitsWithVariants(string)
Parameters
productId
string
Returns
SaveStockGroup(StockGroup)
Parameters
theStockGroup
StockGroup
Returns
SaveStockLocation(StockLocation)
Parameters
theStockLocation
StockLocation
SaveStockLocationCategory(StockLocationCategory)
Parameters
stockLocationCategory
StockLocation Category
SaveStockStatus(StockStatus)
Parameters
theStockStatus
StockStatus
SaveStockUnit(StockUnit)
Parameters
theStockUnit
StockUnit
SaveStockUnitDetail(StockUnitDetail)
Parameters
detail
StockUnit Detail