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,
            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_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,
            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

Add status, identity_sid to IncomingPhoneNumber fields
Add status, identity_sid to IncomingPhoneNumber fields

danielberkompas/ex_twilio,danielberkompas/ex_twilio