```ruby
module Nomis
  class Offender
    class Details
      include MemoryModel

      attribute :given_name, :string
      attribute :surname, :string
      attribute :title, :string
      attribute :nationalities, :string
      attribute :date_of_birth, :date
      attribute :aliases
      attribute :gender
      attribute :religion
      attribute :ethnicity
      attribute :convicted, :boolean
      attribute :imprisonment_status
      attribute :cro_number, :string
      attribute :pnc_number, :string
      attribute :iep_level
      attribute :api_call_successful, :boolean, default: true

      def valid?
        api_call_successful
      end
    end
  end
end
```

Revert "Add missing API fields"
user
```ruby
module Nomis
  class Offender
    class Details
      include MemoryModel

      attribute :given_name, :string
      attribute :surname, :string
      attribute :title, :string
      attribute :date_of_birth, :date
      attribute :aliases
      attribute :gender
      attribute :convicted, :boolean
      attribute :imprisonment_status
      attribute :iep_level
      attribute :api_call_successful, :boolean, default: true

      def valid?
        api_call_successful
      end
    end
  end
end
```
assistant