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

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

Revert "Add missing API fields"
Revert "Add missing API fields"

This reverts commit a936673458370cfe0e81b428a6952d6823a21708.
