twilio-ruby 5.60.0 → 5.61.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Makefile CHANGED
@@ -10,7 +10,7 @@ test: lint
10
10
  bundle exec rake spec
11
11
 
12
12
  lint:
13
- rubocop --cache true --parallel
13
+ bundle exec rubocop --cache true --parallel
14
14
 
15
15
  docs:
16
16
  yard doc --output-dir ./doc
@@ -22,12 +22,11 @@ authors:
22
22
  API_DEFINITIONS_SHA=$(shell git log --oneline | grep Regenerated | head -n1 | cut -d ' ' -f 5)
23
23
  docker-build:
24
24
  docker build -t twilio/twilio-ruby .
25
- docker tag twilio/twilio-ruby twilio/twilio-ruby:${TRAVIS_TAG}
25
+ docker tag twilio/twilio-ruby twilio/twilio-ruby:${GITHUB_TAG}
26
26
  docker tag twilio/twilio-ruby twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
27
27
  docker tag twilio/twilio-ruby twilio/twilio-ruby:latest
28
28
 
29
29
  docker-push:
30
- echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}" --password-stdin
31
- docker push twilio/twilio-ruby:${TRAVIS_TAG}
30
+ docker push twilio/twilio-ruby:${GITHUB_TAG}
32
31
  docker push twilio/twilio-ruby:apidefs-${API_DEFINITIONS_SHA}
33
32
  docker push twilio/twilio-ruby:latest
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # twilio-ruby
2
2
 
3
- [![Build Status](https://app.travis-ci.com/twilio/twilio-ruby.svg?branch=main)][travis]
3
+ [![Tests](https://github.com/twilio/twilio-ruby/actions/workflows/test.yml/badge.svg)][github-actions]
4
4
  [![Gem Version](https://img.shields.io/gem/v/twilio-ruby.svg)](https://rubygems.org/gems/twilio-ruby)
5
5
  [![Learn with TwilioQuest](https://img.shields.io/static/v1?label=TwilioQuest&message=Learn%20to%20contribute%21&color=F22F46&labelColor=1f243c&style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAMAAAD04JH5AAAASFBMVEUAAAAZGRkcHBwjIyMoKCgAAABgYGBoaGiAgICMjIyzs7PJycnMzMzNzc3UoBfd3d3m5ubqrhfrMEDu7u739/f4vSb/3AD///9tbdyEAAAABXRSTlMAAAAAAMJrBrEAAAKoSURBVHgB7ZrRcuI6EESdyxXGYoNFvMD//+l2bSszRgyUYpFAsXOeiJGmj4NkuWx1Qeh+Ekl9DgEXOBwOx+Px5xyQhDykfgq4wG63MxxaR4ddIkg6Ul3g84vCIcjPBA5gmUMeXESrlukuoK33+33uID8TWeLAdOWsKpJYzwVMB7bOzYSGOciyUlXSn0/ABXTosJ1M1SbypZ4O4MbZuIDMU02PMbauhhHMHXbmebmALIiEbbbbbUrpF1gwE9kFfRNAJaP+FQEXCCTGyJ4ngDrjOFo3jEL5JdqjF/pueR4cCeCGgAtwmuRS6gDwaRiGvu+DMFwSBLTE3+jF8JyuV1okPZ+AC4hDFhCHyHQjdjPHUKFDlHSJkHQXMB3KpSwXNGJPcwwTdZiXlRN0gSp0zpWxNtM0beYE0nRH6QIbO7rawwXaBYz0j78gxjokDuv12gVeUuBD0MDi0OQCLvDaAho4juP1Q/jkAncXqIcCfd+7gAu4QLMACCLxpRsSuQh0igu0C9Svhi7weAGZg50L3IE3cai4IfkNZAC8dfdhsUD3CgKBVC9JE5ABAFzg4QL/taYPAAWrHdYcgfLaIgAXWJ7OV38n1LEF8tt2TH29E+QAoDoO5Ve/LtCQDmKM9kPbvCEBApK+IXzbcSJ0cIGF6e8gpcRhUDogWZ8JnaWjPXc/fNnBBUKRngiHgTUSivSzDRDgHZQOLvBQgf8rRt+VdBUUhwkU6VpJ+xcOwQUqZr+mR0kvBUgv6cB4+37hQAkXqE8PwGisGhJtN4xAHMzrsgvI7rccXqSvKh6jltGlrOHA3Xk1At3LC4QiPdX9/0ndHpGVvTjR4bZA1ypAKgVcwE5vx74ulwIugDt8e/X7JgfkucBMIAr26ndnB4UCLnDOqvteQsHlgX9N4A+c4cW3DXSPbwAAAABJRU5ErkJggg==)](https://twil.io/learn-open-source)
6
6
 
@@ -35,13 +35,13 @@ This library supports the following Ruby implementations:
35
35
  To install using [Bundler][bundler] grab the latest stable version:
36
36
 
37
37
  ```ruby
38
- gem 'twilio-ruby', '~> 5.60.0'
38
+ gem 'twilio-ruby', '~> 5.61.0'
39
39
  ```
40
40
 
41
41
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
42
42
 
43
43
  ```bash
44
- gem install twilio-ruby -v 5.60.0
44
+ gem install twilio-ruby -v 5.61.0
45
45
  ```
46
46
 
47
47
  To build and install the development branch yourself from the latest source:
@@ -257,7 +257,7 @@ If you've instead found a bug in the library or would like new features added, g
257
257
  [bundler]: https://bundler.io
258
258
  [rubygems]: https://rubygems.org
259
259
  [gem]: https://rubygems.org/gems/twilio
260
- [travis]: https://travis-ci.com/twilio/twilio-ruby
260
+ [github-actions]: https://github.com/twilio/twilio-ruby/actions/workflows/test.yml
261
261
  [upgrade]: https://github.com/twilio/twilio-ruby/wiki/Ruby-Version-5.x-Upgrade-Guide
262
262
  [issues]: https://github.com/twilio/twilio-ruby/issues
263
263
  [faraday]: https://github.com/lostisland/faraday
@@ -27,7 +27,7 @@ module Twilio
27
27
  # Create the MediaProcessorInstance
28
28
  # @param [String] extension The {Media
29
29
  # Extension}[/docs/live/api/media-extensions-overview] name or URL. Ex:
30
- # `video-composer-v1-preview`
30
+ # `video-composer-v1`
31
31
  # @param [String] extension_context The context of the Media Extension,
32
32
  # represented as a JSON dictionary. See the documentation for the specific {Media
33
33
  # Extension}[/docs/live/api/media-extensions-overview] you are using for more
@@ -319,7 +319,7 @@ module Twilio
319
319
  end
320
320
 
321
321
  ##
322
- # @return [brand_registration.Status] Brand Registration status
322
+ # @return [brand_registration.Status] Brand Registration status.
323
323
  def status
324
324
  @properties['status']
325
325
  end
@@ -119,6 +119,8 @@ module Twilio
119
119
  # If provided, the Workspace will publish events to this URL, for example, to
120
120
  # collect data for reporting. See {Workspace
121
121
  # Events}[https://www.twilio.com/docs/taskrouter/api/event] for more information.
122
+ # This parameter supports Twilio's {Webhooks (HTTP callbacks) Connection
123
+ # Overrides}[https://www.twilio.com/docs/usage/webhooks/webhooks-connection-overrides].
122
124
  # @param [String] events_filter The list of Workspace events for which to call
123
125
  # event_callback_url. For example, if `EventsFilter=task.created, task.canceled,
124
126
  # worker.activity.update`, then TaskRouter will call event_callback_url only when
@@ -235,7 +237,9 @@ module Twilio
235
237
  # when new Workers are created in the Workspace.
236
238
  # @param [String] event_callback_url The URL we should call when an event occurs.
237
239
  # See {Workspace Events}[https://www.twilio.com/docs/taskrouter/api/event] for
238
- # more information.
240
+ # more information. This parameter supports Twilio's {Webhooks (HTTP callbacks)
241
+ # Connection
242
+ # Overrides}[https://www.twilio.com/docs/usage/webhooks/webhooks-connection-overrides].
239
243
  # @param [String] events_filter The list of Workspace events for which to call
240
244
  # event_callback_url. For example if
241
245
  # `EventsFilter=task.created,task.canceled,worker.activity.update`, then
@@ -598,7 +602,9 @@ module Twilio
598
602
  # when new Workers are created in the Workspace.
599
603
  # @param [String] event_callback_url The URL we should call when an event occurs.
600
604
  # See {Workspace Events}[https://www.twilio.com/docs/taskrouter/api/event] for
601
- # more information.
605
+ # more information. This parameter supports Twilio's {Webhooks (HTTP callbacks)
606
+ # Connection
607
+ # Overrides}[https://www.twilio.com/docs/usage/webhooks/webhooks-connection-overrides].
602
608
  # @param [String] events_filter The list of Workspace events for which to call
603
609
  # event_callback_url. For example if
604
610
  # `EventsFilter=task.created,task.canceled,worker.activity.update`, then
@@ -204,8 +204,8 @@ module Twilio
204
204
  # for the first time. E.g. for a TOTP, the numeric code.
205
205
  # @param [String] friendly_name The new friendly name of this Factor. It can be up
206
206
  # to 64 characters.
207
- # @param [String] config_notification_token For APN, the device token. For FCM the
208
- # registration token. It used to send the push notifications. Required when
207
+ # @param [String] config_notification_token For APN, the device token. For FCM,
208
+ # the registration token. It is used to send the push notifications. Required when
209
209
  # `factor_type` is `push`. If specified, this value must be between 32 and 255
210
210
  # characters long.
211
211
  # @param [String] config_sdk_version The Verify Push SDK version used to configure
@@ -404,8 +404,8 @@ module Twilio
404
404
  # for the first time. E.g. for a TOTP, the numeric code.
405
405
  # @param [String] friendly_name The new friendly name of this Factor. It can be up
406
406
  # to 64 characters.
407
- # @param [String] config_notification_token For APN, the device token. For FCM the
408
- # registration token. It used to send the push notifications. Required when
407
+ # @param [String] config_notification_token For APN, the device token. For FCM,
408
+ # the registration token. It is used to send the push notifications. Required when
409
409
  # `factor_type` is `push`. If specified, this value must be between 32 and 255
410
410
  # characters long.
411
411
  # @param [String] config_sdk_version The Verify Push SDK version used to configure
@@ -60,9 +60,9 @@ module Twilio
60
60
  # `fcm`.
61
61
  #
62
62
  # Required when `factor_type` is `push`.
63
- # @param [String] config_notification_token For APN, the device token. For FCM the
64
- # registration token. It used to send the push notifications. Must be between 32
65
- # and 255 characters long.
63
+ # @param [String] config_notification_token For APN, the device token. For FCM,
64
+ # the registration token. It is used to send the push notifications. Must be
65
+ # between 32 and 255 characters long.
66
66
  #
67
67
  # Required when `factor_type` is `push`.
68
68
  # @param [String] config_sdk_version The Verify Push SDK version used to configure
@@ -66,8 +66,14 @@ module Twilio
66
66
  # Hash}[https://developers.google.com/identity/sms-retriever/verify#computing_your_apps_hash_string]
67
67
  # to be appended at the end of your verification SMS body. Applies only to SMS.
68
68
  # Example SMS body: `<#> Your AppName verification code is: 1234 He42w354ol9`.
69
+ # @param [String] template_sid The message
70
+ # {template}[https://www.twilio.com/docs/verify/api/templates]. If provided, will
71
+ # override the default template for the Service. SMS channel only.
72
+ # @param [String] template_custom_substitutions A stringified JSON object in which
73
+ # the keys are the template's special variables and the values are the variables
74
+ # substitutions.
69
75
  # @return [VerificationInstance] Created VerificationInstance
70
- def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset)
76
+ def create(to: nil, channel: nil, custom_friendly_name: :unset, custom_message: :unset, send_digits: :unset, locale: :unset, custom_code: :unset, amount: :unset, payee: :unset, rate_limits: :unset, channel_configuration: :unset, app_hash: :unset, template_sid: :unset, template_custom_substitutions: :unset)
71
77
  data = Twilio::Values.of({
72
78
  'To' => to,
73
79
  'Channel' => channel,
@@ -81,6 +87,8 @@ module Twilio
81
87
  'RateLimits' => Twilio.serialize_object(rate_limits),
82
88
  'ChannelConfiguration' => Twilio.serialize_object(channel_configuration),
83
89
  'AppHash' => app_hash,
90
+ 'TemplateSid' => template_sid,
91
+ 'TemplateCustomSubstitutions' => template_custom_substitutions,
84
92
  })
85
93
 
86
94
  payload = @version.create('POST', @uri, data: data)
@@ -73,8 +73,11 @@ module Twilio
73
73
  # @param [String] totp_skew Optional configuration for the TOTP factors. The
74
74
  # number of time-steps, past and future, that are valid for validation of TOTP
75
75
  # codes. Must be between 0 and 2, inclusive. Defaults to 1
76
+ # @param [String] default_template_sid The default message
77
+ # {template}[https://www.twilio.com/docs/verify/api/templates]. Will be used for
78
+ # all SMS verifications unless explicitly overriden. SMS channel only.
76
79
  # @return [ServiceInstance] Created ServiceInstance
77
- def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push_include_date: :unset, push_apn_credential_sid: :unset, push_fcm_credential_sid: :unset, totp_issuer: :unset, totp_time_step: :unset, totp_code_length: :unset, totp_skew: :unset)
80
+ def create(friendly_name: nil, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push_include_date: :unset, push_apn_credential_sid: :unset, push_fcm_credential_sid: :unset, totp_issuer: :unset, totp_time_step: :unset, totp_code_length: :unset, totp_skew: :unset, default_template_sid: :unset)
78
81
  data = Twilio::Values.of({
79
82
  'FriendlyName' => friendly_name,
80
83
  'CodeLength' => code_length,
@@ -92,6 +95,7 @@ module Twilio
92
95
  'Totp.TimeStep' => totp_time_step,
93
96
  'Totp.CodeLength' => totp_code_length,
94
97
  'Totp.Skew' => totp_skew,
98
+ 'DefaultTemplateSid' => default_template_sid,
95
99
  })
96
100
 
97
101
  payload = @version.create('POST', @uri, data: data)
@@ -303,8 +307,11 @@ module Twilio
303
307
  # @param [String] totp_skew Optional configuration for the TOTP factors. The
304
308
  # number of time-steps, past and future, that are valid for validation of TOTP
305
309
  # codes. Must be between 0 and 2, inclusive. Defaults to 1
310
+ # @param [String] default_template_sid The default message
311
+ # {template}[https://www.twilio.com/docs/verify/api/templates]. Will be used for
312
+ # all SMS verifications unless explicitly overriden. SMS channel only.
306
313
  # @return [ServiceInstance] Updated ServiceInstance
307
- def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push_include_date: :unset, push_apn_credential_sid: :unset, push_fcm_credential_sid: :unset, totp_issuer: :unset, totp_time_step: :unset, totp_code_length: :unset, totp_skew: :unset)
314
+ def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push_include_date: :unset, push_apn_credential_sid: :unset, push_fcm_credential_sid: :unset, totp_issuer: :unset, totp_time_step: :unset, totp_code_length: :unset, totp_skew: :unset, default_template_sid: :unset)
308
315
  data = Twilio::Values.of({
309
316
  'FriendlyName' => friendly_name,
310
317
  'CodeLength' => code_length,
@@ -322,6 +329,7 @@ module Twilio
322
329
  'Totp.TimeStep' => totp_time_step,
323
330
  'Totp.CodeLength' => totp_code_length,
324
331
  'Totp.Skew' => totp_skew,
332
+ 'DefaultTemplateSid' => default_template_sid,
325
333
  })
326
334
 
327
335
  payload = @version.update('POST', @uri, data: data)
@@ -484,6 +492,7 @@ module Twilio
484
492
  'custom_code_enabled' => payload['custom_code_enabled'],
485
493
  'push' => payload['push'],
486
494
  'totp' => payload['totp'],
495
+ 'default_template_sid' => payload['default_template_sid'],
487
496
  'date_created' => Twilio.deserialize_iso8601_datetime(payload['date_created']),
488
497
  'date_updated' => Twilio.deserialize_iso8601_datetime(payload['date_updated']),
489
498
  'url' => payload['url'],
@@ -584,6 +593,12 @@ module Twilio
584
593
  @properties['totp']
585
594
  end
586
595
 
596
+ ##
597
+ # @return [String] The default_template_sid
598
+ def default_template_sid
599
+ @properties['default_template_sid']
600
+ end
601
+
587
602
  ##
588
603
  # @return [Time] The RFC 2822 date and time in GMT when the resource was created
589
604
  def date_created
@@ -670,8 +685,11 @@ module Twilio
670
685
  # @param [String] totp_skew Optional configuration for the TOTP factors. The
671
686
  # number of time-steps, past and future, that are valid for validation of TOTP
672
687
  # codes. Must be between 0 and 2, inclusive. Defaults to 1
688
+ # @param [String] default_template_sid The default message
689
+ # {template}[https://www.twilio.com/docs/verify/api/templates]. Will be used for
690
+ # all SMS verifications unless explicitly overriden. SMS channel only.
673
691
  # @return [ServiceInstance] Updated ServiceInstance
674
- def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push_include_date: :unset, push_apn_credential_sid: :unset, push_fcm_credential_sid: :unset, totp_issuer: :unset, totp_time_step: :unset, totp_code_length: :unset, totp_skew: :unset)
692
+ def update(friendly_name: :unset, code_length: :unset, lookup_enabled: :unset, skip_sms_to_landlines: :unset, dtmf_input_required: :unset, tts_name: :unset, psd2_enabled: :unset, do_not_share_warning_enabled: :unset, custom_code_enabled: :unset, push_include_date: :unset, push_apn_credential_sid: :unset, push_fcm_credential_sid: :unset, totp_issuer: :unset, totp_time_step: :unset, totp_code_length: :unset, totp_skew: :unset, default_template_sid: :unset)
675
693
  context.update(
676
694
  friendly_name: friendly_name,
677
695
  code_length: code_length,
@@ -689,6 +707,7 @@ module Twilio
689
707
  totp_time_step: totp_time_step,
690
708
  totp_code_length: totp_code_length,
691
709
  totp_skew: totp_skew,
710
+ default_template_sid: default_template_sid,
692
711
  )
693
712
  end
694
713
 
@@ -123,13 +123,13 @@ module Twilio
123
123
  # models}[https://www.twilio.com/docs/wireless/api/rateplan-resource#payg-vs-quota-data-plans].
124
124
  # @param [Boolean] messaging_enabled Whether SIMs can make, send, and receive SMS
125
125
  # using {Commands}[https://www.twilio.com/docs/wireless/api/command-resource].
126
- # @param [Boolean] voice_enabled Whether SIMs can make and receive voice calls.
126
+ # @param [Boolean] voice_enabled Deprecated.
127
127
  # @param [Boolean] national_roaming_enabled Whether SIMs can roam on networks
128
128
  # other than the home network (T-Mobile USA) in the United States. See {national
129
129
  # roaming}[https://www.twilio.com/docs/wireless/api/rateplan-resource#national-roaming].
130
130
  # @param [Array[String]] international_roaming The list of services that SIMs
131
131
  # capable of using GPRS/3G/4G/LTE data connectivity can use outside of the United
132
- # States. Can be: `data`, `voice`, and `messaging`.
132
+ # States. Can contain: `data` and `messaging`.
133
133
  # @param [String] national_roaming_data_limit The total data usage (download and
134
134
  # upload combined) in Megabytes that the Network allows during one month on
135
135
  # non-home networks in the United States. The metering period begins the day of
@@ -353,7 +353,7 @@ module Twilio
353
353
  end
354
354
 
355
355
  ##
356
- # @return [Boolean] Whether SIMs can make and receive voice calls
356
+ # @return [Boolean] Deprecated. Whether SIMs can make and receive voice calls
357
357
  def voice_enabled
358
358
  @properties['voice_enabled']
359
359
  end
@@ -249,15 +249,10 @@ module Twilio
249
249
  # @param [String] sms_url The URL we should call using the `sms_method` when the
250
250
  # SIM-connected device sends an SMS message that is not a
251
251
  # {Command}[https://www.twilio.com/docs/wireless/api/command-resource].
252
- # @param [String] voice_fallback_method The HTTP method we should use to call
253
- # `voice_fallback_url`. Can be: `GET` or `POST`.
254
- # @param [String] voice_fallback_url The URL we should call using the
255
- # `voice_fallback_method` when an error occurs while retrieving or executing the
256
- # TwiML requested from `voice_url`.
257
- # @param [String] voice_method The HTTP method we should use when we call
258
- # `voice_url`. Can be: `GET` or `POST`.
259
- # @param [String] voice_url The URL we should call using the `voice_method` when
260
- # the SIM-connected device makes a voice call.
252
+ # @param [String] voice_fallback_method Deprecated.
253
+ # @param [String] voice_fallback_url Deprecated.
254
+ # @param [String] voice_method Deprecated.
255
+ # @param [String] voice_url Deprecated.
261
256
  # @param [sim.ResetStatus] reset_status Initiate a connectivity reset on the SIM.
262
257
  # Set to `resetting` to initiate a connectivity reset on the SIM. No other value
263
258
  # is valid.
@@ -463,49 +458,49 @@ module Twilio
463
458
  end
464
459
 
465
460
  ##
466
- # @return [String] The HTTP method we use to call sms_fallback_url
461
+ # @return [String] Deprecated. The HTTP method we use to call sms_fallback_url
467
462
  def sms_fallback_method
468
463
  @properties['sms_fallback_method']
469
464
  end
470
465
 
471
466
  ##
472
- # @return [String] The URL we call when an error occurs while retrieving or executing the TwiML requested from the sms_url
467
+ # @return [String] Deprecated. The URL we call when an error occurs while retrieving or executing the TwiML requested from the sms_url
473
468
  def sms_fallback_url
474
469
  @properties['sms_fallback_url']
475
470
  end
476
471
 
477
472
  ##
478
- # @return [String] The HTTP method we use to call sms_url
473
+ # @return [String] Deprecated. The HTTP method we use to call sms_url
479
474
  def sms_method
480
475
  @properties['sms_method']
481
476
  end
482
477
 
483
478
  ##
484
- # @return [String] The URL we call when the SIM-connected device sends an SMS message that is not a Command
479
+ # @return [String] Deprecated. The URL we call when the SIM-connected device sends an SMS message that is not a Command
485
480
  def sms_url
486
481
  @properties['sms_url']
487
482
  end
488
483
 
489
484
  ##
490
- # @return [String] The HTTP method we use to call voice_fallback_url
485
+ # @return [String] Deprecated. The HTTP method we use to call voice_fallback_url
491
486
  def voice_fallback_method
492
487
  @properties['voice_fallback_method']
493
488
  end
494
489
 
495
490
  ##
496
- # @return [String] The URL we call when an error occurs while retrieving or executing the TwiML requested from voice_url
491
+ # @return [String] Deprecated. The URL we call when an error occurs while retrieving or executing the TwiML requested from voice_url
497
492
  def voice_fallback_url
498
493
  @properties['voice_fallback_url']
499
494
  end
500
495
 
501
496
  ##
502
- # @return [String] The HTTP method we use to call voice_url
497
+ # @return [String] Deprecated. The HTTP method we use to call voice_url
503
498
  def voice_method
504
499
  @properties['voice_method']
505
500
  end
506
501
 
507
502
  ##
508
- # @return [String] The URL we call when the SIM-connected device makes a voice call
503
+ # @return [String] Deprecated. The URL we call when the SIM-connected device makes a voice call
509
504
  def voice_url
510
505
  @properties['voice_url']
511
506
  end
@@ -583,15 +578,10 @@ module Twilio
583
578
  # @param [String] sms_url The URL we should call using the `sms_method` when the
584
579
  # SIM-connected device sends an SMS message that is not a
585
580
  # {Command}[https://www.twilio.com/docs/wireless/api/command-resource].
586
- # @param [String] voice_fallback_method The HTTP method we should use to call
587
- # `voice_fallback_url`. Can be: `GET` or `POST`.
588
- # @param [String] voice_fallback_url The URL we should call using the
589
- # `voice_fallback_method` when an error occurs while retrieving or executing the
590
- # TwiML requested from `voice_url`.
591
- # @param [String] voice_method The HTTP method we should use when we call
592
- # `voice_url`. Can be: `GET` or `POST`.
593
- # @param [String] voice_url The URL we should call using the `voice_method` when
594
- # the SIM-connected device makes a voice call.
581
+ # @param [String] voice_fallback_method Deprecated.
582
+ # @param [String] voice_fallback_url Deprecated.
583
+ # @param [String] voice_method Deprecated.
584
+ # @param [String] voice_url Deprecated.
595
585
  # @param [sim.ResetStatus] reset_status Initiate a connectivity reset on the SIM.
596
586
  # Set to `resetting` to initiate a connectivity reset on the SIM. No other value
597
587
  # is valid.
@@ -1,3 +1,3 @@
1
1
  module Twilio
2
- VERSION = '5.60.0'
2
+ VERSION = '5.61.0'
3
3
  end
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.60.0
4
+ version: 5.61.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: 2021-10-18 00:00:00.000000000 Z
11
+ date: 2021-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jwt
@@ -212,10 +212,16 @@ extra_rdoc_files:
212
212
  - LICENSE
213
213
  files:
214
214
  - ".dockerignore"
215
+ - ".github/workflows/deploy.yml"
216
+ - ".github/workflows/test.yml"
215
217
  - ".gitignore"
216
218
  - ".rubocop.yml"
217
219
  - ".rubocop_todo.yml"
218
- - ".travis.yml"
220
+ - ".yardoc/checksums"
221
+ - ".yardoc/complete"
222
+ - ".yardoc/object_types"
223
+ - ".yardoc/objects/root.dat"
224
+ - ".yardoc/proxy_types"
219
225
  - AUTHORS.md
220
226
  - CHANGES.md
221
227
  - CODE_OF_CONDUCT.md
@@ -794,7 +800,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
794
800
  - !ruby/object:Gem::Version
795
801
  version: '0'
796
802
  requirements: []
797
- rubygems_version: 3.0.9
803
+ rubyforge_project:
804
+ rubygems_version: 2.6.14.4
798
805
  signing_key:
799
806
  specification_version: 4
800
807
  summary: The official library for communicating with the Twilio REST API, building
data/.travis.yml DELETED
@@ -1,57 +0,0 @@
1
- language: ruby
2
- dist: focal
3
- cache: bundler
4
- bundler_args: "--without development"
5
- rvm:
6
- - ruby-head
7
- - jruby-9.2
8
- - 2.4
9
- - 2.5
10
- - 2.6
11
- - 2.7
12
- - 3.0
13
- services:
14
- - docker
15
- install: make install
16
- script:
17
- - make test
18
- - if [[ "$TRAVIS_BRANCH" == "main" || "$TRAVIS_BRANCH" == "travis" ]] && [ "$TRAVIS_PULL_REQUEST"
19
- == "false" ]; then echo "${DOCKER_PASSWORD}" | docker login -u "${DOCKER_USERNAME}"
20
- --password-stdin; fi
21
- matrix:
22
- include:
23
- - language: ruby
24
- rvm: '3.0'
25
- # The below workaround is necessary because of the branch coverage inclusion in simplecov 0.18+
26
- # more discussion here - https://community.sonarsource.com/t/ruby-coverage-simplecov-json-file-does-not-work/20909/7
27
- after_success:
28
- - ruby -rjson -e 'sqube = JSON.load(File.read("coverage/.resultset.json"))["RSpec"]["coverage"].transform_values {|lines| lines["lines"]}; total = { "RSpec" => { "coverage" => sqube, "timestamp" => Time.now.to_i }}; puts JSON.dump(total)' > coverage/.resultset.sonarqube.json
29
- - sonar-scanner
30
- allow_failures:
31
- - rvm: ruby-head
32
- fast_finish: true
33
- deploy:
34
- - provider: script
35
- script: make docker-build && make docker-push
36
- skip_cleanup: true
37
- on:
38
- tags: true
39
- rvm: '2.4'
40
- - provider: rubygems
41
- api_key: "$RUBYGEMS_APIKEY"
42
- on:
43
- tags: true
44
- rvm: '2.4'
45
- notifications:
46
- slack:
47
- if: branch = main
48
- on_pull_requests: false
49
- on_success: never
50
- on_failure: change
51
- rooms:
52
- secure: HG7rC5VSDOZiLCkpTsC4ZImh1k59OPi6YEjYKhdGXItybLHa6Yh5C42WvSx3kVW3SeyLOm1CiaMv+pbBZUXStXYsl8eH69MbEZimhDWsPs/m+bh+gEISov22WNUs3ZfUqIXMIb6v18oXPp2Qa1gX5LUEAGoSxHWNmCAcHayWl7M=
53
- addons:
54
- sonarcloud:
55
- organization: twilio
56
- token:
57
- secure: OSEahx/yO/r9PdjXbASwJt+ogphxkDDpnlajWNCBTc+hoiEurGP/12CN0oQi7+iishIgIowqo5J9/+m1BQfsAv4fKST+t6mSazx27udiiM9am03lhviW8QSG6STADvtq6uJRqTXMk3WehoSidNRYXamVdCoBbqxCSaMX8MbMsN8=