twilio-ruby 7.3.2 → 7.3.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +22 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/iam/v1/{new_api_key.rb → key.rb} +20 -20
- data/lib/twilio-ruby/rest/iam/v1.rb +4 -4
- data/lib/twilio-ruby/rest/messaging/v1/request_managed_cert.rb +239 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +15 -0
- data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +8 -2
- data/lib/twilio-ruby/rest/preview_base.rb +0 -5
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task.rb +3 -3
- data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +3 -0
- data/lib/twilio-ruby/rest/verify/v2/service/verification_check.rb +4 -1
- data/lib/twilio-ruby/rest/video/v1/room.rb +14 -14
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -9
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -424
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -408
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -463
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -421
- data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -511
- data/lib/twilio-ruby/rest/preview/deployed_devices.rb +0 -49
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c17c4017594906a17467a382870d6f3b4ebc14e5
|
4
|
+
data.tar.gz: bf14e44d5574b9ea18d6ffaa60aca311bd41699f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed0f369c49bf7a0cda210498762bd1e3ec8452064300d1b0a5bc29c3d7973b046969bb0cb6ce119dc7278aede7d6dc7250dad602f2aff96e3406a1a9d81d17ee
|
7
|
+
data.tar.gz: 1ba9881cce4af6f63fc2fa8721d0e9428fe650824d595e2fa72b33db31c68eb26956951ecf63746c39ae233c590ed5fe8c393fe5dac7aaf58b37c2ef69f499f1
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,28 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2024-10-17] Version 7.3.4
|
5
|
+
--------------------------
|
6
|
+
**Api**
|
7
|
+
- Add response key `country` to fetch AvailablePhoneNumber resource by specific country.
|
8
|
+
|
9
|
+
**Messaging**
|
10
|
+
- Make library and doc public for requestManagedCert Endpoint
|
11
|
+
|
12
|
+
|
13
|
+
[2024-10-03] Version 7.3.3
|
14
|
+
--------------------------
|
15
|
+
**Messaging**
|
16
|
+
- Add A2P external campaign CnpMigration flag
|
17
|
+
|
18
|
+
**Numbers**
|
19
|
+
- Add address sid to portability API
|
20
|
+
|
21
|
+
**Verify**
|
22
|
+
- Add `SnaClientToken` optional parameter on Verification check.
|
23
|
+
- Add `EnableSnaClientToken` optional parameter for Verification creation.
|
24
|
+
|
25
|
+
|
4
26
|
[2024-09-25] Version 7.3.2
|
5
27
|
--------------------------
|
6
28
|
**Accounts**
|
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.3.
|
42
|
+
gem 'twilio-ruby', '~> 7.3.4'
|
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.3.
|
48
|
+
gem install twilio-ruby -v 7.3.4
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -17,12 +17,12 @@ module Twilio
|
|
17
17
|
module REST
|
18
18
|
class Iam < IamBase
|
19
19
|
class V1 < Version
|
20
|
-
class
|
20
|
+
class KeyList < ListResource
|
21
21
|
|
22
22
|
##
|
23
|
-
# Initialize the
|
23
|
+
# Initialize the KeyList
|
24
24
|
# @param [Version] version Version that contains the resource
|
25
|
-
# @return [
|
25
|
+
# @return [KeyList] KeyList
|
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 KeyInstance
|
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 [KeyInstance] Created KeyInstance
|
40
40
|
def create(
|
41
41
|
account_sid: nil,
|
42
42
|
friendly_name: :unset,
|
@@ -54,7 +54,7 @@ module Twilio
|
|
54
54
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
55
55
|
|
56
56
|
payload = @version.create('POST', @uri, data: data, headers: headers)
|
57
|
-
|
57
|
+
KeyInstance.new(
|
58
58
|
@version,
|
59
59
|
payload,
|
60
60
|
)
|
@@ -65,17 +65,17 @@ module Twilio
|
|
65
65
|
|
66
66
|
# Provide a user friendly representation
|
67
67
|
def to_s
|
68
|
-
'#<Twilio.Iam.V1.
|
68
|
+
'#<Twilio.Iam.V1.KeyList>'
|
69
69
|
end
|
70
70
|
end
|
71
71
|
|
72
|
-
class
|
72
|
+
class KeyPage < Page
|
73
73
|
##
|
74
|
-
# Initialize the
|
74
|
+
# Initialize the KeyPage
|
75
75
|
# @param [Version] version Version that contains the resource
|
76
76
|
# @param [Response] response Response from the API
|
77
77
|
# @param [Hash] solution Path solution for the resource
|
78
|
-
# @return [
|
78
|
+
# @return [KeyPage] KeyPage
|
79
79
|
def initialize(version, response, solution)
|
80
80
|
super(version, response)
|
81
81
|
|
@@ -84,29 +84,29 @@ module Twilio
|
|
84
84
|
end
|
85
85
|
|
86
86
|
##
|
87
|
-
# Build an instance of
|
87
|
+
# Build an instance of KeyInstance
|
88
88
|
# @param [Hash] payload Payload response from the API
|
89
|
-
# @return [
|
89
|
+
# @return [KeyInstance] KeyInstance
|
90
90
|
def get_instance(payload)
|
91
|
-
|
91
|
+
KeyInstance.new(@version, payload)
|
92
92
|
end
|
93
93
|
|
94
94
|
##
|
95
95
|
# Provide a user friendly representation
|
96
96
|
def to_s
|
97
|
-
'<Twilio.Iam.V1.
|
97
|
+
'<Twilio.Iam.V1.KeyPage>'
|
98
98
|
end
|
99
99
|
end
|
100
|
-
class
|
100
|
+
class KeyInstance < InstanceResource
|
101
101
|
##
|
102
|
-
# Initialize the
|
102
|
+
# Initialize the KeyInstance
|
103
103
|
# @param [Version] version Version that contains the resource
|
104
104
|
# @param [Hash] payload payload that contains response from Twilio
|
105
105
|
# @param [String] account_sid The SID of the
|
106
|
-
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this
|
106
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this Key
|
107
107
|
# resource.
|
108
108
|
# @param [String] sid The SID of the Call resource to fetch.
|
109
|
-
# @return [
|
109
|
+
# @return [KeyInstance] KeyInstance
|
110
110
|
def initialize(version, payload )
|
111
111
|
super(version)
|
112
112
|
|
@@ -161,13 +161,13 @@ module Twilio
|
|
161
161
|
##
|
162
162
|
# Provide a user friendly representation
|
163
163
|
def to_s
|
164
|
-
"<Twilio.Iam.V1.
|
164
|
+
"<Twilio.Iam.V1.KeyInstance>"
|
165
165
|
end
|
166
166
|
|
167
167
|
##
|
168
168
|
# Provide a detailed, user friendly representation
|
169
169
|
def inspect
|
170
|
-
"<Twilio.Iam.V1.
|
170
|
+
"<Twilio.Iam.V1.KeyInstance>"
|
171
171
|
end
|
172
172
|
end
|
173
173
|
|
@@ -23,7 +23,7 @@ module Twilio
|
|
23
23
|
@version = 'v1'
|
24
24
|
@api_key = nil
|
25
25
|
@get_api_keys = nil
|
26
|
-
@
|
26
|
+
@keys = 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::KeyList]
|
50
|
+
def keys
|
51
|
+
@keys ||= KeyList.new self
|
52
52
|
end
|
53
53
|
##
|
54
54
|
# Provide a user friendly representation
|
@@ -0,0 +1,239 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Messaging
|
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 Messaging < MessagingBase
|
19
|
+
class V1 < Version
|
20
|
+
class RequestManagedCertList < ListResource
|
21
|
+
|
22
|
+
##
|
23
|
+
# Initialize the RequestManagedCertList
|
24
|
+
# @param [Version] version Version that contains the resource
|
25
|
+
# @return [RequestManagedCertList] RequestManagedCertList
|
26
|
+
def initialize(version)
|
27
|
+
super(version)
|
28
|
+
# Path Solution
|
29
|
+
@solution = { }
|
30
|
+
|
31
|
+
|
32
|
+
end
|
33
|
+
|
34
|
+
|
35
|
+
|
36
|
+
# Provide a user friendly representation
|
37
|
+
def to_s
|
38
|
+
'#<Twilio.Messaging.V1.RequestManagedCertList>'
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
class RequestManagedCertContext < InstanceContext
|
44
|
+
##
|
45
|
+
# Initialize the RequestManagedCertContext
|
46
|
+
# @param [Version] version Version that contains the resource
|
47
|
+
# @param [String] domain_sid Unique string used to identify the domain that this certificate should be associated with.
|
48
|
+
# @return [RequestManagedCertContext] RequestManagedCertContext
|
49
|
+
def initialize(version, domain_sid)
|
50
|
+
super(version)
|
51
|
+
|
52
|
+
# Path Solution
|
53
|
+
@solution = { domain_sid: domain_sid, }
|
54
|
+
@uri = "/LinkShortening/Domains/#{@solution[:domain_sid]}/RequestManagedCert"
|
55
|
+
|
56
|
+
|
57
|
+
end
|
58
|
+
##
|
59
|
+
# Update the RequestManagedCertInstance
|
60
|
+
# @return [RequestManagedCertInstance] Updated RequestManagedCertInstance
|
61
|
+
def update
|
62
|
+
|
63
|
+
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
64
|
+
|
65
|
+
payload = @version.update('POST', @uri, headers: headers)
|
66
|
+
RequestManagedCertInstance.new(
|
67
|
+
@version,
|
68
|
+
payload,
|
69
|
+
domain_sid: @solution[:domain_sid],
|
70
|
+
)
|
71
|
+
end
|
72
|
+
|
73
|
+
|
74
|
+
##
|
75
|
+
# Provide a user friendly representation
|
76
|
+
def to_s
|
77
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
78
|
+
"#<Twilio.Messaging.V1.RequestManagedCertContext #{context}>"
|
79
|
+
end
|
80
|
+
|
81
|
+
##
|
82
|
+
# Provide a detailed, user friendly representation
|
83
|
+
def inspect
|
84
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
85
|
+
"#<Twilio.Messaging.V1.RequestManagedCertContext #{context}>"
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
class RequestManagedCertPage < Page
|
90
|
+
##
|
91
|
+
# Initialize the RequestManagedCertPage
|
92
|
+
# @param [Version] version Version that contains the resource
|
93
|
+
# @param [Response] response Response from the API
|
94
|
+
# @param [Hash] solution Path solution for the resource
|
95
|
+
# @return [RequestManagedCertPage] RequestManagedCertPage
|
96
|
+
def initialize(version, response, solution)
|
97
|
+
super(version, response)
|
98
|
+
|
99
|
+
# Path Solution
|
100
|
+
@solution = solution
|
101
|
+
end
|
102
|
+
|
103
|
+
##
|
104
|
+
# Build an instance of RequestManagedCertInstance
|
105
|
+
# @param [Hash] payload Payload response from the API
|
106
|
+
# @return [RequestManagedCertInstance] RequestManagedCertInstance
|
107
|
+
def get_instance(payload)
|
108
|
+
RequestManagedCertInstance.new(@version, payload)
|
109
|
+
end
|
110
|
+
|
111
|
+
##
|
112
|
+
# Provide a user friendly representation
|
113
|
+
def to_s
|
114
|
+
'<Twilio.Messaging.V1.RequestManagedCertPage>'
|
115
|
+
end
|
116
|
+
end
|
117
|
+
class RequestManagedCertInstance < InstanceResource
|
118
|
+
##
|
119
|
+
# Initialize the RequestManagedCertInstance
|
120
|
+
# @param [Version] version Version that contains the resource
|
121
|
+
# @param [Hash] payload payload that contains response from Twilio
|
122
|
+
# @param [String] account_sid The SID of the
|
123
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this RequestManagedCert
|
124
|
+
# resource.
|
125
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
126
|
+
# @return [RequestManagedCertInstance] RequestManagedCertInstance
|
127
|
+
def initialize(version, payload , domain_sid: nil)
|
128
|
+
super(version)
|
129
|
+
|
130
|
+
# Marshaled Properties
|
131
|
+
@properties = {
|
132
|
+
'domain_sid' => payload['domain_sid'],
|
133
|
+
'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
|
134
|
+
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
135
|
+
'date_expires' => Twilio.deserialize_iso8601_datetime(payload['date_expires']),
|
136
|
+
'domain_name' => payload['domain_name'],
|
137
|
+
'certificate_sid' => payload['certificate_sid'],
|
138
|
+
'url' => payload['url'],
|
139
|
+
'managed' => payload['managed'],
|
140
|
+
'requesting' => payload['requesting'],
|
141
|
+
}
|
142
|
+
|
143
|
+
# Context
|
144
|
+
@instance_context = nil
|
145
|
+
@params = { 'domain_sid' => domain_sid || @properties['domain_sid'] , }
|
146
|
+
end
|
147
|
+
|
148
|
+
##
|
149
|
+
# Generate an instance context for the instance, the context is capable of
|
150
|
+
# performing various actions. All instance actions are proxied to the context
|
151
|
+
# @return [RequestManagedCertContext] CallContext for this CallInstance
|
152
|
+
def context
|
153
|
+
unless @instance_context
|
154
|
+
@instance_context = RequestManagedCertContext.new(@version , @params['domain_sid'])
|
155
|
+
end
|
156
|
+
@instance_context
|
157
|
+
end
|
158
|
+
|
159
|
+
##
|
160
|
+
# @return [String] The unique string that we created to identify the Domain resource.
|
161
|
+
def domain_sid
|
162
|
+
@properties['domain_sid']
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# @return [Time] Date that this Domain was last updated.
|
167
|
+
def date_updated
|
168
|
+
@properties['date_updated']
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# @return [Time] Date that this Domain was registered to the Twilio platform to create a new Domain object.
|
173
|
+
def date_created
|
174
|
+
@properties['date_created']
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# @return [Time] Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert.
|
179
|
+
def date_expires
|
180
|
+
@properties['date_expires']
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# @return [String] Full url path for this domain.
|
185
|
+
def domain_name
|
186
|
+
@properties['domain_name']
|
187
|
+
end
|
188
|
+
|
189
|
+
##
|
190
|
+
# @return [String] The unique string that we created to identify this Certificate resource.
|
191
|
+
def certificate_sid
|
192
|
+
@properties['certificate_sid']
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @return [String]
|
197
|
+
def url
|
198
|
+
@properties['url']
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# @return [Boolean] A boolean flag indicating if the certificate is managed by Twilio.
|
203
|
+
def managed
|
204
|
+
@properties['managed']
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# @return [Boolean] A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio.
|
209
|
+
def requesting
|
210
|
+
@properties['requesting']
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# Update the RequestManagedCertInstance
|
215
|
+
# @return [RequestManagedCertInstance] Updated RequestManagedCertInstance
|
216
|
+
def update
|
217
|
+
|
218
|
+
context.update
|
219
|
+
end
|
220
|
+
|
221
|
+
##
|
222
|
+
# Provide a user friendly representation
|
223
|
+
def to_s
|
224
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
225
|
+
"<Twilio.Messaging.V1.RequestManagedCertInstance #{values}>"
|
226
|
+
end
|
227
|
+
|
228
|
+
##
|
229
|
+
# Provide a detailed, user friendly representation
|
230
|
+
def inspect
|
231
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
232
|
+
"<Twilio.Messaging.V1.RequestManagedCertInstance #{values}>"
|
233
|
+
end
|
234
|
+
end
|
235
|
+
|
236
|
+
end
|
237
|
+
end
|
238
|
+
end
|
239
|
+
end
|
@@ -29,6 +29,7 @@ module Twilio
|
|
29
29
|
@external_campaign = nil
|
30
30
|
@linkshortening_messaging_service = nil
|
31
31
|
@linkshortening_messaging_service_domain_association = nil
|
32
|
+
@request_managed_cert = nil
|
32
33
|
@services = nil
|
33
34
|
@tollfree_verifications = nil
|
34
35
|
@usecases = nil
|
@@ -151,6 +152,20 @@ module Twilio
|
|
151
152
|
end
|
152
153
|
end
|
153
154
|
##
|
155
|
+
# @param [String] domain_sid Unique string used to identify the domain that this certificate should be associated with.
|
156
|
+
# @return [Twilio::REST::Messaging::V1::RequestManagedCertContext] if domainSid was passed.
|
157
|
+
# @return [Twilio::REST::Messaging::V1::RequestManagedCertList]
|
158
|
+
def request_managed_cert(domain_sid=:unset)
|
159
|
+
if domain_sid.nil?
|
160
|
+
raise ArgumentError, 'domain_sid cannot be nil'
|
161
|
+
end
|
162
|
+
if domain_sid == :unset
|
163
|
+
@request_managed_cert ||= RequestManagedCertList.new self
|
164
|
+
else
|
165
|
+
RequestManagedCertContext.new(self, domain_sid)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
##
|
154
169
|
# @param [String] sid The SID of the Service resource to fetch.
|
155
170
|
# @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
|
156
171
|
# @return [Twilio::REST::Messaging::V1::ServiceList]
|
@@ -58,13 +58,16 @@ module Twilio
|
|
58
58
|
##
|
59
59
|
# Fetch the PortingPortabilityInstance
|
60
60
|
# @param [String] target_account_sid Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account.
|
61
|
+
# @param [String] address_sid Address Sid of customer to which the number will be ported.
|
61
62
|
# @return [PortingPortabilityInstance] Fetched PortingPortabilityInstance
|
62
63
|
def fetch(
|
63
|
-
target_account_sid: :unset
|
64
|
+
target_account_sid: :unset,
|
65
|
+
address_sid: :unset
|
64
66
|
)
|
65
67
|
|
66
68
|
params = Twilio::Values.of({
|
67
69
|
'TargetAccountSid' => target_account_sid,
|
70
|
+
'AddressSid' => address_sid,
|
68
71
|
})
|
69
72
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|
70
73
|
|
@@ -219,13 +222,16 @@ module Twilio
|
|
219
222
|
##
|
220
223
|
# Fetch the PortingPortabilityInstance
|
221
224
|
# @param [String] target_account_sid Account Sid to which the number will be ported. This can be used to determine if a sub account already has the number in its inventory or a different sub account. If this is not provided, the authenticated account will be assumed to be the target account.
|
225
|
+
# @param [String] address_sid Address Sid of customer to which the number will be ported.
|
222
226
|
# @return [PortingPortabilityInstance] Fetched PortingPortabilityInstance
|
223
227
|
def fetch(
|
224
|
-
target_account_sid: :unset
|
228
|
+
target_account_sid: :unset,
|
229
|
+
address_sid: :unset
|
225
230
|
)
|
226
231
|
|
227
232
|
context.fetch(
|
228
233
|
target_account_sid: target_account_sid,
|
234
|
+
address_sid: address_sid,
|
229
235
|
)
|
230
236
|
end
|
231
237
|
|
@@ -21,17 +21,12 @@ module Twilio
|
|
21
21
|
@base_url = "https://preview.twilio.com"
|
22
22
|
@host = "preview.twilio.com"
|
23
23
|
@port = 443
|
24
|
-
@deployed_devices = nil
|
25
24
|
@hosted_numbers = nil
|
26
25
|
@sync = nil
|
27
26
|
@marketplace = nil
|
28
27
|
@wireless = nil
|
29
28
|
end
|
30
29
|
|
31
|
-
def deployed_devices
|
32
|
-
@deployed_devices ||= Preview::DeployedDevices.new self
|
33
|
-
end
|
34
|
-
|
35
30
|
def hosted_numbers
|
36
31
|
@hosted_numbers ||= Preview::HostedNumbers.new self
|
37
32
|
end
|
@@ -39,7 +39,7 @@ module Twilio
|
|
39
39
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel by passing either its `unique_name` or `sid`. Default value is `default`.
|
40
40
|
# @param [String] workflow_sid The SID of the Workflow that you would like to handle routing for the new Task. If there is only one Workflow defined for the Workspace that you are posting the new task to, this parameter is optional.
|
41
41
|
# @param [String] attributes A URL-encoded JSON string with the attributes of the new task. This value is passed to the Workflow's `assignment_callback_url` when the Task is assigned to a Worker. For example: `{ \\\"task_type\\\": \\\"call\\\", \\\"twilio_call_sid\\\": \\\"CAxxx\\\", \\\"customer_ticket_number\\\": \\\"12345\\\" }`.
|
42
|
-
# @param [Time] virtual_start_time The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future.
|
42
|
+
# @param [Time] virtual_start_time The virtual start time to assign the new task and override the default. When supplied, the new task will have this virtual start time. When not supplied, the new task will have the virtual start time equal to `date_created`. Value can't be in the future or before the year of 1900.
|
43
43
|
# @param [String] routing_target A SID of a Worker, Queue, or Workflow to route a Task to
|
44
44
|
# @param [String] ignore_capacity A boolean that indicates if the Task should respect a Worker's capacity and availability during assignment. This field can only be used when the `RoutingTarget` field is set to a Worker SID. By setting `IgnoreCapacity` to a value of `true`, `1`, or `yes`, the Task will be routed to the Worker without respecting their capacity and availability. Any other value will enforce the Worker's capacity and availability. The default value of `IgnoreCapacity` is `true` when the `RoutingTarget` is set to a Worker SID.
|
45
45
|
# @param [String] task_queue_sid The SID of the TaskQueue in which the Task belongs
|
@@ -286,7 +286,7 @@ module Twilio
|
|
286
286
|
# @param [String] reason The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason.
|
287
287
|
# @param [String] priority The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647).
|
288
288
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`.
|
289
|
-
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future.
|
289
|
+
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future or before the year of 1900.
|
290
290
|
# @param [String] if_match If provided, applies this mutation if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
|
291
291
|
# @return [TaskInstance] Updated TaskInstance
|
292
292
|
def update(
|
@@ -611,7 +611,7 @@ module Twilio
|
|
611
611
|
# @param [String] reason The reason that the Task was canceled or completed. This parameter is required only if the Task is canceled or completed. Setting this value queues the task for deletion and logs the reason.
|
612
612
|
# @param [String] priority The Task's new priority value. When supplied, the Task takes on the specified priority unless it matches a Workflow Target with a Priority set. Value can be 0 to 2^31^ (2,147,483,647).
|
613
613
|
# @param [String] task_channel When MultiTasking is enabled, specify the TaskChannel with the task to update. Can be the TaskChannel's SID or its `unique_name`, such as `voice`, `sms`, or `default`.
|
614
|
-
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future.
|
614
|
+
# @param [Time] virtual_start_time The task's new virtual start time value. When supplied, the Task takes on the specified virtual start time. Value can't be in the future or before the year of 1900.
|
615
615
|
# @param [String] if_match If provided, applies this mutation if (and only if) the [ETag](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/ETag) header of the Task matches the provided value. This matches the semantics of (and is implemented with) the HTTP [If-Match header](https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/If-Match).
|
616
616
|
# @return [TaskInstance] Updated TaskInstance
|
617
617
|
def update(
|
@@ -49,6 +49,7 @@ module Twilio
|
|
49
49
|
# @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.
|
50
50
|
# @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.
|
51
51
|
# @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.
|
52
|
+
# @param [Boolean] enable_sna_client_token An optional Boolean value to indicate the requirement of sna client token in the SNA URL invocation response for added security. This token must match in the Verification Check request to confirm phone number verification.
|
52
53
|
# @param [RiskCheck] risk_check
|
53
54
|
# @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.
|
54
55
|
# @return [VerificationInstance] Created VerificationInstance
|
@@ -68,6 +69,7 @@ module Twilio
|
|
68
69
|
template_sid: :unset,
|
69
70
|
template_custom_substitutions: :unset,
|
70
71
|
device_ip: :unset,
|
72
|
+
enable_sna_client_token: :unset,
|
71
73
|
risk_check: :unset,
|
72
74
|
tags: :unset
|
73
75
|
)
|
@@ -88,6 +90,7 @@ module Twilio
|
|
88
90
|
'TemplateSid' => template_sid,
|
89
91
|
'TemplateCustomSubstitutions' => template_custom_substitutions,
|
90
92
|
'DeviceIp' => device_ip,
|
93
|
+
'EnableSnaClientToken' => enable_sna_client_token,
|
91
94
|
'RiskCheck' => risk_check,
|
92
95
|
'Tags' => tags,
|
93
96
|
})
|
@@ -39,13 +39,15 @@ module Twilio
|
|
39
39
|
# @param [String] verification_sid A SID that uniquely identifies the Verification Check. Either this parameter or the `to` phone number/[email](https://www.twilio.com/docs/verify/email) must be specified.
|
40
40
|
# @param [String] amount The amount of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
|
41
41
|
# @param [String] payee The payee of the associated PSD2 compliant transaction. Requires the PSD2 Service flag enabled.
|
42
|
+
# @param [String] sna_client_token A sna client token received in sna url invocation response needs to be passed in Verification Check request and should match to get successful response.
|
42
43
|
# @return [VerificationCheckInstance] Created VerificationCheckInstance
|
43
44
|
def create(
|
44
45
|
code: :unset,
|
45
46
|
to: :unset,
|
46
47
|
verification_sid: :unset,
|
47
48
|
amount: :unset,
|
48
|
-
payee: :unset
|
49
|
+
payee: :unset,
|
50
|
+
sna_client_token: :unset
|
49
51
|
)
|
50
52
|
|
51
53
|
data = Twilio::Values.of({
|
@@ -54,6 +56,7 @@ module Twilio
|
|
54
56
|
'VerificationSid' => verification_sid,
|
55
57
|
'Amount' => amount,
|
56
58
|
'Payee' => payee,
|
59
|
+
'SnaClientToken' => sna_client_token,
|
57
60
|
})
|
58
61
|
|
59
62
|
headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
|