twilio-ruby 5.19.0 → 5.20.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGES.md +13 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api.rb +16 -13
- data/lib/twilio-ruby/rest/api/v2010/account/address.rb +85 -88
- data/lib/twilio-ruby/rest/api/v2010/account/address/dependent_phone_number.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/application.rb +135 -146
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +21 -17
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number.rb +14 -8
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +150 -166
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/machine_to_machine.rb +174 -79
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/mobile.rb +147 -160
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/national.rb +174 -79
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/shared_cost.rb +174 -79
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/toll_free.rb +147 -160
- data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/voip.rb +174 -79
- data/lib/twilio-ruby/rest/api/v2010/account/connect_app.rb +51 -51
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +246 -251
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +31 -26
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +34 -26
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +109 -112
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +108 -112
- data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +108 -112
- data/lib/twilio-ruby/rest/api/v2010/account/message/feedback.rb +21 -11
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +7 -6
- data/lib/twilio-ruby/rest/api/v2010/account/new_signing_key.rb +7 -6
- data/lib/twilio-ruby/rest/api/v2010/account/notification.rb +32 -25
- data/lib/twilio-ruby/rest/api/v2010/account/outgoing_caller_id.rb +36 -36
- data/lib/twilio-ruby/rest/api/v2010/account/sip.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +70 -66
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types.rb +10 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping.rb +14 -14
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_credential_list_mapping.rb +26 -23
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_calls_mapping/auth_calls_ip_access_control_list_mapping.rb +26 -23
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping.rb +12 -12
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/auth_types/auth_registrations_mapping/auth_registrations_credential_list_mapping.rb +26 -23
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/token.rb +11 -9
- data/lib/twilio-ruby/rest/api/v2010/account/usage.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +56 -47
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +59 -44
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +59 -44
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +59 -47
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +59 -44
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +59 -44
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +59 -44
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +59 -44
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +59 -44
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +76 -74
- data/lib/twilio-ruby/rest/authy.rb +8 -8
- data/lib/twilio-ruby/rest/authy/v1.rb +15 -15
- data/lib/twilio-ruby/rest/client.rb +16 -13
- data/lib/twilio-ruby/rest/messaging.rb +15 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +23 -0
- data/lib/twilio-ruby/rest/messaging/v1/session.rb +482 -0
- data/lib/twilio-ruby/rest/messaging/v1/session/message.rb +434 -0
- data/lib/twilio-ruby/rest/messaging/v1/session/participant.rb +458 -0
- data/lib/twilio-ruby/rest/messaging/v1/webhook.rb +285 -0
- data/lib/twilio-ruby/rest/preview.rb +8 -8
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +3 -2
- data/lib/twilio-ruby/rest/video.rb +9 -9
- data/lib/twilio-ruby/rest/video/v1.rb +16 -16
- data/lib/twilio-ruby/rest/video/v1/composition.rb +7 -6
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +37 -21
- data/lib/twilio-ruby/rest/video/v1/recording.rb +12 -3
- data/lib/twilio-ruby/security/request_validator.rb +2 -2
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/messaging/v1/session/message_spec.rb +238 -0
- data/spec/integration/messaging/v1/session/participant_spec.rb +256 -0
- data/spec/integration/messaging/v1/session_spec.rb +223 -0
- data/spec/integration/messaging/v1/webhook_spec.rb +92 -0
- data/spec/integration/video/v1/composition_hook_spec.rb +1 -1
- data/spec/security/request_validator_spec.rb +5 -7
- metadata +14 -2
@@ -16,9 +16,10 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the TollFreeList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] account_sid The
|
20
|
-
#
|
21
|
-
#
|
19
|
+
# @param [String] account_sid The account_sid
|
20
|
+
# @param [String] country_code The
|
21
|
+
# [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
|
22
|
+
# the country.
|
22
23
|
# @return [TollFreeList] TollFreeList
|
23
24
|
def initialize(version, account_sid: nil, country_code: nil)
|
24
25
|
super(version)
|
@@ -32,62 +33,57 @@ module Twilio
|
|
32
33
|
# Lists TollFreeInstance records from the API as a list.
|
33
34
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
34
35
|
# memory before returning.
|
35
|
-
# @param [String] area_code
|
36
|
-
# Canada
|
37
|
-
# @param [String] contains
|
38
|
-
# characters are `
|
39
|
-
# single digit.
|
40
|
-
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3)
|
41
|
-
# @param [Boolean] sms_enabled
|
42
|
-
#
|
43
|
-
# @param [Boolean] mms_enabled
|
44
|
-
#
|
45
|
-
# @param [Boolean] voice_enabled
|
46
|
-
#
|
47
|
-
# @param [Boolean] exclude_all_address_required
|
48
|
-
#
|
49
|
-
#
|
50
|
-
#
|
51
|
-
#
|
52
|
-
#
|
53
|
-
#
|
54
|
-
#
|
55
|
-
# `true` or
|
56
|
-
#
|
57
|
-
# @param [Boolean]
|
58
|
-
#
|
59
|
-
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
60
|
-
# `true` or `false`. If not specified, the default is `false`, and results could
|
61
|
-
# include phone numbers with a foreign Address required.
|
62
|
-
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
63
|
-
# values are either `true` or `false`. Default is `true`.
|
36
|
+
# @param [String] area_code The area code of the phone numbers to read. Applies to
|
37
|
+
# only phone numbers in the US and Canada.
|
38
|
+
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
|
+
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
|
+
# single digit. For examples, see [Example
|
41
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3). If specified, this value must have at least two characters.
|
42
|
+
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
|
+
# messages. Can be: `true` or `false`.
|
44
|
+
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
45
|
+
# Can be: `true` or `false`.
|
46
|
+
# @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can
|
47
|
+
# be: `true` or `false`.
|
48
|
+
# @param [Boolean] exclude_all_address_required Whether to exclude phone numbers
|
49
|
+
# that require an [Address](https://www.twilio.com/docs/usage/api/addresses). Can
|
50
|
+
# be: `true` or `false` and the default is `false`.
|
51
|
+
# @param [Boolean] exclude_local_address_required Whether to exclude phone numbers
|
52
|
+
# that require a local [Address](https://www.twilio.com/docs/usage/api/addresses).
|
53
|
+
# Can be: `true` or `false` and the default is `false`.
|
54
|
+
# @param [Boolean] exclude_foreign_address_required Whether to exclude phone
|
55
|
+
# numbers that require a foreign
|
56
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Can be: `true` or
|
57
|
+
# `false` and the default is `false`.
|
58
|
+
# @param [Boolean] beta Whether to read phone numbers that are new to the Twilio
|
59
|
+
# platform. Can be: `true` or `false` and the default is `true`.
|
64
60
|
# @param [String] near_number Given a phone number, find a geographically close
|
65
|
-
# number within `
|
66
|
-
#
|
61
|
+
# number within `distance` miles. Distance defaults to 25 miles. Applies to only
|
62
|
+
# phone numbers in the US and Canada.
|
67
63
|
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
68
|
-
# geographically close numbers within `
|
69
|
-
#
|
70
|
-
# @param [String] distance
|
71
|
-
#
|
72
|
-
#
|
64
|
+
# geographically close numbers within `distance` miles. Applies to only phone
|
65
|
+
# numbers in the US and Canada.
|
66
|
+
# @param [String] distance The search radius, in miles, for a `near_` query. Can
|
67
|
+
# be up to `500` and the default is `25`. Applies to only phone numbers in the US
|
68
|
+
# and Canada.
|
73
69
|
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
74
|
-
# a phone number, search within the same postal code as that number.
|
75
|
-
# US and
|
76
|
-
# @param [String] in_region Limit results to a particular region
|
77
|
-
#
|
78
|
-
#
|
70
|
+
# a phone number, search within the same postal code as that number. Applies to
|
71
|
+
# only phone numbers in the US and Canada.
|
72
|
+
# @param [String] in_region Limit results to a particular region, state, or
|
73
|
+
# province. Given a phone number, search within the same region as that number.
|
74
|
+
# Applies to only phone numbers in the US and Canada.
|
79
75
|
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
80
76
|
# a phone number search within the same rate center as that number. Requires
|
81
|
-
#
|
82
|
-
# @param [String] in_lata Limit results to a specific
|
77
|
+
# `in_lata` to be set as well. Applies to only phone numbers in the US and Canada.
|
78
|
+
# @param [String] in_lata Limit results to a specific local access and transport
|
83
79
|
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
84
80
|
# Given a phone number, search within the same
|
85
81
|
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
86
|
-
# number.
|
87
|
-
# @param [String] in_locality Limit results to a particular locality
|
82
|
+
# number. Applies to only phone numbers in the US and Canada.
|
83
|
+
# @param [String] in_locality Limit results to a particular locality or city.
|
88
84
|
# Given a phone number, search within the same Locality as that number.
|
89
|
-
# @param [Boolean] fax_enabled
|
90
|
-
#
|
85
|
+
# @param [Boolean] fax_enabled Whether the phone numbers can receive faxes. Can
|
86
|
+
# be: `true` or `false`.
|
91
87
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
92
88
|
# guarantees to never return more than limit. Default is no limit
|
93
89
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -124,62 +120,57 @@ module Twilio
|
|
124
120
|
# Streams TollFreeInstance records from the API as an Enumerable.
|
125
121
|
# This operation lazily loads records as efficiently as possible until the limit
|
126
122
|
# is reached.
|
127
|
-
# @param [String] area_code
|
128
|
-
# Canada
|
129
|
-
# @param [String] contains
|
130
|
-
# characters are `
|
131
|
-
# single digit.
|
132
|
-
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3)
|
133
|
-
# @param [Boolean] sms_enabled
|
134
|
-
#
|
135
|
-
# @param [Boolean] mms_enabled
|
136
|
-
#
|
137
|
-
# @param [Boolean] voice_enabled
|
138
|
-
#
|
139
|
-
# @param [Boolean] exclude_all_address_required
|
140
|
-
#
|
141
|
-
#
|
142
|
-
#
|
143
|
-
#
|
144
|
-
#
|
145
|
-
#
|
146
|
-
#
|
147
|
-
# `true` or
|
148
|
-
#
|
149
|
-
# @param [Boolean]
|
150
|
-
#
|
151
|
-
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
152
|
-
# `true` or `false`. If not specified, the default is `false`, and results could
|
153
|
-
# include phone numbers with a foreign Address required.
|
154
|
-
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
155
|
-
# values are either `true` or `false`. Default is `true`.
|
123
|
+
# @param [String] area_code The area code of the phone numbers to read. Applies to
|
124
|
+
# only phone numbers in the US and Canada.
|
125
|
+
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
|
+
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
|
+
# single digit. For examples, see [Example
|
128
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3). If specified, this value must have at least two characters.
|
129
|
+
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
|
+
# messages. Can be: `true` or `false`.
|
131
|
+
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
132
|
+
# Can be: `true` or `false`.
|
133
|
+
# @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can
|
134
|
+
# be: `true` or `false`.
|
135
|
+
# @param [Boolean] exclude_all_address_required Whether to exclude phone numbers
|
136
|
+
# that require an [Address](https://www.twilio.com/docs/usage/api/addresses). Can
|
137
|
+
# be: `true` or `false` and the default is `false`.
|
138
|
+
# @param [Boolean] exclude_local_address_required Whether to exclude phone numbers
|
139
|
+
# that require a local [Address](https://www.twilio.com/docs/usage/api/addresses).
|
140
|
+
# Can be: `true` or `false` and the default is `false`.
|
141
|
+
# @param [Boolean] exclude_foreign_address_required Whether to exclude phone
|
142
|
+
# numbers that require a foreign
|
143
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Can be: `true` or
|
144
|
+
# `false` and the default is `false`.
|
145
|
+
# @param [Boolean] beta Whether to read phone numbers that are new to the Twilio
|
146
|
+
# platform. Can be: `true` or `false` and the default is `true`.
|
156
147
|
# @param [String] near_number Given a phone number, find a geographically close
|
157
|
-
# number within `
|
158
|
-
#
|
148
|
+
# number within `distance` miles. Distance defaults to 25 miles. Applies to only
|
149
|
+
# phone numbers in the US and Canada.
|
159
150
|
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
160
|
-
# geographically close numbers within `
|
161
|
-
#
|
162
|
-
# @param [String] distance
|
163
|
-
#
|
164
|
-
#
|
151
|
+
# geographically close numbers within `distance` miles. Applies to only phone
|
152
|
+
# numbers in the US and Canada.
|
153
|
+
# @param [String] distance The search radius, in miles, for a `near_` query. Can
|
154
|
+
# be up to `500` and the default is `25`. Applies to only phone numbers in the US
|
155
|
+
# and Canada.
|
165
156
|
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
166
|
-
# a phone number, search within the same postal code as that number.
|
167
|
-
# US and
|
168
|
-
# @param [String] in_region Limit results to a particular region
|
169
|
-
#
|
170
|
-
#
|
157
|
+
# a phone number, search within the same postal code as that number. Applies to
|
158
|
+
# only phone numbers in the US and Canada.
|
159
|
+
# @param [String] in_region Limit results to a particular region, state, or
|
160
|
+
# province. Given a phone number, search within the same region as that number.
|
161
|
+
# Applies to only phone numbers in the US and Canada.
|
171
162
|
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
172
163
|
# a phone number search within the same rate center as that number. Requires
|
173
|
-
#
|
174
|
-
# @param [String] in_lata Limit results to a specific
|
164
|
+
# `in_lata` to be set as well. Applies to only phone numbers in the US and Canada.
|
165
|
+
# @param [String] in_lata Limit results to a specific local access and transport
|
175
166
|
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
176
167
|
# Given a phone number, search within the same
|
177
168
|
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
178
|
-
# number.
|
179
|
-
# @param [String] in_locality Limit results to a particular locality
|
169
|
+
# number. Applies to only phone numbers in the US and Canada.
|
170
|
+
# @param [String] in_locality Limit results to a particular locality or city.
|
180
171
|
# Given a phone number, search within the same Locality as that number.
|
181
|
-
# @param [Boolean] fax_enabled
|
182
|
-
#
|
172
|
+
# @param [Boolean] fax_enabled Whether the phone numbers can receive faxes. Can
|
173
|
+
# be: `true` or `false`.
|
183
174
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
184
175
|
# guarantees to never return more than limit. Default is no limit.
|
185
176
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -232,62 +223,57 @@ module Twilio
|
|
232
223
|
##
|
233
224
|
# Retrieve a single page of TollFreeInstance records from the API.
|
234
225
|
# Request is executed immediately.
|
235
|
-
# @param [String] area_code
|
236
|
-
# Canada
|
237
|
-
# @param [String] contains
|
238
|
-
# characters are `
|
239
|
-
# single digit.
|
240
|
-
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3)
|
241
|
-
# @param [Boolean] sms_enabled
|
242
|
-
#
|
243
|
-
# @param [Boolean] mms_enabled
|
244
|
-
#
|
245
|
-
# @param [Boolean] voice_enabled
|
246
|
-
#
|
247
|
-
# @param [Boolean] exclude_all_address_required
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
#
|
252
|
-
#
|
253
|
-
#
|
254
|
-
#
|
255
|
-
# `true` or
|
256
|
-
#
|
257
|
-
# @param [Boolean]
|
258
|
-
#
|
259
|
-
# [Address](https://www.twilio.com/docs/usage/api/addresses). Possible values are
|
260
|
-
# `true` or `false`. If not specified, the default is `false`, and results could
|
261
|
-
# include phone numbers with a foreign Address required.
|
262
|
-
# @param [Boolean] beta Include phone numbers new to the Twilio platform. Possible
|
263
|
-
# values are either `true` or `false`. Default is `true`.
|
226
|
+
# @param [String] area_code The area code of the phone numbers to read. Applies to
|
227
|
+
# only phone numbers in the US and Canada.
|
228
|
+
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
|
+
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
|
+
# single digit. For examples, see [Example
|
231
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3). If specified, this value must have at least two characters.
|
232
|
+
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
|
+
# messages. Can be: `true` or `false`.
|
234
|
+
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
235
|
+
# Can be: `true` or `false`.
|
236
|
+
# @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can
|
237
|
+
# be: `true` or `false`.
|
238
|
+
# @param [Boolean] exclude_all_address_required Whether to exclude phone numbers
|
239
|
+
# that require an [Address](https://www.twilio.com/docs/usage/api/addresses). Can
|
240
|
+
# be: `true` or `false` and the default is `false`.
|
241
|
+
# @param [Boolean] exclude_local_address_required Whether to exclude phone numbers
|
242
|
+
# that require a local [Address](https://www.twilio.com/docs/usage/api/addresses).
|
243
|
+
# Can be: `true` or `false` and the default is `false`.
|
244
|
+
# @param [Boolean] exclude_foreign_address_required Whether to exclude phone
|
245
|
+
# numbers that require a foreign
|
246
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Can be: `true` or
|
247
|
+
# `false` and the default is `false`.
|
248
|
+
# @param [Boolean] beta Whether to read phone numbers that are new to the Twilio
|
249
|
+
# platform. Can be: `true` or `false` and the default is `true`.
|
264
250
|
# @param [String] near_number Given a phone number, find a geographically close
|
265
|
-
# number within `
|
266
|
-
#
|
251
|
+
# number within `distance` miles. Distance defaults to 25 miles. Applies to only
|
252
|
+
# phone numbers in the US and Canada.
|
267
253
|
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
268
|
-
# geographically close numbers within `
|
269
|
-
#
|
270
|
-
# @param [String] distance
|
271
|
-
#
|
272
|
-
#
|
254
|
+
# geographically close numbers within `distance` miles. Applies to only phone
|
255
|
+
# numbers in the US and Canada.
|
256
|
+
# @param [String] distance The search radius, in miles, for a `near_` query. Can
|
257
|
+
# be up to `500` and the default is `25`. Applies to only phone numbers in the US
|
258
|
+
# and Canada.
|
273
259
|
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
274
|
-
# a phone number, search within the same postal code as that number.
|
275
|
-
# US and
|
276
|
-
# @param [String] in_region Limit results to a particular region
|
277
|
-
#
|
278
|
-
#
|
260
|
+
# a phone number, search within the same postal code as that number. Applies to
|
261
|
+
# only phone numbers in the US and Canada.
|
262
|
+
# @param [String] in_region Limit results to a particular region, state, or
|
263
|
+
# province. Given a phone number, search within the same region as that number.
|
264
|
+
# Applies to only phone numbers in the US and Canada.
|
279
265
|
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
280
266
|
# a phone number search within the same rate center as that number. Requires
|
281
|
-
#
|
282
|
-
# @param [String] in_lata Limit results to a specific
|
267
|
+
# `in_lata` to be set as well. Applies to only phone numbers in the US and Canada.
|
268
|
+
# @param [String] in_lata Limit results to a specific local access and transport
|
283
269
|
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
284
270
|
# Given a phone number, search within the same
|
285
271
|
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
286
|
-
# number.
|
287
|
-
# @param [String] in_locality Limit results to a particular locality
|
272
|
+
# number. Applies to only phone numbers in the US and Canada.
|
273
|
+
# @param [String] in_locality Limit results to a particular locality or city.
|
288
274
|
# Given a phone number, search within the same Locality as that number.
|
289
|
-
# @param [Boolean] fax_enabled
|
290
|
-
#
|
275
|
+
# @param [Boolean] fax_enabled Whether the phone numbers can receive faxes. Can
|
276
|
+
# be: `true` or `false`.
|
291
277
|
# @param [String] page_token PageToken provided by the API
|
292
278
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
293
279
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -383,9 +369,10 @@ module Twilio
|
|
383
369
|
# Initialize the TollFreeInstance
|
384
370
|
# @param [Version] version Version that contains the resource
|
385
371
|
# @param [Hash] payload payload that contains response from Twilio
|
386
|
-
# @param [String] account_sid The
|
387
|
-
#
|
388
|
-
#
|
372
|
+
# @param [String] account_sid The account_sid
|
373
|
+
# @param [String] country_code The
|
374
|
+
# [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
|
375
|
+
# the country.
|
389
376
|
# @return [TollFreeInstance] TollFreeInstance
|
390
377
|
def initialize(version, payload, account_sid: nil, country_code: nil)
|
391
378
|
super(version)
|
@@ -409,79 +396,79 @@ module Twilio
|
|
409
396
|
end
|
410
397
|
|
411
398
|
##
|
412
|
-
# @return [String] A
|
399
|
+
# @return [String] A formatted version of the phone number
|
413
400
|
def friendly_name
|
414
401
|
@properties['friendly_name']
|
415
402
|
end
|
416
403
|
|
417
404
|
##
|
418
|
-
# @return [String] The phone number
|
405
|
+
# @return [String] The phone number in E.164 format
|
419
406
|
def phone_number
|
420
407
|
@properties['phone_number']
|
421
408
|
end
|
422
409
|
|
423
410
|
##
|
424
|
-
# @return [String] The LATA of this phone number
|
411
|
+
# @return [String] The LATA of this phone number
|
425
412
|
def lata
|
426
413
|
@properties['lata']
|
427
414
|
end
|
428
415
|
|
429
416
|
##
|
430
|
-
# @return [String] The locality
|
417
|
+
# @return [String] The locality or city of this phone number's location
|
431
418
|
def locality
|
432
419
|
@properties['locality']
|
433
420
|
end
|
434
421
|
|
435
422
|
##
|
436
|
-
# @return [String] The rate center of this phone number
|
423
|
+
# @return [String] The rate center of this phone number
|
437
424
|
def rate_center
|
438
425
|
@properties['rate_center']
|
439
426
|
end
|
440
427
|
|
441
428
|
##
|
442
|
-
# @return [String] The latitude
|
429
|
+
# @return [String] The latitude of this phone number's location
|
443
430
|
def latitude
|
444
431
|
@properties['latitude']
|
445
432
|
end
|
446
433
|
|
447
434
|
##
|
448
|
-
# @return [String] The longitude
|
435
|
+
# @return [String] The longitude of this phone number's location
|
449
436
|
def longitude
|
450
437
|
@properties['longitude']
|
451
438
|
end
|
452
439
|
|
453
440
|
##
|
454
|
-
# @return [String] The two-letter state or province abbreviation of this phone number
|
441
|
+
# @return [String] The two-letter state or province abbreviation of this phone number's location
|
455
442
|
def region
|
456
443
|
@properties['region']
|
457
444
|
end
|
458
445
|
|
459
446
|
##
|
460
|
-
# @return [String] The postal code of this phone number
|
447
|
+
# @return [String] The postal or ZIP code of this phone number's location
|
461
448
|
def postal_code
|
462
449
|
@properties['postal_code']
|
463
450
|
end
|
464
451
|
|
465
452
|
##
|
466
|
-
# @return [String] The ISO country code of this phone number
|
453
|
+
# @return [String] The ISO country code of this phone number
|
467
454
|
def iso_country
|
468
455
|
@properties['iso_country']
|
469
456
|
end
|
470
457
|
|
471
458
|
##
|
472
|
-
# @return [String]
|
459
|
+
# @return [String] The type of Address resource the phone number requires
|
473
460
|
def address_requirements
|
474
461
|
@properties['address_requirements']
|
475
462
|
end
|
476
463
|
|
477
464
|
##
|
478
|
-
# @return [Boolean]
|
465
|
+
# @return [Boolean] Whether the phone number is new to the Twilio platform
|
479
466
|
def beta
|
480
467
|
@properties['beta']
|
481
468
|
end
|
482
469
|
|
483
470
|
##
|
484
|
-
# @return [String]
|
471
|
+
# @return [String] Whether a phone number can receive calls or messages
|
485
472
|
def capabilities
|
486
473
|
@properties['capabilities']
|
487
474
|
end
|
@@ -16,9 +16,10 @@ module Twilio
|
|
16
16
|
##
|
17
17
|
# Initialize the VoipList
|
18
18
|
# @param [Version] version Version that contains the resource
|
19
|
-
# @param [String] account_sid The
|
20
|
-
#
|
21
|
-
#
|
19
|
+
# @param [String] account_sid The account_sid
|
20
|
+
# @param [String] country_code The
|
21
|
+
# [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
|
22
|
+
# the country.
|
22
23
|
# @return [VoipList] VoipList
|
23
24
|
def initialize(version, account_sid: nil, country_code: nil)
|
24
25
|
super(version)
|
@@ -32,26 +33,57 @@ module Twilio
|
|
32
33
|
# Lists VoipInstance records from the API as a list.
|
33
34
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
34
35
|
# memory before returning.
|
35
|
-
# @param [String] area_code The
|
36
|
-
#
|
37
|
-
# @param [
|
38
|
-
#
|
39
|
-
#
|
40
|
-
#
|
41
|
-
# @param [Boolean]
|
42
|
-
#
|
43
|
-
# @param [Boolean]
|
44
|
-
#
|
45
|
-
# @param [Boolean]
|
46
|
-
#
|
47
|
-
# @param [
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# @param [
|
51
|
-
#
|
52
|
-
#
|
53
|
-
# @param [
|
54
|
-
#
|
36
|
+
# @param [String] area_code The area code of the phone numbers to read. Applies to
|
37
|
+
# only phone numbers in the US and Canada.
|
38
|
+
# @param [String] contains The pattern on which to match phone numbers. Valid
|
39
|
+
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
40
|
+
# single digit. For examples, see [Example
|
41
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3). If specified, this value must have at least two characters.
|
42
|
+
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
43
|
+
# messages. Can be: `true` or `false`.
|
44
|
+
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
45
|
+
# Can be: `true` or `false`.
|
46
|
+
# @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can
|
47
|
+
# be: `true` or `false`.
|
48
|
+
# @param [Boolean] exclude_all_address_required Whether to exclude phone numbers
|
49
|
+
# that require an [Address](https://www.twilio.com/docs/usage/api/addresses). Can
|
50
|
+
# be: `true` or `false` and the default is `false`.
|
51
|
+
# @param [Boolean] exclude_local_address_required Whether to exclude phone numbers
|
52
|
+
# that require a local [Address](https://www.twilio.com/docs/usage/api/addresses).
|
53
|
+
# Can be: `true` or `false` and the default is `false`.
|
54
|
+
# @param [Boolean] exclude_foreign_address_required Whether to exclude phone
|
55
|
+
# numbers that require a foreign
|
56
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Can be: `true` or
|
57
|
+
# `false` and the default is `false`.
|
58
|
+
# @param [Boolean] beta Whether to read phone numbers that are new to the Twilio
|
59
|
+
# platform. Can be: `true` or `false` and the default is `true`.
|
60
|
+
# @param [String] near_number Given a phone number, find a geographically close
|
61
|
+
# number within `distance` miles. Distance defaults to 25 miles. Applies to only
|
62
|
+
# phone numbers in the US and Canada.
|
63
|
+
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
64
|
+
# geographically close numbers within `distance` miles. Applies to only phone
|
65
|
+
# numbers in the US and Canada.
|
66
|
+
# @param [String] distance The search radius, in miles, for a `near_` query. Can
|
67
|
+
# be up to `500` and the default is `25`. Applies to only phone numbers in the US
|
68
|
+
# and Canada.
|
69
|
+
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
70
|
+
# a phone number, search within the same postal code as that number. Applies to
|
71
|
+
# only phone numbers in the US and Canada.
|
72
|
+
# @param [String] in_region Limit results to a particular region, state, or
|
73
|
+
# province. Given a phone number, search within the same region as that number.
|
74
|
+
# Applies to only phone numbers in the US and Canada.
|
75
|
+
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
76
|
+
# a phone number search within the same rate center as that number. Requires
|
77
|
+
# `in_lata` to be set as well. Applies to only phone numbers in the US and Canada.
|
78
|
+
# @param [String] in_lata Limit results to a specific local access and transport
|
79
|
+
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
80
|
+
# Given a phone number, search within the same
|
81
|
+
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
82
|
+
# number. Applies to only phone numbers in the US and Canada.
|
83
|
+
# @param [String] in_locality Limit results to a particular locality or city.
|
84
|
+
# Given a phone number, search within the same Locality as that number.
|
85
|
+
# @param [Boolean] fax_enabled Whether the phone numbers can receive faxes. Can
|
86
|
+
# be: `true` or `false`.
|
55
87
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
56
88
|
# guarantees to never return more than limit. Default is no limit
|
57
89
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -88,26 +120,57 @@ module Twilio
|
|
88
120
|
# Streams VoipInstance records from the API as an Enumerable.
|
89
121
|
# This operation lazily loads records as efficiently as possible until the limit
|
90
122
|
# is reached.
|
91
|
-
# @param [String] area_code The
|
92
|
-
#
|
93
|
-
# @param [
|
94
|
-
#
|
95
|
-
#
|
96
|
-
#
|
97
|
-
# @param [Boolean]
|
98
|
-
#
|
99
|
-
# @param [Boolean]
|
100
|
-
#
|
101
|
-
# @param [Boolean]
|
102
|
-
#
|
103
|
-
# @param [
|
104
|
-
#
|
105
|
-
#
|
106
|
-
# @param [
|
107
|
-
#
|
108
|
-
#
|
109
|
-
# @param [
|
110
|
-
#
|
123
|
+
# @param [String] area_code The area code of the phone numbers to read. Applies to
|
124
|
+
# only phone numbers in the US and Canada.
|
125
|
+
# @param [String] contains The pattern on which to match phone numbers. Valid
|
126
|
+
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
127
|
+
# single digit. For examples, see [Example
|
128
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3). If specified, this value must have at least two characters.
|
129
|
+
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
130
|
+
# messages. Can be: `true` or `false`.
|
131
|
+
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
132
|
+
# Can be: `true` or `false`.
|
133
|
+
# @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can
|
134
|
+
# be: `true` or `false`.
|
135
|
+
# @param [Boolean] exclude_all_address_required Whether to exclude phone numbers
|
136
|
+
# that require an [Address](https://www.twilio.com/docs/usage/api/addresses). Can
|
137
|
+
# be: `true` or `false` and the default is `false`.
|
138
|
+
# @param [Boolean] exclude_local_address_required Whether to exclude phone numbers
|
139
|
+
# that require a local [Address](https://www.twilio.com/docs/usage/api/addresses).
|
140
|
+
# Can be: `true` or `false` and the default is `false`.
|
141
|
+
# @param [Boolean] exclude_foreign_address_required Whether to exclude phone
|
142
|
+
# numbers that require a foreign
|
143
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Can be: `true` or
|
144
|
+
# `false` and the default is `false`.
|
145
|
+
# @param [Boolean] beta Whether to read phone numbers that are new to the Twilio
|
146
|
+
# platform. Can be: `true` or `false` and the default is `true`.
|
147
|
+
# @param [String] near_number Given a phone number, find a geographically close
|
148
|
+
# number within `distance` miles. Distance defaults to 25 miles. Applies to only
|
149
|
+
# phone numbers in the US and Canada.
|
150
|
+
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
151
|
+
# geographically close numbers within `distance` miles. Applies to only phone
|
152
|
+
# numbers in the US and Canada.
|
153
|
+
# @param [String] distance The search radius, in miles, for a `near_` query. Can
|
154
|
+
# be up to `500` and the default is `25`. Applies to only phone numbers in the US
|
155
|
+
# and Canada.
|
156
|
+
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
157
|
+
# a phone number, search within the same postal code as that number. Applies to
|
158
|
+
# only phone numbers in the US and Canada.
|
159
|
+
# @param [String] in_region Limit results to a particular region, state, or
|
160
|
+
# province. Given a phone number, search within the same region as that number.
|
161
|
+
# Applies to only phone numbers in the US and Canada.
|
162
|
+
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
163
|
+
# a phone number search within the same rate center as that number. Requires
|
164
|
+
# `in_lata` to be set as well. Applies to only phone numbers in the US and Canada.
|
165
|
+
# @param [String] in_lata Limit results to a specific local access and transport
|
166
|
+
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
167
|
+
# Given a phone number, search within the same
|
168
|
+
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
169
|
+
# number. Applies to only phone numbers in the US and Canada.
|
170
|
+
# @param [String] in_locality Limit results to a particular locality or city.
|
171
|
+
# Given a phone number, search within the same Locality as that number.
|
172
|
+
# @param [Boolean] fax_enabled Whether the phone numbers can receive faxes. Can
|
173
|
+
# be: `true` or `false`.
|
111
174
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
112
175
|
# guarantees to never return more than limit. Default is no limit.
|
113
176
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -160,26 +223,57 @@ module Twilio
|
|
160
223
|
##
|
161
224
|
# Retrieve a single page of VoipInstance records from the API.
|
162
225
|
# Request is executed immediately.
|
163
|
-
# @param [String] area_code The
|
164
|
-
#
|
165
|
-
# @param [
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
# @param [Boolean]
|
170
|
-
#
|
171
|
-
# @param [Boolean]
|
172
|
-
#
|
173
|
-
# @param [Boolean]
|
174
|
-
#
|
175
|
-
# @param [
|
176
|
-
#
|
177
|
-
#
|
178
|
-
# @param [
|
179
|
-
#
|
180
|
-
#
|
181
|
-
# @param [
|
182
|
-
#
|
226
|
+
# @param [String] area_code The area code of the phone numbers to read. Applies to
|
227
|
+
# only phone numbers in the US and Canada.
|
228
|
+
# @param [String] contains The pattern on which to match phone numbers. Valid
|
229
|
+
# characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
|
230
|
+
# single digit. For examples, see [Example
|
231
|
+
# 2](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-2) and [Example 3](https://www.twilio.com/docs/api/rest/available-phone-numbers#local-get-basic-example-3). If specified, this value must have at least two characters.
|
232
|
+
# @param [Boolean] sms_enabled Whether the phone numbers can receive text
|
233
|
+
# messages. Can be: `true` or `false`.
|
234
|
+
# @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
|
235
|
+
# Can be: `true` or `false`.
|
236
|
+
# @param [Boolean] voice_enabled Whether the phone numbers can receive calls. Can
|
237
|
+
# be: `true` or `false`.
|
238
|
+
# @param [Boolean] exclude_all_address_required Whether to exclude phone numbers
|
239
|
+
# that require an [Address](https://www.twilio.com/docs/usage/api/addresses). Can
|
240
|
+
# be: `true` or `false` and the default is `false`.
|
241
|
+
# @param [Boolean] exclude_local_address_required Whether to exclude phone numbers
|
242
|
+
# that require a local [Address](https://www.twilio.com/docs/usage/api/addresses).
|
243
|
+
# Can be: `true` or `false` and the default is `false`.
|
244
|
+
# @param [Boolean] exclude_foreign_address_required Whether to exclude phone
|
245
|
+
# numbers that require a foreign
|
246
|
+
# [Address](https://www.twilio.com/docs/usage/api/addresses). Can be: `true` or
|
247
|
+
# `false` and the default is `false`.
|
248
|
+
# @param [Boolean] beta Whether to read phone numbers that are new to the Twilio
|
249
|
+
# platform. Can be: `true` or `false` and the default is `true`.
|
250
|
+
# @param [String] near_number Given a phone number, find a geographically close
|
251
|
+
# number within `distance` miles. Distance defaults to 25 miles. Applies to only
|
252
|
+
# phone numbers in the US and Canada.
|
253
|
+
# @param [String] near_lat_long Given a latitude/longitude pair `lat,long` find
|
254
|
+
# geographically close numbers within `distance` miles. Applies to only phone
|
255
|
+
# numbers in the US and Canada.
|
256
|
+
# @param [String] distance The search radius, in miles, for a `near_` query. Can
|
257
|
+
# be up to `500` and the default is `25`. Applies to only phone numbers in the US
|
258
|
+
# and Canada.
|
259
|
+
# @param [String] in_postal_code Limit results to a particular postal code. Given
|
260
|
+
# a phone number, search within the same postal code as that number. Applies to
|
261
|
+
# only phone numbers in the US and Canada.
|
262
|
+
# @param [String] in_region Limit results to a particular region, state, or
|
263
|
+
# province. Given a phone number, search within the same region as that number.
|
264
|
+
# Applies to only phone numbers in the US and Canada.
|
265
|
+
# @param [String] in_rate_center Limit results to a specific rate center, or given
|
266
|
+
# a phone number search within the same rate center as that number. Requires
|
267
|
+
# `in_lata` to be set as well. Applies to only phone numbers in the US and Canada.
|
268
|
+
# @param [String] in_lata Limit results to a specific local access and transport
|
269
|
+
# area ([LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area)).
|
270
|
+
# Given a phone number, search within the same
|
271
|
+
# [LATA](http://en.wikipedia.org/wiki/Local_access_and_transport_area) as that
|
272
|
+
# number. Applies to only phone numbers in the US and Canada.
|
273
|
+
# @param [String] in_locality Limit results to a particular locality or city.
|
274
|
+
# Given a phone number, search within the same Locality as that number.
|
275
|
+
# @param [Boolean] fax_enabled Whether the phone numbers can receive faxes. Can
|
276
|
+
# be: `true` or `false`.
|
183
277
|
# @param [String] page_token PageToken provided by the API
|
184
278
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
185
279
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -275,9 +369,10 @@ module Twilio
|
|
275
369
|
# Initialize the VoipInstance
|
276
370
|
# @param [Version] version Version that contains the resource
|
277
371
|
# @param [Hash] payload payload that contains response from Twilio
|
278
|
-
# @param [String] account_sid The
|
279
|
-
#
|
280
|
-
#
|
372
|
+
# @param [String] account_sid The account_sid
|
373
|
+
# @param [String] country_code The
|
374
|
+
# [ISO-3166-1](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code of
|
375
|
+
# the country.
|
281
376
|
# @return [VoipInstance] VoipInstance
|
282
377
|
def initialize(version, payload, account_sid: nil, country_code: nil)
|
283
378
|
super(version)
|
@@ -301,79 +396,79 @@ module Twilio
|
|
301
396
|
end
|
302
397
|
|
303
398
|
##
|
304
|
-
# @return [String]
|
399
|
+
# @return [String] A formatted version of the phone number
|
305
400
|
def friendly_name
|
306
401
|
@properties['friendly_name']
|
307
402
|
end
|
308
403
|
|
309
404
|
##
|
310
|
-
# @return [String] The
|
405
|
+
# @return [String] The phone number in E.164 format
|
311
406
|
def phone_number
|
312
407
|
@properties['phone_number']
|
313
408
|
end
|
314
409
|
|
315
410
|
##
|
316
|
-
# @return [String] The
|
411
|
+
# @return [String] The LATA of this phone number
|
317
412
|
def lata
|
318
413
|
@properties['lata']
|
319
414
|
end
|
320
415
|
|
321
416
|
##
|
322
|
-
# @return [String] The locality
|
417
|
+
# @return [String] The locality or city of this phone number's location
|
323
418
|
def locality
|
324
419
|
@properties['locality']
|
325
420
|
end
|
326
421
|
|
327
422
|
##
|
328
|
-
# @return [String] The
|
423
|
+
# @return [String] The rate center of this phone number
|
329
424
|
def rate_center
|
330
425
|
@properties['rate_center']
|
331
426
|
end
|
332
427
|
|
333
428
|
##
|
334
|
-
# @return [String] The latitude
|
429
|
+
# @return [String] The latitude of this phone number's location
|
335
430
|
def latitude
|
336
431
|
@properties['latitude']
|
337
432
|
end
|
338
433
|
|
339
434
|
##
|
340
|
-
# @return [String] The longitude
|
435
|
+
# @return [String] The longitude of this phone number's location
|
341
436
|
def longitude
|
342
437
|
@properties['longitude']
|
343
438
|
end
|
344
439
|
|
345
440
|
##
|
346
|
-
# @return [String] The
|
441
|
+
# @return [String] The two-letter state or province abbreviation of this phone number's location
|
347
442
|
def region
|
348
443
|
@properties['region']
|
349
444
|
end
|
350
445
|
|
351
446
|
##
|
352
|
-
# @return [String] The
|
447
|
+
# @return [String] The postal or ZIP code of this phone number's location
|
353
448
|
def postal_code
|
354
449
|
@properties['postal_code']
|
355
450
|
end
|
356
451
|
|
357
452
|
##
|
358
|
-
# @return [String] The
|
453
|
+
# @return [String] The ISO country code of this phone number
|
359
454
|
def iso_country
|
360
455
|
@properties['iso_country']
|
361
456
|
end
|
362
457
|
|
363
458
|
##
|
364
|
-
# @return [String] The
|
459
|
+
# @return [String] The type of Address resource the phone number requires
|
365
460
|
def address_requirements
|
366
461
|
@properties['address_requirements']
|
367
462
|
end
|
368
463
|
|
369
464
|
##
|
370
|
-
# @return [Boolean]
|
465
|
+
# @return [Boolean] Whether the phone number is new to the Twilio platform
|
371
466
|
def beta
|
372
467
|
@properties['beta']
|
373
468
|
end
|
374
469
|
|
375
470
|
##
|
376
|
-
# @return [String]
|
471
|
+
# @return [String] Whether a phone number can receive calls or messages
|
377
472
|
def capabilities
|
378
473
|
@properties['capabilities']
|
379
474
|
end
|