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