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 v8+

UmbracoStockService

public class UmbracoStockService : VendrStockServiceBase

Inheritance

Namespace

Constructors

UmbracoStockService

public UmbracoStockService(ILicensingService licensingService, 
    IRepositoryFactory repositoryFactory, IUnitOfWorkProvider uowProvider, ILogger logger, 
    ICacheAccessor cacheAccessor, IProductAdapter productAdapter, IStoreService storeService)

Methods

GetStock

public override decimal? GetStock(string productReference, string productVariantReference)

IncreaseStock

public override void IncreaseStock(string productReference, string productVariantReference, 
    decimal increaseBy)

ReduceStock

public override void ReduceStock(string productReference, string productVariantReference, 
    decimal reduceBy)

SetStock

public override void SetStock(string productReference, string productVariantReference, 
    decimal value)

Edit this page on GitHub

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