defmodule ExTwilio.IncomingPhoneNumber do
  @moduledoc """
  Represents an IncomingPhoneNumber resource in the Twilio API.

  - [Twilio docs](https://www.twilio.com/docs/api/rest/incoming-phone-numbers)
  """

  defstruct sid: nil,
            account_sid: nil,
            identity_sid: nil,
            date_created: nil,
            date_updated: nil,
            friendly_name: nil,
            phone_number: nil,
            api_version: nil,
            voice_caller_id_lookup: nil,
            voice_url: nil,
            voice_method: nil,
            voice_fallback_url: nil,
            status: nil,
            status_callback: nil,
            status_callback_method: nil,
            voice_application_sid: nil,
            sms_url: nil,
            sms_method: nil,
            sms_fallback_url: nil,
            sms_fallback_method: nil,
            sms_application_sid: nil,
            capabilities: nil,
            address_requirements: nil,
            uri: nil

  use ExTwilio.Resource,
    import: [
      :stream,
      :all,
      :find,
      :create,
      :update,
      :destroy
    ]

  def parents, do: [:account]
end

defmodule ExTwilio.IncomingPhoneNumber do
  @moduledoc """
  Represents an IncomingPhoneNumber resource in the Twilio API.

  - [Twilio docs](https://www.twilio.com/docs/api/rest/incoming-phone-numbers)
  """

  defstruct sid: nil,
            account_sid: nil,
            address_sid: nil,
            address_requirements: nil,
            api_version: nil,
            beta: nil,
            capabilities: nil,
            date_created: nil,
            date_updated: nil,
            friendly_name: nil,
            identity_sid: nil,
            phone_number: nil,
            origin: nil,
            sms_application_sid: nil,
            sms_fallback_method: nil,
            sms_fallback_url: nil,
            sms_method: nil,
            sms_url: nil,
            status: nil, # no longer used
            status_callback: nil,
            status_callback_method: nil,
            trunk_sid: nil,
            uri: nil,
            voice_application_sid: nil,
            voice_caller_id_lookup: nil,
            voice_fallback_method: nil,
            voice_fallback_url: nil,
            voice_method: nil,
            voice_url: nil,
            emergency_status: nil,
            emergency_address_sid: nil

  use ExTwilio.Resource,
    import: [
      :stream,
      :all,
      :find,
      :create,
      :update,
      :destroy
    ]

  def parents, do: [:account]
end

Add new fields to incoming phone number resource
Add new fields to incoming phone number resource

Also changed the order to match the alphabetical order in the
documentation to simplify things a bit, since Elixir structs are built
on top of maps and ordering shouldn't be important

danielberkompas/ex_twilio,danielberkompas/ex_twilio