Add ref fields Id and ScheduledAt

These fields are returned by the API but were not stored into the `Ref` objects.

I added a helper to return the `scheduledAt` field as a `time.Time` instead of a timestamp.