force AvailableStock to be serialized to json as an integer, and not a hash