twilio-ruby 6.8.1 → 6.8.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +23 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +1 -1
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +15 -2
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +4 -4
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +12 -90
- data/lib/twilio-ruby/rest/trusthub/v1.rb +2 -11
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -10
- data/lib/twilio-ruby/rest/oauth/v1/device_code.rb +0 -171
- data/lib/twilio-ruby/rest/oauth/v1/oauth.rb +0 -185
- data/lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb +0 -262
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +0 -179
- data/lib/twilio-ruby/rest/oauth/v1/user_info.rb +0 -213
- data/lib/twilio-ruby/rest/oauth/v1.rb +0 -64
- data/lib/twilio-ruby/rest/oauth.rb +0 -33
- data/lib/twilio-ruby/rest/oauth_base.rb +0 -38
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f65014678404b1e02f90c80ab33784138e47f307
|
4
|
+
data.tar.gz: 76d0c8217c4c5a5ba2b12705082615178482ecf2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca776d1afec063d1e8275792eee9b6d613460210841dacba412c144ddb8ad8ef637e08a6a0d8dfa3d7457c223cb2e4a2018775974612e51aea39055705290a64
|
7
|
+
data.tar.gz: e9d7fe8dd97f7416bce97a14edf553ec931aa601067f8f5414bec6870d66e784769ebde946c542d6c7258b21cf2a1c64790a0023a59dbcea5d9e25f9c46da3fc
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,29 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-11-17] Version 6.8.2
|
5
|
+
--------------------------
|
6
|
+
**Library - Chore**
|
7
|
+
- [PR #687](https://github.com/twilio/twilio-ruby/pull/687): remove more oauth refrences. Thanks to [@KobeBrooks](https://github.com/KobeBrooks)!
|
8
|
+
|
9
|
+
**Api**
|
10
|
+
- Update documentation to reflect RiskCheck GA
|
11
|
+
|
12
|
+
**Messaging**
|
13
|
+
- Add tollfree edit_allowed and edit_reason fields
|
14
|
+
- Update Phone Number, Short Code, Alpha Sender, US A2P and Channel Sender documentation
|
15
|
+
|
16
|
+
**Taskrouter**
|
17
|
+
- Add container attribute to task_queue_bulk_real_time_statistics endpoint
|
18
|
+
|
19
|
+
**Trusthub**
|
20
|
+
- Rename did to tollfree_phone_number in compliance_tollfree_inquiry.json
|
21
|
+
- Add new optional field notification_email to compliance_tollfree_inquiry.json
|
22
|
+
|
23
|
+
**Verify**
|
24
|
+
- Add `Tags` optional parameter on Verification creation.
|
25
|
+
|
26
|
+
|
4
27
|
[2023-11-06] Version 6.8.1
|
5
28
|
--------------------------
|
6
29
|
**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', '~> 6.8.
|
42
|
+
gem 'twilio-ruby', '~> 6.8.2'
|
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 6.8.
|
48
|
+
gem install twilio-ruby -v 6.8.2
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -117,11 +117,6 @@ module Twilio
|
|
117
117
|
@numbers ||= Numbers.new self
|
118
118
|
end
|
119
119
|
##
|
120
|
-
# Access the Oauth Twilio Domain
|
121
|
-
def oauth
|
122
|
-
@oauth ||= Oauth.new self
|
123
|
-
end
|
124
|
-
##
|
125
120
|
# Access the Preview Twilio Domain
|
126
121
|
def preview
|
127
122
|
@preview ||= Preview.new self
|
@@ -280,6 +280,7 @@ module Twilio
|
|
280
280
|
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
281
281
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
282
282
|
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
283
|
+
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
283
284
|
# @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
|
284
285
|
def update(
|
285
286
|
business_name: :unset,
|
@@ -301,7 +302,8 @@ module Twilio
|
|
301
302
|
business_contact_first_name: :unset,
|
302
303
|
business_contact_last_name: :unset,
|
303
304
|
business_contact_email: :unset,
|
304
|
-
business_contact_phone: :unset
|
305
|
+
business_contact_phone: :unset,
|
306
|
+
edit_reason: :unset
|
305
307
|
)
|
306
308
|
|
307
309
|
data = Twilio::Values.of({
|
@@ -325,6 +327,7 @@ module Twilio
|
|
325
327
|
'BusinessContactLastName' => business_contact_last_name,
|
326
328
|
'BusinessContactEmail' => business_contact_email,
|
327
329
|
'BusinessContactPhone' => business_contact_phone,
|
330
|
+
'EditReason' => edit_reason,
|
328
331
|
})
|
329
332
|
|
330
333
|
payload = @version.update('POST', @uri, data: data)
|
@@ -427,6 +430,7 @@ module Twilio
|
|
427
430
|
'rejection_reason' => payload['rejection_reason'],
|
428
431
|
'error_code' => payload['error_code'] == nil ? payload['error_code'] : payload['error_code'].to_i,
|
429
432
|
'edit_expiration' => Twilio.deserialize_iso8601_datetime(payload['edit_expiration']),
|
433
|
+
'edit_allowed' => payload['edit_allowed'],
|
430
434
|
'resource_links' => payload['resource_links'],
|
431
435
|
'external_reference_id' => payload['external_reference_id'],
|
432
436
|
}
|
@@ -645,6 +649,12 @@ module Twilio
|
|
645
649
|
@properties['edit_expiration']
|
646
650
|
end
|
647
651
|
|
652
|
+
##
|
653
|
+
# @return [Boolean] If a rejected verification is allowed to be edited/resubmitted. Some rejection reasons allow editing and some do not.
|
654
|
+
def edit_allowed
|
655
|
+
@properties['edit_allowed']
|
656
|
+
end
|
657
|
+
|
648
658
|
##
|
649
659
|
# @return [Hash] The URLs of the documents associated with the Tollfree Verification resource.
|
650
660
|
def resource_links
|
@@ -695,6 +705,7 @@ module Twilio
|
|
695
705
|
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
696
706
|
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
697
707
|
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
708
|
+
# @param [String] edit_reason Describe why the verification is being edited. If the verification was rejected because of a technical issue, such as the website being down, and the issue has been resolved this parameter should be set to something similar to 'Website fixed'.
|
698
709
|
# @return [TollfreeVerificationInstance] Updated TollfreeVerificationInstance
|
699
710
|
def update(
|
700
711
|
business_name: :unset,
|
@@ -716,7 +727,8 @@ module Twilio
|
|
716
727
|
business_contact_first_name: :unset,
|
717
728
|
business_contact_last_name: :unset,
|
718
729
|
business_contact_email: :unset,
|
719
|
-
business_contact_phone: :unset
|
730
|
+
business_contact_phone: :unset,
|
731
|
+
edit_reason: :unset
|
720
732
|
)
|
721
733
|
|
722
734
|
context.update(
|
@@ -740,6 +752,7 @@ module Twilio
|
|
740
752
|
business_contact_last_name: business_contact_last_name,
|
741
753
|
business_contact_email: business_contact_email,
|
742
754
|
business_contact_phone: business_contact_phone,
|
755
|
+
edit_reason: edit_reason,
|
743
756
|
)
|
744
757
|
end
|
745
758
|
|
@@ -79,7 +79,7 @@ module Twilio
|
|
79
79
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
80
80
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
81
81
|
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
82
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
82
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
83
83
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
84
84
|
# guarantees to never return more than limit. Default is no limit
|
85
85
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -115,7 +115,7 @@ module Twilio
|
|
115
115
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
116
116
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
117
117
|
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
118
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
118
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
119
119
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
120
120
|
# guarantees to never return more than limit. Default is no limit
|
121
121
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -166,7 +166,7 @@ module Twilio
|
|
166
166
|
# @param [String] task_queue_name The `friendly_name` of the TaskQueue with the Tasks to read. Returns the Tasks waiting in the TaskQueue identified by this friendly name.
|
167
167
|
# @param [String] evaluate_task_attributes The attributes of the Tasks to read. Returns the Tasks that match the attributes specified in this parameter.
|
168
168
|
# @param [String] ordering How to order the returned Task resources. By default, Tasks are sorted by ascending DateCreated. This value is specified as: `Attribute:Order`, where `Attribute` can be either `DateCreated`, `Priority`, or `VirtualStartTime` and `Order` can be either `asc` or `desc`. For example, `Priority:desc` returns Tasks ordered in descending order of their Priority. Pairings of sort orders can be specified in a comma-separated list such as `Priority:desc,DateCreated:asc`, which returns the Tasks in descending Priority order and ascending DateCreated Order. The only ordering pairing not allowed is DateCreated and VirtualStartTime.
|
169
|
-
# @param [Boolean] has_addons Whether to read Tasks with
|
169
|
+
# @param [Boolean] has_addons Whether to read Tasks with Add-ons. If `true`, returns only Tasks with Add-ons. If `false`, returns only Tasks without Add-ons.
|
170
170
|
# @param [String] page_token PageToken provided by the API
|
171
171
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
172
172
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -440,7 +440,7 @@ module Twilio
|
|
440
440
|
end
|
441
441
|
|
442
442
|
##
|
443
|
-
# @return [String] An object that contains the [
|
443
|
+
# @return [String] An object that contains the [Add-on](https://www.twilio.com/docs/add-ons) data for all installed Add-ons.
|
444
444
|
def addons
|
445
445
|
@properties['addons']
|
446
446
|
end
|
@@ -31,6 +31,7 @@ module Twilio
|
|
31
31
|
@uri = "/Workspaces/#{@solution[:workspace_sid]}/TaskQueues"
|
32
32
|
# Components
|
33
33
|
@statistics = nil
|
34
|
+
@bulk_real_time_statistics = nil
|
34
35
|
end
|
35
36
|
##
|
36
37
|
# Create the TaskQueueInstance
|
@@ -184,6 +185,13 @@ module Twilio
|
|
184
185
|
def statistics
|
185
186
|
@statistics ||= TaskQueuesStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
|
186
187
|
end
|
188
|
+
##
|
189
|
+
# Access the bulk_real_time_statistics
|
190
|
+
# @return [TaskQueueBulkRealTimeStatisticsList]
|
191
|
+
# @return [TaskQueueBulkRealTimeStatisticsContext]
|
192
|
+
def bulk_real_time_statistics
|
193
|
+
@bulk_real_time_statistics ||= TaskQueueBulkRealTimeStatisticsList.new(@version, workspace_sid: @solution[:workspace_sid] )
|
194
|
+
end
|
187
195
|
|
188
196
|
# Provide a user friendly representation
|
189
197
|
def to_s
|
@@ -31,14 +31,17 @@ module Twilio
|
|
31
31
|
end
|
32
32
|
##
|
33
33
|
# Create the ComplianceTollfreeInquiriesInstance
|
34
|
-
# @param [String]
|
34
|
+
# @param [String] tollfree_phone_number The Tollfree phone number to be verified
|
35
|
+
# @param [String] notification_email The notification email to be triggered when verification status is changed
|
35
36
|
# @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance
|
36
37
|
def create(
|
37
|
-
|
38
|
+
tollfree_phone_number: nil,
|
39
|
+
notification_email: nil
|
38
40
|
)
|
39
41
|
|
40
42
|
data = Twilio::Values.of({
|
41
|
-
'
|
43
|
+
'TollfreePhoneNumber' => tollfree_phone_number,
|
44
|
+
'NotificationEmail' => notification_email,
|
42
45
|
})
|
43
46
|
|
44
47
|
payload = @version.create('POST', @uri, data: data)
|
@@ -57,58 +60,6 @@ module Twilio
|
|
57
60
|
end
|
58
61
|
end
|
59
62
|
|
60
|
-
|
61
|
-
class ComplianceTollfreeInquiriesContext < InstanceContext
|
62
|
-
##
|
63
|
-
# Initialize the ComplianceTollfreeInquiriesContext
|
64
|
-
# @param [Version] version Version that contains the resource
|
65
|
-
# @param [String] tollfree_id The unique TolfreeId matching the Compliance Tollfree Verification Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Tollfree Verification Inquiry creation call.
|
66
|
-
# @return [ComplianceTollfreeInquiriesContext] ComplianceTollfreeInquiriesContext
|
67
|
-
def initialize(version, tollfree_id)
|
68
|
-
super(version)
|
69
|
-
|
70
|
-
# Path Solution
|
71
|
-
@solution = { tollfree_id: tollfree_id, }
|
72
|
-
@uri = "/ComplianceInquiries/Tollfree/#{@solution[:tollfree_id]}/Initialize"
|
73
|
-
|
74
|
-
|
75
|
-
end
|
76
|
-
##
|
77
|
-
# Update the ComplianceTollfreeInquiriesInstance
|
78
|
-
# @param [String] did The Tollfree phone number to be verified
|
79
|
-
# @return [ComplianceTollfreeInquiriesInstance] Updated ComplianceTollfreeInquiriesInstance
|
80
|
-
def update(
|
81
|
-
did: nil
|
82
|
-
)
|
83
|
-
|
84
|
-
data = Twilio::Values.of({
|
85
|
-
'Did' => did,
|
86
|
-
})
|
87
|
-
|
88
|
-
payload = @version.update('POST', @uri, data: data)
|
89
|
-
ComplianceTollfreeInquiriesInstance.new(
|
90
|
-
@version,
|
91
|
-
payload,
|
92
|
-
tollfree_id: @solution[:tollfree_id],
|
93
|
-
)
|
94
|
-
end
|
95
|
-
|
96
|
-
|
97
|
-
##
|
98
|
-
# Provide a user friendly representation
|
99
|
-
def to_s
|
100
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
101
|
-
"#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesContext #{context}>"
|
102
|
-
end
|
103
|
-
|
104
|
-
##
|
105
|
-
# Provide a detailed, user friendly representation
|
106
|
-
def inspect
|
107
|
-
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
108
|
-
"#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesContext #{context}>"
|
109
|
-
end
|
110
|
-
end
|
111
|
-
|
112
63
|
class ComplianceTollfreeInquiriesPage < Page
|
113
64
|
##
|
114
65
|
# Initialize the ComplianceTollfreeInquiriesPage
|
@@ -147,32 +98,18 @@ module Twilio
|
|
147
98
|
# resource.
|
148
99
|
# @param [String] sid The SID of the Call resource to fetch.
|
149
100
|
# @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
|
150
|
-
def initialize(version, payload
|
101
|
+
def initialize(version, payload )
|
151
102
|
super(version)
|
152
103
|
|
153
104
|
# Marshaled Properties
|
154
105
|
@properties = {
|
155
106
|
'inquiry_id' => payload['inquiry_id'],
|
156
107
|
'inquiry_session_token' => payload['inquiry_session_token'],
|
157
|
-
'
|
108
|
+
'registration_id' => payload['registration_id'],
|
158
109
|
'url' => payload['url'],
|
159
110
|
}
|
160
|
-
|
161
|
-
# Context
|
162
|
-
@instance_context = nil
|
163
|
-
@params = { 'tollfree_id' => tollfree_id || @properties['tollfree_id'] , }
|
164
111
|
end
|
165
112
|
|
166
|
-
##
|
167
|
-
# Generate an instance context for the instance, the context is capable of
|
168
|
-
# performing various actions. All instance actions are proxied to the context
|
169
|
-
# @return [ComplianceTollfreeInquiriesContext] CallContext for this CallInstance
|
170
|
-
def context
|
171
|
-
unless @instance_context
|
172
|
-
@instance_context = ComplianceTollfreeInquiriesContext.new(@version , @params['tollfree_id'])
|
173
|
-
end
|
174
|
-
@instance_context
|
175
|
-
end
|
176
113
|
|
177
114
|
##
|
178
115
|
# @return [String] The unique ID used to start an embedded compliance registration session.
|
@@ -188,8 +125,8 @@ module Twilio
|
|
188
125
|
|
189
126
|
##
|
190
127
|
# @return [String] The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.
|
191
|
-
def
|
192
|
-
@properties['
|
128
|
+
def registration_id
|
129
|
+
@properties['registration_id']
|
193
130
|
end
|
194
131
|
|
195
132
|
##
|
@@ -198,31 +135,16 @@ module Twilio
|
|
198
135
|
@properties['url']
|
199
136
|
end
|
200
137
|
|
201
|
-
##
|
202
|
-
# Update the ComplianceTollfreeInquiriesInstance
|
203
|
-
# @param [String] did The Tollfree phone number to be verified
|
204
|
-
# @return [ComplianceTollfreeInquiriesInstance] Updated ComplianceTollfreeInquiriesInstance
|
205
|
-
def update(
|
206
|
-
did: nil
|
207
|
-
)
|
208
|
-
|
209
|
-
context.update(
|
210
|
-
did: did,
|
211
|
-
)
|
212
|
-
end
|
213
|
-
|
214
138
|
##
|
215
139
|
# Provide a user friendly representation
|
216
140
|
def to_s
|
217
|
-
|
218
|
-
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance #{values}>"
|
141
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
|
219
142
|
end
|
220
143
|
|
221
144
|
##
|
222
145
|
# Provide a detailed, user friendly representation
|
223
146
|
def inspect
|
224
|
-
|
225
|
-
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance #{values}>"
|
147
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance>"
|
226
148
|
end
|
227
149
|
end
|
228
150
|
|
@@ -47,18 +47,9 @@ module Twilio
|
|
47
47
|
end
|
48
48
|
end
|
49
49
|
##
|
50
|
-
# @param [String] tollfree_id The unique TolfreeId matching the Compliance Tollfree Verification Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Compliance Tollfree Verification Inquiry creation call.
|
51
|
-
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesContext] if tollfreeId was passed.
|
52
50
|
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
|
53
|
-
def compliance_tollfree_inquiries
|
54
|
-
|
55
|
-
raise ArgumentError, 'tollfree_id cannot be nil'
|
56
|
-
end
|
57
|
-
if tollfree_id == :unset
|
58
|
-
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
|
59
|
-
else
|
60
|
-
ComplianceTollfreeInquiriesContext.new(self, tollfree_id)
|
61
|
-
end
|
51
|
+
def compliance_tollfree_inquiries
|
52
|
+
@compliance_tollfree_inquiries ||= ComplianceTollfreeInquiriesList.new self
|
62
53
|
end
|
63
54
|
##
|
64
55
|
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
|
@@ -49,6 +49,7 @@ module Twilio
|
|
49
49
|
# @param [String] template_custom_substitutions A stringified JSON object in which the keys are the template's special variables and the values are the variables substitutions.
|
50
50
|
# @param [String] device_ip Strongly encouraged if using the auto channel. The IP address of the client's device. If provided, it has to be a valid IPv4 or IPv6 address.
|
51
51
|
# @param [RiskCheck] risk_check
|
52
|
+
# @param [String] tags A string containing a JSON map of key value pairs of tags to be recorded as metadata for the message. The object may contain up to 10 tags. Keys and values can each be up to 128 characters in length.
|
52
53
|
# @return [VerificationInstance] Created VerificationInstance
|
53
54
|
def create(
|
54
55
|
to: nil,
|
@@ -66,7 +67,8 @@ module Twilio
|
|
66
67
|
template_sid: :unset,
|
67
68
|
template_custom_substitutions: :unset,
|
68
69
|
device_ip: :unset,
|
69
|
-
risk_check: :unset
|
70
|
+
risk_check: :unset,
|
71
|
+
tags: :unset
|
70
72
|
)
|
71
73
|
|
72
74
|
data = Twilio::Values.of({
|
@@ -86,6 +88,7 @@ module Twilio
|
|
86
88
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
87
89
|
'DeviceIp' => device_ip,
|
88
90
|
'RiskCheck' => risk_check,
|
91
|
+
'Tags' => tags,
|
89
92
|
})
|
90
93
|
|
91
94
|
payload = @version.create('POST', @uri, data: data)
|
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: 6.8.
|
4
|
+
version: 6.8.2
|
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: 2023-11-
|
11
|
+
date: 2023-11-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -591,14 +591,6 @@ files:
|
|
591
591
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb
|
592
592
|
- lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document_type.rb
|
593
593
|
- lib/twilio-ruby/rest/numbers_base.rb
|
594
|
-
- lib/twilio-ruby/rest/oauth.rb
|
595
|
-
- lib/twilio-ruby/rest/oauth/v1.rb
|
596
|
-
- lib/twilio-ruby/rest/oauth/v1/device_code.rb
|
597
|
-
- lib/twilio-ruby/rest/oauth/v1/oauth.rb
|
598
|
-
- lib/twilio-ruby/rest/oauth/v1/openid_discovery.rb
|
599
|
-
- lib/twilio-ruby/rest/oauth/v1/token.rb
|
600
|
-
- lib/twilio-ruby/rest/oauth/v1/user_info.rb
|
601
|
-
- lib/twilio-ruby/rest/oauth_base.rb
|
602
594
|
- lib/twilio-ruby/rest/preview.rb
|
603
595
|
- lib/twilio-ruby/rest/preview/deployed_devices.rb
|
604
596
|
- lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb
|
@@ -1,171 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# This code was generated by
|
3
|
-
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
-
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
-
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
-
#
|
7
|
-
# Twilio - Oauth
|
8
|
-
# This is the public Twilio REST API.
|
9
|
-
#
|
10
|
-
# NOTE: This class is auto generated by OpenAPI Generator.
|
11
|
-
# https://openapi-generator.tech
|
12
|
-
# Do not edit the class manually.
|
13
|
-
#
|
14
|
-
|
15
|
-
|
16
|
-
module Twilio
|
17
|
-
module REST
|
18
|
-
class Oauth < OauthBase
|
19
|
-
class V1 < Version
|
20
|
-
class DeviceCodeList < ListResource
|
21
|
-
##
|
22
|
-
# Initialize the DeviceCodeList
|
23
|
-
# @param [Version] version Version that contains the resource
|
24
|
-
# @return [DeviceCodeList] DeviceCodeList
|
25
|
-
def initialize(version)
|
26
|
-
super(version)
|
27
|
-
# Path Solution
|
28
|
-
@solution = { }
|
29
|
-
@uri = "/device/code"
|
30
|
-
|
31
|
-
end
|
32
|
-
##
|
33
|
-
# Create the DeviceCodeInstance
|
34
|
-
# @param [String] client_sid A 34 character string that uniquely identifies this OAuth App.
|
35
|
-
# @param [Array[String]] scopes An Array of scopes for authorization request
|
36
|
-
# @param [Array[String]] audiences An array of intended audiences for token requests
|
37
|
-
# @return [DeviceCodeInstance] Created DeviceCodeInstance
|
38
|
-
def create(
|
39
|
-
client_sid: nil,
|
40
|
-
scopes: nil,
|
41
|
-
audiences: :unset
|
42
|
-
)
|
43
|
-
|
44
|
-
data = Twilio::Values.of({
|
45
|
-
'ClientSid' => client_sid,
|
46
|
-
'Scopes' => Twilio.serialize_list(scopes) { |e| e },
|
47
|
-
'Audiences' => Twilio.serialize_list(audiences) { |e| e },
|
48
|
-
})
|
49
|
-
|
50
|
-
payload = @version.create('POST', @uri, data: data)
|
51
|
-
DeviceCodeInstance.new(
|
52
|
-
@version,
|
53
|
-
payload,
|
54
|
-
)
|
55
|
-
end
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
# Provide a user friendly representation
|
61
|
-
def to_s
|
62
|
-
'#<Twilio.Oauth.V1.DeviceCodeList>'
|
63
|
-
end
|
64
|
-
end
|
65
|
-
|
66
|
-
class DeviceCodePage < Page
|
67
|
-
##
|
68
|
-
# Initialize the DeviceCodePage
|
69
|
-
# @param [Version] version Version that contains the resource
|
70
|
-
# @param [Response] response Response from the API
|
71
|
-
# @param [Hash] solution Path solution for the resource
|
72
|
-
# @return [DeviceCodePage] DeviceCodePage
|
73
|
-
def initialize(version, response, solution)
|
74
|
-
super(version, response)
|
75
|
-
|
76
|
-
# Path Solution
|
77
|
-
@solution = solution
|
78
|
-
end
|
79
|
-
|
80
|
-
##
|
81
|
-
# Build an instance of DeviceCodeInstance
|
82
|
-
# @param [Hash] payload Payload response from the API
|
83
|
-
# @return [DeviceCodeInstance] DeviceCodeInstance
|
84
|
-
def get_instance(payload)
|
85
|
-
DeviceCodeInstance.new(@version, payload)
|
86
|
-
end
|
87
|
-
|
88
|
-
##
|
89
|
-
# Provide a user friendly representation
|
90
|
-
def to_s
|
91
|
-
'<Twilio.Oauth.V1.DeviceCodePage>'
|
92
|
-
end
|
93
|
-
end
|
94
|
-
class DeviceCodeInstance < InstanceResource
|
95
|
-
##
|
96
|
-
# Initialize the DeviceCodeInstance
|
97
|
-
# @param [Version] version Version that contains the resource
|
98
|
-
# @param [Hash] payload payload that contains response from Twilio
|
99
|
-
# @param [String] account_sid The SID of the
|
100
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this DeviceCode
|
101
|
-
# resource.
|
102
|
-
# @param [String] sid The SID of the Call resource to fetch.
|
103
|
-
# @return [DeviceCodeInstance] DeviceCodeInstance
|
104
|
-
def initialize(version, payload )
|
105
|
-
super(version)
|
106
|
-
|
107
|
-
# Marshaled Properties
|
108
|
-
@properties = {
|
109
|
-
'device_code' => payload['device_code'],
|
110
|
-
'user_code' => payload['user_code'],
|
111
|
-
'verification_uri' => payload['verification_uri'],
|
112
|
-
'verification_uri_complete' => payload['verification_uri_complete'],
|
113
|
-
'expires_in' => payload['expires_in'],
|
114
|
-
'interval' => payload['interval'] == nil ? payload['interval'] : payload['interval'].to_i,
|
115
|
-
}
|
116
|
-
end
|
117
|
-
|
118
|
-
|
119
|
-
##
|
120
|
-
# @return [String] The device verification code.
|
121
|
-
def device_code
|
122
|
-
@properties['device_code']
|
123
|
-
end
|
124
|
-
|
125
|
-
##
|
126
|
-
# @return [String] The verification code which end user uses to verify authorization request.
|
127
|
-
def user_code
|
128
|
-
@properties['user_code']
|
129
|
-
end
|
130
|
-
|
131
|
-
##
|
132
|
-
# @return [String] The URI that the end user visits to verify authorization request.
|
133
|
-
def verification_uri
|
134
|
-
@properties['verification_uri']
|
135
|
-
end
|
136
|
-
|
137
|
-
##
|
138
|
-
# @return [String] The URI with user_code that the end-user alternatively visits to verify authorization request.
|
139
|
-
def verification_uri_complete
|
140
|
-
@properties['verification_uri_complete']
|
141
|
-
end
|
142
|
-
|
143
|
-
##
|
144
|
-
# @return [String] The expiration time of the device_code and user_code in seconds.
|
145
|
-
def expires_in
|
146
|
-
@properties['expires_in']
|
147
|
-
end
|
148
|
-
|
149
|
-
##
|
150
|
-
# @return [String] The minimum amount of time in seconds that the client should wait between polling requests to the token endpoint.
|
151
|
-
def interval
|
152
|
-
@properties['interval']
|
153
|
-
end
|
154
|
-
|
155
|
-
##
|
156
|
-
# Provide a user friendly representation
|
157
|
-
def to_s
|
158
|
-
"<Twilio.Oauth.V1.DeviceCodeInstance>"
|
159
|
-
end
|
160
|
-
|
161
|
-
##
|
162
|
-
# Provide a detailed, user friendly representation
|
163
|
-
def inspect
|
164
|
-
"<Twilio.Oauth.V1.DeviceCodeInstance>"
|
165
|
-
end
|
166
|
-
end
|
167
|
-
|
168
|
-
end
|
169
|
-
end
|
170
|
-
end
|
171
|
-
end
|