UmbracoStockService
public class UmbracoStockService : VendrStockServiceBase<UmbracoStockService>, IUmbracoStockService
Inheritance
- class VendrStockServiceBase<!0>
- interface IUmbracoStockService
Namespace
Constructors
UmbracoStockService
public UmbracoStockService(LicensingService licensingService, IRepositoryFactory repositoryFactory,
IUnitOfWorkProvider uowProvider, ILogger<UmbracoStockService> logger,
ICacheAccessor cacheAccessor, IProductAdapter productAdapter,
IUmbracoStoreService storeService, Lazy<IDataTypeService> dataTypeService,
Lazy<IContentTypeService> contentTypeService)
Methods
GetStock
public override decimal? GetStock(Guid storeId, string productReference,
string productVariantReference)
IncreaseStock
public override void IncreaseStock(Guid storeId, string productReference,
string productVariantReference, decimal increaseBy)
ReduceStock
public override void ReduceStock(Guid storeId, string productReference,
string productVariantReference, decimal reduceBy)
SetStock
public override void SetStock(Guid storeId, string productReference,
string productVariantReference, decimal value)
SyncAndResetContentStockValues
public void SyncAndResetContentStockValues(IContent content, out bool contentChanged)