twilio-ruby 6.2.0 → 6.3.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 +25 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +11 -1
- data/lib/twilio-ruby/rest/messaging/v1/service.rb +27 -27
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +751 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +8 -2
- data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +3 -0
- data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -7
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +4 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -3
- data/conf/cacert.pem +0 -3376
@@ -30,6 +30,7 @@ module Twilio
|
|
30
30
|
@linkshortening_messaging_service = nil
|
31
31
|
@linkshortening_messaging_service_domain_association = nil
|
32
32
|
@services = nil
|
33
|
+
@tollfree_verifications = nil
|
33
34
|
@usecases = nil
|
34
35
|
end
|
35
36
|
|
@@ -164,6 +165,20 @@ module Twilio
|
|
164
165
|
end
|
165
166
|
end
|
166
167
|
##
|
168
|
+
# @param [String] sid The unique string to identify Tollfree Verification.
|
169
|
+
# @return [Twilio::REST::Messaging::V1::TollfreeVerificationContext] if sid was passed.
|
170
|
+
# @return [Twilio::REST::Messaging::V1::TollfreeVerificationList]
|
171
|
+
def tollfree_verifications(sid=:unset)
|
172
|
+
if sid.nil?
|
173
|
+
raise ArgumentError, 'sid cannot be nil'
|
174
|
+
end
|
175
|
+
if sid == :unset
|
176
|
+
@tollfree_verifications ||= TollfreeVerificationList.new self
|
177
|
+
else
|
178
|
+
TollfreeVerificationContext.new(self, sid)
|
179
|
+
end
|
180
|
+
end
|
181
|
+
##
|
167
182
|
# @return [Twilio::REST::Messaging::V1::UsecaseList]
|
168
183
|
def usecases
|
169
184
|
@usecases ||= UsecaseList.new self
|
@@ -161,17 +161,20 @@ module Twilio
|
|
161
161
|
# @param [String] unique_name A unique and addressable name to be assigned to this Device by the developer. It may be used in place of the Device SID.
|
162
162
|
# @param [String] target_app The SID or unique name of the App to be targeted to the Device.
|
163
163
|
# @param [Boolean] logging_enabled A Boolean flag specifying whether to enable application logging. Logs will be enabled or extended for 24 hours.
|
164
|
+
# @param [Boolean] restart_app Set to true to restart the App running on the Device.
|
164
165
|
# @return [DeviceInstance] Updated DeviceInstance
|
165
166
|
def update(
|
166
167
|
unique_name: :unset,
|
167
168
|
target_app: :unset,
|
168
|
-
logging_enabled: :unset
|
169
|
+
logging_enabled: :unset,
|
170
|
+
restart_app: :unset
|
169
171
|
)
|
170
172
|
|
171
173
|
data = Twilio::Values.of({
|
172
174
|
'UniqueName' => unique_name,
|
173
175
|
'TargetApp' => target_app,
|
174
176
|
'LoggingEnabled' => logging_enabled,
|
177
|
+
'RestartApp' => restart_app,
|
175
178
|
})
|
176
179
|
|
177
180
|
payload = @version.update('POST', @uri, data: data)
|
@@ -373,17 +376,20 @@ module Twilio
|
|
373
376
|
# @param [String] unique_name A unique and addressable name to be assigned to this Device by the developer. It may be used in place of the Device SID.
|
374
377
|
# @param [String] target_app The SID or unique name of the App to be targeted to the Device.
|
375
378
|
# @param [Boolean] logging_enabled A Boolean flag specifying whether to enable application logging. Logs will be enabled or extended for 24 hours.
|
379
|
+
# @param [Boolean] restart_app Set to true to restart the App running on the Device.
|
376
380
|
# @return [DeviceInstance] Updated DeviceInstance
|
377
381
|
def update(
|
378
382
|
unique_name: :unset,
|
379
383
|
target_app: :unset,
|
380
|
-
logging_enabled: :unset
|
384
|
+
logging_enabled: :unset,
|
385
|
+
restart_app: :unset
|
381
386
|
)
|
382
387
|
|
383
388
|
context.update(
|
384
389
|
unique_name: unique_name,
|
385
390
|
target_app: target_app,
|
386
391
|
logging_enabled: logging_enabled,
|
392
|
+
restart_app: restart_app,
|
387
393
|
)
|
388
394
|
end
|
389
395
|
|
@@ -34,6 +34,7 @@ module Twilio
|
|
34
34
|
# @param [String] address_sid A 34 character string that uniquely identifies the Address resource that is associated with this AuthorizationDocument.
|
35
35
|
# @param [String] email Email that this AuthorizationDocument will be sent to for signing.
|
36
36
|
# @param [String] contact_phone_number The contact phone number of the person authorized to sign the Authorization Document.
|
37
|
+
# @param [Array[String]] hosted_number_order_sids A list of HostedNumberOrder sids that this AuthorizationDocument will authorize for hosting phone number capabilities on Twilio's platform.
|
37
38
|
# @param [String] contact_title The title of the person authorized to sign the Authorization Document for this phone number.
|
38
39
|
# @param [Array[String]] cc_emails Email recipients who will be informed when an Authorization Document has been sent and signed.
|
39
40
|
# @return [AuthorizationDocumentInstance] Created AuthorizationDocumentInstance
|
@@ -41,6 +42,7 @@ module Twilio
|
|
41
42
|
address_sid: nil,
|
42
43
|
email: nil,
|
43
44
|
contact_phone_number: nil,
|
45
|
+
hosted_number_order_sids: nil,
|
44
46
|
contact_title: :unset,
|
45
47
|
cc_emails: :unset
|
46
48
|
)
|
@@ -49,6 +51,7 @@ module Twilio
|
|
49
51
|
'AddressSid' => address_sid,
|
50
52
|
'Email' => email,
|
51
53
|
'ContactPhoneNumber' => contact_phone_number,
|
54
|
+
'HostedNumberOrderSids' => Twilio.serialize_list(hosted_number_order_sids) { |e| e },
|
52
55
|
'ContactTitle' => contact_title,
|
53
56
|
'CcEmails' => Twilio.serialize_list(cc_emails) { |e| e },
|
54
57
|
})
|
@@ -331,7 +331,6 @@ module Twilio
|
|
331
331
|
'status' => payload['status'],
|
332
332
|
'failure_reason' => payload['failure_reason'],
|
333
333
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
334
|
-
'sms_capability' => payload['sms_capability'],
|
335
334
|
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
336
335
|
'email' => payload['email'],
|
337
336
|
'cc_emails' => payload['cc_emails'],
|
@@ -424,12 +423,6 @@ module Twilio
|
|
424
423
|
@properties['date_created']
|
425
424
|
end
|
426
425
|
|
427
|
-
##
|
428
|
-
# @return [Boolean] Whether the SMS capability will be hosted on our platform. Can be `true` of `false`.
|
429
|
-
def sms_capability
|
430
|
-
@properties['sms_capability']
|
431
|
-
end
|
432
|
-
|
433
426
|
##
|
434
427
|
# @return [Time] The date that this resource was updated, given as [GMT RFC 2822](http://www.ietf.org/rfc/rfc2822.txt) format.
|
435
428
|
def date_updated
|
@@ -48,6 +48,7 @@ module Twilio
|
|
48
48
|
# @param [String] template_sid The message [template](https://www.twilio.com/docs/verify/api/templates). If provided, will override the default template for the Service. SMS and Voice channels only.
|
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
|
+
# @param [RiskCheck] risk_check
|
51
52
|
# @return [VerificationInstance] Created VerificationInstance
|
52
53
|
def create(
|
53
54
|
to: nil,
|
@@ -64,7 +65,8 @@ module Twilio
|
|
64
65
|
app_hash: :unset,
|
65
66
|
template_sid: :unset,
|
66
67
|
template_custom_substitutions: :unset,
|
67
|
-
device_ip: :unset
|
68
|
+
device_ip: :unset,
|
69
|
+
risk_check: :unset
|
68
70
|
)
|
69
71
|
|
70
72
|
data = Twilio::Values.of({
|
@@ -83,6 +85,7 @@ module Twilio
|
|
83
85
|
'TemplateSid' => template_sid,
|
84
86
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
85
87
|
'DeviceIp' => device_ip,
|
88
|
+
'RiskCheck' => risk_check,
|
86
89
|
})
|
87
90
|
|
88
91
|
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.
|
4
|
+
version: 6.3.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: 2023-
|
11
|
+
date: 2023-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -219,7 +219,6 @@ files:
|
|
219
219
|
- VERSIONS.md
|
220
220
|
- advanced-examples/custom-http-client.md
|
221
221
|
- cluster_spec.rb
|
222
|
-
- conf/cacert.pem
|
223
222
|
- examples/examples.rb
|
224
223
|
- examples/print_call_log.rb
|
225
224
|
- githooks/pre-commit
|
@@ -542,6 +541,7 @@ files:
|
|
542
541
|
- lib/twilio-ruby/rest/messaging/v1/service/short_code.rb
|
543
542
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb
|
544
543
|
- lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb
|
544
|
+
- lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb
|
545
545
|
- lib/twilio-ruby/rest/messaging/v1/usecase.rb
|
546
546
|
- lib/twilio-ruby/rest/messaging_base.rb
|
547
547
|
- lib/twilio-ruby/rest/microvisor.rb
|