twilio-ruby 6.8.0 → 6.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +18 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +187 -0
- data/lib/twilio-ruby/rest/flex_api/v1.rb +6 -0
- data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +7 -0
- data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +16 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +232 -0
- data/lib/twilio-ruby/rest/trusthub/v1.rb +15 -0
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 37aec8731226e8f1fb72e201f37238afeb644208
|
4
|
+
data.tar.gz: 7ca93edd7f9b3466bc70e6c34da25f184559767e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8c16240f3b8e169ef9dee9b1eaf4d363cd901748a1207a2c9d631785983a683603989793cae092ed55d4e075285cac8cdebdd75fdb177368d12c0bcb49661597
|
7
|
+
data.tar.gz: c670f597c3bc5c7de93898c1372309bab764d1f945b407d8f42855f5c4f0b97299856200505d3c288346b73d435f909220372ca6ba40ebe9e25958e800d46e3d
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,24 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-11-06] Version 6.8.1
|
5
|
+
--------------------------
|
6
|
+
**Flex**
|
7
|
+
- Adding `provisioning_status` for Email Manager
|
8
|
+
|
9
|
+
**Intelligence**
|
10
|
+
- Add text-generation operator (for example conversation summary) results to existing OperatorResults collection.
|
11
|
+
|
12
|
+
**Messaging**
|
13
|
+
- Add DELETE support to Tollfree Verification resource
|
14
|
+
|
15
|
+
**Serverless**
|
16
|
+
- Add node18 as a valid Build runtime
|
17
|
+
|
18
|
+
**Verify**
|
19
|
+
- Update Verify TOTP maturity to GA.
|
20
|
+
|
21
|
+
|
4
22
|
[2023-10-19] Version 6.8.0
|
5
23
|
--------------------------
|
6
24
|
**Library - Chore**
|
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.1'
|
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.1
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -0,0 +1,187 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Flex
|
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 FlexApi < FlexApiBase
|
19
|
+
class V1 < Version
|
20
|
+
class ProvisioningStatusList < ListResource
|
21
|
+
##
|
22
|
+
# Initialize the ProvisioningStatusList
|
23
|
+
# @param [Version] version Version that contains the resource
|
24
|
+
# @return [ProvisioningStatusList] ProvisioningStatusList
|
25
|
+
def initialize(version)
|
26
|
+
super(version)
|
27
|
+
# Path Solution
|
28
|
+
@solution = { }
|
29
|
+
|
30
|
+
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
|
35
|
+
# Provide a user friendly representation
|
36
|
+
def to_s
|
37
|
+
'#<Twilio.FlexApi.V1.ProvisioningStatusList>'
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
|
42
|
+
##
|
43
|
+
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
44
|
+
class ProvisioningStatusContext < InstanceContext
|
45
|
+
##
|
46
|
+
# Initialize the ProvisioningStatusContext
|
47
|
+
# @param [Version] version Version that contains the resource
|
48
|
+
# @return [ProvisioningStatusContext] ProvisioningStatusContext
|
49
|
+
def initialize(version)
|
50
|
+
super(version)
|
51
|
+
|
52
|
+
# Path Solution
|
53
|
+
@solution = { }
|
54
|
+
@uri = "/account/provision/status"
|
55
|
+
|
56
|
+
|
57
|
+
end
|
58
|
+
##
|
59
|
+
# Fetch the ProvisioningStatusInstance
|
60
|
+
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance
|
61
|
+
def fetch
|
62
|
+
|
63
|
+
payload = @version.fetch('GET', @uri)
|
64
|
+
ProvisioningStatusInstance.new(
|
65
|
+
@version,
|
66
|
+
payload,
|
67
|
+
)
|
68
|
+
end
|
69
|
+
|
70
|
+
|
71
|
+
##
|
72
|
+
# Provide a user friendly representation
|
73
|
+
def to_s
|
74
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
75
|
+
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>"
|
76
|
+
end
|
77
|
+
|
78
|
+
##
|
79
|
+
# Provide a detailed, user friendly representation
|
80
|
+
def inspect
|
81
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
82
|
+
"#<Twilio.FlexApi.V1.ProvisioningStatusContext #{context}>"
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
class ProvisioningStatusPage < Page
|
87
|
+
##
|
88
|
+
# Initialize the ProvisioningStatusPage
|
89
|
+
# @param [Version] version Version that contains the resource
|
90
|
+
# @param [Response] response Response from the API
|
91
|
+
# @param [Hash] solution Path solution for the resource
|
92
|
+
# @return [ProvisioningStatusPage] ProvisioningStatusPage
|
93
|
+
def initialize(version, response, solution)
|
94
|
+
super(version, response)
|
95
|
+
|
96
|
+
# Path Solution
|
97
|
+
@solution = solution
|
98
|
+
end
|
99
|
+
|
100
|
+
##
|
101
|
+
# Build an instance of ProvisioningStatusInstance
|
102
|
+
# @param [Hash] payload Payload response from the API
|
103
|
+
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
|
104
|
+
def get_instance(payload)
|
105
|
+
ProvisioningStatusInstance.new(@version, payload)
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# Provide a user friendly representation
|
110
|
+
def to_s
|
111
|
+
'<Twilio.FlexApi.V1.ProvisioningStatusPage>'
|
112
|
+
end
|
113
|
+
end
|
114
|
+
class ProvisioningStatusInstance < InstanceResource
|
115
|
+
##
|
116
|
+
# Initialize the ProvisioningStatusInstance
|
117
|
+
# @param [Version] version Version that contains the resource
|
118
|
+
# @param [Hash] payload payload that contains response from Twilio
|
119
|
+
# @param [String] account_sid The SID of the
|
120
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ProvisioningStatus
|
121
|
+
# resource.
|
122
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
123
|
+
# @return [ProvisioningStatusInstance] ProvisioningStatusInstance
|
124
|
+
def initialize(version, payload )
|
125
|
+
super(version)
|
126
|
+
|
127
|
+
# Marshaled Properties
|
128
|
+
@properties = {
|
129
|
+
'status' => payload['status'],
|
130
|
+
'url' => payload['url'],
|
131
|
+
}
|
132
|
+
|
133
|
+
# Context
|
134
|
+
@instance_context = nil
|
135
|
+
@params = { }
|
136
|
+
end
|
137
|
+
|
138
|
+
##
|
139
|
+
# Generate an instance context for the instance, the context is capable of
|
140
|
+
# performing various actions. All instance actions are proxied to the context
|
141
|
+
# @return [ProvisioningStatusContext] CallContext for this CallInstance
|
142
|
+
def context
|
143
|
+
unless @instance_context
|
144
|
+
@instance_context = ProvisioningStatusContext.new(@version )
|
145
|
+
end
|
146
|
+
@instance_context
|
147
|
+
end
|
148
|
+
|
149
|
+
##
|
150
|
+
# @return [Status]
|
151
|
+
def status
|
152
|
+
@properties['status']
|
153
|
+
end
|
154
|
+
|
155
|
+
##
|
156
|
+
# @return [String] The absolute URL of the resource.
|
157
|
+
def url
|
158
|
+
@properties['url']
|
159
|
+
end
|
160
|
+
|
161
|
+
##
|
162
|
+
# Fetch the ProvisioningStatusInstance
|
163
|
+
# @return [ProvisioningStatusInstance] Fetched ProvisioningStatusInstance
|
164
|
+
def fetch
|
165
|
+
|
166
|
+
context.fetch
|
167
|
+
end
|
168
|
+
|
169
|
+
##
|
170
|
+
# Provide a user friendly representation
|
171
|
+
def to_s
|
172
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
173
|
+
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>"
|
174
|
+
end
|
175
|
+
|
176
|
+
##
|
177
|
+
# Provide a detailed, user friendly representation
|
178
|
+
def inspect
|
179
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
180
|
+
"<Twilio.FlexApi.V1.ProvisioningStatusInstance #{values}>"
|
181
|
+
end
|
182
|
+
end
|
183
|
+
|
184
|
+
end
|
185
|
+
end
|
186
|
+
end
|
187
|
+
end
|
@@ -36,6 +36,7 @@ module Twilio
|
|
36
36
|
@insights_settings_comment = nil
|
37
37
|
@insights_user_roles = nil
|
38
38
|
@interaction = nil
|
39
|
+
@provisioning_status = nil
|
39
40
|
@web_channel = nil
|
40
41
|
end
|
41
42
|
|
@@ -178,6 +179,11 @@ module Twilio
|
|
178
179
|
end
|
179
180
|
end
|
180
181
|
##
|
182
|
+
# @return [Twilio::REST::FlexApi::V1::provisioningStatusContext]
|
183
|
+
def provisioning_status
|
184
|
+
@provisioning_status ||= ProvisioningStatusContext.new self
|
185
|
+
end
|
186
|
+
##
|
181
187
|
# @param [String] sid The SID of the WebChannel resource to fetch.
|
182
188
|
# @return [Twilio::REST::FlexApi::V1::WebChannelContext] if sid was passed.
|
183
189
|
# @return [Twilio::REST::FlexApi::V1::WebChannelList]
|
@@ -240,6 +240,7 @@ module Twilio
|
|
240
240
|
'predicted_probability' => payload['predicted_probability'],
|
241
241
|
'label_probabilities' => payload['label_probabilities'],
|
242
242
|
'extract_results' => payload['extract_results'],
|
243
|
+
'text_generation_results' => payload['text_generation_results'],
|
243
244
|
'transcript_sid' => payload['transcript_sid'],
|
244
245
|
'url' => payload['url'],
|
245
246
|
}
|
@@ -332,6 +333,12 @@ module Twilio
|
|
332
333
|
@properties['extract_results']
|
333
334
|
end
|
334
335
|
|
336
|
+
##
|
337
|
+
# @return [Hash] Output of a text generation operator for example Conversation Sumamary.
|
338
|
+
def text_generation_results
|
339
|
+
@properties['text_generation_results']
|
340
|
+
end
|
341
|
+
|
335
342
|
##
|
336
343
|
# @return [String] A 34 character string that uniquely identifies this Transcript.
|
337
344
|
def transcript_sid
|
@@ -237,6 +237,14 @@ module Twilio
|
|
237
237
|
|
238
238
|
|
239
239
|
end
|
240
|
+
##
|
241
|
+
# Delete the TollfreeVerificationInstance
|
242
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
243
|
+
def delete
|
244
|
+
|
245
|
+
@version.delete('DELETE', @uri)
|
246
|
+
end
|
247
|
+
|
240
248
|
##
|
241
249
|
# Fetch the TollfreeVerificationInstance
|
242
250
|
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
|
@@ -649,6 +657,14 @@ module Twilio
|
|
649
657
|
@properties['external_reference_id']
|
650
658
|
end
|
651
659
|
|
660
|
+
##
|
661
|
+
# Delete the TollfreeVerificationInstance
|
662
|
+
# @return [Boolean] True if delete succeeds, false otherwise
|
663
|
+
def delete
|
664
|
+
|
665
|
+
context.delete
|
666
|
+
end
|
667
|
+
|
652
668
|
##
|
653
669
|
# Fetch the TollfreeVerificationInstance
|
654
670
|
# @return [TollfreeVerificationInstance] Fetched TollfreeVerificationInstance
|
@@ -0,0 +1,232 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Trusthub
|
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 Trusthub < TrusthubBase
|
19
|
+
class V1 < Version
|
20
|
+
class ComplianceTollfreeInquiriesList < ListResource
|
21
|
+
##
|
22
|
+
# Initialize the ComplianceTollfreeInquiriesList
|
23
|
+
# @param [Version] version Version that contains the resource
|
24
|
+
# @return [ComplianceTollfreeInquiriesList] ComplianceTollfreeInquiriesList
|
25
|
+
def initialize(version)
|
26
|
+
super(version)
|
27
|
+
# Path Solution
|
28
|
+
@solution = { }
|
29
|
+
@uri = "/ComplianceInquiries/Tollfree/Initialize"
|
30
|
+
|
31
|
+
end
|
32
|
+
##
|
33
|
+
# Create the ComplianceTollfreeInquiriesInstance
|
34
|
+
# @param [String] did The Tollfree phone number to be verified
|
35
|
+
# @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance
|
36
|
+
def create(
|
37
|
+
did: nil
|
38
|
+
)
|
39
|
+
|
40
|
+
data = Twilio::Values.of({
|
41
|
+
'Did' => did,
|
42
|
+
})
|
43
|
+
|
44
|
+
payload = @version.create('POST', @uri, data: data)
|
45
|
+
ComplianceTollfreeInquiriesInstance.new(
|
46
|
+
@version,
|
47
|
+
payload,
|
48
|
+
)
|
49
|
+
end
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
# Provide a user friendly representation
|
55
|
+
def to_s
|
56
|
+
'#<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesList>'
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
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
|
+
class ComplianceTollfreeInquiriesPage < Page
|
113
|
+
##
|
114
|
+
# Initialize the ComplianceTollfreeInquiriesPage
|
115
|
+
# @param [Version] version Version that contains the resource
|
116
|
+
# @param [Response] response Response from the API
|
117
|
+
# @param [Hash] solution Path solution for the resource
|
118
|
+
# @return [ComplianceTollfreeInquiriesPage] ComplianceTollfreeInquiriesPage
|
119
|
+
def initialize(version, response, solution)
|
120
|
+
super(version, response)
|
121
|
+
|
122
|
+
# Path Solution
|
123
|
+
@solution = solution
|
124
|
+
end
|
125
|
+
|
126
|
+
##
|
127
|
+
# Build an instance of ComplianceTollfreeInquiriesInstance
|
128
|
+
# @param [Hash] payload Payload response from the API
|
129
|
+
# @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
|
130
|
+
def get_instance(payload)
|
131
|
+
ComplianceTollfreeInquiriesInstance.new(@version, payload)
|
132
|
+
end
|
133
|
+
|
134
|
+
##
|
135
|
+
# Provide a user friendly representation
|
136
|
+
def to_s
|
137
|
+
'<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesPage>'
|
138
|
+
end
|
139
|
+
end
|
140
|
+
class ComplianceTollfreeInquiriesInstance < InstanceResource
|
141
|
+
##
|
142
|
+
# Initialize the ComplianceTollfreeInquiriesInstance
|
143
|
+
# @param [Version] version Version that contains the resource
|
144
|
+
# @param [Hash] payload payload that contains response from Twilio
|
145
|
+
# @param [String] account_sid The SID of the
|
146
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this ComplianceTollfreeInquiries
|
147
|
+
# resource.
|
148
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
149
|
+
# @return [ComplianceTollfreeInquiriesInstance] ComplianceTollfreeInquiriesInstance
|
150
|
+
def initialize(version, payload , tollfree_id: nil)
|
151
|
+
super(version)
|
152
|
+
|
153
|
+
# Marshaled Properties
|
154
|
+
@properties = {
|
155
|
+
'inquiry_id' => payload['inquiry_id'],
|
156
|
+
'inquiry_session_token' => payload['inquiry_session_token'],
|
157
|
+
'tollfree_id' => payload['tollfree_id'],
|
158
|
+
'url' => payload['url'],
|
159
|
+
}
|
160
|
+
|
161
|
+
# Context
|
162
|
+
@instance_context = nil
|
163
|
+
@params = { 'tollfree_id' => tollfree_id || @properties['tollfree_id'] , }
|
164
|
+
end
|
165
|
+
|
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
|
+
|
177
|
+
##
|
178
|
+
# @return [String] The unique ID used to start an embedded compliance registration session.
|
179
|
+
def inquiry_id
|
180
|
+
@properties['inquiry_id']
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# @return [String] The session token used to start an embedded compliance registration session.
|
185
|
+
def inquiry_session_token
|
186
|
+
@properties['inquiry_session_token']
|
187
|
+
end
|
188
|
+
|
189
|
+
##
|
190
|
+
# @return [String] The TolfreeId matching the Tollfree Profile that should be resumed or resubmitted for editing.
|
191
|
+
def tollfree_id
|
192
|
+
@properties['tollfree_id']
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @return [String] The URL of this resource.
|
197
|
+
def url
|
198
|
+
@properties['url']
|
199
|
+
end
|
200
|
+
|
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
|
+
##
|
215
|
+
# Provide a user friendly representation
|
216
|
+
def to_s
|
217
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
218
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance #{values}>"
|
219
|
+
end
|
220
|
+
|
221
|
+
##
|
222
|
+
# Provide a detailed, user friendly representation
|
223
|
+
def inspect
|
224
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
225
|
+
"<Twilio.Trusthub.V1.ComplianceTollfreeInquiriesInstance #{values}>"
|
226
|
+
end
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
230
|
+
end
|
231
|
+
end
|
232
|
+
end
|
@@ -22,6 +22,7 @@ module Twilio
|
|
22
22
|
super
|
23
23
|
@version = 'v1'
|
24
24
|
@compliance_inquiries = nil
|
25
|
+
@compliance_tollfree_inquiries = nil
|
25
26
|
@customer_profiles = nil
|
26
27
|
@end_users = nil
|
27
28
|
@end_user_types = nil
|
@@ -46,6 +47,20 @@ module Twilio
|
|
46
47
|
end
|
47
48
|
end
|
48
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
|
+
# @return [Twilio::REST::Trusthub::V1::ComplianceTollfreeInquiriesList]
|
53
|
+
def compliance_tollfree_inquiries(tollfree_id=:unset)
|
54
|
+
if tollfree_id.nil?
|
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
|
62
|
+
end
|
63
|
+
##
|
49
64
|
# @param [String] sid The unique string that we created to identify the Customer-Profile resource.
|
50
65
|
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesContext] if sid was passed.
|
51
66
|
# @return [Twilio::REST::Trusthub::V1::CustomerProfilesList]
|
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.1
|
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-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -456,6 +456,7 @@ files:
|
|
456
456
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb
|
457
457
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb
|
458
458
|
- lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb
|
459
|
+
- lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb
|
459
460
|
- lib/twilio-ruby/rest/flex_api/v1/web_channel.rb
|
460
461
|
- lib/twilio-ruby/rest/flex_api/v2.rb
|
461
462
|
- lib/twilio-ruby/rest/flex_api/v2/web_channels.rb
|
@@ -782,6 +783,7 @@ files:
|
|
782
783
|
- lib/twilio-ruby/rest/trusthub.rb
|
783
784
|
- lib/twilio-ruby/rest/trusthub/v1.rb
|
784
785
|
- lib/twilio-ruby/rest/trusthub/v1/compliance_inquiries.rb
|
786
|
+
- lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb
|
785
787
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles.rb
|
786
788
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_channel_endpoint_assignment.rb
|
787
789
|
- lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb
|