fun create(version: Int, commodityInfo: CommodityInfo): IdentifierInfo
Create commodity on 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
Return
identifier info