Twilio.Schemas.AvailablePhoneNumberLocal (twilio v0.2.0)

Copy Markdown

Fields

  • address_requirements - The type of Address resource the phone number requires. Can be: none, any, local, or foreign. none means no address is required. any means an address is required, but it can be anywhere in the world. local means an address in the phone number's country is required. foreign means an address outside of the phone number's country is required.
  • beta - Whether the phone number is new to the Twilio platform. Can be: true or false.
  • capabilities - The set of Boolean properties that indicate whether a phone number can receive calls or messages. Capabilities are: Voice, SMS, and MMS and each capability can be: true or false.
  • friendly_name - A formatted version of the phone number.
  • iso_country - The ISO country code of this phone number.
  • lata - The LATA of this phone number. Available for only phone numbers from the US and Canada.
  • latitude - The latitude of this phone number's location. Available for only phone numbers from the US and Canada.
  • locality - The locality or city of this phone number's location.
  • longitude - The longitude of this phone number's location. Available for only phone numbers from the US and Canada.
  • phone_number - The phone number in E.164 format, which consists of a + followed by the country code and subscriber number.
  • postal_code - The postal or ZIP code of this phone number's location. Available for only phone numbers from the US and Canada.
  • rate_center - The rate center of this phone number. Available for only phone numbers from the US and Canada.
  • region - The two-letter state or province abbreviation of this phone number's location. Available for only phone numbers from the US and Canada.

Summary

Functions

Decodes parsed JSON into this struct.

Types

t()

@type t() :: %Twilio.Schemas.AvailablePhoneNumberLocal{
  __extra__: %{optional(String.t()) => term()},
  __present__: [atom()],
  address_requirements: String.t() | nil,
  beta: boolean() | nil,
  capabilities: Twilio.Schemas.AvailablePhoneNumberLocal.Capabilities.t() | nil,
  friendly_name: String.t() | nil,
  iso_country: String.t() | nil,
  lata: String.t() | nil,
  latitude: number() | nil,
  locality: String.t() | nil,
  longitude: number() | nil,
  phone_number: String.t() | nil,
  postal_code: String.t() | nil,
  rate_center: String.t() | nil,
  region: String.t() | nil
}

Functions

decode(json)

@spec decode(term()) :: t() | term()

Decodes parsed JSON into this struct.