twilio-ruby 5.13.0 → 5.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call/recording.rb +8 -8
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +1 -5
- data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +8 -8
- data/lib/twilio-ruby/rest/client.rb +7 -0
- data/lib/twilio-ruby/rest/preview/marketplace.rb +13 -13
- data/lib/twilio-ruby/rest/preview.rb +8 -21
- data/lib/twilio-ruby/rest/video/v1/composition.rb +1 -1
- data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +626 -0
- data/lib/twilio-ruby/rest/video/v1.rb +32 -16
- data/lib/twilio-ruby/rest/video.rb +18 -9
- data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission/bulk_country_update.rb +12 -11
- data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission/country/highrisk_special_prefix.rb +14 -14
- data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission/country.rb +57 -45
- data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission.rb +6 -6
- data/lib/twilio-ruby/rest/{preview/permissions.rb → voice/v1.rb} +6 -6
- data/lib/twilio-ruby/rest/voice.rb +44 -0
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/video/v1/composition_hook_spec.rb +410 -0
- data/spec/integration/{preview/permissions → voice/v1}/voice_permission/bulk_country_update_spec.rb +5 -5
- data/spec/integration/{preview/permissions → voice/v1}/voice_permission/country/highrisk_special_prefix_spec.rb +9 -9
- data/spec/integration/{preview/permissions → voice/v1}/voice_permission/country_spec.rb +16 -16
- data/spec/integration/{preview/permissions → voice/v1}/voice_permission_spec.rb +0 -0
- metadata +20 -19
- data/lib/twilio-ruby/rest/preview/permissions/voice_permission/settings.rb +0 -197
- data/spec/integration/preview/permissions/voice_permission/settings_spec.rb +0 -77
@@ -15,13 +15,44 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
+
@compositions = nil
|
19
|
+
@composition_hooks = nil
|
18
20
|
@composition_settings = nil
|
19
21
|
@recordings = nil
|
20
22
|
@recording_settings = nil
|
21
|
-
@compositions = nil
|
22
23
|
@rooms = nil
|
23
24
|
end
|
24
25
|
|
26
|
+
##
|
27
|
+
# @param [String] sid The Composition Sid that uniquely identifies the Composition
|
28
|
+
# to fetch.
|
29
|
+
# @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
|
30
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
31
|
+
def compositions(sid=:unset)
|
32
|
+
if sid.nil?
|
33
|
+
raise ArgumentError, 'sid cannot be nil'
|
34
|
+
elsif sid == :unset
|
35
|
+
@compositions ||= CompositionList.new self
|
36
|
+
else
|
37
|
+
CompositionContext.new(self, sid)
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
##
|
42
|
+
# @param [String] sid The Composition Hook Sid that uniquely identifies the
|
43
|
+
# Composition Hook to fetch.
|
44
|
+
# @return [Twilio::REST::Video::V1::CompositionHookContext] if sid was passed.
|
45
|
+
# @return [Twilio::REST::Video::V1::CompositionHookList]
|
46
|
+
def composition_hooks(sid=:unset)
|
47
|
+
if sid.nil?
|
48
|
+
raise ArgumentError, 'sid cannot be nil'
|
49
|
+
elsif sid == :unset
|
50
|
+
@composition_hooks ||= CompositionHookList.new self
|
51
|
+
else
|
52
|
+
CompositionHookContext.new(self, sid)
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
25
56
|
##
|
26
57
|
# @return [Twilio::REST::Video::V1::CompositionSettingsContext]
|
27
58
|
def composition_settings
|
@@ -49,21 +80,6 @@ module Twilio
|
|
49
80
|
@recording_settings ||= RecordingSettingsContext.new self
|
50
81
|
end
|
51
82
|
|
52
|
-
##
|
53
|
-
# @param [String] sid The Composition Sid that uniquely identifies the Composition
|
54
|
-
# to fetch.
|
55
|
-
# @return [Twilio::REST::Video::V1::CompositionContext] if sid was passed.
|
56
|
-
# @return [Twilio::REST::Video::V1::CompositionList]
|
57
|
-
def compositions(sid=:unset)
|
58
|
-
if sid.nil?
|
59
|
-
raise ArgumentError, 'sid cannot be nil'
|
60
|
-
elsif sid == :unset
|
61
|
-
@compositions ||= CompositionList.new self
|
62
|
-
else
|
63
|
-
CompositionContext.new(self, sid)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
83
|
##
|
68
84
|
# @param [String] sid The Room Sid or name that uniquely identifies this resource.
|
69
85
|
# @return [Twilio::REST::Video::V1::RoomContext] if sid was passed.
|
@@ -28,6 +28,24 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
+
##
|
32
|
+
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
33
|
+
# uniquely identifies this Composition.
|
34
|
+
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
35
|
+
# @return [Twilio::REST::Video::V1::CompositionList]
|
36
|
+
def compositions(sid=:unset)
|
37
|
+
self.v1.compositions(sid)
|
38
|
+
end
|
39
|
+
|
40
|
+
##
|
41
|
+
# @param [String] sid `HKxx…xx` A system-generated 34-character string that
|
42
|
+
# uniquely identifies this Composition Hook.
|
43
|
+
# @return [Twilio::REST::Video::V1::CompositionHookInstance] if sid was passed.
|
44
|
+
# @return [Twilio::REST::Video::V1::CompositionHookList]
|
45
|
+
def composition_hooks(sid=:unset)
|
46
|
+
self.v1.composition_hooks(sid)
|
47
|
+
end
|
48
|
+
|
31
49
|
##
|
32
50
|
# @return [Twilio::REST::Video::V1::CompositionSettingsInstance]
|
33
51
|
def composition_settings
|
@@ -49,15 +67,6 @@ module Twilio
|
|
49
67
|
self.v1.recording_settings()
|
50
68
|
end
|
51
69
|
|
52
|
-
##
|
53
|
-
# @param [String] sid `CJxx…xx` A system-generated 34-character string that
|
54
|
-
# uniquely identifies this Composition.
|
55
|
-
# @return [Twilio::REST::Video::V1::CompositionInstance] if sid was passed.
|
56
|
-
# @return [Twilio::REST::Video::V1::CompositionList]
|
57
|
-
def compositions(sid=:unset)
|
58
|
-
self.v1.compositions(sid)
|
59
|
-
end
|
60
|
-
|
61
70
|
##
|
62
71
|
# @param [String] sid A system-generated 34-character string that uniquely
|
63
72
|
# identifies this resource.
|
data/lib/twilio-ruby/rest/{preview/permissions → voice/v1}/voice_permission/bulk_country_update.rb
RENAMED
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
module Twilio
|
10
10
|
module REST
|
11
|
-
class
|
12
|
-
class
|
11
|
+
class Voice < Domain
|
12
|
+
class V1 < Version
|
13
13
|
class VoicePermissionList < ListResource
|
14
14
|
##
|
15
15
|
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
@@ -23,15 +23,16 @@ module Twilio
|
|
23
23
|
|
24
24
|
# Path Solution
|
25
25
|
@solution = {}
|
26
|
-
@uri = "/
|
26
|
+
@uri = "/DialingPermissions/BulkCountryUpdates"
|
27
27
|
end
|
28
28
|
|
29
29
|
##
|
30
30
|
# Retrieve a single page of BulkCountryUpdateInstance records from the API.
|
31
31
|
# Request is executed immediately.
|
32
|
-
# @param [String] update_request
|
33
|
-
#
|
34
|
-
# "
|
32
|
+
# @param [String] update_request URL encoded JSON array of update objects. example
|
33
|
+
# : [ { "iso_code": "GB", "low_risk_numbers_enabled": "true",
|
34
|
+
# "high_risk_special_numbers_enabled":"true",
|
35
|
+
# "high_risk_tollfraud_numbers_enabled": "false" } ]
|
35
36
|
# @return [BulkCountryUpdateInstance] Newly created BulkCountryUpdateInstance
|
36
37
|
def create(update_request: nil)
|
37
38
|
data = Twilio::Values.of({'UpdateRequest' => update_request, })
|
@@ -48,7 +49,7 @@ module Twilio
|
|
48
49
|
##
|
49
50
|
# Provide a user friendly representation
|
50
51
|
def to_s
|
51
|
-
'#<Twilio.
|
52
|
+
'#<Twilio.Voice.V1.BulkCountryUpdateList>'
|
52
53
|
end
|
53
54
|
end
|
54
55
|
|
@@ -79,7 +80,7 @@ module Twilio
|
|
79
80
|
##
|
80
81
|
# Provide a user friendly representation
|
81
82
|
def to_s
|
82
|
-
'<Twilio.
|
83
|
+
'<Twilio.Voice.V1.BulkCountryUpdatePage>'
|
83
84
|
end
|
84
85
|
end
|
85
86
|
|
@@ -102,7 +103,7 @@ module Twilio
|
|
102
103
|
end
|
103
104
|
|
104
105
|
##
|
105
|
-
# @return [String] The number of countries
|
106
|
+
# @return [String] The number of countries updated
|
106
107
|
def update_count
|
107
108
|
@properties['update_count']
|
108
109
|
end
|
@@ -116,13 +117,13 @@ module Twilio
|
|
116
117
|
##
|
117
118
|
# Provide a user friendly representation
|
118
119
|
def to_s
|
119
|
-
"<Twilio.
|
120
|
+
"<Twilio.Voice.V1.BulkCountryUpdateInstance>"
|
120
121
|
end
|
121
122
|
|
122
123
|
##
|
123
124
|
# Provide a detailed, user friendly representation
|
124
125
|
def inspect
|
125
|
-
"<Twilio.
|
126
|
+
"<Twilio.Voice.V1.BulkCountryUpdateInstance>"
|
126
127
|
end
|
127
128
|
end
|
128
129
|
end
|
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
module Twilio
|
10
10
|
module REST
|
11
|
-
class
|
12
|
-
class
|
11
|
+
class Voice < Domain
|
12
|
+
class V1 < Version
|
13
13
|
class VoicePermissionList < ListResource
|
14
14
|
class CountryContext < InstanceContext
|
15
15
|
##
|
@@ -18,15 +18,15 @@ module Twilio
|
|
18
18
|
##
|
19
19
|
# Initialize the HighriskSpecialPrefixList
|
20
20
|
# @param [Version] version Version that contains the resource
|
21
|
-
# @param [String]
|
21
|
+
# @param [String] iso_code The [ISO country
|
22
22
|
# code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
23
23
|
# @return [HighriskSpecialPrefixList] HighriskSpecialPrefixList
|
24
|
-
def initialize(version,
|
24
|
+
def initialize(version, iso_code: nil)
|
25
25
|
super(version)
|
26
26
|
|
27
27
|
# Path Solution
|
28
|
-
@solution = {
|
29
|
-
@uri = "/
|
28
|
+
@solution = {iso_code: iso_code}
|
29
|
+
@uri = "/DialingPermissions/Countries/#{@solution[:iso_code]}/HighRiskSpecialPrefixes"
|
30
30
|
end
|
31
31
|
|
32
32
|
##
|
@@ -114,7 +114,7 @@ module Twilio
|
|
114
114
|
##
|
115
115
|
# Provide a user friendly representation
|
116
116
|
def to_s
|
117
|
-
'#<Twilio.
|
117
|
+
'#<Twilio.Voice.V1.HighriskSpecialPrefixList>'
|
118
118
|
end
|
119
119
|
end
|
120
120
|
|
@@ -139,13 +139,13 @@ module Twilio
|
|
139
139
|
# @param [Hash] payload Payload response from the API
|
140
140
|
# @return [HighriskSpecialPrefixInstance] HighriskSpecialPrefixInstance
|
141
141
|
def get_instance(payload)
|
142
|
-
HighriskSpecialPrefixInstance.new(@version, payload,
|
142
|
+
HighriskSpecialPrefixInstance.new(@version, payload, iso_code: @solution[:iso_code], )
|
143
143
|
end
|
144
144
|
|
145
145
|
##
|
146
146
|
# Provide a user friendly representation
|
147
147
|
def to_s
|
148
|
-
'<Twilio.
|
148
|
+
'<Twilio.Voice.V1.HighriskSpecialPrefixPage>'
|
149
149
|
end
|
150
150
|
end
|
151
151
|
|
@@ -156,10 +156,10 @@ module Twilio
|
|
156
156
|
# Initialize the HighriskSpecialPrefixInstance
|
157
157
|
# @param [Version] version Version that contains the resource
|
158
158
|
# @param [Hash] payload payload that contains response from Twilio
|
159
|
-
# @param [String]
|
159
|
+
# @param [String] iso_code The [ISO country
|
160
160
|
# code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
161
161
|
# @return [HighriskSpecialPrefixInstance] HighriskSpecialPrefixInstance
|
162
|
-
def initialize(version, payload,
|
162
|
+
def initialize(version, payload, iso_code: nil)
|
163
163
|
super(version)
|
164
164
|
|
165
165
|
# Marshaled Properties
|
@@ -167,7 +167,7 @@ module Twilio
|
|
167
167
|
end
|
168
168
|
|
169
169
|
##
|
170
|
-
# @return [String] prefix
|
170
|
+
# @return [String] A prefix that includes the E.164 assigned country code
|
171
171
|
def prefix
|
172
172
|
@properties['prefix']
|
173
173
|
end
|
@@ -175,13 +175,13 @@ module Twilio
|
|
175
175
|
##
|
176
176
|
# Provide a user friendly representation
|
177
177
|
def to_s
|
178
|
-
"<Twilio.
|
178
|
+
"<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
|
179
179
|
end
|
180
180
|
|
181
181
|
##
|
182
182
|
# Provide a detailed, user friendly representation
|
183
183
|
def inspect
|
184
|
-
"<Twilio.
|
184
|
+
"<Twilio.Voice.V1.HighriskSpecialPrefixInstance>"
|
185
185
|
end
|
186
186
|
end
|
187
187
|
end
|
@@ -8,8 +8,8 @@
|
|
8
8
|
|
9
9
|
module Twilio
|
10
10
|
module REST
|
11
|
-
class
|
12
|
-
class
|
11
|
+
class Voice < Domain
|
12
|
+
class V1 < Version
|
13
13
|
class VoicePermissionList < ListResource
|
14
14
|
##
|
15
15
|
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
@@ -23,24 +23,29 @@ module Twilio
|
|
23
23
|
|
24
24
|
# Path Solution
|
25
25
|
@solution = {}
|
26
|
-
@uri = "/
|
26
|
+
@uri = "/DialingPermissions/Countries"
|
27
27
|
end
|
28
28
|
|
29
29
|
##
|
30
30
|
# Lists CountryInstance records from the API as a list.
|
31
31
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
32
32
|
# memory before returning.
|
33
|
-
# @param [String] iso_code
|
33
|
+
# @param [String] iso_code Filter to retrieve the country permissions by
|
34
|
+
# specifying the [ISO country
|
34
35
|
# code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
35
|
-
# @param [String] continent Filter the
|
36
|
+
# @param [String] continent Filter to retrieve the country permissions by
|
37
|
+
# specifying the continent
|
36
38
|
# @param [String] country_code Filter the results by specified [country
|
37
|
-
# codes](https://
|
38
|
-
# @param [Boolean] low_risk_numbers_enabled Filter
|
39
|
-
# risk
|
40
|
-
# @param [Boolean] high_risk_special_numbers_enabled Filter
|
41
|
-
#
|
42
|
-
#
|
43
|
-
#
|
39
|
+
# codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html)
|
40
|
+
# @param [Boolean] low_risk_numbers_enabled Filter to retrieve the country
|
41
|
+
# permissions with dialing to low-risk numbers enabled set to true / false
|
42
|
+
# @param [Boolean] high_risk_special_numbers_enabled Filter to retrieve the
|
43
|
+
# country permissions with dialing to high-risk special service numbers enabled
|
44
|
+
# set to true / false
|
45
|
+
# @param [Boolean] high_risk_tollfraud_numbers_enabled Filter to retrieve the
|
46
|
+
# country permissions with dialing to high-risk [toll
|
47
|
+
# fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled
|
48
|
+
# set to true / false
|
44
49
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
45
50
|
# guarantees to never return more than limit. Default is no limit
|
46
51
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -65,17 +70,22 @@ module Twilio
|
|
65
70
|
# Streams CountryInstance records from the API as an Enumerable.
|
66
71
|
# This operation lazily loads records as efficiently as possible until the limit
|
67
72
|
# is reached.
|
68
|
-
# @param [String] iso_code
|
73
|
+
# @param [String] iso_code Filter to retrieve the country permissions by
|
74
|
+
# specifying the [ISO country
|
69
75
|
# code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
70
|
-
# @param [String] continent Filter the
|
76
|
+
# @param [String] continent Filter to retrieve the country permissions by
|
77
|
+
# specifying the continent
|
71
78
|
# @param [String] country_code Filter the results by specified [country
|
72
|
-
# codes](https://
|
73
|
-
# @param [Boolean] low_risk_numbers_enabled Filter
|
74
|
-
# risk
|
75
|
-
# @param [Boolean] high_risk_special_numbers_enabled Filter
|
76
|
-
#
|
77
|
-
#
|
78
|
-
#
|
79
|
+
# codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html)
|
80
|
+
# @param [Boolean] low_risk_numbers_enabled Filter to retrieve the country
|
81
|
+
# permissions with dialing to low-risk numbers enabled set to true / false
|
82
|
+
# @param [Boolean] high_risk_special_numbers_enabled Filter to retrieve the
|
83
|
+
# country permissions with dialing to high-risk special service numbers enabled
|
84
|
+
# set to true / false
|
85
|
+
# @param [Boolean] high_risk_tollfraud_numbers_enabled Filter to retrieve the
|
86
|
+
# country permissions with dialing to high-risk [toll
|
87
|
+
# fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled
|
88
|
+
# set to true / false
|
79
89
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
80
90
|
# guarantees to never return more than limit. Default is no limit.
|
81
91
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -116,17 +126,22 @@ module Twilio
|
|
116
126
|
##
|
117
127
|
# Retrieve a single page of CountryInstance records from the API.
|
118
128
|
# Request is executed immediately.
|
119
|
-
# @param [String] iso_code
|
129
|
+
# @param [String] iso_code Filter to retrieve the country permissions by
|
130
|
+
# specifying the [ISO country
|
120
131
|
# code](http://en.wikipedia.org/wiki/ISO_3166-1_alpha-2)
|
121
|
-
# @param [String] continent Filter the
|
132
|
+
# @param [String] continent Filter to retrieve the country permissions by
|
133
|
+
# specifying the continent
|
122
134
|
# @param [String] country_code Filter the results by specified [country
|
123
|
-
# codes](https://
|
124
|
-
# @param [Boolean] low_risk_numbers_enabled Filter
|
125
|
-
# risk
|
126
|
-
# @param [Boolean] high_risk_special_numbers_enabled Filter
|
127
|
-
#
|
128
|
-
#
|
129
|
-
#
|
135
|
+
# codes](https://www.itu.int/itudoc/itu-t/ob-lists/icc/e164_763.html)
|
136
|
+
# @param [Boolean] low_risk_numbers_enabled Filter to retrieve the country
|
137
|
+
# permissions with dialing to low-risk numbers enabled set to true / false
|
138
|
+
# @param [Boolean] high_risk_special_numbers_enabled Filter to retrieve the
|
139
|
+
# country permissions with dialing to high-risk special service numbers enabled
|
140
|
+
# set to true / false
|
141
|
+
# @param [Boolean] high_risk_tollfraud_numbers_enabled Filter to retrieve the
|
142
|
+
# country permissions with dialing to high-risk [toll
|
143
|
+
# fraud](https://www.twilio.com/learn/voice-and-video/toll-fraud) numbers enabled
|
144
|
+
# set to true / false
|
130
145
|
# @param [String] page_token PageToken provided by the API
|
131
146
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
132
147
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -167,7 +182,7 @@ module Twilio
|
|
167
182
|
##
|
168
183
|
# Provide a user friendly representation
|
169
184
|
def to_s
|
170
|
-
'#<Twilio.
|
185
|
+
'#<Twilio.Voice.V1.CountryList>'
|
171
186
|
end
|
172
187
|
end
|
173
188
|
|
@@ -198,7 +213,7 @@ module Twilio
|
|
198
213
|
##
|
199
214
|
# Provide a user friendly representation
|
200
215
|
def to_s
|
201
|
-
'<Twilio.
|
216
|
+
'<Twilio.Voice.V1.CountryPage>'
|
202
217
|
end
|
203
218
|
end
|
204
219
|
|
@@ -216,7 +231,7 @@ module Twilio
|
|
216
231
|
|
217
232
|
# Path Solution
|
218
233
|
@solution = {iso_code: iso_code, }
|
219
|
-
@uri = "/
|
234
|
+
@uri = "/DialingPermissions/Countries/#{@solution[:iso_code]}"
|
220
235
|
|
221
236
|
# Dependents
|
222
237
|
@highrisk_special_prefixes = nil
|
@@ -243,10 +258,7 @@ module Twilio
|
|
243
258
|
# @return [HighriskSpecialPrefixContext]
|
244
259
|
def highrisk_special_prefixes
|
245
260
|
unless @highrisk_special_prefixes
|
246
|
-
@highrisk_special_prefixes = HighriskSpecialPrefixList.new(
|
247
|
-
@version,
|
248
|
-
parent_iso_code: @solution[:iso_code],
|
249
|
-
)
|
261
|
+
@highrisk_special_prefixes = HighriskSpecialPrefixList.new(@version, iso_code: @solution[:iso_code], )
|
250
262
|
end
|
251
263
|
|
252
264
|
@highrisk_special_prefixes
|
@@ -256,7 +268,7 @@ module Twilio
|
|
256
268
|
# Provide a user friendly representation
|
257
269
|
def to_s
|
258
270
|
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
259
|
-
"#<Twilio.
|
271
|
+
"#<Twilio.Voice.V1.CountryContext #{context}>"
|
260
272
|
end
|
261
273
|
end
|
262
274
|
|
@@ -321,31 +333,31 @@ module Twilio
|
|
321
333
|
end
|
322
334
|
|
323
335
|
##
|
324
|
-
# @return [String] The
|
336
|
+
# @return [String] The E.164 assigned country codes(s)
|
325
337
|
def country_codes
|
326
338
|
@properties['country_codes']
|
327
339
|
end
|
328
340
|
|
329
341
|
##
|
330
|
-
# @return [Boolean]
|
342
|
+
# @return [Boolean] true, if dialing to low-risk numbers is enabled, else false
|
331
343
|
def low_risk_numbers_enabled
|
332
344
|
@properties['low_risk_numbers_enabled']
|
333
345
|
end
|
334
346
|
|
335
347
|
##
|
336
|
-
# @return [Boolean]
|
348
|
+
# @return [Boolean] true, if dialing to high-risk special services numbers is enabled, else false. This group of prefixes, are number ranges allocated by the corresponding country. They consist of number types such as premium numbers, special services, shared cost and others
|
337
349
|
def high_risk_special_numbers_enabled
|
338
350
|
@properties['high_risk_special_numbers_enabled']
|
339
351
|
end
|
340
352
|
|
341
353
|
##
|
342
|
-
# @return [Boolean]
|
354
|
+
# @return [Boolean] true, if dialing to high-risk toll fraud numbers is enabled, else false. This group of prefixes are narrow number ranges that have a high-risk of international revenue sharing fraud (IRSF) attacks also called toll fraud. The group of prefixes is formed through integration with anti-fraud databases and verified by analyzing calls on the Twilio Super Network. This group of prefixes are not available for download and are updated frequently
|
343
355
|
def high_risk_tollfraud_numbers_enabled
|
344
356
|
@properties['high_risk_tollfraud_numbers_enabled']
|
345
357
|
end
|
346
358
|
|
347
359
|
##
|
348
|
-
# @return [String] The URL for this resource
|
360
|
+
# @return [String] The URL for this resource
|
349
361
|
def url
|
350
362
|
@properties['url']
|
351
363
|
end
|
@@ -374,14 +386,14 @@ module Twilio
|
|
374
386
|
# Provide a user friendly representation
|
375
387
|
def to_s
|
376
388
|
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
377
|
-
"<Twilio.
|
389
|
+
"<Twilio.Voice.V1.CountryInstance #{values}>"
|
378
390
|
end
|
379
391
|
|
380
392
|
##
|
381
393
|
# Provide a detailed, user friendly representation
|
382
394
|
def inspect
|
383
395
|
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
384
|
-
"<Twilio.
|
396
|
+
"<Twilio.Voice.V1.CountryInstance #{values}>"
|
385
397
|
end
|
386
398
|
end
|
387
399
|
end
|