twilio-ruby 5.73.3 → 5.73.4
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/CHANGES.md +16 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +195 -0
- data/lib/twilio-ruby/rest/content/v1/content.rb +18 -9
- data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +156 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +7 -0
- data/lib/twilio-ruby/rest/flex_api.rb +6 -0
- data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +81 -6
- data/lib/twilio-ruby/rest/messaging/v1/domain_cert.rb +257 -0
- data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +267 -0
- data/lib/twilio-ruby/rest/messaging/v1.rb +34 -0
- data/lib/twilio-ruby/rest/messaging.rb +18 -0
- data/lib/twilio-ruby/rest/microvisor/v1/device.rb +7 -0
- data/lib/twilio-ruby/rest/preview.rb +0 -33
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +6 -8
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel/channel.rb +0 -165
- data/lib/twilio-ruby/rest/preview/trusted_comms/branded_channel.rb +0 -225
- data/lib/twilio-ruby/rest/preview/trusted_comms/brands_information.rb +0 -195
- data/lib/twilio-ruby/rest/preview/trusted_comms/cps.rb +0 -186
- data/lib/twilio-ruby/rest/preview/trusted_comms/current_call.rb +0 -277
- data/lib/twilio-ruby/rest/preview/trusted_comms.rb +0 -65
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 15ff230b629767522e9f5fc479d1f788dba0ad5e
|
4
|
+
data.tar.gz: 9aca0c5930e7f107750a17c671641ac1589409a9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5159b77870cc207317bba46ada0891cf4a3829ba11b1395fe93ed1820f67c82e7bf42359e79f6282f87b8a6ce5318ac9df227abc8128107b855879f9705ca26f
|
7
|
+
data.tar.gz: 464f504b671e3e5232d7d20791438f0e9581bf38f541c8b0ad140f9460c19c1ba7c17540084fb16defe9ae3ed4430572740d96014337384d76a38cedf74d48bd
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2022-11-30] Version 5.73.4
|
5
|
+
---------------------------
|
6
|
+
**Flex**
|
7
|
+
- Adding new `assessments` api in version `v1`
|
8
|
+
|
9
|
+
**Lookups**
|
10
|
+
- Add `identity_match` package to the lookup response
|
11
|
+
|
12
|
+
**Messaging**
|
13
|
+
- Added `validated` parameter to Link Shortening API
|
14
|
+
|
15
|
+
**Serverless**
|
16
|
+
- Add node16 as a valid Build runtime
|
17
|
+
- Add ie1 and au1 as supported regions for all endpoints.
|
18
|
+
|
19
|
+
|
4
20
|
[2022-11-16] Version 5.73.3
|
5
21
|
---------------------------
|
6
22
|
**Library - Chore**
|
data/README.md
CHANGED
@@ -34,13 +34,13 @@ This library supports the following Ruby implementations:
|
|
34
34
|
To install using [Bundler][bundler] grab the latest stable version:
|
35
35
|
|
36
36
|
```ruby
|
37
|
-
gem 'twilio-ruby', '~> 5.73.
|
37
|
+
gem 'twilio-ruby', '~> 5.73.4'
|
38
38
|
```
|
39
39
|
|
40
40
|
To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
|
41
41
|
|
42
42
|
```bash
|
43
|
-
gem install twilio-ruby -v 5.73.
|
43
|
+
gem install twilio-ruby -v 5.73.4
|
44
44
|
```
|
45
45
|
|
46
46
|
To build and install the development branch yourself from the latest source:
|
@@ -0,0 +1,195 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class Content < Domain
|
12
|
+
class V1 < Version
|
13
|
+
class ContentContext < InstanceContext
|
14
|
+
##
|
15
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
16
|
+
class ApprovalFetchList < ListResource
|
17
|
+
##
|
18
|
+
# Initialize the ApprovalFetchList
|
19
|
+
# @param [Version] version Version that contains the resource
|
20
|
+
# @param [String] sid The unique string that that we created to identify the
|
21
|
+
# Content resource.
|
22
|
+
# @return [ApprovalFetchList] ApprovalFetchList
|
23
|
+
def initialize(version, sid: nil)
|
24
|
+
super(version)
|
25
|
+
|
26
|
+
# Path Solution
|
27
|
+
@solution = {sid: sid}
|
28
|
+
end
|
29
|
+
|
30
|
+
##
|
31
|
+
# Provide a user friendly representation
|
32
|
+
def to_s
|
33
|
+
'#<Twilio.Content.V1.ApprovalFetchList>'
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
##
|
38
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
39
|
+
class ApprovalFetchPage < Page
|
40
|
+
##
|
41
|
+
# Initialize the ApprovalFetchPage
|
42
|
+
# @param [Version] version Version that contains the resource
|
43
|
+
# @param [Response] response Response from the API
|
44
|
+
# @param [Hash] solution Path solution for the resource
|
45
|
+
# @return [ApprovalFetchPage] ApprovalFetchPage
|
46
|
+
def initialize(version, response, solution)
|
47
|
+
super(version, response)
|
48
|
+
|
49
|
+
# Path Solution
|
50
|
+
@solution = solution
|
51
|
+
end
|
52
|
+
|
53
|
+
##
|
54
|
+
# Build an instance of ApprovalFetchInstance
|
55
|
+
# @param [Hash] payload Payload response from the API
|
56
|
+
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
57
|
+
def get_instance(payload)
|
58
|
+
ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid], )
|
59
|
+
end
|
60
|
+
|
61
|
+
##
|
62
|
+
# Provide a user friendly representation
|
63
|
+
def to_s
|
64
|
+
'<Twilio.Content.V1.ApprovalFetchPage>'
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
##
|
69
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
70
|
+
class ApprovalFetchContext < InstanceContext
|
71
|
+
##
|
72
|
+
# Initialize the ApprovalFetchContext
|
73
|
+
# @param [Version] version Version that contains the resource
|
74
|
+
# @param [String] sid The Twilio-provided string that uniquely identifies the
|
75
|
+
# Content resource whose approval information to fetch.
|
76
|
+
# @return [ApprovalFetchContext] ApprovalFetchContext
|
77
|
+
def initialize(version, sid)
|
78
|
+
super(version)
|
79
|
+
|
80
|
+
# Path Solution
|
81
|
+
@solution = {sid: sid, }
|
82
|
+
@uri = "/Content/#{@solution[:sid]}/ApprovalRequests"
|
83
|
+
end
|
84
|
+
|
85
|
+
##
|
86
|
+
# Fetch the ApprovalFetchInstance
|
87
|
+
# @return [ApprovalFetchInstance] Fetched ApprovalFetchInstance
|
88
|
+
def fetch
|
89
|
+
payload = @version.fetch('GET', @uri)
|
90
|
+
|
91
|
+
ApprovalFetchInstance.new(@version, payload, sid: @solution[:sid], )
|
92
|
+
end
|
93
|
+
|
94
|
+
##
|
95
|
+
# Provide a user friendly representation
|
96
|
+
def to_s
|
97
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
98
|
+
"#<Twilio.Content.V1.ApprovalFetchContext #{context}>"
|
99
|
+
end
|
100
|
+
|
101
|
+
##
|
102
|
+
# Provide a detailed, user friendly representation
|
103
|
+
def inspect
|
104
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
105
|
+
"#<Twilio.Content.V1.ApprovalFetchContext #{context}>"
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
##
|
110
|
+
# PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
|
111
|
+
class ApprovalFetchInstance < InstanceResource
|
112
|
+
##
|
113
|
+
# Initialize the ApprovalFetchInstance
|
114
|
+
# @param [Version] version Version that contains the resource
|
115
|
+
# @param [Hash] payload payload that contains response from Twilio
|
116
|
+
# @param [String] sid The unique string that that we created to identify the
|
117
|
+
# Content resource.
|
118
|
+
# @return [ApprovalFetchInstance] ApprovalFetchInstance
|
119
|
+
def initialize(version, payload, sid: nil)
|
120
|
+
super(version)
|
121
|
+
|
122
|
+
# Marshaled Properties
|
123
|
+
@properties = {
|
124
|
+
'sid' => payload['sid'],
|
125
|
+
'account_sid' => payload['account_sid'],
|
126
|
+
'whatsapp' => payload['whatsapp'],
|
127
|
+
'url' => payload['url'],
|
128
|
+
}
|
129
|
+
|
130
|
+
# Context
|
131
|
+
@instance_context = nil
|
132
|
+
@params = {'sid' => sid, }
|
133
|
+
end
|
134
|
+
|
135
|
+
##
|
136
|
+
# Generate an instance context for the instance, the context is capable of
|
137
|
+
# performing various actions. All instance actions are proxied to the context
|
138
|
+
# @return [ApprovalFetchContext] ApprovalFetchContext for this ApprovalFetchInstance
|
139
|
+
def context
|
140
|
+
unless @instance_context
|
141
|
+
@instance_context = ApprovalFetchContext.new(@version, @params['sid'], )
|
142
|
+
end
|
143
|
+
@instance_context
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# @return [String] The unique string that identifies the Content resource
|
148
|
+
def sid
|
149
|
+
@properties['sid']
|
150
|
+
end
|
151
|
+
|
152
|
+
##
|
153
|
+
# @return [String] The SID of the Account that created the Content resource
|
154
|
+
def account_sid
|
155
|
+
@properties['account_sid']
|
156
|
+
end
|
157
|
+
|
158
|
+
##
|
159
|
+
# @return [Hash] Contains the whatsapp approval information for the Content resource
|
160
|
+
def whatsapp
|
161
|
+
@properties['whatsapp']
|
162
|
+
end
|
163
|
+
|
164
|
+
##
|
165
|
+
# @return [String] The URL of the resource, relative to `https://content.twilio.com`
|
166
|
+
def url
|
167
|
+
@properties['url']
|
168
|
+
end
|
169
|
+
|
170
|
+
##
|
171
|
+
# Fetch the ApprovalFetchInstance
|
172
|
+
# @return [ApprovalFetchInstance] Fetched ApprovalFetchInstance
|
173
|
+
def fetch
|
174
|
+
context.fetch
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# Provide a user friendly representation
|
179
|
+
def to_s
|
180
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
181
|
+
"<Twilio.Content.V1.ApprovalFetchInstance #{values}>"
|
182
|
+
end
|
183
|
+
|
184
|
+
##
|
185
|
+
# Provide a detailed, user friendly representation
|
186
|
+
def inspect
|
187
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
188
|
+
"<Twilio.Content.V1.ApprovalFetchInstance #{values}>"
|
189
|
+
end
|
190
|
+
end
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
end
|
195
|
+
end
|
@@ -25,15 +25,6 @@ module Twilio
|
|
25
25
|
@uri = "/Content"
|
26
26
|
end
|
27
27
|
|
28
|
-
##
|
29
|
-
# Create the ContentInstance
|
30
|
-
# @return [ContentInstance] Created ContentInstance
|
31
|
-
def create
|
32
|
-
payload = @version.create('POST', @uri)
|
33
|
-
|
34
|
-
ContentInstance.new(@version, payload, )
|
35
|
-
end
|
36
|
-
|
37
28
|
##
|
38
29
|
# Lists ContentInstance records from the API as a list.
|
39
30
|
# Unlike stream(), this operation is eager and will load `limit` records into
|
@@ -167,6 +158,9 @@ module Twilio
|
|
167
158
|
# Path Solution
|
168
159
|
@solution = {sid: sid, }
|
169
160
|
@uri = "/Content/#{@solution[:sid]}"
|
161
|
+
|
162
|
+
# Dependents
|
163
|
+
@approval_fetch = nil
|
170
164
|
end
|
171
165
|
|
172
166
|
##
|
@@ -185,6 +179,14 @@ module Twilio
|
|
185
179
|
@version.delete('DELETE', @uri)
|
186
180
|
end
|
187
181
|
|
182
|
+
##
|
183
|
+
# Access the approval_fetch
|
184
|
+
# @return [ApprovalFetchList]
|
185
|
+
# @return [ApprovalFetchContext]
|
186
|
+
def approval_fetch
|
187
|
+
ApprovalFetchContext.new(@version, @solution[:sid], )
|
188
|
+
end
|
189
|
+
|
188
190
|
##
|
189
191
|
# Provide a user friendly representation
|
190
192
|
def to_s
|
@@ -317,6 +319,13 @@ module Twilio
|
|
317
319
|
context.delete
|
318
320
|
end
|
319
321
|
|
322
|
+
##
|
323
|
+
# Access the approval_fetch
|
324
|
+
# @return [approval_fetch] approval_fetch
|
325
|
+
def approval_fetch
|
326
|
+
context.approval_fetch
|
327
|
+
end
|
328
|
+
|
320
329
|
##
|
321
330
|
# Provide a user friendly representation
|
322
331
|
def to_s
|
@@ -0,0 +1,156 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# \ / _ _ _| _ _
|
4
|
+
# | (_)\/(_)(_|\/| |(/_ v1.0.0
|
5
|
+
# / /
|
6
|
+
#
|
7
|
+
# frozen_string_literal: true
|
8
|
+
|
9
|
+
module Twilio
|
10
|
+
module REST
|
11
|
+
class FlexApi < Domain
|
12
|
+
class V1 < Version
|
13
|
+
class AssessmentsList < ListResource
|
14
|
+
##
|
15
|
+
# Initialize the AssessmentsList
|
16
|
+
# @param [Version] version Version that contains the resource
|
17
|
+
# @return [AssessmentsList] AssessmentsList
|
18
|
+
def initialize(version)
|
19
|
+
super(version)
|
20
|
+
|
21
|
+
# Path Solution
|
22
|
+
@solution = {}
|
23
|
+
end
|
24
|
+
|
25
|
+
##
|
26
|
+
# Provide a user friendly representation
|
27
|
+
def to_s
|
28
|
+
'#<Twilio.FlexApi.V1.AssessmentsList>'
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
class AssessmentsPage < Page
|
33
|
+
##
|
34
|
+
# Initialize the AssessmentsPage
|
35
|
+
# @param [Version] version Version that contains the resource
|
36
|
+
# @param [Response] response Response from the API
|
37
|
+
# @param [Hash] solution Path solution for the resource
|
38
|
+
# @return [AssessmentsPage] AssessmentsPage
|
39
|
+
def initialize(version, response, solution)
|
40
|
+
super(version, response)
|
41
|
+
|
42
|
+
# Path Solution
|
43
|
+
@solution = solution
|
44
|
+
end
|
45
|
+
|
46
|
+
##
|
47
|
+
# Build an instance of AssessmentsInstance
|
48
|
+
# @param [Hash] payload Payload response from the API
|
49
|
+
# @return [AssessmentsInstance] AssessmentsInstance
|
50
|
+
def get_instance(payload)
|
51
|
+
AssessmentsInstance.new(@version, payload, )
|
52
|
+
end
|
53
|
+
|
54
|
+
##
|
55
|
+
# Provide a user friendly representation
|
56
|
+
def to_s
|
57
|
+
'<Twilio.FlexApi.V1.AssessmentsPage>'
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
class AssessmentsContext < InstanceContext
|
62
|
+
##
|
63
|
+
# Initialize the AssessmentsContext
|
64
|
+
# @param [Version] version Version that contains the resource
|
65
|
+
# @return [AssessmentsContext] AssessmentsContext
|
66
|
+
def initialize(version)
|
67
|
+
super(version)
|
68
|
+
|
69
|
+
# Path Solution
|
70
|
+
@solution = {}
|
71
|
+
@uri = "/Accounts/Assessments"
|
72
|
+
end
|
73
|
+
|
74
|
+
##
|
75
|
+
# Create the AssessmentsInstance
|
76
|
+
# @return [AssessmentsInstance] Created AssessmentsInstance
|
77
|
+
def create
|
78
|
+
payload = @version.create('POST', @uri)
|
79
|
+
|
80
|
+
AssessmentsInstance.new(@version, payload, )
|
81
|
+
end
|
82
|
+
|
83
|
+
##
|
84
|
+
# Provide a user friendly representation
|
85
|
+
def to_s
|
86
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
87
|
+
"#<Twilio.FlexApi.V1.AssessmentsContext #{context}>"
|
88
|
+
end
|
89
|
+
|
90
|
+
##
|
91
|
+
# Provide a detailed, user friendly representation
|
92
|
+
def inspect
|
93
|
+
context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
|
94
|
+
"#<Twilio.FlexApi.V1.AssessmentsContext #{context}>"
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
class AssessmentsInstance < InstanceResource
|
99
|
+
##
|
100
|
+
# Initialize the AssessmentsInstance
|
101
|
+
# @param [Version] version Version that contains the resource
|
102
|
+
# @param [Hash] payload payload that contains response from Twilio
|
103
|
+
# @return [AssessmentsInstance] AssessmentsInstance
|
104
|
+
def initialize(version, payload)
|
105
|
+
super(version)
|
106
|
+
|
107
|
+
# Marshaled Properties
|
108
|
+
@properties = {'url' => payload['url'], }
|
109
|
+
|
110
|
+
# Context
|
111
|
+
@instance_context = nil
|
112
|
+
@params = {}
|
113
|
+
end
|
114
|
+
|
115
|
+
##
|
116
|
+
# Generate an instance context for the instance, the context is capable of
|
117
|
+
# performing various actions. All instance actions are proxied to the context
|
118
|
+
# @return [AssessmentsContext] AssessmentsContext for this AssessmentsInstance
|
119
|
+
def context
|
120
|
+
unless @instance_context
|
121
|
+
@instance_context = AssessmentsContext.new(@version, )
|
122
|
+
end
|
123
|
+
@instance_context
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# @return [String] The URL of this resource.
|
128
|
+
def url
|
129
|
+
@properties['url']
|
130
|
+
end
|
131
|
+
|
132
|
+
##
|
133
|
+
# Create the AssessmentsInstance
|
134
|
+
# @return [AssessmentsInstance] Created AssessmentsInstance
|
135
|
+
def create
|
136
|
+
context.create
|
137
|
+
end
|
138
|
+
|
139
|
+
##
|
140
|
+
# Provide a user friendly representation
|
141
|
+
def to_s
|
142
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
143
|
+
"<Twilio.FlexApi.V1.AssessmentsInstance #{values}>"
|
144
|
+
end
|
145
|
+
|
146
|
+
##
|
147
|
+
# Provide a detailed, user friendly representation
|
148
|
+
def inspect
|
149
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
150
|
+
"<Twilio.FlexApi.V1.AssessmentsInstance #{values}>"
|
151
|
+
end
|
152
|
+
end
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
@@ -15,6 +15,7 @@ module Twilio
|
|
15
15
|
def initialize(domain)
|
16
16
|
super
|
17
17
|
@version = 'v1'
|
18
|
+
@assessments = nil
|
18
19
|
@channel = nil
|
19
20
|
@configuration = nil
|
20
21
|
@flex_flow = nil
|
@@ -24,6 +25,12 @@ module Twilio
|
|
24
25
|
@web_channel = nil
|
25
26
|
end
|
26
27
|
|
28
|
+
##
|
29
|
+
# @return [Twilio::REST::Flex_api::V1::AssessmentsContext]
|
30
|
+
def assessments
|
31
|
+
@assessments ||= AssessmentsContext.new self
|
32
|
+
end
|
33
|
+
|
27
34
|
##
|
28
35
|
# @param [String] sid The SID of the Flex chat channel resource to fetch.
|
29
36
|
# @return [Twilio::REST::Flex_api::V1::ChannelContext] if sid was passed.
|
@@ -28,6 +28,12 @@ module Twilio
|
|
28
28
|
@v1 ||= V1.new self
|
29
29
|
end
|
30
30
|
|
31
|
+
##
|
32
|
+
# @return [Twilio::REST::Flex_api::V1::AssessmentsInstance]
|
33
|
+
def assessments
|
34
|
+
self.v1.assessments()
|
35
|
+
end
|
36
|
+
|
31
37
|
##
|
32
38
|
# @param [String] sid The unique string that we created to identify the Channel
|
33
39
|
# resource.
|
@@ -83,13 +83,47 @@ module Twilio
|
|
83
83
|
# Fetch the PhoneNumberInstance
|
84
84
|
# @param [String] fields A comma-separated list of fields to return. Possible
|
85
85
|
# values are caller_name, sim_swap, call_forwarding, live_activity,
|
86
|
-
# line_type_intelligence.
|
86
|
+
# line_type_intelligence, identity_match.
|
87
87
|
# @param [String] country_code The {country
|
88
88
|
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] used if the phone number
|
89
89
|
# provided is in national format.
|
90
|
+
# @param [String] first_name User’s first name. This query parameter is only used
|
91
|
+
# (optionally) for identity_match package requests.
|
92
|
+
# @param [String] last_name User’s last name. This query parameter is only used
|
93
|
+
# (optionally) for identity_match package requests.
|
94
|
+
# @param [String] address_line_1 User’s first address line. This query parameter
|
95
|
+
# is only used (optionally) for identity_match package requests.
|
96
|
+
# @param [String] address_line_2 User’s second address line. This query parameter
|
97
|
+
# is only used (optionally) for identity_match package requests.
|
98
|
+
# @param [String] city User’s city. This query parameter is only used (optionally)
|
99
|
+
# for identity_match package requests.
|
100
|
+
# @param [String] state User’s country subdivision, such as state, province, or
|
101
|
+
# locality. This query parameter is only used (optionally) for identity_match
|
102
|
+
# package requests.
|
103
|
+
# @param [String] postal_code User’s postal zip code. This query parameter is only
|
104
|
+
# used (optionally) for identity_match package requests.
|
105
|
+
# @param [String] address_country_code User’s country, up to two characters. This
|
106
|
+
# query parameter is only used (optionally) for identity_match package requests.
|
107
|
+
# @param [String] national_id User’s national ID, such as SSN or Passport ID. This
|
108
|
+
# query parameter is only used (optionally) for identity_match package requests.
|
109
|
+
# @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This
|
110
|
+
# query parameter is only used (optionally) for identity_match package requests.
|
90
111
|
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
|
91
|
-
def fetch(fields: :unset, country_code: :unset)
|
92
|
-
params = Twilio::Values.of({
|
112
|
+
def fetch(fields: :unset, country_code: :unset, first_name: :unset, last_name: :unset, address_line_1: :unset, address_line_2: :unset, city: :unset, state: :unset, postal_code: :unset, address_country_code: :unset, national_id: :unset, date_of_birth: :unset)
|
113
|
+
params = Twilio::Values.of({
|
114
|
+
'Fields' => fields,
|
115
|
+
'CountryCode' => country_code,
|
116
|
+
'FirstName' => first_name,
|
117
|
+
'LastName' => last_name,
|
118
|
+
'AddressLine1' => address_line_1,
|
119
|
+
'AddressLine2' => address_line_2,
|
120
|
+
'City' => city,
|
121
|
+
'State' => state,
|
122
|
+
'PostalCode' => postal_code,
|
123
|
+
'AddressCountryCode' => address_country_code,
|
124
|
+
'NationalId' => national_id,
|
125
|
+
'DateOfBirth' => date_of_birth,
|
126
|
+
})
|
93
127
|
|
94
128
|
payload = @version.fetch('GET', @uri, params: params)
|
95
129
|
|
@@ -137,6 +171,7 @@ module Twilio
|
|
137
171
|
'call_forwarding' => payload['call_forwarding'],
|
138
172
|
'live_activity' => payload['live_activity'],
|
139
173
|
'line_type_intelligence' => payload['line_type_intelligence'],
|
174
|
+
'identity_match' => payload['identity_match'],
|
140
175
|
'url' => payload['url'],
|
141
176
|
}
|
142
177
|
|
@@ -222,6 +257,12 @@ module Twilio
|
|
222
257
|
@properties['line_type_intelligence']
|
223
258
|
end
|
224
259
|
|
260
|
+
##
|
261
|
+
# @return [Hash] An object that contains identity match information
|
262
|
+
def identity_match
|
263
|
+
@properties['identity_match']
|
264
|
+
end
|
265
|
+
|
225
266
|
##
|
226
267
|
# @return [String] The absolute URL of the resource
|
227
268
|
def url
|
@@ -232,13 +273,47 @@ module Twilio
|
|
232
273
|
# Fetch the PhoneNumberInstance
|
233
274
|
# @param [String] fields A comma-separated list of fields to return. Possible
|
234
275
|
# values are caller_name, sim_swap, call_forwarding, live_activity,
|
235
|
-
# line_type_intelligence.
|
276
|
+
# line_type_intelligence, identity_match.
|
236
277
|
# @param [String] country_code The {country
|
237
278
|
# code}[https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2] used if the phone number
|
238
279
|
# provided is in national format.
|
280
|
+
# @param [String] first_name User’s first name. This query parameter is only used
|
281
|
+
# (optionally) for identity_match package requests.
|
282
|
+
# @param [String] last_name User’s last name. This query parameter is only used
|
283
|
+
# (optionally) for identity_match package requests.
|
284
|
+
# @param [String] address_line_1 User’s first address line. This query parameter
|
285
|
+
# is only used (optionally) for identity_match package requests.
|
286
|
+
# @param [String] address_line_2 User’s second address line. This query parameter
|
287
|
+
# is only used (optionally) for identity_match package requests.
|
288
|
+
# @param [String] city User’s city. This query parameter is only used (optionally)
|
289
|
+
# for identity_match package requests.
|
290
|
+
# @param [String] state User’s country subdivision, such as state, province, or
|
291
|
+
# locality. This query parameter is only used (optionally) for identity_match
|
292
|
+
# package requests.
|
293
|
+
# @param [String] postal_code User’s postal zip code. This query parameter is only
|
294
|
+
# used (optionally) for identity_match package requests.
|
295
|
+
# @param [String] address_country_code User’s country, up to two characters. This
|
296
|
+
# query parameter is only used (optionally) for identity_match package requests.
|
297
|
+
# @param [String] national_id User’s national ID, such as SSN or Passport ID. This
|
298
|
+
# query parameter is only used (optionally) for identity_match package requests.
|
299
|
+
# @param [String] date_of_birth User’s date of birth, in YYYYMMDD format. This
|
300
|
+
# query parameter is only used (optionally) for identity_match package requests.
|
239
301
|
# @return [PhoneNumberInstance] Fetched PhoneNumberInstance
|
240
|
-
def fetch(fields: :unset, country_code: :unset)
|
241
|
-
context.fetch(
|
302
|
+
def fetch(fields: :unset, country_code: :unset, first_name: :unset, last_name: :unset, address_line_1: :unset, address_line_2: :unset, city: :unset, state: :unset, postal_code: :unset, address_country_code: :unset, national_id: :unset, date_of_birth: :unset)
|
303
|
+
context.fetch(
|
304
|
+
fields: fields,
|
305
|
+
country_code: country_code,
|
306
|
+
first_name: first_name,
|
307
|
+
last_name: last_name,
|
308
|
+
address_line_1: address_line_1,
|
309
|
+
address_line_2: address_line_2,
|
310
|
+
city: city,
|
311
|
+
state: state,
|
312
|
+
postal_code: postal_code,
|
313
|
+
address_country_code: address_country_code,
|
314
|
+
national_id: national_id,
|
315
|
+
date_of_birth: date_of_birth,
|
316
|
+
)
|
242
317
|
end
|
243
318
|
|
244
319
|
##
|