twilio-ruby 7.6.5 → 7.7.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 +11 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +2 -8
- data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +27 -3
- data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15fce8365020608006981de3fe956b99d5cf865e
|
4
|
+
data.tar.gz: a1fcb1d554f257b840662424af7f2d49eefcfd42
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d11ae2588147aad274802a4adb891f27ba014421b05fc34c12ca2468e32b3e2e1d93b5ada38f3aca7c411d4715241b294ce659ca2b252883fc43b58b58b12d95
|
7
|
+
data.tar.gz: 69b2ad5193e053a1c83be6be81fd1a347c58700700222d0485f53bc624c84caac14d177ab879c44d84a080ba2e29ea2e8bfc326689ed9fa74248977e4a848c1f
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2025-07-24] Version 7.7.0
|
5
|
+
--------------------------
|
6
|
+
**Events**
|
7
|
+
- Remove `SinkSid` parameter when updating subscriptions. **(breaking change)**
|
8
|
+
|
9
|
+
**Twiml**
|
10
|
+
- Remove Duplicates.
|
11
|
+
- Add Polly Generative voices.
|
12
|
+
- Add Latest Google (Chirp3-HD) voices.
|
13
|
+
|
14
|
+
|
4
15
|
[2025-07-10] Version 7.6.5
|
5
16
|
--------------------------
|
6
17
|
**Flex**
|
data/README.md
CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
|
|
39
39
|
To install using [Bundler][bundler] grab the latest stable version:
|
40
40
|
|
41
41
|
```ruby
|
42
|
-
gem 'twilio-ruby', '~> 7.
|
42
|
+
gem 'twilio-ruby', '~> 7.7.0'
|
43
43
|
```
|
44
44
|
|
45
45
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
46
46
|
|
47
47
|
```bash
|
48
|
-
gem install twilio-ruby -v 7.
|
48
|
+
gem install twilio-ruby -v 7.7.0
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -214,16 +214,13 @@ module Twilio
|
|
214
214
|
##
|
215
215
|
# Update the SubscriptionInstance
|
216
216
|
# @param [String] description A human readable description for the Subscription.
|
217
|
-
# @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
|
218
217
|
# @return [SubscriptionInstance] Updated SubscriptionInstance
|
219
218
|
def update(
|
220
|
-
description: :unset
|
221
|
-
sink_sid: :unset
|
219
|
+
description: :unset
|
222
220
|
)
|
223
221
|
|
224
222
|
data = Twilio::Values.of({
|
225
223
|
'Description' => description,
|
226
|
-
'SinkSid' => sink_sid,
|
227
224
|
})
|
228
225
|
|
229
226
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -411,16 +408,13 @@ module Twilio
|
|
411
408
|
##
|
412
409
|
# Update the SubscriptionInstance
|
413
410
|
# @param [String] description A human readable description for the Subscription.
|
414
|
-
# @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
|
415
411
|
# @return [SubscriptionInstance] Updated SubscriptionInstance
|
416
412
|
def update(
|
417
|
-
description: :unset
|
418
|
-
sink_sid: :unset
|
413
|
+
description: :unset
|
419
414
|
)
|
420
415
|
|
421
416
|
context.update(
|
422
417
|
description: description,
|
423
|
-
sink_sid: sink_sid,
|
424
418
|
)
|
425
419
|
end
|
426
420
|
|
@@ -61,6 +61,10 @@ module Twilio
|
|
61
61
|
# @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
|
62
62
|
# @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
|
63
63
|
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
64
|
+
# @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
|
65
|
+
# @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
|
66
|
+
# @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
|
67
|
+
# @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
|
64
68
|
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
65
69
|
# @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
|
66
70
|
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
@@ -74,7 +78,7 @@ module Twilio
|
|
74
78
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
75
79
|
# efficient page size, i.e. min(limit, 1000)
|
76
80
|
# @return [Array] Array of up to limit results
|
77
|
-
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
|
81
|
+
def list(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
|
78
82
|
self.stream(
|
79
83
|
from: from,
|
80
84
|
to: to,
|
@@ -102,6 +106,10 @@ module Twilio
|
|
102
106
|
branded_enabled: branded_enabled,
|
103
107
|
voice_integrity_enabled: voice_integrity_enabled,
|
104
108
|
branded_bundle_sid: branded_bundle_sid,
|
109
|
+
branded_logo: branded_logo,
|
110
|
+
branded_type: branded_type,
|
111
|
+
branded_use_case: branded_use_case,
|
112
|
+
branded_call_reason: branded_call_reason,
|
105
113
|
voice_integrity_bundle_sid: voice_integrity_bundle_sid,
|
106
114
|
voice_integrity_use_case: voice_integrity_use_case,
|
107
115
|
business_profile_identity: business_profile_identity,
|
@@ -143,6 +151,10 @@ module Twilio
|
|
143
151
|
# @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
|
144
152
|
# @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
|
145
153
|
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
154
|
+
# @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
|
155
|
+
# @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
|
156
|
+
# @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
|
157
|
+
# @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
|
146
158
|
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
147
159
|
# @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
|
148
160
|
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
@@ -156,7 +168,7 @@ module Twilio
|
|
156
168
|
# but a limit is defined, stream() will attempt to read the limit with the most
|
157
169
|
# efficient page size, i.e. min(limit, 1000)
|
158
170
|
# @return [Enumerable] Enumerable that will yield up to limit results
|
159
|
-
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
|
171
|
+
def stream(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, limit: nil, page_size: nil)
|
160
172
|
limits = @version.read_limits(limit, page_size)
|
161
173
|
|
162
174
|
page = self.page(
|
@@ -186,6 +198,10 @@ module Twilio
|
|
186
198
|
branded_enabled: branded_enabled,
|
187
199
|
voice_integrity_enabled: voice_integrity_enabled,
|
188
200
|
branded_bundle_sid: branded_bundle_sid,
|
201
|
+
branded_logo: branded_logo,
|
202
|
+
branded_type: branded_type,
|
203
|
+
branded_use_case: branded_use_case,
|
204
|
+
branded_call_reason: branded_call_reason,
|
189
205
|
voice_integrity_bundle_sid: voice_integrity_bundle_sid,
|
190
206
|
voice_integrity_use_case: voice_integrity_use_case,
|
191
207
|
business_profile_identity: business_profile_identity,
|
@@ -240,6 +256,10 @@ module Twilio
|
|
240
256
|
# @param [Boolean] branded_enabled A boolean flag indicating whether or not the calls were branded using Twilio Branded Calls. One of 'true' or 'false'
|
241
257
|
# @param [Boolean] voice_integrity_enabled A boolean flag indicating whether or not the phone number had voice integrity enabled.One of 'true' or 'false'
|
242
258
|
# @param [String] branded_bundle_sid A unique SID identifier of the Branded Call.
|
259
|
+
# @param [Boolean] branded_logo Indicates whether the branded logo was displayed during the in_brand branded call. Possible values are true (logo was present) or false (logo was not present).
|
260
|
+
# @param [String] branded_type Indicates whether the Branded Call is in_band vs out_of_band.
|
261
|
+
# @param [String] branded_use_case Specifies the user-defined purpose for the call, as provided during the setup of in_band branded calling.
|
262
|
+
# @param [String] branded_call_reason Specifies the user-defined reason for the call, which will be displayed to the end user on their mobile device during an in_band branded call.
|
243
263
|
# @param [String] voice_integrity_bundle_sid A unique SID identifier of the Voice Integrity Profile.
|
244
264
|
# @param [String] voice_integrity_use_case A Voice Integrity Use Case . Is of type enum. One of 'abandoned_cart', 'appointment_reminders', 'appointment_scheduling', 'asset_management', 'automated_support', 'call_tracking', 'click_to_call', 'contact_tracing', 'contactless_delivery', 'customer_support', 'dating/social', 'delivery_notifications', 'distance_learning', 'emergency_notifications', 'employee_notifications', 'exam_proctoring', 'field_notifications', 'first_responder', 'fraud_alerts', 'group_messaging', 'identify_&_verification', 'intelligent_routing', 'lead_alerts', 'lead_distribution', 'lead_generation', 'lead_management', 'lead_nurturing', 'marketing_events', 'mass_alerts', 'meetings/collaboration', 'order_notifications', 'outbound_dialer', 'pharmacy', 'phone_system', 'purchase_confirmation', 'remote_appointments', 'rewards_program', 'self-service', 'service_alerts', 'shift_management', 'survey/research', 'telehealth', 'telemarketing', 'therapy_(individual+group)'.
|
245
265
|
# @param [String] business_profile_identity A Business Identity of the calls. Is of type enum. One of 'direct_customer', 'isv_reseller_or_partner'.
|
@@ -250,7 +270,7 @@ module Twilio
|
|
250
270
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
251
271
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
252
272
|
# @return [Page] Page of CallSummariesInstance
|
253
|
-
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
273
|
+
def page(from: :unset, to: :unset, from_carrier: :unset, to_carrier: :unset, from_country_code: :unset, to_country_code: :unset, verified_caller: :unset, has_tag: :unset, start_time: :unset, end_time: :unset, call_type: :unset, call_state: :unset, direction: :unset, processing_state: :unset, sort_by: :unset, subaccount: :unset, abnormal_session: :unset, answered_by: :unset, answered_by_annotation: :unset, connectivity_issue_annotation: :unset, quality_issue_annotation: :unset, spam_annotation: :unset, call_score_annotation: :unset, branded_enabled: :unset, voice_integrity_enabled: :unset, branded_bundle_sid: :unset, branded_logo: :unset, branded_type: :unset, branded_use_case: :unset, branded_call_reason: :unset, voice_integrity_bundle_sid: :unset, voice_integrity_use_case: :unset, business_profile_identity: :unset, business_profile_industry: :unset, business_profile_bundle_sid: :unset, business_profile_type: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
|
254
274
|
params = Twilio::Values.of({
|
255
275
|
'From' => from,
|
256
276
|
'To' => to,
|
@@ -278,6 +298,10 @@ module Twilio
|
|
278
298
|
'BrandedEnabled' => branded_enabled,
|
279
299
|
'VoiceIntegrityEnabled' => voice_integrity_enabled,
|
280
300
|
'BrandedBundleSid' => branded_bundle_sid,
|
301
|
+
'BrandedLogo' => branded_logo,
|
302
|
+
'BrandedType' => branded_type,
|
303
|
+
'BrandedUseCase' => branded_use_case,
|
304
|
+
'BrandedCallReason' => branded_call_reason,
|
281
305
|
'VoiceIntegrityBundleSid' => voice_integrity_bundle_sid,
|
282
306
|
'VoiceIntegrityUseCase' => voice_integrity_use_case,
|
283
307
|
'BusinessProfileIdentity' => business_profile_identity,
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Numbers < NumbersBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class WebhookList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the WebhookList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [WebhookList] WebhookList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,8 +31,8 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Fetch the
|
35
|
-
# @return [
|
34
|
+
# Fetch the WebhookInstance
|
35
|
+
# @return [WebhookInstance] Fetched WebhookInstance
|
36
36
|
def fetch
|
37
37
|
|
38
38
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -42,7 +42,7 @@ module Twilio
|
|
42
42
|
|
43
43
|
|
44
44
|
payload = @version.fetch('GET', @uri, headers: headers)
|
45
|
-
|
45
|
+
WebhookInstance.new(
|
46
46
|
@version,
|
47
47
|
payload,
|
48
48
|
)
|
@@ -53,17 +53,17 @@ module Twilio
|
|
53
53
|
|
54
54
|
# Provide a user friendly representation
|
55
55
|
def to_s
|
56
|
-
'#<Twilio.Numbers.V1.
|
56
|
+
'#<Twilio.Numbers.V1.WebhookList>'
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
class
|
60
|
+
class WebhookPage < Page
|
61
61
|
##
|
62
|
-
# Initialize the
|
62
|
+
# Initialize the WebhookPage
|
63
63
|
# @param [Version] version Version that contains the resource
|
64
64
|
# @param [Response] response Response from the API
|
65
65
|
# @param [Hash] solution Path solution for the resource
|
66
|
-
# @return [
|
66
|
+
# @return [WebhookPage] WebhookPage
|
67
67
|
def initialize(version, response, solution)
|
68
68
|
super(version, response)
|
69
69
|
|
@@ -72,29 +72,29 @@ module Twilio
|
|
72
72
|
end
|
73
73
|
|
74
74
|
##
|
75
|
-
# Build an instance of
|
75
|
+
# Build an instance of WebhookInstance
|
76
76
|
# @param [Hash] payload Payload response from the API
|
77
|
-
# @return [
|
77
|
+
# @return [WebhookInstance] WebhookInstance
|
78
78
|
def get_instance(payload)
|
79
|
-
|
79
|
+
WebhookInstance.new(@version, payload)
|
80
80
|
end
|
81
81
|
|
82
82
|
##
|
83
83
|
# Provide a user friendly representation
|
84
84
|
def to_s
|
85
|
-
'<Twilio.Numbers.V1.
|
85
|
+
'<Twilio.Numbers.V1.WebhookPage>'
|
86
86
|
end
|
87
87
|
end
|
88
|
-
class
|
88
|
+
class WebhookInstance < InstanceResource
|
89
89
|
##
|
90
|
-
# Initialize the
|
90
|
+
# Initialize the WebhookInstance
|
91
91
|
# @param [Version] version Version that contains the resource
|
92
92
|
# @param [Hash] payload payload that contains response from Twilio
|
93
93
|
# @param [String] account_sid The SID of the
|
94
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
94
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Webhook
|
95
95
|
# resource.
|
96
96
|
# @param [String] sid The SID of the Call resource to fetch.
|
97
|
-
# @return [
|
97
|
+
# @return [WebhookInstance] WebhookInstance
|
98
98
|
def initialize(version, payload )
|
99
99
|
super(version)
|
100
100
|
|
@@ -149,13 +149,13 @@ module Twilio
|
|
149
149
|
##
|
150
150
|
# Provide a user friendly representation
|
151
151
|
def to_s
|
152
|
-
"<Twilio.Numbers.V1.
|
152
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
153
153
|
end
|
154
154
|
|
155
155
|
##
|
156
156
|
# Provide a detailed, user friendly representation
|
157
157
|
def inspect
|
158
|
-
"<Twilio.Numbers.V1.
|
158
|
+
"<Twilio.Numbers.V1.WebhookInstance>"
|
159
159
|
end
|
160
160
|
end
|
161
161
|
|
@@ -28,8 +28,8 @@ module Twilio
|
|
28
28
|
@porting_portabilities = nil
|
29
29
|
@porting_webhook_configurations = nil
|
30
30
|
@porting_webhook_configurations_delete = nil
|
31
|
-
@porting_webhook_configuration_fetch = nil
|
32
31
|
@signing_request_configurations = nil
|
32
|
+
@webhook = nil
|
33
33
|
end
|
34
34
|
|
35
35
|
##
|
@@ -135,16 +135,16 @@ module Twilio
|
|
135
135
|
end
|
136
136
|
end
|
137
137
|
##
|
138
|
-
# @return [Twilio::REST::Numbers::V1::PortingWebhookConfigurationFetchList]
|
139
|
-
def porting_webhook_configuration_fetch
|
140
|
-
@porting_webhook_configuration_fetch ||= PortingWebhookConfigurationFetchList.new self
|
141
|
-
end
|
142
|
-
##
|
143
138
|
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
144
139
|
def signing_request_configurations
|
145
140
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
146
141
|
end
|
147
142
|
##
|
143
|
+
# @return [Twilio::REST::Numbers::V1::WebhookList]
|
144
|
+
def webhook
|
145
|
+
@webhook ||= WebhookList.new self
|
146
|
+
end
|
147
|
+
##
|
148
148
|
# Provide a user friendly representation
|
149
149
|
def to_s
|
150
150
|
'<Twilio::REST::Numbers::V1>';
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-07-
|
11
|
+
date: 2025-07-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -621,8 +621,8 @@ files:
|
|
621
621
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
622
622
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
623
623
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
624
|
-
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
625
624
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
625
|
+
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
626
626
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
627
627
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
628
628
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|