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

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

  ## Examples

  Since DependentPhoneNumbers are a nested resource in the Twilio API, you must
  pass in a parent Address SID to all functions in this module.

      ExTwilio.DependentPhoneNumber.all(address: "address_sid")
  """

  defstruct sid: nil,
            account_sid: nil,
            friendly_name: nil,
            customer_name: nil,
            street: nil,
            city: nil,
            region: nil,
            postal_code: nil,
            iso_country: nil

  use ExTwilio.Resource, import: [:stream, :all]

  def parents, do: [:account, :address]
end

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

  - [Twilio docs](https://www.twilio.com/docs/usage/api/address#list-dependent-pns)

  ## Examples

  Since DependentPhoneNumbers are a nested resource in the Twilio API, you must
  pass in a parent Address SID to all functions in this module.

      ExTwilio.DependentPhoneNumber.all(address: "address_sid")
  """

  defstruct sid: nil,
            account_sid: nil,
            friendly_name: nil,
            customer_name: nil,
            street: nil,
            city: nil,
            region: nil,
            postal_code: nil,
            iso_country: nil

  use ExTwilio.Resource, import: [:stream, :all]

  def parents, do: [:account, :address]
end

Update broken link to DependentPhoneNumber API
Update broken link to DependentPhoneNumber API

danielberkompas/ex_twilio,danielberkompas/ex_twilio