github.com/twilio/twilio-go@v1.20.1/rest/api/v2010/model_api_v2010_dependent_phone_number.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 // ApiV2010DependentPhoneNumber struct for ApiV2010DependentPhoneNumber 18 type ApiV2010DependentPhoneNumber struct { 19 // The unique string that that we created to identify the DependentPhoneNumber resource. 20 Sid *string `json:"sid,omitempty"` 21 // The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the DependentPhoneNumber resource. 22 AccountSid *string `json:"account_sid,omitempty"` 23 // The string that you assigned to describe the resource. 24 FriendlyName *string `json:"friendly_name,omitempty"` 25 // 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. 26 PhoneNumber *string `json:"phone_number,omitempty"` 27 // 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. 28 VoiceUrl *string `json:"voice_url,omitempty"` 29 // The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`. 30 VoiceMethod *string `json:"voice_method,omitempty"` 31 // The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`. 32 VoiceFallbackMethod *string `json:"voice_fallback_method,omitempty"` 33 // The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`. 34 VoiceFallbackUrl *string `json:"voice_fallback_url,omitempty"` 35 // Whether we look up the caller's caller-ID name from the CNAM database. Can be: `true` or `false`. Caller ID lookups can cost $0.01 each. 36 VoiceCallerIdLookup *bool `json:"voice_caller_id_lookup,omitempty"` 37 // The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 38 DateCreated *string `json:"date_created,omitempty"` 39 // The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format. 40 DateUpdated *string `json:"date_updated,omitempty"` 41 // The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`. 42 SmsFallbackMethod *string `json:"sms_fallback_method,omitempty"` 43 // The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`. 44 SmsFallbackUrl *string `json:"sms_fallback_url,omitempty"` 45 // The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`. 46 SmsMethod *string `json:"sms_method,omitempty"` 47 // The URL we call when the phone number receives an incoming SMS message. 48 SmsUrl *string `json:"sms_url,omitempty"` 49 AddressRequirements *string `json:"address_requirements,omitempty"` 50 // The set of Boolean properties that indicates whether a phone number can receive calls or messages. Capabilities are `Voice`, `SMS`, and `MMS` and each capability can be: `true` or `false`. 51 Capabilities *interface{} `json:"capabilities,omitempty"` 52 // The URL we call using the `status_callback_method` to send status information to your application. 53 StatusCallback *string `json:"status_callback,omitempty"` 54 // The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`. 55 StatusCallbackMethod *string `json:"status_callback_method,omitempty"` 56 // The API version used to start a new TwiML session. 57 ApiVersion *string `json:"api_version,omitempty"` 58 // 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. 59 SmsApplicationSid *string `json:"sms_application_sid,omitempty"` 60 // 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. 61 VoiceApplicationSid *string `json:"voice_application_sid,omitempty"` 62 // 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. 63 TrunkSid *string `json:"trunk_sid,omitempty"` 64 EmergencyStatus *string `json:"emergency_status,omitempty"` 65 // The SID of the emergency address configuration that we use for emergency calling from the phone number. 66 EmergencyAddressSid *string `json:"emergency_address_sid,omitempty"` 67 // The URI of the resource, relative to `https://api.twilio.com`. 68 Uri *string `json:"uri,omitempty"` 69 }