twilio-ruby 5.8.0 → 5.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +0 -4
- data/CHANGES.md +9 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/framework/error.rb +11 -9
- data/lib/twilio-ruby/framework/page.rb +1 -1
- data/lib/twilio-ruby/rest/api.rb +2 -1
- data/lib/twilio-ruby/rest/api/v2010/account.rb +12 -9
- data/lib/twilio-ruby/rest/api/v2010/account/key.rb +8 -6
- data/lib/twilio-ruby/rest/api/v2010/account/new_key.rb +7 -6
- data/lib/twilio-ruby/rest/api/v2010/account/sip/credential_list/credential.rb +12 -10
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain.rb +13 -11
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/sip/ip_access_control_list.rb +3 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +27 -24
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +43 -22
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +39 -21
- data/lib/twilio-ruby/rest/client.rb +2 -1
- data/lib/twilio-ruby/rest/lookups.rb +3 -1
- data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +37 -11
- data/lib/twilio-ruby/rest/trunking.rb +2 -1
- data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +78 -30
- data/lib/twilio-ruby/rest/trunking/v1/trunk/origination_url.rb +51 -28
- data/lib/twilio-ruby/rest/trunking/v1/trunk/phone_number.rb +3 -1
- data/lib/twilio-ruby/rest/video/v1/room/recording.rb +15 -8
- data/lib/twilio-ruby/version.rb +1 -1
- data/spec/integration/pricing/v1/messaging/country_spec.rb +12 -12
- data/spec/integration/pricing/v1/phone_number/country_spec.rb +17 -17
- data/spec/integration/pricing/v1/voice/country_spec.rb +21 -149
- data/spec/integration/pricing/v1/voice/number_spec.rb +4 -4
- data/spec/integration/video/v1/room/recording_spec.rb +10 -0
- metadata +2 -2
@@ -27,7 +27,8 @@ module Twilio
|
|
27
27
|
end
|
28
28
|
|
29
29
|
##
|
30
|
-
# @param [String] sid
|
30
|
+
# @param [String] sid A 34 character string that uniquely identifies the SIP Trunk
|
31
|
+
# in Twilio.
|
31
32
|
# @return [Twilio::REST::Trunking::V1::TrunkInstance] if sid was passed.
|
32
33
|
# @return [Twilio::REST::Trunking::V1::TrunkList]
|
33
34
|
def trunks(sid=:unset)
|
@@ -24,12 +24,28 @@ module Twilio
|
|
24
24
|
##
|
25
25
|
# Retrieve a single page of TrunkInstance records from the API.
|
26
26
|
# Request is executed immediately.
|
27
|
-
# @param [String] friendly_name
|
28
|
-
# @param [String] domain_name The
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
27
|
+
# @param [String] friendly_name A human-readable name for the Trunk.
|
28
|
+
# @param [String] domain_name The unique address you reserve on Twilio to which
|
29
|
+
# you route your SIP traffic. Domain names can contain letters, digits, and `-`
|
30
|
+
# and must always end with `pstn.twilio.com`. See [Termination
|
31
|
+
# Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
|
32
|
+
# for more information.
|
33
|
+
# @param [String] disaster_recovery_url The HTTP URL that Twilio will request if
|
34
|
+
# an error occurs while sending SIP traffic towards your configured Origination
|
35
|
+
# URL. Twilio will retrieve TwiML from this URL and execute those instructions
|
36
|
+
# like any other normal TwiML call. See [Disaster
|
37
|
+
# Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
|
38
|
+
# @param [String] disaster_recovery_method The HTTP method Twilio will use when
|
39
|
+
# requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
|
40
|
+
# @param [String] recording The recording settings for this trunk. If turned on,
|
41
|
+
# all calls going through this trunk will be recorded and the recording can either
|
42
|
+
# start when the call is ringing or when the call is answered. See
|
43
|
+
# [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
|
44
|
+
# for more information.
|
45
|
+
# @param [Boolean] secure The Secure Trunking settings for this trunk. If turned
|
46
|
+
# on, all calls going through this trunk will be secure using SRTP for media and
|
47
|
+
# TLS for signalling. If turned off, then RTP will be used for media. See [Secure
|
48
|
+
# Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
|
33
49
|
# @return [TrunkInstance] Newly created TrunkInstance
|
34
50
|
def create(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset)
|
35
51
|
data = Twilio::Values.of({
|
@@ -212,12 +228,28 @@ module Twilio
|
|
212
228
|
|
213
229
|
##
|
214
230
|
# Update the TrunkInstance
|
215
|
-
# @param [String] friendly_name
|
216
|
-
# @param [String] domain_name The
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
231
|
+
# @param [String] friendly_name A human-readable name for the Trunk.
|
232
|
+
# @param [String] domain_name The unique address you reserve on Twilio to which
|
233
|
+
# you route your SIP traffic. Domain names can contain letters, digits, and `-`
|
234
|
+
# and must always end with `pstn.twilio.com`. See [Termination
|
235
|
+
# Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
|
236
|
+
# for more information.
|
237
|
+
# @param [String] disaster_recovery_url The HTTP URL that Twilio will request if
|
238
|
+
# an error occurs while sending SIP traffic towards your configured Origination
|
239
|
+
# URL. Twilio will retrieve TwiML from this URL and execute those instructions
|
240
|
+
# like any other normal TwiML call. See [Disaster
|
241
|
+
# Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
|
242
|
+
# @param [String] disaster_recovery_method The HTTP method Twilio will use when
|
243
|
+
# requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
|
244
|
+
# @param [String] recording The recording settings for this trunk. If turned on,
|
245
|
+
# all calls going through this trunk will be recorded and the recording can either
|
246
|
+
# start when the call is ringing or when the call is answered. See
|
247
|
+
# [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
|
248
|
+
# for more information.
|
249
|
+
# @param [Boolean] secure The Secure Trunking settings for this trunk. If turned
|
250
|
+
# on, all calls going through this trunk will be secure using SRTP for media and
|
251
|
+
# TLS for signalling. If turned off, then RTP will be used for media. See [Secure
|
252
|
+
# Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
|
221
253
|
# @return [TrunkInstance] Updated TrunkInstance
|
222
254
|
def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset)
|
223
255
|
data = Twilio::Values.of({
|
@@ -363,49 +395,49 @@ module Twilio
|
|
363
395
|
end
|
364
396
|
|
365
397
|
##
|
366
|
-
# @return [String] The
|
398
|
+
# @return [String] The unique ID of the Account that owns this Trunk.
|
367
399
|
def account_sid
|
368
400
|
@properties['account_sid']
|
369
401
|
end
|
370
402
|
|
371
403
|
##
|
372
|
-
# @return [String] The
|
404
|
+
# @return [String] The unique address you reserve on Twilio to which you route your SIP traffic.
|
373
405
|
def domain_name
|
374
406
|
@properties['domain_name']
|
375
407
|
end
|
376
408
|
|
377
409
|
##
|
378
|
-
# @return [String] The
|
410
|
+
# @return [String] The HTTP method Twilio will use when requesting the DisasterRecoveryUrl.
|
379
411
|
def disaster_recovery_method
|
380
412
|
@properties['disaster_recovery_method']
|
381
413
|
end
|
382
414
|
|
383
415
|
##
|
384
|
-
# @return [String] The
|
416
|
+
# @return [String] The HTTP URL that Twilio will request if an error occurs while sending SIP traffic towards your configured Origination URL.
|
385
417
|
def disaster_recovery_url
|
386
418
|
@properties['disaster_recovery_url']
|
387
419
|
end
|
388
420
|
|
389
421
|
##
|
390
|
-
# @return [String]
|
422
|
+
# @return [String] A human-readable name for the Trunk.
|
391
423
|
def friendly_name
|
392
424
|
@properties['friendly_name']
|
393
425
|
end
|
394
426
|
|
395
427
|
##
|
396
|
-
# @return [Boolean] The
|
428
|
+
# @return [Boolean] The Secure Trunking settings for this trunk.
|
397
429
|
def secure
|
398
430
|
@properties['secure']
|
399
431
|
end
|
400
432
|
|
401
433
|
##
|
402
|
-
# @return [Hash] The recording
|
434
|
+
# @return [Hash] The recording settings for this trunk.
|
403
435
|
def recording
|
404
436
|
@properties['recording']
|
405
437
|
end
|
406
438
|
|
407
439
|
##
|
408
|
-
# @return [String] The
|
440
|
+
# @return [String] The types of authentication you have mapped to your domain.
|
409
441
|
def auth_type
|
410
442
|
@properties['auth_type']
|
411
443
|
end
|
@@ -417,25 +449,25 @@ module Twilio
|
|
417
449
|
end
|
418
450
|
|
419
451
|
##
|
420
|
-
# @return [Time] The
|
452
|
+
# @return [Time] The date this Activity was created.
|
421
453
|
def date_created
|
422
454
|
@properties['date_created']
|
423
455
|
end
|
424
456
|
|
425
457
|
##
|
426
|
-
# @return [Time] The
|
458
|
+
# @return [Time] The date this Activity was updated.
|
427
459
|
def date_updated
|
428
460
|
@properties['date_updated']
|
429
461
|
end
|
430
462
|
|
431
463
|
##
|
432
|
-
# @return [String]
|
464
|
+
# @return [String] A 34 character string that uniquely identifies the SIP Trunk in Twilio.
|
433
465
|
def sid
|
434
466
|
@properties['sid']
|
435
467
|
end
|
436
468
|
|
437
469
|
##
|
438
|
-
# @return [String] The
|
470
|
+
# @return [String] The URL for this resource, relative to https://trunking.
|
439
471
|
def url
|
440
472
|
@properties['url']
|
441
473
|
end
|
@@ -462,12 +494,28 @@ module Twilio
|
|
462
494
|
|
463
495
|
##
|
464
496
|
# Update the TrunkInstance
|
465
|
-
# @param [String] friendly_name
|
466
|
-
# @param [String] domain_name The
|
467
|
-
#
|
468
|
-
#
|
469
|
-
#
|
470
|
-
#
|
497
|
+
# @param [String] friendly_name A human-readable name for the Trunk.
|
498
|
+
# @param [String] domain_name The unique address you reserve on Twilio to which
|
499
|
+
# you route your SIP traffic. Domain names can contain letters, digits, and `-`
|
500
|
+
# and must always end with `pstn.twilio.com`. See [Termination
|
501
|
+
# Settings](https://www.twilio.com/docs/sip-trunking/getting-started#termination)
|
502
|
+
# for more information.
|
503
|
+
# @param [String] disaster_recovery_url The HTTP URL that Twilio will request if
|
504
|
+
# an error occurs while sending SIP traffic towards your configured Origination
|
505
|
+
# URL. Twilio will retrieve TwiML from this URL and execute those instructions
|
506
|
+
# like any other normal TwiML call. See [Disaster
|
507
|
+
# Recovery](https://www.twilio.com/docs/sip-trunking/getting-started#disaster-recovery) for more information.
|
508
|
+
# @param [String] disaster_recovery_method The HTTP method Twilio will use when
|
509
|
+
# requesting the `DisasterRecoveryUrl`. Either `GET` or `POST`.
|
510
|
+
# @param [String] recording The recording settings for this trunk. If turned on,
|
511
|
+
# all calls going through this trunk will be recorded and the recording can either
|
512
|
+
# start when the call is ringing or when the call is answered. See
|
513
|
+
# [Recording](https://www.twilio.com/docs/sip-trunking/getting-started#recording)
|
514
|
+
# for more information.
|
515
|
+
# @param [Boolean] secure The Secure Trunking settings for this trunk. If turned
|
516
|
+
# on, all calls going through this trunk will be secure using SRTP for media and
|
517
|
+
# TLS for signalling. If turned off, then RTP will be used for media. See [Secure
|
518
|
+
# Trunking](https://www.twilio.com/docs/sip-trunking/getting-started#securetrunking) for more information.
|
471
519
|
# @return [TrunkInstance] Updated TrunkInstance
|
472
520
|
def update(friendly_name: :unset, domain_name: :unset, disaster_recovery_url: :unset, disaster_recovery_method: :unset, recording: :unset, secure: :unset)
|
473
521
|
context.update(
|
@@ -13,7 +13,8 @@ module Twilio
|
|
13
13
|
##
|
14
14
|
# Initialize the OriginationUrlList
|
15
15
|
# @param [Version] version Version that contains the resource
|
16
|
-
# @param [String] trunk_sid The
|
16
|
+
# @param [String] trunk_sid The unique ID of the Trunk that owns this Origination
|
17
|
+
# URL.
|
17
18
|
# @return [OriginationUrlList] OriginationUrlList
|
18
19
|
def initialize(version, trunk_sid: nil)
|
19
20
|
super(version)
|
@@ -26,11 +27,18 @@ module Twilio
|
|
26
27
|
##
|
27
28
|
# Retrieve a single page of OriginationUrlInstance records from the API.
|
28
29
|
# Request is executed immediately.
|
29
|
-
# @param [String] weight
|
30
|
-
#
|
31
|
-
#
|
32
|
-
# @param [String]
|
33
|
-
#
|
30
|
+
# @param [String] weight Weight is used to determine the share of load when more
|
31
|
+
# than one URI has the same priority. Its values range from 1 to 65535. The higher
|
32
|
+
# the value, the more load a URI is given. Defaults to 10.
|
33
|
+
# @param [String] priority Priority ranks the importance of the URI. Values range
|
34
|
+
# from 0 to 65535, where the lowest number represents the highest importance.
|
35
|
+
# Defaults to 10.
|
36
|
+
# @param [Boolean] enabled A boolean value indicating whether the URL is enabled
|
37
|
+
# or disabled. Defaults to true.
|
38
|
+
# @param [String] friendly_name A human readable descriptive text, up to 64
|
39
|
+
# characters long.
|
40
|
+
# @param [String] sip_url The SIP address you want Twilio to route your
|
41
|
+
# Origination calls to. This must be a `sip:` schema.
|
34
42
|
# @return [OriginationUrlInstance] Newly created OriginationUrlInstance
|
35
43
|
def create(weight: nil, priority: nil, enabled: nil, friendly_name: nil, sip_url: nil)
|
36
44
|
data = Twilio::Values.of({
|
@@ -212,11 +220,18 @@ module Twilio
|
|
212
220
|
|
213
221
|
##
|
214
222
|
# Update the OriginationUrlInstance
|
215
|
-
# @param [String] weight
|
216
|
-
#
|
217
|
-
#
|
218
|
-
# @param [String]
|
219
|
-
#
|
223
|
+
# @param [String] weight Weight is used to determine the share of load when more
|
224
|
+
# than one URI has the same priority. Its values range from 1 to 65535. The higher
|
225
|
+
# the value, the more load a URI is given. Defaults to 10.
|
226
|
+
# @param [String] priority Priority ranks the importance of the URI. Values range
|
227
|
+
# from 0 to 65535, where the lowest number represents the highest importance.
|
228
|
+
# Defaults to 10.
|
229
|
+
# @param [Boolean] enabled A boolean value indicating whether the URL is enabled
|
230
|
+
# or disabled. Defaults to true.
|
231
|
+
# @param [String] friendly_name A human readable descriptive text, up to 64
|
232
|
+
# characters long.
|
233
|
+
# @param [String] sip_url The SIP address you want Twilio to route your
|
234
|
+
# Origination calls to. This must be a `sip:` schema. `sips` is NOT supported
|
220
235
|
# @return [OriginationUrlInstance] Updated OriginationUrlInstance
|
221
236
|
def update(weight: :unset, priority: :unset, enabled: :unset, friendly_name: :unset, sip_url: :unset)
|
222
237
|
data = Twilio::Values.of({
|
@@ -254,7 +269,8 @@ module Twilio
|
|
254
269
|
# Initialize the OriginationUrlInstance
|
255
270
|
# @param [Version] version Version that contains the resource
|
256
271
|
# @param [Hash] payload payload that contains response from Twilio
|
257
|
-
# @param [String] trunk_sid The
|
272
|
+
# @param [String] trunk_sid The unique ID of the Trunk that owns this Origination
|
273
|
+
# URL.
|
258
274
|
# @param [String] sid The sid
|
259
275
|
# @return [OriginationUrlInstance] OriginationUrlInstance
|
260
276
|
def initialize(version, payload, trunk_sid: nil, sid: nil)
|
@@ -292,67 +308,67 @@ module Twilio
|
|
292
308
|
end
|
293
309
|
|
294
310
|
##
|
295
|
-
# @return [String] The
|
311
|
+
# @return [String] The unique ID of the Account that owns this Origination URL.
|
296
312
|
def account_sid
|
297
313
|
@properties['account_sid']
|
298
314
|
end
|
299
315
|
|
300
316
|
##
|
301
|
-
# @return [String]
|
317
|
+
# @return [String] A 34 character string that uniquely identifies the Origination URL in this Twilio Trunk.
|
302
318
|
def sid
|
303
319
|
@properties['sid']
|
304
320
|
end
|
305
321
|
|
306
322
|
##
|
307
|
-
# @return [String] The
|
323
|
+
# @return [String] The unique ID of the Trunk that owns this Origination URL.
|
308
324
|
def trunk_sid
|
309
325
|
@properties['trunk_sid']
|
310
326
|
end
|
311
327
|
|
312
328
|
##
|
313
|
-
# @return [String]
|
329
|
+
# @return [String] Weight is used to determine the share of load when more than one URI has the same priority.
|
314
330
|
def weight
|
315
331
|
@properties['weight']
|
316
332
|
end
|
317
333
|
|
318
334
|
##
|
319
|
-
# @return [Boolean]
|
335
|
+
# @return [Boolean] A boolean value indicating whether the URL is enabled or disabled.
|
320
336
|
def enabled
|
321
337
|
@properties['enabled']
|
322
338
|
end
|
323
339
|
|
324
340
|
##
|
325
|
-
# @return [String] The
|
341
|
+
# @return [String] The SIP address you want Twilio to route your Origination calls to.
|
326
342
|
def sip_url
|
327
343
|
@properties['sip_url']
|
328
344
|
end
|
329
345
|
|
330
346
|
##
|
331
|
-
# @return [String]
|
347
|
+
# @return [String] A human readable descriptive text, up to 64 characters long.
|
332
348
|
def friendly_name
|
333
349
|
@properties['friendly_name']
|
334
350
|
end
|
335
351
|
|
336
352
|
##
|
337
|
-
# @return [String]
|
353
|
+
# @return [String] Priority ranks the importance of the URI.
|
338
354
|
def priority
|
339
355
|
@properties['priority']
|
340
356
|
end
|
341
357
|
|
342
358
|
##
|
343
|
-
# @return [Time] The
|
359
|
+
# @return [Time] The date this Activity was created.
|
344
360
|
def date_created
|
345
361
|
@properties['date_created']
|
346
362
|
end
|
347
363
|
|
348
364
|
##
|
349
|
-
# @return [Time] The
|
365
|
+
# @return [Time] The date this Activity was updated.
|
350
366
|
def date_updated
|
351
367
|
@properties['date_updated']
|
352
368
|
end
|
353
369
|
|
354
370
|
##
|
355
|
-
# @return [String] The
|
371
|
+
# @return [String] The URL for this resource, relative to https://trunking.
|
356
372
|
def url
|
357
373
|
@properties['url']
|
358
374
|
end
|
@@ -373,11 +389,18 @@ module Twilio
|
|
373
389
|
|
374
390
|
##
|
375
391
|
# Update the OriginationUrlInstance
|
376
|
-
# @param [String] weight
|
377
|
-
#
|
378
|
-
#
|
379
|
-
# @param [String]
|
380
|
-
#
|
392
|
+
# @param [String] weight Weight is used to determine the share of load when more
|
393
|
+
# than one URI has the same priority. Its values range from 1 to 65535. The higher
|
394
|
+
# the value, the more load a URI is given. Defaults to 10.
|
395
|
+
# @param [String] priority Priority ranks the importance of the URI. Values range
|
396
|
+
# from 0 to 65535, where the lowest number represents the highest importance.
|
397
|
+
# Defaults to 10.
|
398
|
+
# @param [Boolean] enabled A boolean value indicating whether the URL is enabled
|
399
|
+
# or disabled. Defaults to true.
|
400
|
+
# @param [String] friendly_name A human readable descriptive text, up to 64
|
401
|
+
# characters long.
|
402
|
+
# @param [String] sip_url The SIP address you want Twilio to route your
|
403
|
+
# Origination calls to. This must be a `sip:` schema. `sips` is NOT supported
|
381
404
|
# @return [OriginationUrlInstance] Updated OriginationUrlInstance
|
382
405
|
def update(weight: :unset, priority: :unset, enabled: :unset, friendly_name: :unset, sip_url: :unset)
|
383
406
|
context.update(
|
@@ -26,7 +26,9 @@ module Twilio
|
|
26
26
|
##
|
27
27
|
# Retrieve a single page of PhoneNumberInstance records from the API.
|
28
28
|
# Request is executed immediately.
|
29
|
-
# @param [String] phone_number_sid The
|
29
|
+
# @param [String] phone_number_sid The SID of the [Incoming Phone
|
30
|
+
# Number](https://www.twilio.com/docs/api/rest/incoming-phone-numbers) that you
|
31
|
+
# want to associate with this trunk.
|
30
32
|
# @return [PhoneNumberInstance] Newly created PhoneNumberInstance
|
31
33
|
def create(phone_number_sid: nil)
|
32
34
|
data = Twilio::Values.of({'PhoneNumberSid' => phone_number_sid, })
|
@@ -226,14 +226,15 @@ module Twilio
|
|
226
226
|
'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
|
227
227
|
'sid' => payload['sid'],
|
228
228
|
'source_sid' => payload['source_sid'],
|
229
|
-
'size' => payload['size']
|
229
|
+
'size' => payload['size'],
|
230
|
+
'url' => payload['url'],
|
230
231
|
'type' => payload['type'],
|
231
232
|
'duration' => payload['duration'] == nil ? payload['duration'] : payload['duration'].to_i,
|
232
233
|
'container_format' => payload['container_format'],
|
233
234
|
'codec' => payload['codec'],
|
234
235
|
'grouping_sids' => payload['grouping_sids'],
|
236
|
+
'track_name' => payload['track_name'],
|
235
237
|
'room_sid' => payload['room_sid'],
|
236
|
-
'url' => payload['url'],
|
237
238
|
'links' => payload['links'],
|
238
239
|
}
|
239
240
|
|
@@ -289,6 +290,12 @@ module Twilio
|
|
289
290
|
@properties['size']
|
290
291
|
end
|
291
292
|
|
293
|
+
##
|
294
|
+
# @return [String] The url
|
295
|
+
def url
|
296
|
+
@properties['url']
|
297
|
+
end
|
298
|
+
|
292
299
|
##
|
293
300
|
# @return [room_recording.Type] The type
|
294
301
|
def type
|
@@ -320,15 +327,15 @@ module Twilio
|
|
320
327
|
end
|
321
328
|
|
322
329
|
##
|
323
|
-
# @return [String] The
|
324
|
-
def
|
325
|
-
@properties['
|
330
|
+
# @return [String] The track_name
|
331
|
+
def track_name
|
332
|
+
@properties['track_name']
|
326
333
|
end
|
327
334
|
|
328
335
|
##
|
329
|
-
# @return [String] The
|
330
|
-
def
|
331
|
-
@properties['
|
336
|
+
# @return [String] The room_sid
|
337
|
+
def room_sid
|
338
|
+
@properties['room_sid']
|
332
339
|
end
|
333
340
|
|
334
341
|
##
|
data/lib/twilio-ruby/version.rb
CHANGED
@@ -30,13 +30,13 @@ describe 'Country' do
|
|
30
30
|
{
|
31
31
|
"countries": [],
|
32
32
|
"meta": {
|
33
|
-
"first_page_url": "https://pricing.twilio.com/v1/Messaging/Countries?Page=0
|
33
|
+
"first_page_url": "https://pricing.twilio.com/v1/Messaging/Countries?PageSize=50&Page=0",
|
34
34
|
"key": "countries",
|
35
35
|
"next_page_url": null,
|
36
36
|
"page": 0,
|
37
|
-
"page_size":
|
37
|
+
"page_size": 50,
|
38
38
|
"previous_page_url": null,
|
39
|
-
"url": "https://pricing.twilio.com/v1/Messaging/Countries"
|
39
|
+
"url": "https://pricing.twilio.com/v1/Messaging/Countries?PageSize=50&Page=0"
|
40
40
|
}
|
41
41
|
}
|
42
42
|
]
|
@@ -57,17 +57,17 @@ describe 'Country' do
|
|
57
57
|
{
|
58
58
|
"country": "country",
|
59
59
|
"iso_country": "US",
|
60
|
-
"url": "
|
60
|
+
"url": "https://pricing.twilio.com/v1/Messaging/Countries/US"
|
61
61
|
}
|
62
62
|
],
|
63
63
|
"meta": {
|
64
|
-
"first_page_url": "https://pricing.twilio.com/v1/Messaging/Countries?Page=0
|
64
|
+
"first_page_url": "https://pricing.twilio.com/v1/Messaging/Countries?PageSize=50&Page=0",
|
65
65
|
"key": "countries",
|
66
66
|
"next_page_url": null,
|
67
67
|
"page": 0,
|
68
|
-
"page_size":
|
68
|
+
"page_size": 50,
|
69
69
|
"previous_page_url": null,
|
70
|
-
"url": "https://pricing.twilio.com/v1/Messaging/Countries"
|
70
|
+
"url": "https://pricing.twilio.com/v1/Messaging/Countries?PageSize=50&Page=0"
|
71
71
|
}
|
72
72
|
}
|
73
73
|
]
|
@@ -103,8 +103,8 @@ describe 'Country' do
|
|
103
103
|
"country": "country",
|
104
104
|
"inbound_sms_prices": [
|
105
105
|
{
|
106
|
-
"base_price": 0.05,
|
107
|
-
"current_price": 0.05,
|
106
|
+
"base_price": "0.05",
|
107
|
+
"current_price": "0.05",
|
108
108
|
"number_type": "mobile"
|
109
109
|
}
|
110
110
|
],
|
@@ -116,15 +116,15 @@ describe 'Country' do
|
|
116
116
|
"mnc": "bar",
|
117
117
|
"prices": [
|
118
118
|
{
|
119
|
-
"base_price": 0.05,
|
120
|
-
"current_price": 0.05,
|
119
|
+
"base_price": "0.05",
|
120
|
+
"current_price": "0.05",
|
121
121
|
"number_type": "mobile"
|
122
122
|
}
|
123
123
|
]
|
124
124
|
}
|
125
125
|
],
|
126
126
|
"price_unit": "USD",
|
127
|
-
"url": "
|
127
|
+
"url": "https://pricing.twilio.com/v1/Messaging/Countries/US"
|
128
128
|
}
|
129
129
|
]
|
130
130
|
))
|