fun put(version: Int, commodityInfo: CommodityInfo): Unit
Put commodity to the server.
version
- expected latest version of seller
com.srv4pos.server.api.exceptions.VersionConflictJsonException
- if version mismatch
com.srv4pos.server.api.exceptions.ReferenceNotFoundJsonException
- if category in CommodityInfo.category is not found
if product in CommodityInfo.product is not found