Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

UmbracoStockService

API reference for UmbracoStockService in Vendr, the eCommerce solution for Umbraco

UmbracoStockService

public class UmbracoStockService : VendrStockServiceBase<UmbracoStockService>, IUmbracoStockService

Inheritance

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)

Edit this page on GitHub

Site + logo design © 2025 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.