github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/model_api_v2010_incoming_phone_number_toll_free.go (about)

     1  /*
     2   * This code was generated by
     3   * ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
     4   *  |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
     5   *  |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \
     6   *
     7   * Twilio - Api
     8   * This is the public Twilio REST API.
     9   *
    10   * NOTE: This class is auto generated by OpenAPI Generator.
    11   * https://openapi-generator.tech
    12   * Do not edit the class manually.
    13   */
    14  
    15  package openapi
    16  
    17  // ApiV2010IncomingPhoneNumberTollFree struct for ApiV2010IncomingPhoneNumberTollFree
    18  type ApiV2010IncomingPhoneNumberTollFree struct {
    19  	// The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the resource.
    20  	AccountSid *string `json:"account_sid,omitempty"`
    21  	// The SID of the Address resource associated with the phone number.
    22  	AddressSid          *string `json:"address_sid,omitempty"`
    23  	AddressRequirements *string `json:"address_requirements,omitempty"`
    24  	// The API version used to start a new TwiML session.
    25  	ApiVersion *string `json:"api_version,omitempty"`
    26  	// Whether the phone number is new to the Twilio platform. Can be: `true` or `false`.
    27  	Beta         *bool                                           `json:"beta,omitempty"`
    28  	Capabilities *ApiV2010AccountIncomingPhoneNumberCapabilities `json:"capabilities,omitempty"`
    29  	// The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    30  	DateCreated *string `json:"date_created,omitempty"`
    31  	// The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
    32  	DateUpdated *string `json:"date_updated,omitempty"`
    33  	// The string that you assigned to describe the resource.
    34  	FriendlyName *string `json:"friendly_name,omitempty"`
    35  	// The SID of the Identity resource that we associate with the phone number. Some regions require an Identity to meet local regulations.
    36  	IdentitySid *string `json:"identity_sid,omitempty"`
    37  	// The phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format, which consists of a + followed by the country code and subscriber number.
    38  	PhoneNumber *string `json:"phone_number,omitempty"`
    39  	// The phone number's origin. `twilio` identifies Twilio-owned phone numbers and `hosted` identifies hosted phone numbers.
    40  	Origin *string `json:"origin,omitempty"`
    41  	// The unique string that that we created to identify the resource.
    42  	Sid *string `json:"sid,omitempty"`
    43  	// The SID of the application that handles SMS messages sent to the phone number. If an `sms_application_sid` is present, we ignore all `sms_*_url` values and use those of the application.
    44  	SmsApplicationSid *string `json:"sms_application_sid,omitempty"`
    45  	// The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
    46  	SmsFallbackMethod *string `json:"sms_fallback_method,omitempty"`
    47  	// The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`.
    48  	SmsFallbackUrl *string `json:"sms_fallback_url,omitempty"`
    49  	// The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
    50  	SmsMethod *string `json:"sms_method,omitempty"`
    51  	// The URL we call when the phone number receives an incoming SMS message.
    52  	SmsUrl *string `json:"sms_url,omitempty"`
    53  	// The URL we call using the `status_callback_method` to send status information to your application.
    54  	StatusCallback *string `json:"status_callback,omitempty"`
    55  	// The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
    56  	StatusCallbackMethod *string `json:"status_callback_method,omitempty"`
    57  	// The SID of the Trunk that handles calls to the phone number. If a `trunk_sid` is present, we ignore all of the voice urls and voice applications and use those set on the Trunk. Setting a `trunk_sid` will automatically delete your `voice_application_sid` and vice versa.
    58  	TrunkSid *string `json:"trunk_sid,omitempty"`
    59  	// The URI of the resource, relative to `https://api.twilio.com`.
    60  	Uri              *string `json:"uri,omitempty"`
    61  	VoiceReceiveMode *string `json:"voice_receive_mode,omitempty"`
    62  	// The SID of the application that handles calls to the phone number. If a `voice_application_sid` is present, we ignore all of the voice urls and use those set on the application. Setting a `voice_application_sid` will automatically delete your `trunk_sid` and vice versa.
    63  	VoiceApplicationSid *string `json:"voice_application_sid,omitempty"`
    64  	// Whether we look up the caller's caller-ID name from the CNAM database ($0.01 per look up). Can be: `true` or `false`.
    65  	VoiceCallerIdLookup *bool `json:"voice_caller_id_lookup,omitempty"`
    66  	// The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
    67  	VoiceFallbackMethod *string `json:"voice_fallback_method,omitempty"`
    68  	// The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`.
    69  	VoiceFallbackUrl *string `json:"voice_fallback_url,omitempty"`
    70  	// The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
    71  	VoiceMethod *string `json:"voice_method,omitempty"`
    72  	// The URL we call when the phone number receives a call. The `voice_url` will not be used if a `voice_application_sid` or a `trunk_sid` is set.
    73  	VoiceUrl        *string `json:"voice_url,omitempty"`
    74  	EmergencyStatus *string `json:"emergency_status,omitempty"`
    75  	// The SID of the emergency address configuration that we use for emergency calling from this phone number.
    76  	EmergencyAddressSid    *string `json:"emergency_address_sid,omitempty"`
    77  	EmergencyAddressStatus *string `json:"emergency_address_status,omitempty"`
    78  	// The SID of the Bundle resource that you associate with the phone number. Some regions require a Bundle to meet local Regulations.
    79  	BundleSid *string `json:"bundle_sid,omitempty"`
    80  	Status    *string `json:"status,omitempty"`
    81  }