twilio-ruby 7.0.0.pre.rc.3 → 7.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +70 -23
- data/README.md +2 -2
- data/UPGRADE.md +3 -2
- data/lib/twilio-ruby/rest/api/v2010/account/call.rb +22 -22
- data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
- data/lib/twilio-ruby/rest/client.rb +0 -5
- data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +6 -6
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
- data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
- data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +6 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -0
- data/lib/twilio-ruby/rest/oauth/v1/token.rb +10 -4
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
- data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
- data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -11
- data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
- data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -405
- data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
- data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
- data/lib/twilio-ruby/rest/media/v1.rb +0 -79
- data/lib/twilio-ruby/rest/media.rb +0 -35
- data/lib/twilio-ruby/rest/media_base.rb +0 -38
@@ -70,6 +70,7 @@ module Twilio
|
|
70
70
|
# @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
|
71
71
|
# @param [String] isv_registering_for_self_or_tenant Indicates if the isv registering for self or tenant.
|
72
72
|
# @param [String] status_callback_url The url we call to inform you of bundle changes.
|
73
|
+
# @param [String] theme_set_id Theme id for styling the inquiry form.
|
73
74
|
# @return [ComplianceRegistrationInquiriesInstance] Created ComplianceRegistrationInquiriesInstance
|
74
75
|
def create(
|
75
76
|
end_user_type: nil,
|
@@ -109,7 +110,8 @@ module Twilio
|
|
109
110
|
individual_phone: :unset,
|
110
111
|
is_isv_embed: :unset,
|
111
112
|
isv_registering_for_self_or_tenant: :unset,
|
112
|
-
status_callback_url: :unset
|
113
|
+
status_callback_url: :unset,
|
114
|
+
theme_set_id: :unset
|
113
115
|
)
|
114
116
|
|
115
117
|
data = Twilio::Values.of({
|
@@ -151,6 +153,7 @@ module Twilio
|
|
151
153
|
'IsIsvEmbed' => is_isv_embed,
|
152
154
|
'IsvRegisteringForSelfOrTenant' => isv_registering_for_self_or_tenant,
|
153
155
|
'StatusCallbackUrl' => status_callback_url,
|
156
|
+
'ThemeSetId' => theme_set_id,
|
154
157
|
})
|
155
158
|
|
156
159
|
|
@@ -170,6 +173,62 @@ module Twilio
|
|
170
173
|
end
|
171
174
|
end
|
172
175
|
|
176
|
+
|
177
|
+
class ComplianceRegistrationInquiriesContext < InstanceContext
|
178
|
+
##
|
179
|
+
# Initialize the ComplianceRegistrationInquiriesContext
|
180
|
+
# @param [Version] version Version that contains the resource
|
181
|
+
# @param [String] registration_id The unique RegistrationId matching the Regulatory Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Regulatory Compliance Inquiry creation call.
|
182
|
+
# @return [ComplianceRegistrationInquiriesContext] ComplianceRegistrationInquiriesContext
|
183
|
+
def initialize(version, registration_id)
|
184
|
+
super(version)
|
185
|
+
|
186
|
+
# Path Solution
|
187
|
+
@solution = { registration_id: registration_id, }
|
188
|
+
@uri = "/ComplianceInquiries/Registration/#{@solution[:registration_id]}/RegulatoryCompliance/GB/Initialize"
|
189
|
+
|
190
|
+
|
191
|
+
end
|
192
|
+
##
|
193
|
+
# Update the ComplianceRegistrationInquiriesInstance
|
194
|
+
# @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
|
195
|
+
# @param [String] theme_set_id Theme id for styling the inquiry form.
|
196
|
+
# @return [ComplianceRegistrationInquiriesInstance] Updated ComplianceRegistrationInquiriesInstance
|
197
|
+
def update(
|
198
|
+
is_isv_embed: :unset,
|
199
|
+
theme_set_id: :unset
|
200
|
+
)
|
201
|
+
|
202
|
+
data = Twilio::Values.of({
|
203
|
+
'IsIsvEmbed' => is_isv_embed,
|
204
|
+
'ThemeSetId' => theme_set_id,
|
205
|
+
})
|
206
|
+
|
207
|
+
|
208
|
+
payload = @version.update('POST', @uri, data: data)
|
209
|
+
ComplianceRegistrationInquiriesInstance.new(
|
210
|
+
@version,
|
211
|
+
payload,
|
212
|
+
registration_id: @solution[:registration_id],
|
213
|
+
)
|
214
|
+
end
|
215
|
+
|
216
|
+
|
217
|
+
##
|
218
|
+
# Provide a user friendly representation
|
219
|
+
def to_s
|
220
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
221
|
+
"#<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesContext #{context}>"
|
222
|
+
end
|
223
|
+
|
224
|
+
##
|
225
|
+
# Provide a detailed, user friendly representation
|
226
|
+
def inspect
|
227
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
228
|
+
"#<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesContext #{context}>"
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
173
232
|
class ComplianceRegistrationInquiriesPage < Page
|
174
233
|
##
|
175
234
|
# Initialize the ComplianceRegistrationInquiriesPage
|
@@ -208,7 +267,7 @@ module Twilio
|
|
208
267
|
# resource.
|
209
268
|
# @param [String] sid The SID of the Call resource to fetch.
|
210
269
|
# @return [ComplianceRegistrationInquiriesInstance] ComplianceRegistrationInquiriesInstance
|
211
|
-
def initialize(version, payload )
|
270
|
+
def initialize(version, payload , registration_id: nil)
|
212
271
|
super(version)
|
213
272
|
|
214
273
|
# Marshaled Properties
|
@@ -218,8 +277,22 @@ module Twilio
|
|
218
277
|
'registration_id' => payload['registration_id'],
|
219
278
|
'url' => payload['url'],
|
220
279
|
}
|
280
|
+
|
281
|
+
# Context
|
282
|
+
@instance_context = nil
|
283
|
+
@params = { 'registration_id' => registration_id || @properties['registration_id'] , }
|
221
284
|
end
|
222
285
|
|
286
|
+
##
|
287
|
+
# Generate an instance context for the instance, the context is capable of
|
288
|
+
# performing various actions. All instance actions are proxied to the context
|
289
|
+
# @return [ComplianceRegistrationInquiriesContext] CallContext for this CallInstance
|
290
|
+
def context
|
291
|
+
unless @instance_context
|
292
|
+
@instance_context = ComplianceRegistrationInquiriesContext.new(@version , @params['registration_id'])
|
293
|
+
end
|
294
|
+
@instance_context
|
295
|
+
end
|
223
296
|
|
224
297
|
##
|
225
298
|
# @return [String] The unique ID used to start an embedded compliance registration session.
|
@@ -245,16 +318,34 @@ module Twilio
|
|
245
318
|
@properties['url']
|
246
319
|
end
|
247
320
|
|
321
|
+
##
|
322
|
+
# Update the ComplianceRegistrationInquiriesInstance
|
323
|
+
# @param [Boolean] is_isv_embed Indicates if the inquiry is being started from an ISV embedded component.
|
324
|
+
# @param [String] theme_set_id Theme id for styling the inquiry form.
|
325
|
+
# @return [ComplianceRegistrationInquiriesInstance] Updated ComplianceRegistrationInquiriesInstance
|
326
|
+
def update(
|
327
|
+
is_isv_embed: :unset,
|
328
|
+
theme_set_id: :unset
|
329
|
+
)
|
330
|
+
|
331
|
+
context.update(
|
332
|
+
is_isv_embed: is_isv_embed,
|
333
|
+
theme_set_id: theme_set_id,
|
334
|
+
)
|
335
|
+
end
|
336
|
+
|
248
337
|
##
|
249
338
|
# Provide a user friendly representation
|
250
339
|
def to_s
|
251
|
-
"
|
340
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
341
|
+
"<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesInstance #{values}>"
|
252
342
|
end
|
253
343
|
|
254
344
|
##
|
255
345
|
# Provide a detailed, user friendly representation
|
256
346
|
def inspect
|
257
|
-
"
|
347
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
348
|
+
"<Twilio.Trusthub.V1.ComplianceRegistrationInquiriesInstance #{values}>"
|
258
349
|
end
|
259
350
|
end
|
260
351
|
|
@@ -33,8 +33,8 @@ module Twilio
|
|
33
33
|
##
|
34
34
|
# Create the TrustProductsInstance
|
35
35
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
36
|
-
# @param [String] email The email address that will receive updates when the
|
37
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
36
|
+
# @param [String] email The email address that will receive updates when the Trust Product resource changes status.
|
37
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
38
38
|
# @param [String] status_callback The URL we call to inform your application of status changes.
|
39
39
|
# @return [TrustProductsInstance] Created TrustProductsInstance
|
40
40
|
def create(
|
@@ -64,9 +64,9 @@ module Twilio
|
|
64
64
|
# Lists TrustProductsInstance records from the API as a list.
|
65
65
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
66
66
|
# memory before returning.
|
67
|
-
# @param [Status] status The verification status of the
|
67
|
+
# @param [Status] status The verification status of the Trust Product resource.
|
68
68
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
69
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
69
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
70
70
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
71
71
|
# guarantees to never return more than limit. Default is no limit
|
72
72
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -88,9 +88,9 @@ module Twilio
|
|
88
88
|
# Streams Instance records from the API as an Enumerable.
|
89
89
|
# This operation lazily loads records as efficiently as possible until the limit
|
90
90
|
# is reached.
|
91
|
-
# @param [Status] status The verification status of the
|
91
|
+
# @param [Status] status The verification status of the Trust Product resource.
|
92
92
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
93
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
93
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
94
94
|
# @param [Integer] limit Upper limit for the number of records to return. stream()
|
95
95
|
# guarantees to never return more than limit. Default is no limit
|
96
96
|
# @param [Integer] page_size Number of records to fetch per request, when
|
@@ -127,9 +127,9 @@ module Twilio
|
|
127
127
|
##
|
128
128
|
# Retrieve a single page of TrustProductsInstance records from the API.
|
129
129
|
# Request is executed immediately.
|
130
|
-
# @param [Status] status The verification status of the
|
130
|
+
# @param [Status] status The verification status of the Trust Product resource.
|
131
131
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
132
|
-
# @param [String] policy_sid The unique string of a policy that is associated to the
|
132
|
+
# @param [String] policy_sid The unique string of a policy that is associated to the Trust Product resource.
|
133
133
|
# @param [String] page_token PageToken provided by the API
|
134
134
|
# @param [Integer] page_number Page Number, this value is simply for client state
|
135
135
|
# @param [Integer] page_size Number of records to return, defaults to 50
|
@@ -175,7 +175,7 @@ module Twilio
|
|
175
175
|
##
|
176
176
|
# Initialize the TrustProductsContext
|
177
177
|
# @param [Version] version Version that contains the resource
|
178
|
-
# @param [String] sid The unique string that we created to identify the
|
178
|
+
# @param [String] sid The unique string that we created to identify the Trust Product resource.
|
179
179
|
# @return [TrustProductsContext] TrustProductsContext
|
180
180
|
def initialize(version, sid)
|
181
181
|
super(version)
|
@@ -217,7 +217,7 @@ module Twilio
|
|
217
217
|
# @param [Status] status
|
218
218
|
# @param [String] status_callback The URL we call to inform your application of status changes.
|
219
219
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
220
|
-
# @param [String] email The email address that will receive updates when the
|
220
|
+
# @param [String] email The email address that will receive updates when the Trust Product resource changes status.
|
221
221
|
# @return [TrustProductsInstance] Updated TrustProductsInstance
|
222
222
|
def update(
|
223
223
|
status: :unset,
|
@@ -389,19 +389,19 @@ module Twilio
|
|
389
389
|
end
|
390
390
|
|
391
391
|
##
|
392
|
-
# @return [String] The unique string that we created to identify the
|
392
|
+
# @return [String] The unique string that we created to identify the Trust Product resource.
|
393
393
|
def sid
|
394
394
|
@properties['sid']
|
395
395
|
end
|
396
396
|
|
397
397
|
##
|
398
|
-
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the
|
398
|
+
# @return [String] The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Trust Product resource.
|
399
399
|
def account_sid
|
400
400
|
@properties['account_sid']
|
401
401
|
end
|
402
402
|
|
403
403
|
##
|
404
|
-
# @return [String] The unique string of
|
404
|
+
# @return [String] The unique string of the policy that is associated with the Trust Product resource.
|
405
405
|
def policy_sid
|
406
406
|
@properties['policy_sid']
|
407
407
|
end
|
@@ -419,13 +419,13 @@ module Twilio
|
|
419
419
|
end
|
420
420
|
|
421
421
|
##
|
422
|
-
# @return [Time] The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format
|
422
|
+
# @return [Time] The date and time in GMT in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format until which the resource will be valid.
|
423
423
|
def valid_until
|
424
424
|
@properties['valid_until']
|
425
425
|
end
|
426
426
|
|
427
427
|
##
|
428
|
-
# @return [String] The email address that will receive updates when the
|
428
|
+
# @return [String] The email address that will receive updates when the Trust Product resource changes status.
|
429
429
|
def email
|
430
430
|
@properties['email']
|
431
431
|
end
|
@@ -449,13 +449,13 @@ module Twilio
|
|
449
449
|
end
|
450
450
|
|
451
451
|
##
|
452
|
-
# @return [String] The absolute URL of the
|
452
|
+
# @return [String] The absolute URL of the Trust Product resource.
|
453
453
|
def url
|
454
454
|
@properties['url']
|
455
455
|
end
|
456
456
|
|
457
457
|
##
|
458
|
-
# @return [Hash] The URLs of the Assigned Items of the
|
458
|
+
# @return [Hash] The URLs of the Assigned Items of the Trust Product resource.
|
459
459
|
def links
|
460
460
|
@properties['links']
|
461
461
|
end
|
@@ -481,7 +481,7 @@ module Twilio
|
|
481
481
|
# @param [Status] status
|
482
482
|
# @param [String] status_callback The URL we call to inform your application of status changes.
|
483
483
|
# @param [String] friendly_name The string that you assigned to describe the resource.
|
484
|
-
# @param [String] email The email address that will receive updates when the
|
484
|
+
# @param [String] email The email address that will receive updates when the Trust Product resource changes status.
|
485
485
|
# @return [TrustProductsInstance] Updated TrustProductsInstance
|
486
486
|
def update(
|
487
487
|
status: :unset,
|
@@ -48,9 +48,18 @@ module Twilio
|
|
48
48
|
end
|
49
49
|
end
|
50
50
|
##
|
51
|
+
# @param [String] registration_id The unique RegistrationId matching the Regulatory Compliance Inquiry that should be resumed or resubmitted. This value will have been returned by the initial Regulatory Compliance Inquiry creation call.
|
52
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceRegistrationInquiriesContext] if registrationId was passed.
|
51
53
|
# @return [Twilio::REST::Trusthub::V1::ComplianceRegistrationInquiriesList]
|
52
|
-
def compliance_registration_inquiries
|
53
|
-
|
54
|
+
def compliance_registration_inquiries(registration_id=:unset)
|
55
|
+
if registration_id.nil?
|
56
|
+
raise ArgumentError, 'registration_id cannot be nil'
|
57
|
+
end
|
58
|
+
if registration_id == :unset
|
59
|
+
@compliance_registration_inquiries ||= ComplianceRegistrationInquiriesList.new self
|
60
|
+
else
|
61
|
+
ComplianceRegistrationInquiriesContext.new(self, registration_id)
|
62
|
+
end
|
54
63
|
end
|
55
64
|
##
|
56
65
|
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
|
@@ -142,7 +151,7 @@ module Twilio
|
|
142
151
|
end
|
143
152
|
end
|
144
153
|
##
|
145
|
-
# @param [String] sid The unique string that we created to identify the
|
154
|
+
# @param [String] sid The unique string that we created to identify the Trust Product resource.
|
146
155
|
# @return [Twilio::REST::Trusthub::V1::TrustProductsContext] if sid was passed.
|
147
156
|
# @return [Twilio::REST::Trusthub::V1::TrustProductsList]
|
148
157
|
def trust_products(sid=:unset)
|
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.0.0
|
4
|
+
version: 7.0.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: 2024-
|
11
|
+
date: 2024-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -507,13 +507,6 @@ files:
|
|
507
507
|
- lib/twilio-ruby/rest/lookups/v2.rb
|
508
508
|
- lib/twilio-ruby/rest/lookups/v2/phone_number.rb
|
509
509
|
- lib/twilio-ruby/rest/lookups_base.rb
|
510
|
-
- lib/twilio-ruby/rest/media.rb
|
511
|
-
- lib/twilio-ruby/rest/media/v1.rb
|
512
|
-
- lib/twilio-ruby/rest/media/v1/media_processor.rb
|
513
|
-
- lib/twilio-ruby/rest/media/v1/media_recording.rb
|
514
|
-
- lib/twilio-ruby/rest/media/v1/player_streamer.rb
|
515
|
-
- lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb
|
516
|
-
- lib/twilio-ruby/rest/media_base.rb
|
517
510
|
- lib/twilio-ruby/rest/messaging.rb
|
518
511
|
- lib/twilio-ruby/rest/messaging/v1.rb
|
519
512
|
- lib/twilio-ruby/rest/messaging/v1/brand_registration.rb
|
@@ -871,9 +864,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
871
864
|
version: 2.0.0
|
872
865
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
873
866
|
requirements:
|
874
|
-
- - "
|
867
|
+
- - ">="
|
875
868
|
- !ruby/object:Gem::Version
|
876
|
-
version:
|
869
|
+
version: '0'
|
877
870
|
requirements: []
|
878
871
|
rubyforge_project:
|
879
872
|
rubygems_version: 2.6.14.4
|