Added an hydrate method for the quantity field in the transaction
resource, to convert the stringified value to a int