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

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

  defstruct sid: nil,
            date_created: nil,
            date_updated: nil,
            friendly_name: nil,
            account_sid: nil,
            api_version: nil,
            voice_url: nil,
            voice_method: nil,
            voice_fallback_url: nil,
            voice_fallback_method: nil,
            status_callback: nil,
            voice_caller_id_lookup: nil,
            sms_url: nil,
            sms_method: nil,
            sms_fallback_url: nil,
            sms_fallback_method: nil,
            sms_status_callback: nil,
            message_status_callback: nil,
            uri: nil

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

  def parents, do: [:account]
end

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

  - [Twilio docs](https://www.twilio.com/docs/usage/api/applications)
  """

  defstruct sid: nil,
            date_created: nil,
            date_updated: nil,
            friendly_name: nil,
            account_sid: nil,
            api_version: nil,
            voice_url: nil,
            voice_method: nil,
            voice_fallback_url: nil,
            voice_fallback_method: nil,
            status_callback: nil,
            voice_caller_id_lookup: nil,
            sms_url: nil,
            sms_method: nil,
            sms_fallback_url: nil,
            sms_fallback_method: nil,
            sms_status_callback: nil,
            message_status_callback: nil,
            uri: nil

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

  def parents, do: [:account]
end

Update redirect to Application API
Update redirect to Application API

danielberkompas/ex_twilio,danielberkompas/ex_twilio