twilio-ruby 7.4.2 → 7.4.3
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/.github/ISSUE_TEMPLATE/bug_report.yml +69 -0
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/content/v1/content.rb +23 -1
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +19 -3
- data/lib/twilio-ruby/rest/iam/v1/{key.rb → new_api_key.rb} +20 -20
- data/lib/twilio-ruby/rest/iam/v1.rb +4 -4
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +8 -2
- data/lib/twilio-ruby/rest/numbers/v1/{webhook.rb → porting_webhook_configuration_fetch.rb} +20 -20
- data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7d6689c97fcad14e96b7d77b508bffcb02e1df1d
|
4
|
+
data.tar.gz: 9dcf43a9e8af38ecadf3ac8cf10b0503e4b1bec7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e7b44610e849d581c114a13bc001a8057511f68dca0f06fcdda057c4b19ab2ee23f1d34e0dd9078d12e89992081a742866d470e010ec0fd12ef73abe1d96fdf
|
7
|
+
data.tar.gz: aaeb5e71c902dd442b63eca4ee1ebc94a236cbb3f9d5710ff77c8a14c8a044d28cacb249a4aac0e5e295d458aa586a4936051c0d83b0c640a166dd71673b35a9
|
@@ -0,0 +1,69 @@
|
|
1
|
+
name: Bug report
|
2
|
+
description: Report a bug with the twilio-ruby helper library.
|
3
|
+
title: "[BUG] Describe the issue briefly"
|
4
|
+
labels: "type: bug"
|
5
|
+
body:
|
6
|
+
- type: markdown
|
7
|
+
attributes:
|
8
|
+
value: |
|
9
|
+
Thank you for reporting a bug in the twilio-ruby helper library. Please provide the details below to help us investigate and resolve the issue.
|
10
|
+
|
11
|
+
- type: textarea
|
12
|
+
attributes:
|
13
|
+
label: Describe the bug
|
14
|
+
description: Provide a clear and concise description of the issue.
|
15
|
+
placeholder: A clear and concise description of the bug.
|
16
|
+
validations:
|
17
|
+
required: true
|
18
|
+
|
19
|
+
- type: textarea
|
20
|
+
attributes:
|
21
|
+
label: Code snippet
|
22
|
+
description: Provide the code snippet that reproduces the issue.
|
23
|
+
placeholder: "```\n// Code snippet here\n```"
|
24
|
+
validations:
|
25
|
+
required: true
|
26
|
+
|
27
|
+
- type: textarea
|
28
|
+
attributes:
|
29
|
+
label: Actual behavior
|
30
|
+
description: Describe what actually happened.
|
31
|
+
placeholder: A description of the actual behavior.
|
32
|
+
validations:
|
33
|
+
required: true
|
34
|
+
|
35
|
+
- type: textarea
|
36
|
+
attributes:
|
37
|
+
label: Expected behavior
|
38
|
+
description: Describe what you expected to happen.
|
39
|
+
placeholder: A description of the expected outcome.
|
40
|
+
validations:
|
41
|
+
required: true
|
42
|
+
|
43
|
+
- type: input
|
44
|
+
attributes:
|
45
|
+
label: twilio-ruby version
|
46
|
+
description: Specify the version of the twilio-ruby helper library you are using.
|
47
|
+
placeholder: e.g., 7.4.1
|
48
|
+
validations:
|
49
|
+
required: true
|
50
|
+
|
51
|
+
- type: input
|
52
|
+
attributes:
|
53
|
+
label: Ruby version
|
54
|
+
description: Specify the version of Ruby you are using.
|
55
|
+
placeholder: e.g., 2.7.2
|
56
|
+
validations:
|
57
|
+
required: true
|
58
|
+
|
59
|
+
- type: textarea
|
60
|
+
attributes:
|
61
|
+
label: Logs or error messages
|
62
|
+
description: Provide relevant logs or error messages (if any).
|
63
|
+
placeholder: "Error: Something went wrong..."
|
64
|
+
|
65
|
+
- type: textarea
|
66
|
+
attributes:
|
67
|
+
label: Additional context
|
68
|
+
description: Add any other context about the problem here.
|
69
|
+
placeholder: Any additional
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2025-01-28] Version 7.4.3
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #740](https://github.com/twilio/twilio-ruby/pull/740): added bug report issue template. Thanks to [@sbansla](https://github.com/sbansla)!
|
8
|
+
|
9
|
+
**Api**
|
10
|
+
- Add open-api file tag to `conference/call recordings` and `recording_transcriptions`.
|
11
|
+
|
12
|
+
**Events**
|
13
|
+
- Add support for subaccount subscriptions (beta)
|
14
|
+
|
15
|
+
**Insights**
|
16
|
+
- add new region to conference APIs
|
17
|
+
|
18
|
+
**Lookups**
|
19
|
+
- Add new `parnter_sub_id` query parameter to the lookup request
|
20
|
+
|
21
|
+
|
4
22
|
[2025-01-13] Version 7.4.2
|
5
23
|
--------------------------
|
6
24
|
**Library - Chore**
|
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.4.
|
42
|
+
gem 'twilio-ruby', '~> 7.4.3'
|
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.4.
|
48
|
+
gem install twilio-ruby -v 7.4.3
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -444,6 +444,25 @@ module Twilio
|
|
444
444
|
end
|
445
445
|
end
|
446
446
|
|
447
|
+
class TwilioSchedule
|
448
|
+
# @param [id]: [String]
|
449
|
+
# @param [title]: [String]
|
450
|
+
# @param [time_slots]: [String]
|
451
|
+
attr_accessor :id, :title, :time_slots
|
452
|
+
def initialize(payload)
|
453
|
+
@id = payload["id"]
|
454
|
+
@title = payload["title"]
|
455
|
+
@time_slots = payload["time_slots"]
|
456
|
+
end
|
457
|
+
def to_json(options = {})
|
458
|
+
{
|
459
|
+
"id": @id,
|
460
|
+
"title": @title,
|
461
|
+
"timeSlots": @time_slots,
|
462
|
+
}.to_json(options)
|
463
|
+
end
|
464
|
+
end
|
465
|
+
|
447
466
|
class TwilioText
|
448
467
|
# @param [body]: [String]
|
449
468
|
attr_accessor :body
|
@@ -468,9 +487,10 @@ module Twilio
|
|
468
487
|
# @param [twilio_catalog]: [ContentList.TwilioCatalog]
|
469
488
|
# @param [twilio_carousel]: [ContentList.TwilioCarousel]
|
470
489
|
# @param [twilio_flows]: [ContentList.TwilioFlows]
|
490
|
+
# @param [twilio_schedule]: [ContentList.TwilioSchedule]
|
471
491
|
# @param [whatsapp_card]: [ContentList.WhatsappCard]
|
472
492
|
# @param [whatsapp_authentication]: [ContentList.WhatsappAuthentication]
|
473
|
-
attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :twilio_catalog, :twilio_carousel, :twilio_flows, :whatsapp_card, :whatsapp_authentication
|
493
|
+
attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :twilio_catalog, :twilio_carousel, :twilio_flows, :twilio_schedule, :whatsapp_card, :whatsapp_authentication
|
474
494
|
def initialize(payload)
|
475
495
|
@twilio_text = payload["twilio_text"]
|
476
496
|
@twilio_media = payload["twilio_media"]
|
@@ -482,6 +502,7 @@ module Twilio
|
|
482
502
|
@twilio_catalog = payload["twilio_catalog"]
|
483
503
|
@twilio_carousel = payload["twilio_carousel"]
|
484
504
|
@twilio_flows = payload["twilio_flows"]
|
505
|
+
@twilio_schedule = payload["twilio_schedule"]
|
485
506
|
@whatsapp_card = payload["whatsapp_card"]
|
486
507
|
@whatsapp_authentication = payload["whatsapp_authentication"]
|
487
508
|
end
|
@@ -497,6 +518,7 @@ module Twilio
|
|
497
518
|
"twilio/catalog": @twilio_catalog,
|
498
519
|
"twilio/carousel": @twilio_carousel,
|
499
520
|
"twilio/flows": @twilio_flows,
|
521
|
+
"twilio/schedule": @twilio_schedule,
|
500
522
|
"whatsapp/card": @whatsapp_card,
|
501
523
|
"whatsapp/authentication": @whatsapp_authentication,
|
502
524
|
}.to_json(options)
|
@@ -35,17 +35,20 @@ module Twilio
|
|
35
35
|
# @param [String] description A human readable description for the Subscription **This value should not contain PII.**
|
36
36
|
# @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.
|
37
37
|
# @param [Array[Hash]] types An array of objects containing the subscribed Event Types
|
38
|
+
# @param [Boolean] receive_events_from_subaccounts Receive events from all children accounts in the parent account subscription.
|
38
39
|
# @return [SubscriptionInstance] Created SubscriptionInstance
|
39
40
|
def create(
|
40
41
|
description: nil,
|
41
42
|
sink_sid: nil,
|
42
|
-
types: nil
|
43
|
+
types: nil,
|
44
|
+
receive_events_from_subaccounts: :unset
|
43
45
|
)
|
44
46
|
|
45
47
|
data = Twilio::Values.of({
|
46
48
|
'Description' => description,
|
47
49
|
'SinkSid' => sink_sid,
|
48
50
|
'Types' => Twilio.serialize_list(types) { |e| Twilio.serialize_object(e) },
|
51
|
+
'ReceiveEventsFromSubaccounts' => receive_events_from_subaccounts,
|
49
52
|
})
|
50
53
|
|
51
54
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -215,15 +218,18 @@ module Twilio
|
|
215
218
|
# Update the SubscriptionInstance
|
216
219
|
# @param [String] description A human readable description for the Subscription.
|
217
220
|
# @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.
|
221
|
+
# @param [Boolean] receive_events_from_subaccounts Receive events from all children accounts in the parent account subscription.
|
218
222
|
# @return [SubscriptionInstance] Updated SubscriptionInstance
|
219
223
|
def update(
|
220
224
|
description: :unset,
|
221
|
-
sink_sid: :unset
|
225
|
+
sink_sid: :unset,
|
226
|
+
receive_events_from_subaccounts: :unset
|
222
227
|
)
|
223
228
|
|
224
229
|
data = Twilio::Values.of({
|
225
230
|
'Description' => description,
|
226
231
|
'SinkSid' => sink_sid,
|
232
|
+
'ReceiveEventsFromSubaccounts' => receive_events_from_subaccounts,
|
227
233
|
})
|
228
234
|
|
229
235
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
@@ -326,6 +332,7 @@ module Twilio
|
|
326
332
|
'sink_sid' => payload['sink_sid'],
|
327
333
|
'url' => payload['url'],
|
328
334
|
'links' => payload['links'],
|
335
|
+
'receive_events_from_subaccounts' => payload['receive_events_from_subaccounts'],
|
329
336
|
}
|
330
337
|
|
331
338
|
# Context
|
@@ -392,6 +399,12 @@ module Twilio
|
|
392
399
|
@properties['links']
|
393
400
|
end
|
394
401
|
|
402
|
+
##
|
403
|
+
# @return [Boolean] Receive events from all children accounts in the parent account subscription.
|
404
|
+
def receive_events_from_subaccounts
|
405
|
+
@properties['receive_events_from_subaccounts']
|
406
|
+
end
|
407
|
+
|
395
408
|
##
|
396
409
|
# Delete the SubscriptionInstance
|
397
410
|
# @return [Boolean] True if delete succeeds, false otherwise
|
@@ -412,15 +425,18 @@ module Twilio
|
|
412
425
|
# Update the SubscriptionInstance
|
413
426
|
# @param [String] description A human readable description for the Subscription.
|
414
427
|
# @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.
|
428
|
+
# @param [Boolean] receive_events_from_subaccounts Receive events from all children accounts in the parent account subscription.
|
415
429
|
# @return [SubscriptionInstance] Updated SubscriptionInstance
|
416
430
|
def update(
|
417
431
|
description: :unset,
|
418
|
-
sink_sid: :unset
|
432
|
+
sink_sid: :unset,
|
433
|
+
receive_events_from_subaccounts: :unset
|
419
434
|
)
|
420
435
|
|
421
436
|
context.update(
|
422
437
|
description: description,
|
423
438
|
sink_sid: sink_sid,
|
439
|
+
receive_events_from_subaccounts: receive_events_from_subaccounts,
|
424
440
|
)
|
425
441
|
end
|
426
442
|
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Iam < IamBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class NewApiKeyList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the NewApiKeyList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [NewApiKeyList] NewApiKeyList
|
26
26
|
def initialize(version)
|
27
27
|
super(version)
|
28
28
|
# Path Solution
|
@@ -31,12 +31,12 @@ module Twilio
|
|
31
31
|
|
32
32
|
end
|
33
33
|
##
|
34
|
-
# Create the
|
34
|
+
# Create the NewApiKeyInstance
|
35
35
|
# @param [String] account_sid The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Payments resource.
|
36
36
|
# @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
|
37
37
|
# @param [Keytype] key_type
|
38
38
|
# @param [Object] policy The \\\\`Policy\\\\` object is a collection that specifies the allowed Twilio permissions for the restricted key. For more information on the permissions available with restricted API keys, refer to the [Twilio documentation](https://www.twilio.com/docs/iam/api-keys/restricted-api-keys#permissions-available-with-restricted-api-keys).
|
39
|
-
# @return [
|
39
|
+
# @return [NewApiKeyInstance] Created NewApiKeyInstance
|
40
40
|
def create(
|
41
41
|
account_sid: nil,
|
42
42
|
friendly_name: :unset,
|
@@ -58,7 +58,7 @@ module Twilio
|
|
58
58
|
|
59
59
|
|
60
60
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
61
|
-
|
61
|
+
NewApiKeyInstance.new(
|
62
62
|
@version,
|
63
63
|
payload,
|
64
64
|
)
|
@@ -69,17 +69,17 @@ module Twilio
|
|
69
69
|
|
70
70
|
# Provide a user friendly representation
|
71
71
|
def to_s
|
72
|
-
'#<Twilio.Iam.V1.
|
72
|
+
'#<Twilio.Iam.V1.NewApiKeyList>'
|
73
73
|
end
|
74
74
|
end
|
75
75
|
|
76
|
-
class
|
76
|
+
class NewApiKeyPage < Page
|
77
77
|
##
|
78
|
-
# Initialize the
|
78
|
+
# Initialize the NewApiKeyPage
|
79
79
|
# @param [Version] version Version that contains the resource
|
80
80
|
# @param [Response] response Response from the API
|
81
81
|
# @param [Hash] solution Path solution for the resource
|
82
|
-
# @return [
|
82
|
+
# @return [NewApiKeyPage] NewApiKeyPage
|
83
83
|
def initialize(version, response, solution)
|
84
84
|
super(version, response)
|
85
85
|
|
@@ -88,29 +88,29 @@ module Twilio
|
|
88
88
|
end
|
89
89
|
|
90
90
|
##
|
91
|
-
# Build an instance of
|
91
|
+
# Build an instance of NewApiKeyInstance
|
92
92
|
# @param [Hash] payload Payload response from the API
|
93
|
-
# @return [
|
93
|
+
# @return [NewApiKeyInstance] NewApiKeyInstance
|
94
94
|
def get_instance(payload)
|
95
|
-
|
95
|
+
NewApiKeyInstance.new(@version, payload)
|
96
96
|
end
|
97
97
|
|
98
98
|
##
|
99
99
|
# Provide a user friendly representation
|
100
100
|
def to_s
|
101
|
-
'<Twilio.Iam.V1.
|
101
|
+
'<Twilio.Iam.V1.NewApiKeyPage>'
|
102
102
|
end
|
103
103
|
end
|
104
|
-
class
|
104
|
+
class NewApiKeyInstance < InstanceResource
|
105
105
|
##
|
106
|
-
# Initialize the
|
106
|
+
# Initialize the NewApiKeyInstance
|
107
107
|
# @param [Version] version Version that contains the resource
|
108
108
|
# @param [Hash] payload payload that contains response from Twilio
|
109
109
|
# @param [String] account_sid The SID of the
|
110
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
110
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this NewApiKey
|
111
111
|
# resource.
|
112
112
|
# @param [String] sid The SID of the Call resource to fetch.
|
113
|
-
# @return [
|
113
|
+
# @return [NewApiKeyInstance] NewApiKeyInstance
|
114
114
|
def initialize(version, payload )
|
115
115
|
super(version)
|
116
116
|
|
@@ -165,13 +165,13 @@ module Twilio
|
|
165
165
|
##
|
166
166
|
# Provide a user friendly representation
|
167
167
|
def to_s
|
168
|
-
"<Twilio.Iam.V1.
|
168
|
+
"<Twilio.Iam.V1.NewApiKeyInstance>"
|
169
169
|
end
|
170
170
|
|
171
171
|
##
|
172
172
|
# Provide a detailed, user friendly representation
|
173
173
|
def inspect
|
174
|
-
"<Twilio.Iam.V1.
|
174
|
+
"<Twilio.Iam.V1.NewApiKeyInstance>"
|
175
175
|
end
|
176
176
|
end
|
177
177
|
|
@@ -23,7 +23,7 @@ module Twilio
|
|
23
23
|
@version = 'v1'
|
24
24
|
@api_key = nil
|
25
25
|
@get_api_keys = nil
|
26
|
-
@
|
26
|
+
@new_api_key = nil
|
27
27
|
end
|
28
28
|
|
29
29
|
##
|
@@ -46,9 +46,9 @@ module Twilio
|
|
46
46
|
@get_api_keys ||= GetApiKeysList.new self
|
47
47
|
end
|
48
48
|
##
|
49
|
-
# @return [Twilio::REST::Iam::V1::
|
50
|
-
def
|
51
|
-
@
|
49
|
+
# @return [Twilio::REST::Iam::V1::NewApiKeyList]
|
50
|
+
def new_api_key
|
51
|
+
@new_api_key ||= NewApiKeyList.new self
|
52
52
|
end
|
53
53
|
##
|
54
54
|
# Provide a user friendly representation
|
@@ -71,6 +71,7 @@ module Twilio
|
|
71
71
|
# @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
|
72
72
|
# @param [String] last_verified_date The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
|
73
73
|
# @param [String] verification_sid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
|
74
|
+
# @param [String] partner_sub_id The optional partnerSubId parameter to provide context for your sub-accounts, tenantIDs, sender IDs or other segmentation, enhancing the accuracy of the risk analysis.
|
74
75
|
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
|
75
76
|
def fetch(
|
76
77
|
fields: :unset,
|
@@ -86,7 +87,8 @@ module Twilio
|
|
86
87
|
national_id: :unset,
|
87
88
|
date_of_birth: :unset,
|
88
89
|
last_verified_date: :unset,
|
89
|
-
verification_sid: :unset
|
90
|
+
verification_sid: :unset,
|
91
|
+
partner_sub_id: :unset
|
90
92
|
)
|
91
93
|
|
92
94
|
params = Twilio::Values.of({
|
@@ -104,6 +106,7 @@ module Twilio
|
|
104
106
|
'DateOfBirth' => date_of_birth,
|
105
107
|
'LastVerifiedDate' => last_verified_date,
|
106
108
|
'VerificationSid' => verification_sid,
|
109
|
+
'PartnerSubId' => partner_sub_id,
|
107
110
|
})
|
108
111
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
109
112
|
|
@@ -331,6 +334,7 @@ module Twilio
|
|
331
334
|
# @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests.
|
332
335
|
# @param [String] last_verified_date The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests.
|
333
336
|
# @param [String] verification_sid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests.
|
337
|
+
# @param [String] partner_sub_id The optional partnerSubId parameter to provide context for your sub-accounts, tenantIDs, sender IDs or other segmentation, enhancing the accuracy of the risk analysis.
|
334
338
|
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
|
335
339
|
def fetch(
|
336
340
|
fields: :unset,
|
@@ -346,7 +350,8 @@ module Twilio
|
|
346
350
|
national_id: :unset,
|
347
351
|
date_of_birth: :unset,
|
348
352
|
last_verified_date: :unset,
|
349
|
-
verification_sid: :unset
|
353
|
+
verification_sid: :unset,
|
354
|
+
partner_sub_id: :unset
|
350
355
|
)
|
351
356
|
|
352
357
|
context.fetch(
|
@@ -364,6 +369,7 @@ module Twilio
|
|
364
369
|
date_of_birth: date_of_birth,
|
365
370
|
last_verified_date: last_verified_date,
|
366
371
|
verification_sid: verification_sid,
|
372
|
+
partner_sub_id: partner_sub_id,
|
367
373
|
)
|
368
374
|
end
|
369
375
|
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Numbers < NumbersBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class PortingWebhookConfigurationFetchList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the PortingWebhookConfigurationFetchList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [PortingWebhookConfigurationFetchList] PortingWebhookConfigurationFetchList
|
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 PortingWebhookConfigurationFetchInstance
|
35
|
+
# @return [PortingWebhookConfigurationFetchInstance] Fetched PortingWebhookConfigurationFetchInstance
|
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
|
+
PortingWebhookConfigurationFetchInstance.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.PortingWebhookConfigurationFetchList>'
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
|
-
class
|
60
|
+
class PortingWebhookConfigurationFetchPage < Page
|
61
61
|
##
|
62
|
-
# Initialize the
|
62
|
+
# Initialize the PortingWebhookConfigurationFetchPage
|
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 [PortingWebhookConfigurationFetchPage] PortingWebhookConfigurationFetchPage
|
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 PortingWebhookConfigurationFetchInstance
|
76
76
|
# @param [Hash] payload Payload response from the API
|
77
|
-
# @return [
|
77
|
+
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
|
78
78
|
def get_instance(payload)
|
79
|
-
|
79
|
+
PortingWebhookConfigurationFetchInstance.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.PortingWebhookConfigurationFetchPage>'
|
86
86
|
end
|
87
87
|
end
|
88
|
-
class
|
88
|
+
class PortingWebhookConfigurationFetchInstance < InstanceResource
|
89
89
|
##
|
90
|
-
# Initialize the
|
90
|
+
# Initialize the PortingWebhookConfigurationFetchInstance
|
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 PortingWebhookConfigurationFetch
|
95
95
|
# resource.
|
96
96
|
# @param [String] sid The SID of the Call resource to fetch.
|
97
|
-
# @return [
|
97
|
+
# @return [PortingWebhookConfigurationFetchInstance] PortingWebhookConfigurationFetchInstance
|
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.PortingWebhookConfigurationFetchInstance>"
|
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.PortingWebhookConfigurationFetchInstance>"
|
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
|
31
32
|
@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
|
+
##
|
138
143
|
# @return [Twilio::REST::Numbers::V1::SigningRequestConfigurationList]
|
139
144
|
def signing_request_configurations
|
140
145
|
@signing_request_configurations ||= SigningRequestConfigurationList.new self
|
141
146
|
end
|
142
147
|
##
|
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.
|
4
|
+
version: 7.4.3
|
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-01-
|
11
|
+
date: 2025-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -226,6 +226,7 @@ extra_rdoc_files:
|
|
226
226
|
- LICENSE
|
227
227
|
files:
|
228
228
|
- ".dockerignore"
|
229
|
+
- ".github/ISSUE_TEMPLATE/bug_report.yml"
|
229
230
|
- ".github/workflows/pr-lint.yml"
|
230
231
|
- ".github/workflows/test-and-deploy.yml"
|
231
232
|
- ".gitignore"
|
@@ -523,7 +524,7 @@ files:
|
|
523
524
|
- lib/twilio-ruby/rest/iam/v1.rb
|
524
525
|
- lib/twilio-ruby/rest/iam/v1/api_key.rb
|
525
526
|
- lib/twilio-ruby/rest/iam/v1/get_api_keys.rb
|
526
|
-
- lib/twilio-ruby/rest/iam/v1/
|
527
|
+
- lib/twilio-ruby/rest/iam/v1/new_api_key.rb
|
527
528
|
- lib/twilio-ruby/rest/iam_base.rb
|
528
529
|
- lib/twilio-ruby/rest/insights.rb
|
529
530
|
- lib/twilio-ruby/rest/insights/v1.rb
|
@@ -649,8 +650,8 @@ files:
|
|
649
650
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
650
651
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration.rb
|
651
652
|
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_delete.rb
|
653
|
+
- lib/twilio-ruby/rest/numbers/v1/porting_webhook_configuration_fetch.rb
|
652
654
|
- lib/twilio-ruby/rest/numbers/v1/signing_request_configuration.rb
|
653
|
-
- lib/twilio-ruby/rest/numbers/v1/webhook.rb
|
654
655
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
655
656
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|
656
657
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document/dependent_hosted_number_order.rb
|