Syrve POS API SDK

Ability to edit stop list

In Api V8 it became possible to add a dish in only one size or without specifying a size to the stop list AddProductToStopList.

It is now possible to see that a dish of a certain size has been added to the stop list IsStopListProductSellingRestricted.

To get the entire list of the stop list, you now need to use the call GetStopListProductsRemainingAmounts, returns a dictionary with the instance key ProductAndSize, containing a specific product IProduct and its size IProductSize.

To remove all elements from the stop list you need to use the function ClearStopList.

Remove a specific dish from the stop list RemoveProductFromStopList, where there must be a product/dish, but the size is optional and can be null.

Setting leftovers for a dish in the stop list SetStopListProductRemainingAmount - It is possible to specify only values ​​from 0.001 to 999.999, size is optional and can be null.

Product sales limit check renamed CheckStopListProductsSellingRestrictions and now accepts a dictionary where the key is ProductAndSize, but the value is still the same quantity.

When you try to use API calls from a user who does not have the right to clear/delete/add/set the balance on stop lists (Edit stop list and quick menu F_EM), an exception will be shown.

When trying to add a dish with a size to the stop list, it is always checked that the size for the dish can be applied according to its size scale, otherwise an exception will be thrown.

To track changes in stop lists, the event was renamed ProductsRemainingAmountsChanged -> StopListProductsRemainingAmountsChanged.