twilio-ruby 5.40.0 → 5.40.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +27 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/available_phone_number/local.rb +3 -3
  5. data/lib/twilio-ruby/rest/events.rb +3 -2
  6. data/lib/twilio-ruby/rest/events/v1.rb +3 -2
  7. data/lib/twilio-ruby/rest/events/v1/sink.rb +15 -14
  8. data/lib/twilio-ruby/rest/events/v1/sink/sink_test.rb +3 -3
  9. data/lib/twilio-ruby/rest/events/v1/sink/sink_validate.rb +5 -4
  10. data/lib/twilio-ruby/rest/events/v1/subscription.rb +18 -13
  11. data/lib/twilio-ruby/rest/events/v1/subscription/subscribed_event.rb +14 -14
  12. data/lib/twilio-ruby/rest/messaging.rb +6 -0
  13. data/lib/twilio-ruby/rest/messaging/v1.rb +7 -0
  14. data/lib/twilio-ruby/rest/messaging/v1/deactivation.rb +164 -0
  15. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance.rb +1 -1
  16. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/end_user.rb +16 -2
  17. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +25 -3
  18. data/lib/twilio-ruby/version.rb +1 -1
  19. data/spec/integration/bulkexports/v1/export/day_spec.rb +5 -5
  20. data/spec/integration/bulkexports/v1/export_configuration_spec.rb +4 -4
  21. data/spec/integration/bulkexports/v1/export_spec.rb +3 -3
  22. data/spec/integration/events/v1/sink_spec.rb +3 -3
  23. data/spec/integration/events/v1/subscription_spec.rb +3 -3
  24. data/spec/integration/messaging/v1/deactivation_spec.rb +40 -0
  25. data/spec/integration/numbers/v2/regulatory_compliance/end_user_spec.rb +27 -0
  26. data/spec/integration/studio/v1/flow/execution/execution_step_spec.rb +1 -0
  27. data/spec/integration/studio/v2/flow/execution/execution_step_spec.rb +1 -0
  28. data/spec/integration/trunking/v1/trunk_spec.rb +4 -0
  29. data/spec/integration/video/v1/room_spec.rb +37 -0
  30. data/spec/spec_helper.rb +1 -1
  31. metadata +5 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e7abb84b47619335c61019756209b28fff163d70e3c47b2483e1fb5193acf43
4
- data.tar.gz: 46339a7574f145f039d8faf00ee699b943a8c3dc1b4c0b4aa06c2638fef31b4f
3
+ metadata.gz: 66f674a843c7d1cfec66a72b4e954601abe469127cf64cc070bb155181c4b65c
4
+ data.tar.gz: 75943b77dba6a8bbaa63d64615942287b962e389014f4722cebef361f6104cd3
5
5
  SHA512:
6
- metadata.gz: 6391aa993c8ba9fe0b8e79be818dcf9b578096fc081108f9c0a338af5aff977483047f0b1a6561d43516b3c8d0e97539fc082d6a2d1fe83bb5f7693204a23b77
7
- data.tar.gz: fe0f4f4384558145e22bd74cb8fc3678367b66eb46699f3c602dc2a1d2c8a19d1627531a0aa1a10d761b7e0239a25b4710e17f129b89a235e08a6377aa12c874
6
+ metadata.gz: f6f145e1a04e7c447866ca60b0f64a817cc2fea7435213778e9c21f1d36e4d9a654a41f9d03b4d4bdb986ce1abc052cb83dc75502af111fdc0662e1df6d10199
7
+ data.tar.gz: e0a9e5c2418d5611095aabf401cdd842e004bc9f906406d4ccb08ca885835952bd343e700de2c20fb1bbc6b89dd0accc3b9447b09e59d3e7acbb29b6fd60008a
data/CHANGES.md CHANGED
@@ -1,6 +1,33 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2020-09-02] Version 5.40.1
5
+ ---------------------------
6
+ **Library - Chore**
7
+ - [PR #529](https://github.com/twilio/twilio-ruby/pull/529): sort files for deterministic require order. Thanks to [@eshanholtz](https://github.com/eshanholtz)!
8
+
9
+ **Ai**
10
+ - Initial release
11
+
12
+ **Bulkexports**
13
+ - removing public beta feature flag from BulkExports Jobs API
14
+
15
+ **Messaging**
16
+ - Add Deactivation List API
17
+ - Added page token parameter for fetch in WhatsApp Templates API
18
+
19
+ **Numbers**
20
+ - Add API endpoint for End User deletion
21
+
22
+ **Routes**
23
+ - Add Resource Route Configurations API
24
+ - Add Route Configurations API
25
+ - Initial Release
26
+
27
+ **Trunking**
28
+ - Added `transfer_mode` property on Trunks.
29
+
30
+
4
31
  [2020-08-19] Version 5.40.0
5
32
  ---------------------------
6
33
  **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.40.0'
37
+ gem 'twilio-ruby', '~> 5.40.1'
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.40.0
43
+ gem install twilio-ruby -v 5.40.1
44
44
  ```
45
45
 
46
46
  To build and install the development branch yourself from the latest source:
@@ -38,7 +38,7 @@ module Twilio
38
38
  # @param [String] contains The pattern on which to match phone numbers. Valid
39
39
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
40
40
  # single digit. For examples, see [Example
41
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-available-local-phone-numbers-by-area-code) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern). If specified, this value must have at least two characters.
41
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
42
42
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
43
43
  # messages. Can be: `true` or `false`.
44
44
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -125,7 +125,7 @@ module Twilio
125
125
  # @param [String] contains The pattern on which to match phone numbers. Valid
126
126
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
127
127
  # single digit. For examples, see [Example
128
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-available-local-phone-numbers-by-area-code) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern). If specified, this value must have at least two characters.
128
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
129
129
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
130
130
  # messages. Can be: `true` or `false`.
131
131
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -228,7 +228,7 @@ module Twilio
228
228
  # @param [String] contains The pattern on which to match phone numbers. Valid
229
229
  # characters are `*`, `0-9`, `a-z`, and `A-Z`. The `*` character matches any
230
230
  # single digit. For examples, see [Example
231
- # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-available-local-phone-numbers-by-area-code) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern). If specified, this value must have at least two characters.
231
+ # 2](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-number-pattern) and [Example 3](https://www.twilio.com/docs/phone-numbers/api/availablephonenumberlocal-resource?code-sample=code-find-phone-numbers-by-character-pattern). If specified, this value must have at least two characters.
232
232
  # @param [Boolean] sms_enabled Whether the phone numbers can receive text
233
233
  # messages. Can be: `true` or `false`.
234
234
  # @param [Boolean] mms_enabled Whether the phone numbers can receive MMS messages.
@@ -29,7 +29,7 @@ module Twilio
29
29
  end
30
30
 
31
31
  ##
32
- # @param [String] sid The sid
32
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
33
33
  # @return [Twilio::REST::Events::V1::SinkInstance] if sid was passed.
34
34
  # @return [Twilio::REST::Events::V1::SinkList]
35
35
  def sinks(sid=:unset)
@@ -37,7 +37,8 @@ module Twilio
37
37
  end
38
38
 
39
39
  ##
40
- # @param [String] sid The sid
40
+ # @param [String] sid A 34 character string that uniquely identifies this
41
+ # Subscription.
41
42
  # @return [Twilio::REST::Events::V1::SubscriptionInstance] if sid was passed.
42
43
  # @return [Twilio::REST::Events::V1::SubscriptionList]
43
44
  def subscriptions(sid=:unset)
@@ -20,7 +20,7 @@ module Twilio
20
20
  end
21
21
 
22
22
  ##
23
- # @param [String] sid The sid
23
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
24
24
  # @return [Twilio::REST::Events::V1::SinkContext] if sid was passed.
25
25
  # @return [Twilio::REST::Events::V1::SinkList]
26
26
  def sinks(sid=:unset)
@@ -34,7 +34,8 @@ module Twilio
34
34
  end
35
35
 
36
36
  ##
37
- # @param [String] sid The sid
37
+ # @param [String] sid A 34 character string that uniquely identifies this
38
+ # Subscription.
38
39
  # @return [Twilio::REST::Events::V1::SubscriptionContext] if sid was passed.
39
40
  # @return [Twilio::REST::Events::V1::SubscriptionList]
40
41
  def subscriptions(sid=:unset)
@@ -27,9 +27,10 @@ module Twilio
27
27
 
28
28
  ##
29
29
  # Create the SinkInstance
30
- # @param [String] description The description
31
- # @param [Hash] sink_configuration The sink_configuration
32
- # @param [sink.SinkType] sink_type The sink_type
30
+ # @param [String] description A human readable description for the Sink
31
+ # @param [Hash] sink_configuration The information required for Twilio to connect
32
+ # to the provided Sink encoded as JSON.
33
+ # @param [sink.SinkType] sink_type The Sink type. Can only be "kinesis" currently.
33
34
  # @return [SinkInstance] Created SinkInstance
34
35
  def create(description: nil, sink_configuration: nil, sink_type: nil)
35
36
  data = Twilio::Values.of({
@@ -167,7 +168,7 @@ module Twilio
167
168
  ##
168
169
  # Initialize the SinkContext
169
170
  # @param [Version] version Version that contains the resource
170
- # @param [String] sid The sid
171
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
171
172
  # @return [SinkContext] SinkContext
172
173
  def initialize(version, sid)
173
174
  super(version)
@@ -243,7 +244,7 @@ module Twilio
243
244
  # Initialize the SinkInstance
244
245
  # @param [Version] version Version that contains the resource
245
246
  # @param [Hash] payload payload that contains response from Twilio
246
- # @param [String] sid The sid
247
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
247
248
  # @return [SinkInstance] SinkInstance
248
249
  def initialize(version, payload, sid: nil)
249
250
  super(version)
@@ -278,55 +279,55 @@ module Twilio
278
279
  end
279
280
 
280
281
  ##
281
- # @return [Time] The date_created
282
+ # @return [Time] The date this Sink was created
282
283
  def date_created
283
284
  @properties['date_created']
284
285
  end
285
286
 
286
287
  ##
287
- # @return [Time] The date_updated
288
+ # @return [Time] The date this Sink was updated
288
289
  def date_updated
289
290
  @properties['date_updated']
290
291
  end
291
292
 
292
293
  ##
293
- # @return [String] The description
294
+ # @return [String] Sink Description
294
295
  def description
295
296
  @properties['description']
296
297
  end
297
298
 
298
299
  ##
299
- # @return [String] The sid
300
+ # @return [String] A string that uniquely identifies this Sink.
300
301
  def sid
301
302
  @properties['sid']
302
303
  end
303
304
 
304
305
  ##
305
- # @return [Hash] The sink_configuration
306
+ # @return [Hash] JSON Sink configuration.
306
307
  def sink_configuration
307
308
  @properties['sink_configuration']
308
309
  end
309
310
 
310
311
  ##
311
- # @return [sink.SinkType] The sink_type
312
+ # @return [sink.SinkType] Sink type.
312
313
  def sink_type
313
314
  @properties['sink_type']
314
315
  end
315
316
 
316
317
  ##
317
- # @return [sink.Status] The status
318
+ # @return [sink.Status] The Status of this Sink
318
319
  def status
319
320
  @properties['status']
320
321
  end
321
322
 
322
323
  ##
323
- # @return [String] The url
324
+ # @return [String] The URL of this resource.
324
325
  def url
325
326
  @properties['url']
326
327
  end
327
328
 
328
329
  ##
329
- # @return [String] The links
330
+ # @return [String] Nested resource URLs.
330
331
  def links
331
332
  @properties['links']
332
333
  end
@@ -17,7 +17,7 @@ module Twilio
17
17
  ##
18
18
  # Initialize the SinkTestList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] sid The sid
20
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
21
21
  # @return [SinkTestList] SinkTestList
22
22
  def initialize(version, sid: nil)
23
23
  super(version)
@@ -81,7 +81,7 @@ module Twilio
81
81
  # Initialize the SinkTestInstance
82
82
  # @param [Version] version Version that contains the resource
83
83
  # @param [Hash] payload payload that contains response from Twilio
84
- # @param [String] sid The sid
84
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
85
85
  # @return [SinkTestInstance] SinkTestInstance
86
86
  def initialize(version, payload, sid: nil)
87
87
  super(version)
@@ -91,7 +91,7 @@ module Twilio
91
91
  end
92
92
 
93
93
  ##
94
- # @return [String] The result
94
+ # @return [String] Feedback indicating whether the test event was generated.
95
95
  def result
96
96
  @properties['result']
97
97
  end
@@ -17,7 +17,7 @@ module Twilio
17
17
  ##
18
18
  # Initialize the SinkValidateList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] sid The sid
20
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
21
21
  # @return [SinkValidateList] SinkValidateList
22
22
  def initialize(version, sid: nil)
23
23
  super(version)
@@ -29,7 +29,8 @@ module Twilio
29
29
 
30
30
  ##
31
31
  # Create the SinkValidateInstance
32
- # @param [String] test_id The test_id
32
+ # @param [String] test_id A 34 character string that uniquely identifies the test
33
+ # event for a Sink being validated.
33
34
  # @return [SinkValidateInstance] Created SinkValidateInstance
34
35
  def create(test_id: nil)
35
36
  data = Twilio::Values.of({'TestId' => test_id, })
@@ -84,7 +85,7 @@ module Twilio
84
85
  # Initialize the SinkValidateInstance
85
86
  # @param [Version] version Version that contains the resource
86
87
  # @param [Hash] payload payload that contains response from Twilio
87
- # @param [String] sid The sid
88
+ # @param [String] sid A 34 character string that uniquely identifies this Sink.
88
89
  # @return [SinkValidateInstance] SinkValidateInstance
89
90
  def initialize(version, payload, sid: nil)
90
91
  super(version)
@@ -94,7 +95,7 @@ module Twilio
94
95
  end
95
96
 
96
97
  ##
97
- # @return [String] The result
98
+ # @return [String] Feedback indicating whether the given Sink was validated.
98
99
  def result
99
100
  @properties['result']
100
101
  end
@@ -107,9 +107,12 @@ module Twilio
107
107
 
108
108
  ##
109
109
  # Create the SubscriptionInstance
110
- # @param [String] description The description
111
- # @param [String] sink_sid The sink_sid
112
- # @param [Hash] types The types
110
+ # @param [String] description A human readable description for the Subscription
111
+ # @param [String] sink_sid The SID of the sink that events selected by this
112
+ # subscription should be sent to. Sink must be active for the subscription to be
113
+ # created.
114
+ # @param [Hash] types Contains a dictionary of URL links to nested resources of
115
+ # this Subscription.
113
116
  # @return [SubscriptionInstance] Created SubscriptionInstance
114
117
  def create(description: nil, sink_sid: nil, types: nil)
115
118
  data = Twilio::Values.of({
@@ -167,7 +170,8 @@ module Twilio
167
170
  ##
168
171
  # Initialize the SubscriptionContext
169
172
  # @param [Version] version Version that contains the resource
170
- # @param [String] sid The sid
173
+ # @param [String] sid A 34 character string that uniquely identifies this
174
+ # Subscription.
171
175
  # @return [SubscriptionContext] SubscriptionContext
172
176
  def initialize(version, sid)
173
177
  super(version)
@@ -236,7 +240,8 @@ module Twilio
236
240
  # Initialize the SubscriptionInstance
237
241
  # @param [Version] version Version that contains the resource
238
242
  # @param [Hash] payload payload that contains response from Twilio
239
- # @param [String] sid The sid
243
+ # @param [String] sid A 34 character string that uniquely identifies this
244
+ # Subscription.
240
245
  # @return [SubscriptionInstance] SubscriptionInstance
241
246
  def initialize(version, payload, sid: nil)
242
247
  super(version)
@@ -270,49 +275,49 @@ module Twilio
270
275
  end
271
276
 
272
277
  ##
273
- # @return [String] The account_sid
278
+ # @return [String] Account SID.
274
279
  def account_sid
275
280
  @properties['account_sid']
276
281
  end
277
282
 
278
283
  ##
279
- # @return [String] The sid
284
+ # @return [String] A string that uniquely identifies this Subscription.
280
285
  def sid
281
286
  @properties['sid']
282
287
  end
283
288
 
284
289
  ##
285
- # @return [Time] The date_created
290
+ # @return [Time] The date this Subscription was created
286
291
  def date_created
287
292
  @properties['date_created']
288
293
  end
289
294
 
290
295
  ##
291
- # @return [Time] The date_updated
296
+ # @return [Time] The date this Subscription was updated
292
297
  def date_updated
293
298
  @properties['date_updated']
294
299
  end
295
300
 
296
301
  ##
297
- # @return [String] The description
302
+ # @return [String] Subscription description
298
303
  def description
299
304
  @properties['description']
300
305
  end
301
306
 
302
307
  ##
303
- # @return [String] The sink_sid
308
+ # @return [String] Sink SID.
304
309
  def sink_sid
305
310
  @properties['sink_sid']
306
311
  end
307
312
 
308
313
  ##
309
- # @return [String] The url
314
+ # @return [String] The URL of this resource.
310
315
  def url
311
316
  @properties['url']
312
317
  end
313
318
 
314
319
  ##
315
- # @return [String] The links
320
+ # @return [String] Nested resource URLs.
316
321
  def links
317
322
  @properties['links']
318
323
  end
@@ -17,7 +17,7 @@ module Twilio
17
17
  ##
18
18
  # Initialize the SubscribedEventList
19
19
  # @param [Version] version Version that contains the resource
20
- # @param [String] subscription_sid The subscription_sid
20
+ # @param [String] subscription_sid The unique SID identifier of the Subscription.
21
21
  # @return [SubscribedEventList] SubscribedEventList
22
22
  def initialize(version, subscription_sid: nil)
23
23
  super(version)
@@ -109,8 +109,8 @@ module Twilio
109
109
 
110
110
  ##
111
111
  # Create the SubscribedEventInstance
112
- # @param [String] type The type
113
- # @param [String] version The version
112
+ # @param [String] type Type of event being subscribed to.
113
+ # @param [String] version The schema version that the subscription should use.
114
114
  # @return [SubscribedEventInstance] Created SubscribedEventInstance
115
115
  def create(type: nil, version: :unset)
116
116
  data = Twilio::Values.of({'Type' => type, 'Version' => version, })
@@ -164,8 +164,8 @@ module Twilio
164
164
  ##
165
165
  # Initialize the SubscribedEventContext
166
166
  # @param [Version] version Version that contains the resource
167
- # @param [String] subscription_sid The subscription_sid
168
- # @param [String] type The type
167
+ # @param [String] subscription_sid The unique SID identifier of the Subscription.
168
+ # @param [String] type Type of event being subscribed to.
169
169
  # @return [SubscribedEventContext] SubscribedEventContext
170
170
  def initialize(version, subscription_sid, type)
171
171
  super(version)
@@ -177,7 +177,7 @@ module Twilio
177
177
 
178
178
  ##
179
179
  # Update the SubscribedEventInstance
180
- # @param [String] version The version
180
+ # @param [String] version The schema version that the subscription should use.
181
181
  # @return [SubscribedEventInstance] Updated SubscribedEventInstance
182
182
  def update(version: nil)
183
183
  data = Twilio::Values.of({'Version' => version, })
@@ -221,8 +221,8 @@ module Twilio
221
221
  # Initialize the SubscribedEventInstance
222
222
  # @param [Version] version Version that contains the resource
223
223
  # @param [Hash] payload payload that contains response from Twilio
224
- # @param [String] subscription_sid The subscription_sid
225
- # @param [String] type The type
224
+ # @param [String] subscription_sid The unique SID identifier of the Subscription.
225
+ # @param [String] type Type of event being subscribed to.
226
226
  # @return [SubscribedEventInstance] SubscribedEventInstance
227
227
  def initialize(version, payload, subscription_sid: nil, type: nil)
228
228
  super(version)
@@ -257,38 +257,38 @@ module Twilio
257
257
  end
258
258
 
259
259
  ##
260
- # @return [String] The account_sid
260
+ # @return [String] Account SID.
261
261
  def account_sid
262
262
  @properties['account_sid']
263
263
  end
264
264
 
265
265
  ##
266
- # @return [String] The type
266
+ # @return [String] Type of event being subscribed to.
267
267
  def type
268
268
  @properties['type']
269
269
  end
270
270
 
271
271
  ##
272
- # @return [String] The version
272
+ # @return [String] The schema version that the subscription should use.
273
273
  def version
274
274
  @properties['version']
275
275
  end
276
276
 
277
277
  ##
278
- # @return [String] The subscription_sid
278
+ # @return [String] Subscription SID.
279
279
  def subscription_sid
280
280
  @properties['subscription_sid']
281
281
  end
282
282
 
283
283
  ##
284
- # @return [String] The url
284
+ # @return [String] The URL of this resource.
285
285
  def url
286
286
  @properties['url']
287
287
  end
288
288
 
289
289
  ##
290
290
  # Update the SubscribedEventInstance
291
- # @param [String] version The version
291
+ # @param [String] version The schema version that the subscription should use.
292
292
  # @return [SubscribedEventInstance] Updated SubscribedEventInstance
293
293
  def update(version: nil)
294
294
  context.update(version: version, )
@@ -28,6 +28,12 @@ module Twilio
28
28
  @v1 ||= V1.new self
29
29
  end
30
30
 
31
+ ##
32
+ # @return [Twilio::REST::Messaging::V1::DeactivationsInstance]
33
+ def deactivations
34
+ self.v1.deactivations()
35
+ end
36
+
31
37
  ##
32
38
  # @param [String] sid The unique string that we created to identify the Service
33
39
  # resource.
@@ -15,9 +15,16 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'v1'
18
+ @deactivations = nil
18
19
  @services = nil
19
20
  end
20
21
 
22
+ ##
23
+ # @return [Twilio::REST::Messaging::V1::DeactivationsContext]
24
+ def deactivations
25
+ @deactivations ||= DeactivationsContext.new self
26
+ end
27
+
21
28
  ##
22
29
  # @param [String] sid The SID of the Service resource to fetch.
23
30
  # @return [Twilio::REST::Messaging::V1::ServiceContext] if sid was passed.
@@ -0,0 +1,164 @@
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 Messaging < Domain
12
+ class V1 < Version
13
+ class DeactivationsList < ListResource
14
+ ##
15
+ # Initialize the DeactivationsList
16
+ # @param [Version] version Version that contains the resource
17
+ # @return [DeactivationsList] DeactivationsList
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.Messaging.V1.DeactivationsList>'
29
+ end
30
+ end
31
+
32
+ class DeactivationsPage < Page
33
+ ##
34
+ # Initialize the DeactivationsPage
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 [DeactivationsPage] DeactivationsPage
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 DeactivationsInstance
48
+ # @param [Hash] payload Payload response from the API
49
+ # @return [DeactivationsInstance] DeactivationsInstance
50
+ def get_instance(payload)
51
+ DeactivationsInstance.new(@version, payload, )
52
+ end
53
+
54
+ ##
55
+ # Provide a user friendly representation
56
+ def to_s
57
+ '<Twilio.Messaging.V1.DeactivationsPage>'
58
+ end
59
+ end
60
+
61
+ class DeactivationsContext < InstanceContext
62
+ ##
63
+ # Initialize the DeactivationsContext
64
+ # @param [Version] version Version that contains the resource
65
+ # @return [DeactivationsContext] DeactivationsContext
66
+ def initialize(version)
67
+ super(version)
68
+
69
+ # Path Solution
70
+ @solution = {}
71
+ @uri = "/Deactivations"
72
+ end
73
+
74
+ ##
75
+ # Fetch the DeactivationsInstance
76
+ # @param [Date] date The request will return a list of all United States Phone
77
+ # Numbers that were deactivated on the day specified by this parameter. This date
78
+ # should be specified in YYYY-MM-DD format.
79
+ # @return [DeactivationsInstance] Fetched DeactivationsInstance
80
+ def fetch(date: :unset)
81
+ params = Twilio::Values.of({'Date' => Twilio.serialize_iso8601_date(date), })
82
+
83
+ payload = @version.fetch('GET', @uri, params: params)
84
+
85
+ DeactivationsInstance.new(@version, payload, )
86
+ end
87
+
88
+ ##
89
+ # Provide a user friendly representation
90
+ def to_s
91
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
92
+ "#<Twilio.Messaging.V1.DeactivationsContext #{context}>"
93
+ end
94
+
95
+ ##
96
+ # Provide a detailed, user friendly representation
97
+ def inspect
98
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
99
+ "#<Twilio.Messaging.V1.DeactivationsContext #{context}>"
100
+ end
101
+ end
102
+
103
+ class DeactivationsInstance < InstanceResource
104
+ ##
105
+ # Initialize the DeactivationsInstance
106
+ # @param [Version] version Version that contains the resource
107
+ # @param [Hash] payload payload that contains response from Twilio
108
+ # @return [DeactivationsInstance] DeactivationsInstance
109
+ def initialize(version, payload)
110
+ super(version)
111
+
112
+ # Marshaled Properties
113
+ @properties = {'redirect_to' => payload['redirect_to'], }
114
+
115
+ # Context
116
+ @instance_context = nil
117
+ @params = {}
118
+ end
119
+
120
+ ##
121
+ # Generate an instance context for the instance, the context is capable of
122
+ # performing various actions. All instance actions are proxied to the context
123
+ # @return [DeactivationsContext] DeactivationsContext for this DeactivationsInstance
124
+ def context
125
+ unless @instance_context
126
+ @instance_context = DeactivationsContext.new(@version, )
127
+ end
128
+ @instance_context
129
+ end
130
+
131
+ ##
132
+ # @return [String] Redirect url to the list of deactivated numbers.
133
+ def redirect_to
134
+ @properties['redirect_to']
135
+ end
136
+
137
+ ##
138
+ # Fetch the DeactivationsInstance
139
+ # @param [Date] date The request will return a list of all United States Phone
140
+ # Numbers that were deactivated on the day specified by this parameter. This date
141
+ # should be specified in YYYY-MM-DD format.
142
+ # @return [DeactivationsInstance] Fetched DeactivationsInstance
143
+ def fetch(date: :unset)
144
+ context.fetch(date: date, )
145
+ end
146
+
147
+ ##
148
+ # Provide a user friendly representation
149
+ def to_s
150
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
151
+ "<Twilio.Messaging.V1.DeactivationsInstance #{values}>"
152
+ end
153
+
154
+ ##
155
+ # Provide a detailed, user friendly representation
156
+ def inspect
157
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
158
+ "<Twilio.Messaging.V1.DeactivationsInstance #{values}>"
159
+ end
160
+ end
161
+ end
162
+ end
163
+ end
164
+ end
@@ -48,7 +48,7 @@ module Twilio
48
48
 
49
49
  ##
50
50
  # Access the end_users
51
- # @param [String] sid The unique string that we created to identify the End User
51
+ # @param [String] sid The unique string created by Twilio to identify the End User
52
52
  # resource.
53
53
  # @return [EndUserList]
54
54
  # @return [EndUserContext] if sid was passed.
@@ -165,7 +165,7 @@ module Twilio
165
165
  ##
166
166
  # Initialize the EndUserContext
167
167
  # @param [Version] version Version that contains the resource
168
- # @param [String] sid The unique string that we created to identify the End User
168
+ # @param [String] sid The unique string created by Twilio to identify the End User
169
169
  # resource.
170
170
  # @return [EndUserContext] EndUserContext
171
171
  def initialize(version, sid)
@@ -203,6 +203,13 @@ module Twilio
203
203
  EndUserInstance.new(@version, payload, sid: @solution[:sid], )
204
204
  end
205
205
 
206
+ ##
207
+ # Delete the EndUserInstance
208
+ # @return [Boolean] true if delete succeeds, false otherwise
209
+ def delete
210
+ @version.delete('DELETE', @uri)
211
+ end
212
+
206
213
  ##
207
214
  # Provide a user friendly representation
208
215
  def to_s
@@ -223,7 +230,7 @@ module Twilio
223
230
  # Initialize the EndUserInstance
224
231
  # @param [Version] version Version that contains the resource
225
232
  # @param [Hash] payload payload that contains response from Twilio
226
- # @param [String] sid The unique string that we created to identify the End User
233
+ # @param [String] sid The unique string created by Twilio to identify the End User
227
234
  # resource.
228
235
  # @return [EndUserInstance] EndUserInstance
229
236
  def initialize(version, payload, sid: nil)
@@ -323,6 +330,13 @@ module Twilio
323
330
  context.update(friendly_name: friendly_name, attributes: attributes, )
324
331
  end
325
332
 
333
+ ##
334
+ # Delete the EndUserInstance
335
+ # @return [Boolean] true if delete succeeds, false otherwise
336
+ def delete
337
+ context.delete
338
+ end
339
+
326
340
  ##
327
341
  # Provide a user friendly representation
328
342
  def to_s
@@ -48,6 +48,10 @@ module Twilio
48
48
  # e.g.`/Trunks/[Trunk_SID]/Recording -XPOST -d'Mode=record-from-answer'`. See
49
49
  # [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
50
50
  # information.
51
+ # @param [trunk.TransferSetting] transfer_mode The call transfer settings for the
52
+ # trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See
53
+ # [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more
54
+ # information.
51
55
  # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
52
56
  # enabled, all calls going through the trunk will be secure using SRTP for media
53
57
  # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
@@ -59,13 +63,14 @@ module Twilio
59
63
  # Caller ID data on your phone. See [CNAM
60
64
  # Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
61
65
  # @return [TrunkInstance] Created TrunkInstance
62
- def create(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset, cnam_lookup_enabled: :unset)
66
+ def create(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, transfer_mode: :unset, secure: :unset, cnam_lookup_enabled: :unset)
63
67
  data = Twilio::Values.of({
64
68
  'FriendlyName' => friendly_name,
65
69
  'DomainName' => domain_name,
66
70
  'DisasterRecoveryUrl' => disaster_recovery_url,
67
71
  'DisasterRecoveryMethod' => disaster_recovery_method,
68
72
  'Recording' => recording,
73
+ 'TransferMode' => transfer_mode,
69
74
  'Secure' => secure,
70
75
  'CnamLookupEnabled' => cnam_lookup_enabled,
71
76
  })
@@ -251,6 +256,10 @@ module Twilio
251
256
  # will be recorded. See
252
257
  # [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
253
258
  # information.
259
+ # @param [trunk.TransferSetting] transfer_mode The call transfer settings for the
260
+ # trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See
261
+ # [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more
262
+ # information.
254
263
  # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
255
264
  # enabled, all calls going through the trunk will be secure using SRTP for media
256
265
  # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
@@ -262,13 +271,14 @@ module Twilio
262
271
  # Caller ID data on your phone. See [CNAM
263
272
  # Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
264
273
  # @return [TrunkInstance] Updated TrunkInstance
265
- def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset, cnam_lookup_enabled: :unset)
274
+ def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, transfer_mode: :unset, secure: :unset, cnam_lookup_enabled: :unset)
266
275
  data = Twilio::Values.of({
267
276
  'FriendlyName' => friendly_name,
268
277
  'DomainName' => domain_name,
269
278
  'DisasterRecoveryUrl' => disaster_recovery_url,
270
279
  'DisasterRecoveryMethod' => disaster_recovery_method,
271
280
  'Recording' => recording,
281
+ 'TransferMode' => transfer_mode,
272
282
  'Secure' => secure,
273
283
  'CnamLookupEnabled' => cnam_lookup_enabled,
274
284
  })
@@ -385,6 +395,7 @@ module Twilio
385
395
  'friendly_name' => payload['friendly_name'],
386
396
  'secure' => payload['secure'],
387
397
  'recording' => payload['recording'],
398
+ 'transfer_mode' => payload['transfer_mode'],
388
399
  'cnam_lookup_enabled' => payload['cnam_lookup_enabled'],
389
400
  'auth_type' => payload['auth_type'],
390
401
  'auth_type_set' => payload['auth_type_set'],
@@ -453,6 +464,12 @@ module Twilio
453
464
  @properties['recording']
454
465
  end
455
466
 
467
+ ##
468
+ # @return [trunk.TransferSetting] The call transfer settings for the trunk
469
+ def transfer_mode
470
+ @properties['transfer_mode']
471
+ end
472
+
456
473
  ##
457
474
  # @return [Boolean] Whether Caller ID Name (CNAM) lookup is enabled for the trunk
458
475
  def cnam_lookup_enabled
@@ -538,6 +555,10 @@ module Twilio
538
555
  # will be recorded. See
539
556
  # [Recording](https://www.twilio.com/docs/sip-trunking#recording) for more
540
557
  # information.
558
+ # @param [trunk.TransferSetting] transfer_mode The call transfer settings for the
559
+ # trunk. Can be: `enable-all`, `sip-only` and `disable-all`. See
560
+ # [Transfer](https://www.twilio.com/docs/sip-trunking/call-transfer) for more
561
+ # information.
541
562
  # @param [Boolean] secure Whether Secure Trunking is enabled for the trunk. If
542
563
  # enabled, all calls going through the trunk will be secure using SRTP for media
543
564
  # and TLS for signaling. If disabled, then RTP will be used for media. See [Secure
@@ -549,13 +570,14 @@ module Twilio
549
570
  # Caller ID data on your phone. See [CNAM
550
571
  # Lookups](https://www.twilio.com/docs/sip-trunking#CNAM) for more information.
551
572
  # @return [TrunkInstance] Updated TrunkInstance
552
- def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset, cnam_lookup_enabled: :unset)
573
+ def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, transfer_mode: :unset, secure: :unset, cnam_lookup_enabled: :unset)
553
574
  context.update(
554
575
  friendly_name: friendly_name,
555
576
  domain_name: domain_name,
556
577
  disaster_recovery_url: disaster_recovery_url,
557
578
  disaster_recovery_method: disaster_recovery_method,
558
579
  recording: recording,
580
+ transfer_mode: transfer_mode,
559
581
  secure: secure,
560
582
  cnam_lookup_enabled: cnam_lookup_enabled,
561
583
  )
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.40.0'
2
+ VERSION = '5.40.1'
3
3
  end
@@ -64,9 +64,9 @@ describe 'Day' do
64
64
  "meta": {
65
65
  "page": 0,
66
66
  "page_size": 50,
67
- "first_page_url": "https://bulkexports.twilio.com/v1/Exports/Calls/Days?PageSize=50&Page=0",
67
+ "first_page_url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
68
68
  "previous_page_url": null,
69
- "url": "https://bulkexports.twilio.com/v1/Exports/Calls/Days?PageSize=50&Page=0",
69
+ "url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
70
70
  "next_page_url": null,
71
71
  "key": "days"
72
72
  }
@@ -89,7 +89,7 @@ describe 'Day' do
89
89
  {
90
90
  "day": "2017-04-01",
91
91
  "size": 100,
92
- "resource_type": "Calls",
92
+ "resource_type": "Messages",
93
93
  "create_date": "2017-04-02",
94
94
  "friendly_name": "friendly_name"
95
95
  }
@@ -97,9 +97,9 @@ describe 'Day' do
97
97
  "meta": {
98
98
  "page": 0,
99
99
  "page_size": 50,
100
- "first_page_url": "https://bulkexports.twilio.com/v1/Exports/Calls/Days?PageSize=50&Page=0",
100
+ "first_page_url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
101
101
  "previous_page_url": null,
102
- "url": "https://bulkexports.twilio.com/v1/Exports/Calls/Days?PageSize=50&Page=0",
102
+ "url": "https://bulkexports.twilio.com/v1/Exports/Messages/Days?PageSize=50&Page=0",
103
103
  "next_page_url": null,
104
104
  "key": "days"
105
105
  }
@@ -28,11 +28,11 @@ describe 'ExportConfiguration' do
28
28
  200,
29
29
  %q[
30
30
  {
31
- "url": "https://bulkexports.twilio.com/v1/Exports/Calls/Configuration",
31
+ "url": "https://bulkexports.twilio.com/v1/Exports/Messages/Configuration",
32
32
  "enabled": true,
33
33
  "webhook_url": "",
34
34
  "webhook_method": "",
35
- "resource_type": "Calls"
35
+ "resource_type": "Messages"
36
36
  }
37
37
  ]
38
38
  ))
@@ -61,10 +61,10 @@ describe 'ExportConfiguration' do
61
61
  200,
62
62
  %q[
63
63
  {
64
- "url": "https://bulkexports.twilio.com/v1/Exports/Calls/Configuration",
64
+ "url": "https://bulkexports.twilio.com/v1/Exports/Messages/Configuration",
65
65
  "enabled": true,
66
66
  "webhook_url": "",
67
- "resource_type": "Calls",
67
+ "resource_type": "Messages",
68
68
  "webhook_method": ""
69
69
  }
70
70
  ]
@@ -28,10 +28,10 @@ describe 'Export' do
28
28
  200,
29
29
  %q[
30
30
  {
31
- "resource_type": "Calls",
32
- "url": "https://bulkexports.twilio.com/v1/Exports/Calls",
31
+ "resource_type": "Messages",
32
+ "url": "https://bulkexports.twilio.com/v1/Exports/Messages",
33
33
  "links": {
34
- "days": "https://bulkexports.twilio.com/v1/Exports/Calls/Days"
34
+ "days": "https://bulkexports.twilio.com/v1/Exports/Messages/Days"
35
35
  }
36
36
  }
37
37
  ]
@@ -199,10 +199,10 @@ describe 'Sink' do
199
199
  ],
200
200
  "meta": {
201
201
  "page": 0,
202
- "page_size": 50,
203
- "first_page_url": "https://events.twilio.com/v1/Sinks?PageSize=50&Page=0",
202
+ "page_size": 20,
203
+ "first_page_url": "https://events.twilio.com/v1/Sinks?PageSize=20&Page=0",
204
204
  "previous_page_url": null,
205
- "url": "https://events.twilio.com/v1/Sinks?PageSize=50&Page=0",
205
+ "url": "https://events.twilio.com/v1/Sinks?PageSize=20&Page=0",
206
206
  "next_page_url": null,
207
207
  "key": "sinks"
208
208
  }
@@ -80,10 +80,10 @@ describe 'Subscription' do
80
80
  ],
81
81
  "meta": {
82
82
  "page": 0,
83
- "page_size": 50,
84
- "first_page_url": "https://events.twilio.com/v1/Subscriptions?PageSize=50&Page=0",
83
+ "page_size": 20,
84
+ "first_page_url": "https://events.twilio.com/v1/Subscriptions?PageSize=20&Page=0",
85
85
  "previous_page_url": null,
86
- "url": "https://events.twilio.com/v1/Subscriptions?PageSize=50&Page=0",
86
+ "url": "https://events.twilio.com/v1/Subscriptions?PageSize=20&Page=0",
87
87
  "next_page_url": null,
88
88
  "key": "subscriptions"
89
89
  }
@@ -0,0 +1,40 @@
1
+ ##
2
+ # This code was generated by
3
+ # \ / _ _ _| _ _
4
+ # | (_)\/(_)(_|\/| |(/_ v1.0.0
5
+ # / /
6
+ #
7
+ # frozen_string_literal: true
8
+
9
+ require 'spec_helper.rb'
10
+
11
+ describe 'Deactivations' do
12
+ it "can fetch" do
13
+ @holodeck.mock(Twilio::Response.new(500, ''))
14
+
15
+ expect {
16
+ @client.messaging.v1.deactivations().fetch()
17
+ }.to raise_exception(Twilio::REST::TwilioError)
18
+
19
+ expect(
20
+ @holodeck.has_request?(Holodeck::Request.new(
21
+ method: 'get',
22
+ url: 'https://messaging.twilio.com/v1/Deactivations',
23
+ ))).to eq(true)
24
+ end
25
+
26
+ it "receives fetch responses" do
27
+ @holodeck.mock(Twilio::Response.new(
28
+ 200,
29
+ %q[
30
+ {
31
+ "redirect_to": "https://www.twilio.com"
32
+ }
33
+ ]
34
+ ))
35
+
36
+ actual = @client.messaging.v1.deactivations().fetch()
37
+
38
+ expect(actual).to_not eq(nil)
39
+ end
40
+ end
@@ -208,4 +208,31 @@ describe 'EndUser' do
208
208
 
209
209
  expect(actual).to_not eq(nil)
210
210
  end
211
+
212
+ it "can delete" do
213
+ @holodeck.mock(Twilio::Response.new(500, ''))
214
+
215
+ expect {
216
+ @client.numbers.v2.regulatory_compliance \
217
+ .end_users('ITXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
218
+ }.to raise_exception(Twilio::REST::TwilioError)
219
+
220
+ expect(
221
+ @holodeck.has_request?(Holodeck::Request.new(
222
+ method: 'delete',
223
+ url: 'https://numbers.twilio.com/v2/RegulatoryCompliance/EndUsers/ITXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',
224
+ ))).to eq(true)
225
+ end
226
+
227
+ it "receives delete responses" do
228
+ @holodeck.mock(Twilio::Response.new(
229
+ 204,
230
+ nil,
231
+ ))
232
+
233
+ actual = @client.numbers.v2.regulatory_compliance \
234
+ .end_users('ITXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX').delete()
235
+
236
+ expect(actual).to eq(true)
237
+ end
211
238
  end
@@ -76,6 +76,7 @@ describe 'ExecutionStep' do
76
76
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
77
77
  "flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
78
78
  "execution_sid": "FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
79
+ "parent_step_sid": null,
79
80
  "name": "incomingRequest",
80
81
  "context": {},
81
82
  "transitioned_from": "Trigger",
@@ -76,6 +76,7 @@ describe 'ExecutionStep' do
76
76
  "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
77
77
  "flow_sid": "FWaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
78
78
  "execution_sid": "FNaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
79
+ "parent_step_sid": null,
79
80
  "name": "incomingRequest",
80
81
  "context": {},
81
82
  "transitioned_from": "Trigger",
@@ -40,6 +40,7 @@ describe 'Trunk' do
40
40
  "mode": "do-not-record",
41
41
  "trim": "do-not-trim"
42
42
  },
43
+ "transfer_mode": "disable-all",
43
44
  "auth_type": "",
44
45
  "auth_type_set": [],
45
46
  "date_created": "2015-01-02T11:23:45Z",
@@ -116,6 +117,7 @@ describe 'Trunk' do
116
117
  "mode": "do-not-record",
117
118
  "trim": "do-not-trim"
118
119
  },
120
+ "transfer_mode": "disable-all",
119
121
  "auth_type": "",
120
122
  "auth_type_set": [],
121
123
  "date_created": "2015-01-02T11:23:45Z",
@@ -178,6 +180,7 @@ describe 'Trunk' do
178
180
  "mode": "do-not-record",
179
181
  "trim": "do-not-trim"
180
182
  },
183
+ "transfer_mode": "disable-all",
181
184
  "auth_type": "",
182
185
  "auth_type_set": [],
183
186
  "date_created": "2015-01-02T11:23:45Z",
@@ -255,6 +258,7 @@ describe 'Trunk' do
255
258
  "mode": "do-not-record",
256
259
  "trim": "do-not-trim"
257
260
  },
261
+ "transfer_mode": "disable-all",
258
262
  "auth_type": "",
259
263
  "auth_type_set": [],
260
264
  "date_created": "2015-01-02T11:23:45Z",
@@ -111,6 +111,43 @@ describe 'Room' do
111
111
  expect(actual).to_not eq(nil)
112
112
  end
113
113
 
114
+ it "receives create_p2p_basic responses" do
115
+ @holodeck.mock(Twilio::Response.new(
116
+ 201,
117
+ %q[
118
+ {
119
+ "account_sid": "ACaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
120
+ "date_created": "2015-07-30T20:00:00Z",
121
+ "date_updated": "2015-07-30T20:00:00Z",
122
+ "status": "in-progress",
123
+ "type": "peer-to-peer-basic",
124
+ "sid": "RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
125
+ "enable_turn": true,
126
+ "unique_name": "room1",
127
+ "max_participants": 10,
128
+ "duration": 0,
129
+ "status_callback_method": "POST",
130
+ "status_callback": "",
131
+ "record_participants_on_connect": false,
132
+ "video_codecs": [
133
+ "VP8"
134
+ ],
135
+ "media_region": "us1",
136
+ "end_time": "2015-07-30T20:00:00Z",
137
+ "url": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa",
138
+ "links": {
139
+ "participants": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Participants",
140
+ "recordings": "https://video.twilio.com/v1/Rooms/RMaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/Recordings"
141
+ }
142
+ }
143
+ ]
144
+ ))
145
+
146
+ actual = @client.video.v1.rooms.create()
147
+
148
+ expect(actual).to_not eq(nil)
149
+ end
150
+
114
151
  it "can read" do
115
152
  @holodeck.mock(Twilio::Response.new(500, ''))
116
153
 
@@ -3,7 +3,7 @@ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
3
  require 'bundler'
4
4
  Bundler.setup
5
5
 
6
- Dir.glob(File.expand_path('../support/**/*.rb', __FILE__), &method(:require))
6
+ Dir.glob(File.expand_path('../support/**/*.rb', __FILE__)).sort.each(&method(:require))
7
7
 
8
8
  require_relative './holodeck/holodeck.rb'
9
9
  require_relative './holodeck/hologram.rb'
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: 5.40.0
4
+ version: 5.40.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: 2020-08-19 00:00:00.000000000 Z
11
+ date: 2020-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -429,6 +429,7 @@ files:
429
429
  - lib/twilio-ruby/rest/lookups/v1/phone_number.rb
430
430
  - lib/twilio-ruby/rest/messaging.rb
431
431
  - lib/twilio-ruby/rest/messaging/v1.rb
432
+ - lib/twilio-ruby/rest/messaging/v1/deactivation.rb
432
433
  - lib/twilio-ruby/rest/messaging/v1/service.rb
433
434
  - lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb
434
435
  - lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb
@@ -851,6 +852,7 @@ files:
851
852
  - spec/integration/ip_messaging/v2/service/user_spec.rb
852
853
  - spec/integration/ip_messaging/v2/service_spec.rb
853
854
  - spec/integration/lookups/v1/phone_number_spec.rb
855
+ - spec/integration/messaging/v1/deactivation_spec.rb
854
856
  - spec/integration/messaging/v1/service/alpha_sender_spec.rb
855
857
  - spec/integration/messaging/v1/service/phone_number_spec.rb
856
858
  - spec/integration/messaging/v1/service/short_code_spec.rb
@@ -1270,6 +1272,7 @@ test_files:
1270
1272
  - spec/integration/ip_messaging/v2/service/user_spec.rb
1271
1273
  - spec/integration/ip_messaging/v2/service_spec.rb
1272
1274
  - spec/integration/lookups/v1/phone_number_spec.rb
1275
+ - spec/integration/messaging/v1/deactivation_spec.rb
1273
1276
  - spec/integration/messaging/v1/service/alpha_sender_spec.rb
1274
1277
  - spec/integration/messaging/v1/service/phone_number_spec.rb
1275
1278
  - spec/integration/messaging/v1/service/short_code_spec.rb