twilio-ruby 6.8.3 → 6.9.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 +24 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/authorized_connect_app.rb +0 -14
- data/lib/twilio-ruby/rest/events/v1/event_type.rb +0 -2
- data/lib/twilio-ruby/rest/events/v1/schema/schema_version.rb +0 -2
- data/lib/twilio-ruby/rest/events/v1/schema.rb +0 -2
- data/lib/twilio-ruby/rest/events/v1/sink.rb +0 -2
- data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +4 -6
- data/lib/twilio-ruby/rest/events/v1/subscription.rb +0 -2
- data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +245 -0
- data/lib/twilio-ruby/rest/numbers/v1.rb +15 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +6 -0
- data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +6 -0
- data/lib/twilio-ruby/rest/trusthub/v1/compliance_tollfree_inquiries.rb +59 -2
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5940e1a9e503399cd8005c296a5b2aca2be6824a
|
4
|
+
data.tar.gz: d4662a6202207667e369d54c72dd29258b9273d5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '091b6be8f4a24aea0397c5811dce00e9fd09b742bf7d0c2095dab428f1b7a4cd4c5914f3bf387a26e3c19cdf717272ff678b42dff02bd2a704d89174eded90bc'
|
7
|
+
data.tar.gz: 1841f2201242ac99a614357318543b55a56582555cb23b7a31fd9b4202a9095ce1dbfa08503146e0949eed3e754fe728e67a362d907cf07ad04976289ef951d3
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,30 @@
|
|
1
1
|
twilio-ruby changelog
|
2
2
|
=====================
|
3
3
|
|
4
|
+
[2023-12-14] Version 6.9.0
|
5
|
+
--------------------------
|
6
|
+
**Api**
|
7
|
+
- Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
|
8
|
+
|
9
|
+
**Events**
|
10
|
+
- Marked as GA
|
11
|
+
|
12
|
+
**Insights**
|
13
|
+
- decommission voice-qualitystats-endpoint role
|
14
|
+
|
15
|
+
**Numbers**
|
16
|
+
- Add Get Port In request api
|
17
|
+
|
18
|
+
**Taskrouter**
|
19
|
+
- Add `jitter_buffer_size` param in update reservation
|
20
|
+
|
21
|
+
**Trusthub**
|
22
|
+
- Add additional optional fields in compliance_tollfree_inquiry.json
|
23
|
+
|
24
|
+
**Verify**
|
25
|
+
- Remove `Tags` from Public Docs **(breaking change)**
|
26
|
+
|
27
|
+
|
4
28
|
[2023-12-01] Version 6.8.3
|
5
29
|
--------------------------
|
6
30
|
**Verify**
|
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.
|
42
|
+
gem 'twilio-ruby', '~> 6.9.0'
|
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.
|
48
|
+
gem install twilio-ruby -v 6.9.0
|
49
49
|
```
|
50
50
|
|
51
51
|
To build and install the development branch yourself from the latest source:
|
@@ -220,8 +220,6 @@ module Twilio
|
|
220
220
|
'connect_app_friendly_name' => payload['connect_app_friendly_name'],
|
221
221
|
'connect_app_homepage_url' => payload['connect_app_homepage_url'],
|
222
222
|
'connect_app_sid' => payload['connect_app_sid'],
|
223
|
-
'date_created' => Twilio.deserialize_rfc2822(payload['date_created']),
|
224
|
-
'date_updated' => Twilio.deserialize_rfc2822(payload['date_updated']),
|
225
223
|
'permissions' => payload['permissions'],
|
226
224
|
'uri' => payload['uri'],
|
227
225
|
}
|
@@ -278,18 +276,6 @@ module Twilio
|
|
278
276
|
@properties['connect_app_sid']
|
279
277
|
end
|
280
278
|
|
281
|
-
##
|
282
|
-
# @return [Time] The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
283
|
-
def date_created
|
284
|
-
@properties['date_created']
|
285
|
-
end
|
286
|
-
|
287
|
-
##
|
288
|
-
# @return [Time] The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
|
289
|
-
def date_updated
|
290
|
-
@properties['date_updated']
|
291
|
-
end
|
292
|
-
|
293
279
|
##
|
294
280
|
# @return [Array<Permission>] The set of permissions that you authorized for the Connect App. Can be: `get-all` or `post-all`.
|
295
281
|
def permissions
|
@@ -34,7 +34,7 @@ module Twilio
|
|
34
34
|
##
|
35
35
|
# Create the SubscribedEventInstance
|
36
36
|
# @param [String] type Type of event being subscribed to.
|
37
|
-
# @param [String] schema_version The schema version that the
|
37
|
+
# @param [String] schema_version The schema version that the Subscription should use.
|
38
38
|
# @return [SubscribedEventInstance] Created SubscribedEventInstance
|
39
39
|
def create(
|
40
40
|
type: nil,
|
@@ -148,8 +148,6 @@ module Twilio
|
|
148
148
|
end
|
149
149
|
|
150
150
|
|
151
|
-
##
|
152
|
-
#PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
|
153
151
|
class SubscribedEventContext < InstanceContext
|
154
152
|
##
|
155
153
|
# Initialize the SubscribedEventContext
|
@@ -190,7 +188,7 @@ module Twilio
|
|
190
188
|
|
191
189
|
##
|
192
190
|
# Update the SubscribedEventInstance
|
193
|
-
# @param [String] schema_version The schema version that the
|
191
|
+
# @param [String] schema_version The schema version that the Subscription should use.
|
194
192
|
# @return [SubscribedEventInstance] Updated SubscribedEventInstance
|
195
193
|
def update(
|
196
194
|
schema_version: :unset
|
@@ -304,7 +302,7 @@ module Twilio
|
|
304
302
|
end
|
305
303
|
|
306
304
|
##
|
307
|
-
# @return [String] The schema version that the
|
305
|
+
# @return [String] The schema version that the Subscription should use.
|
308
306
|
def schema_version
|
309
307
|
@properties['schema_version']
|
310
308
|
end
|
@@ -339,7 +337,7 @@ module Twilio
|
|
339
337
|
|
340
338
|
##
|
341
339
|
# Update the SubscribedEventInstance
|
342
|
-
# @param [String] schema_version The schema version that the
|
340
|
+
# @param [String] schema_version The schema version that the Subscription should use.
|
343
341
|
# @return [SubscribedEventInstance] Updated SubscribedEventInstance
|
344
342
|
def update(
|
345
343
|
schema_version: :unset
|
@@ -0,0 +1,245 @@
|
|
1
|
+
##
|
2
|
+
# This code was generated by
|
3
|
+
# ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
|
4
|
+
# | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
|
5
|
+
# | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
|
6
|
+
#
|
7
|
+
# Twilio - Numbers
|
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 Numbers < NumbersBase
|
19
|
+
class V1 < Version
|
20
|
+
class PortingPortInFetchList < ListResource
|
21
|
+
##
|
22
|
+
# Initialize the PortingPortInFetchList
|
23
|
+
# @param [Version] version Version that contains the resource
|
24
|
+
# @return [PortingPortInFetchList] PortingPortInFetchList
|
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.Numbers.V1.PortingPortInFetchList>'
|
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 PortingPortInFetchContext < InstanceContext
|
45
|
+
##
|
46
|
+
# Initialize the PortingPortInFetchContext
|
47
|
+
# @param [Version] version Version that contains the resource
|
48
|
+
# @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
|
49
|
+
# @return [PortingPortInFetchContext] PortingPortInFetchContext
|
50
|
+
def initialize(version, port_in_request_sid)
|
51
|
+
super(version)
|
52
|
+
|
53
|
+
# Path Solution
|
54
|
+
@solution = { port_in_request_sid: port_in_request_sid, }
|
55
|
+
@uri = "/Porting/PortIn/#{@solution[:port_in_request_sid]}"
|
56
|
+
|
57
|
+
|
58
|
+
end
|
59
|
+
##
|
60
|
+
# Fetch the PortingPortInFetchInstance
|
61
|
+
# @return [PortingPortInFetchInstance] Fetched PortingPortInFetchInstance
|
62
|
+
def fetch
|
63
|
+
|
64
|
+
payload = @version.fetch('GET', @uri)
|
65
|
+
PortingPortInFetchInstance.new(
|
66
|
+
@version,
|
67
|
+
payload,
|
68
|
+
port_in_request_sid: @solution[:port_in_request_sid],
|
69
|
+
)
|
70
|
+
end
|
71
|
+
|
72
|
+
|
73
|
+
##
|
74
|
+
# Provide a user friendly representation
|
75
|
+
def to_s
|
76
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
77
|
+
"#<Twilio.Numbers.V1.PortingPortInFetchContext #{context}>"
|
78
|
+
end
|
79
|
+
|
80
|
+
##
|
81
|
+
# Provide a detailed, user friendly representation
|
82
|
+
def inspect
|
83
|
+
context = @solution.map{|k, v| "#{k}: #{v}"}.join(',')
|
84
|
+
"#<Twilio.Numbers.V1.PortingPortInFetchContext #{context}>"
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
class PortingPortInFetchPage < Page
|
89
|
+
##
|
90
|
+
# Initialize the PortingPortInFetchPage
|
91
|
+
# @param [Version] version Version that contains the resource
|
92
|
+
# @param [Response] response Response from the API
|
93
|
+
# @param [Hash] solution Path solution for the resource
|
94
|
+
# @return [PortingPortInFetchPage] PortingPortInFetchPage
|
95
|
+
def initialize(version, response, solution)
|
96
|
+
super(version, response)
|
97
|
+
|
98
|
+
# Path Solution
|
99
|
+
@solution = solution
|
100
|
+
end
|
101
|
+
|
102
|
+
##
|
103
|
+
# Build an instance of PortingPortInFetchInstance
|
104
|
+
# @param [Hash] payload Payload response from the API
|
105
|
+
# @return [PortingPortInFetchInstance] PortingPortInFetchInstance
|
106
|
+
def get_instance(payload)
|
107
|
+
PortingPortInFetchInstance.new(@version, payload)
|
108
|
+
end
|
109
|
+
|
110
|
+
##
|
111
|
+
# Provide a user friendly representation
|
112
|
+
def to_s
|
113
|
+
'<Twilio.Numbers.V1.PortingPortInFetchPage>'
|
114
|
+
end
|
115
|
+
end
|
116
|
+
class PortingPortInFetchInstance < InstanceResource
|
117
|
+
##
|
118
|
+
# Initialize the PortingPortInFetchInstance
|
119
|
+
# @param [Version] version Version that contains the resource
|
120
|
+
# @param [Hash] payload payload that contains response from Twilio
|
121
|
+
# @param [String] account_sid The SID of the
|
122
|
+
# {Account}[https://www.twilio.com/docs/iam/api/account] that created this PortingPortInFetch
|
123
|
+
# resource.
|
124
|
+
# @param [String] sid The SID of the Call resource to fetch.
|
125
|
+
# @return [PortingPortInFetchInstance] PortingPortInFetchInstance
|
126
|
+
def initialize(version, payload , port_in_request_sid: nil)
|
127
|
+
super(version)
|
128
|
+
|
129
|
+
# Marshaled Properties
|
130
|
+
@properties = {
|
131
|
+
'port_in_request_sid' => payload['port_in_request_sid'],
|
132
|
+
'url' => payload['url'],
|
133
|
+
'account_sid' => payload['account_sid'],
|
134
|
+
'notification_emails' => payload['notification_emails'],
|
135
|
+
'target_port_in_date' => Twilio.deserialize_iso8601_date(payload['target_port_in_date']),
|
136
|
+
'target_port_in_time_range_start' => payload['target_port_in_time_range_start'],
|
137
|
+
'target_port_in_time_range_end' => payload['target_port_in_time_range_end'],
|
138
|
+
'losing_carrier_information' => payload['losing_carrier_information'],
|
139
|
+
'phone_numbers' => payload['phone_numbers'],
|
140
|
+
'documents' => payload['documents'],
|
141
|
+
}
|
142
|
+
|
143
|
+
# Context
|
144
|
+
@instance_context = nil
|
145
|
+
@params = { 'port_in_request_sid' => port_in_request_sid || @properties['port_in_request_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 [PortingPortInFetchContext] CallContext for this CallInstance
|
152
|
+
def context
|
153
|
+
unless @instance_context
|
154
|
+
@instance_context = PortingPortInFetchContext.new(@version , @params['port_in_request_sid'])
|
155
|
+
end
|
156
|
+
@instance_context
|
157
|
+
end
|
158
|
+
|
159
|
+
##
|
160
|
+
# @return [String] The SID of the Port In request. This is a unique identifier of the port in request.
|
161
|
+
def port_in_request_sid
|
162
|
+
@properties['port_in_request_sid']
|
163
|
+
end
|
164
|
+
|
165
|
+
##
|
166
|
+
# @return [String] The URL of this Port In request
|
167
|
+
def url
|
168
|
+
@properties['url']
|
169
|
+
end
|
170
|
+
|
171
|
+
##
|
172
|
+
# @return [String] The Account SID that the numbers will be added to after they are ported into Twilio.
|
173
|
+
def account_sid
|
174
|
+
@properties['account_sid']
|
175
|
+
end
|
176
|
+
|
177
|
+
##
|
178
|
+
# @return [Array<String>] List of emails for getting notifications about the LOA signing process. Allowed Max 10 emails.
|
179
|
+
def notification_emails
|
180
|
+
@properties['notification_emails']
|
181
|
+
end
|
182
|
+
|
183
|
+
##
|
184
|
+
# @return [Date] Minimum number of days in the future (at least 2 days) needs to be established with the Ops team for validation.
|
185
|
+
def target_port_in_date
|
186
|
+
@properties['target_port_in_date']
|
187
|
+
end
|
188
|
+
|
189
|
+
##
|
190
|
+
# @return [String] Minimum hour in the future needs to be established with the Ops team for validation.
|
191
|
+
def target_port_in_time_range_start
|
192
|
+
@properties['target_port_in_time_range_start']
|
193
|
+
end
|
194
|
+
|
195
|
+
##
|
196
|
+
# @return [String] Maximum hour in the future needs to be established with the Ops team for validation.
|
197
|
+
def target_port_in_time_range_end
|
198
|
+
@properties['target_port_in_time_range_end']
|
199
|
+
end
|
200
|
+
|
201
|
+
##
|
202
|
+
# @return [Hash] The information for the losing carrier.
|
203
|
+
def losing_carrier_information
|
204
|
+
@properties['losing_carrier_information']
|
205
|
+
end
|
206
|
+
|
207
|
+
##
|
208
|
+
# @return [Array<Hash>] The list of phone numbers to Port in. Phone numbers are in E.164 format (e.g. +16175551212).
|
209
|
+
def phone_numbers
|
210
|
+
@properties['phone_numbers']
|
211
|
+
end
|
212
|
+
|
213
|
+
##
|
214
|
+
# @return [Array<String>] The list of documents SID referencing a utility bills
|
215
|
+
def documents
|
216
|
+
@properties['documents']
|
217
|
+
end
|
218
|
+
|
219
|
+
##
|
220
|
+
# Fetch the PortingPortInFetchInstance
|
221
|
+
# @return [PortingPortInFetchInstance] Fetched PortingPortInFetchInstance
|
222
|
+
def fetch
|
223
|
+
|
224
|
+
context.fetch
|
225
|
+
end
|
226
|
+
|
227
|
+
##
|
228
|
+
# Provide a user friendly representation
|
229
|
+
def to_s
|
230
|
+
values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
|
231
|
+
"<Twilio.Numbers.V1.PortingPortInFetchInstance #{values}>"
|
232
|
+
end
|
233
|
+
|
234
|
+
##
|
235
|
+
# Provide a detailed, user friendly representation
|
236
|
+
def inspect
|
237
|
+
values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
|
238
|
+
"<Twilio.Numbers.V1.PortingPortInFetchInstance #{values}>"
|
239
|
+
end
|
240
|
+
end
|
241
|
+
|
242
|
+
end
|
243
|
+
end
|
244
|
+
end
|
245
|
+
end
|
@@ -23,6 +23,7 @@ module Twilio
|
|
23
23
|
@version = 'v1'
|
24
24
|
@bulk_eligibilities = nil
|
25
25
|
@porting_bulk_portabilities = nil
|
26
|
+
@porting_port_ins = nil
|
26
27
|
@porting_portabilities = nil
|
27
28
|
end
|
28
29
|
|
@@ -55,6 +56,20 @@ module Twilio
|
|
55
56
|
end
|
56
57
|
end
|
57
58
|
##
|
59
|
+
# @param [String] port_in_request_sid The SID of the Port In request. This is a unique identifier of the port in request.
|
60
|
+
# @return [Twilio::REST::Numbers::V1::PortingPortInFetchContext] if portInRequestSid was passed.
|
61
|
+
# @return [Twilio::REST::Numbers::V1::PortingPortInFetchList]
|
62
|
+
def porting_port_ins(port_in_request_sid=:unset)
|
63
|
+
if port_in_request_sid.nil?
|
64
|
+
raise ArgumentError, 'port_in_request_sid cannot be nil'
|
65
|
+
end
|
66
|
+
if port_in_request_sid == :unset
|
67
|
+
@porting_port_ins ||= PortingPortInFetchList.new self
|
68
|
+
else
|
69
|
+
PortingPortInFetchContext.new(self, port_in_request_sid)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
##
|
58
73
|
# @param [String] phone_number The phone number which portability is to be checked. Phone numbers are in E.164 format (e.g. +16175551212).
|
59
74
|
# @return [Twilio::REST::Numbers::V1::PortingPortabilityContext] if phoneNumber was passed.
|
60
75
|
# @return [Twilio::REST::Numbers::V1::PortingPortabilityList]
|
@@ -225,6 +225,7 @@ module Twilio
|
|
225
225
|
# @param [String] supervisor The Supervisor SID/URI when executing the Supervise instruction.
|
226
226
|
# @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
|
227
227
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
|
228
|
+
# @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
|
228
229
|
# @param [String] if_match The If-Match HTTP request header
|
229
230
|
# @return [ReservationInstance] Updated ReservationInstance
|
230
231
|
def update(
|
@@ -281,6 +282,7 @@ module Twilio
|
|
281
282
|
supervisor: :unset,
|
282
283
|
end_conference_on_customer_exit: :unset,
|
283
284
|
beep_on_customer_entrance: :unset,
|
285
|
+
jitter_buffer_size: :unset,
|
284
286
|
if_match: :unset
|
285
287
|
)
|
286
288
|
|
@@ -338,6 +340,7 @@ module Twilio
|
|
338
340
|
'Supervisor' => supervisor,
|
339
341
|
'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
|
340
342
|
'BeepOnCustomerEntrance' => beep_on_customer_entrance,
|
343
|
+
'JitterBufferSize' => jitter_buffer_size,
|
341
344
|
})
|
342
345
|
|
343
346
|
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
@@ -568,6 +571,7 @@ module Twilio
|
|
568
571
|
# @param [String] supervisor The Supervisor SID/URI when executing the Supervise instruction.
|
569
572
|
# @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
|
570
573
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
|
574
|
+
# @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
|
571
575
|
# @param [String] if_match The If-Match HTTP request header
|
572
576
|
# @return [ReservationInstance] Updated ReservationInstance
|
573
577
|
def update(
|
@@ -624,6 +628,7 @@ module Twilio
|
|
624
628
|
supervisor: :unset,
|
625
629
|
end_conference_on_customer_exit: :unset,
|
626
630
|
beep_on_customer_entrance: :unset,
|
631
|
+
jitter_buffer_size: :unset,
|
627
632
|
if_match: :unset
|
628
633
|
)
|
629
634
|
|
@@ -681,6 +686,7 @@ module Twilio
|
|
681
686
|
supervisor: supervisor,
|
682
687
|
end_conference_on_customer_exit: end_conference_on_customer_exit,
|
683
688
|
beep_on_customer_entrance: beep_on_customer_entrance,
|
689
|
+
jitter_buffer_size: jitter_buffer_size,
|
684
690
|
if_match: if_match,
|
685
691
|
)
|
686
692
|
end
|
@@ -217,6 +217,7 @@ module Twilio
|
|
217
217
|
# @param [String] post_work_activity_sid The new worker activity SID after executing a Conference instruction.
|
218
218
|
# @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
|
219
219
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
|
220
|
+
# @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
|
220
221
|
# @param [String] if_match The If-Match HTTP request header
|
221
222
|
# @return [ReservationInstance] Updated ReservationInstance
|
222
223
|
def update(
|
@@ -271,6 +272,7 @@ module Twilio
|
|
271
272
|
post_work_activity_sid: :unset,
|
272
273
|
end_conference_on_customer_exit: :unset,
|
273
274
|
beep_on_customer_entrance: :unset,
|
275
|
+
jitter_buffer_size: :unset,
|
274
276
|
if_match: :unset
|
275
277
|
)
|
276
278
|
|
@@ -326,6 +328,7 @@ module Twilio
|
|
326
328
|
'PostWorkActivitySid' => post_work_activity_sid,
|
327
329
|
'EndConferenceOnCustomerExit' => end_conference_on_customer_exit,
|
328
330
|
'BeepOnCustomerEntrance' => beep_on_customer_entrance,
|
331
|
+
'JitterBufferSize' => jitter_buffer_size,
|
329
332
|
})
|
330
333
|
|
331
334
|
headers = Twilio::Values.of({ 'If-Match' => if_match, })
|
@@ -554,6 +557,7 @@ module Twilio
|
|
554
557
|
# @param [String] post_work_activity_sid The new worker activity SID after executing a Conference instruction.
|
555
558
|
# @param [Boolean] end_conference_on_customer_exit Whether to end the conference when the customer leaves.
|
556
559
|
# @param [Boolean] beep_on_customer_entrance Whether to play a notification beep when the customer joins.
|
560
|
+
# @param [String] jitter_buffer_size The jitter buffer size for conference. Can be: `small`, `medium`, `large`, `off`.
|
557
561
|
# @param [String] if_match The If-Match HTTP request header
|
558
562
|
# @return [ReservationInstance] Updated ReservationInstance
|
559
563
|
def update(
|
@@ -608,6 +612,7 @@ module Twilio
|
|
608
612
|
post_work_activity_sid: :unset,
|
609
613
|
end_conference_on_customer_exit: :unset,
|
610
614
|
beep_on_customer_entrance: :unset,
|
615
|
+
jitter_buffer_size: :unset,
|
611
616
|
if_match: :unset
|
612
617
|
)
|
613
618
|
|
@@ -663,6 +668,7 @@ module Twilio
|
|
663
668
|
post_work_activity_sid: post_work_activity_sid,
|
664
669
|
end_conference_on_customer_exit: end_conference_on_customer_exit,
|
665
670
|
beep_on_customer_entrance: beep_on_customer_entrance,
|
671
|
+
jitter_buffer_size: jitter_buffer_size,
|
666
672
|
if_match: if_match,
|
667
673
|
)
|
668
674
|
end
|
@@ -32,16 +32,73 @@ module Twilio
|
|
32
32
|
##
|
33
33
|
# Create the ComplianceTollfreeInquiriesInstance
|
34
34
|
# @param [String] tollfree_phone_number The Tollfree phone number to be verified
|
35
|
-
# @param [String] notification_email The
|
35
|
+
# @param [String] notification_email The email address to receive the notification about the verification result.
|
36
|
+
# @param [String] business_name The name of the business or organization using the Tollfree number.
|
37
|
+
# @param [String] business_website The website of the business or organization using the Tollfree number.
|
38
|
+
# @param [Array[String]] use_case_categories The category of the use case for the Tollfree Number. List as many are applicable..
|
39
|
+
# @param [String] use_case_summary Use this to further explain how messaging is used by the business or organization.
|
40
|
+
# @param [String] production_message_sample An example of message content, i.e. a sample message.
|
41
|
+
# @param [Array[String]] opt_in_image_urls Link to an image that shows the opt-in workflow. Multiple images allowed and must be a publicly hosted URL.
|
42
|
+
# @param [OptInType] opt_in_type
|
43
|
+
# @param [String] message_volume Estimate monthly volume of messages from the Tollfree Number.
|
44
|
+
# @param [String] business_street_address The address of the business or organization using the Tollfree number.
|
45
|
+
# @param [String] business_street_address2 The address of the business or organization using the Tollfree number.
|
46
|
+
# @param [String] business_city The city of the business or organization using the Tollfree number.
|
47
|
+
# @param [String] business_state_province_region The state/province/region of the business or organization using the Tollfree number.
|
48
|
+
# @param [String] business_postal_code The postal code of the business or organization using the Tollfree number.
|
49
|
+
# @param [String] business_country The country of the business or organization using the Tollfree number.
|
50
|
+
# @param [String] additional_information Additional information to be provided for verification.
|
51
|
+
# @param [String] business_contact_first_name The first name of the contact for the business or organization using the Tollfree number.
|
52
|
+
# @param [String] business_contact_last_name The last name of the contact for the business or organization using the Tollfree number.
|
53
|
+
# @param [String] business_contact_email The email address of the contact for the business or organization using the Tollfree number.
|
54
|
+
# @param [String] business_contact_phone The phone number of the contact for the business or organization using the Tollfree number.
|
36
55
|
# @return [ComplianceTollfreeInquiriesInstance] Created ComplianceTollfreeInquiriesInstance
|
37
56
|
def create(
|
38
57
|
tollfree_phone_number: nil,
|
39
|
-
notification_email: nil
|
58
|
+
notification_email: nil,
|
59
|
+
business_name: :unset,
|
60
|
+
business_website: :unset,
|
61
|
+
use_case_categories: :unset,
|
62
|
+
use_case_summary: :unset,
|
63
|
+
production_message_sample: :unset,
|
64
|
+
opt_in_image_urls: :unset,
|
65
|
+
opt_in_type: :unset,
|
66
|
+
message_volume: :unset,
|
67
|
+
business_street_address: :unset,
|
68
|
+
business_street_address2: :unset,
|
69
|
+
business_city: :unset,
|
70
|
+
business_state_province_region: :unset,
|
71
|
+
business_postal_code: :unset,
|
72
|
+
business_country: :unset,
|
73
|
+
additional_information: :unset,
|
74
|
+
business_contact_first_name: :unset,
|
75
|
+
business_contact_last_name: :unset,
|
76
|
+
business_contact_email: :unset,
|
77
|
+
business_contact_phone: :unset
|
40
78
|
)
|
41
79
|
|
42
80
|
data = Twilio::Values.of({
|
43
81
|
'TollfreePhoneNumber' => tollfree_phone_number,
|
44
82
|
'NotificationEmail' => notification_email,
|
83
|
+
'BusinessName' => business_name,
|
84
|
+
'BusinessWebsite' => business_website,
|
85
|
+
'UseCaseCategories' => Twilio.serialize_list(use_case_categories) { |e| e },
|
86
|
+
'UseCaseSummary' => use_case_summary,
|
87
|
+
'ProductionMessageSample' => production_message_sample,
|
88
|
+
'OptInImageUrls' => Twilio.serialize_list(opt_in_image_urls) { |e| e },
|
89
|
+
'OptInType' => opt_in_type,
|
90
|
+
'MessageVolume' => message_volume,
|
91
|
+
'BusinessStreetAddress' => business_street_address,
|
92
|
+
'BusinessStreetAddress2' => business_street_address2,
|
93
|
+
'BusinessCity' => business_city,
|
94
|
+
'BusinessStateProvinceRegion' => business_state_province_region,
|
95
|
+
'BusinessPostalCode' => business_postal_code,
|
96
|
+
'BusinessCountry' => business_country,
|
97
|
+
'AdditionalInformation' => additional_information,
|
98
|
+
'BusinessContactFirstName' => business_contact_first_name,
|
99
|
+
'BusinessContactLastName' => business_contact_last_name,
|
100
|
+
'BusinessContactEmail' => business_contact_email,
|
101
|
+
'BusinessContactPhone' => business_contact_phone,
|
45
102
|
})
|
46
103
|
|
47
104
|
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.9.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-12-
|
11
|
+
date: 2023-12-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|
@@ -573,6 +573,7 @@ files:
|
|
573
573
|
- lib/twilio-ruby/rest/numbers/v1.rb
|
574
574
|
- lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb
|
575
575
|
- lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb
|
576
|
+
- lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb
|
576
577
|
- lib/twilio-ruby/rest/numbers/v1/porting_portability.rb
|
577
578
|
- lib/twilio-ruby/rest/numbers/v2.rb
|
578
579
|
- lib/twilio-ruby/rest/numbers/v2/authorization_document.rb
|