twilio-ruby 5.52.0 → 5.67.3

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.
Files changed (163) hide show
  1. checksums.yaml +5 -5
  2. data/.github/workflows/pr-lint.yml +15 -0
  3. data/.github/workflows/test-and-deploy.yml +129 -0
  4. data/.gitignore +5 -1
  5. data/.rubocop.yml +1 -1
  6. data/.rubocop_todo.yml +91 -28
  7. data/CHANGES.md +563 -0
  8. data/Gemfile +1 -0
  9. data/Makefile +8 -11
  10. data/README.md +13 -6
  11. data/examples/examples.rb +1 -1
  12. data/lib/rack/twilio_webhook_authentication.rb +25 -1
  13. data/lib/twilio-ruby/http/http_client.rb +20 -4
  14. data/lib/twilio-ruby/http.rb +5 -0
  15. data/lib/twilio-ruby/jwt/access_token.rb +13 -0
  16. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +23 -23
  17. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +5 -5
  18. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +8 -8
  19. data/lib/twilio-ruby/rest/api/v2010/account/call/siprec.rb +674 -0
  20. data/lib/twilio-ruby/rest/api/v2010/account/call/stream.rb +674 -0
  21. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +68 -14
  22. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +12 -8
  23. data/lib/twilio-ruby/rest/api/v2010/account/conference/recording.rb +1 -1
  24. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/local.rb +11 -4
  25. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/mobile.rb +11 -4
  26. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/toll_free.rb +11 -4
  27. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number.rb +17 -10
  28. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +18 -5
  29. data/lib/twilio-ruby/rest/api/v2010/account/recording.rb +34 -7
  30. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/credential_list_mapping.rb +11 -11
  31. data/lib/twilio-ruby/rest/api/v2010/account/sip/domain/ip_access_control_list_mapping.rb +11 -11
  32. data/lib/twilio-ruby/rest/bulkexports/v1/export/day.rb +0 -8
  33. data/lib/twilio-ruby/rest/bulkexports/v1/export/export_custom_job.rb +0 -6
  34. data/lib/twilio-ruby/rest/bulkexports/v1/export/job.rb +0 -8
  35. data/lib/twilio-ruby/rest/bulkexports/v1/export.rb +0 -8
  36. data/lib/twilio-ruby/rest/bulkexports/v1/export_configuration.rb +0 -8
  37. data/lib/twilio-ruby/rest/chat/v2/service/user/user_channel.rb +10 -4
  38. data/lib/twilio-ruby/rest/chat/v3/channel.rb +275 -0
  39. data/lib/twilio-ruby/rest/chat/v3.rb +48 -0
  40. data/lib/twilio-ruby/rest/chat.rb +16 -0
  41. data/lib/twilio-ruby/rest/client.rb +21 -12
  42. data/lib/twilio-ruby/rest/conversations/v1/address_configuration.rb +454 -0
  43. data/lib/twilio-ruby/rest/conversations/v1/conversation/message.rb +12 -5
  44. data/lib/twilio-ruby/rest/conversations/v1/conversation.rb +7 -0
  45. data/lib/twilio-ruby/rest/conversations/v1/participant_conversation.rb +312 -0
  46. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/notification.rb +18 -2
  47. data/lib/twilio-ruby/rest/conversations/v1/service/configuration/webhook.rb +269 -0
  48. data/lib/twilio-ruby/rest/conversations/v1/service/configuration.rb +8 -0
  49. data/lib/twilio-ruby/rest/conversations/v1/service/conversation/message.rb +12 -5
  50. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +7 -0
  51. data/lib/twilio-ruby/rest/conversations/v1/service/participant_conversation.rb +324 -0
  52. data/lib/twilio-ruby/rest/conversations/v1/service/user/user_conversation.rb +466 -0
  53. data/lib/twilio-ruby/rest/conversations/v1/service/user.rb +44 -0
  54. data/lib/twilio-ruby/rest/conversations/v1/service.rb +23 -0
  55. data/lib/twilio-ruby/rest/conversations/v1/user/user_conversation.rb +442 -0
  56. data/lib/twilio-ruby/rest/conversations/v1/user.rb +35 -0
  57. data/lib/twilio-ruby/rest/conversations/v1.rb +24 -0
  58. data/lib/twilio-ruby/rest/conversations.rb +15 -0
  59. data/lib/twilio-ruby/rest/events/v1/event_type.rb +12 -5
  60. data/lib/twilio-ruby/rest/events/v1/sink.rb +41 -5
  61. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +28 -0
  62. data/lib/twilio-ruby/rest/flex_api/v1/flex_flow.rb +55 -34
  63. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_invite.rb +236 -0
  64. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +330 -0
  65. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel.rb +384 -0
  66. data/lib/twilio-ruby/rest/flex_api/v1/interaction.rb +233 -0
  67. data/lib/twilio-ruby/rest/flex_api/v1.rb +16 -0
  68. data/lib/twilio-ruby/rest/flex_api.rb +9 -0
  69. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +258 -0
  70. data/lib/twilio-ruby/rest/{fax → frontline_api}/v1.rb +11 -11
  71. data/lib/twilio-ruby/rest/{fax.rb → frontline_api.rb} +11 -11
  72. data/lib/twilio-ruby/rest/insights/v1/annotation.rb +271 -0
  73. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +434 -0
  74. data/lib/twilio-ruby/rest/insights/v1/conference/conference_participant.rb +474 -0
  75. data/lib/twilio-ruby/rest/insights/v1/conference.rb +512 -0
  76. data/lib/twilio-ruby/rest/insights/v1/setting.rb +215 -0
  77. data/lib/twilio-ruby/rest/insights/v1.rb +46 -0
  78. data/lib/twilio-ruby/rest/insights.rb +28 -0
  79. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +268 -0
  80. data/lib/twilio-ruby/rest/lookups/v2.rb +45 -0
  81. data/lib/twilio-ruby/rest/lookups.rb +7 -0
  82. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +397 -0
  83. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +406 -0
  84. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +221 -0
  85. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +403 -0
  86. data/lib/twilio-ruby/rest/media/v1.rb +76 -0
  87. data/lib/twilio-ruby/rest/media.rb +65 -0
  88. data/lib/twilio-ruby/rest/{fax/v1/fax/fax_media.rb → messaging/v1/brand_registration/brand_vetting.rb} +134 -95
  89. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +127 -2
  90. data/lib/twilio-ruby/rest/messaging/v1/external_campaign.rb +7 -0
  91. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +187 -20
  92. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person_usecase.rb +6 -2
  93. data/lib/twilio-ruby/rest/messaging/v1/service.rb +37 -5
  94. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/bundle_copy.rb +268 -0
  95. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle/replace_items.rb +188 -0
  96. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +128 -26
  97. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/supporting_document.rb +7 -0
  98. data/lib/twilio-ruby/rest/pricing/v2/country.rb +280 -0
  99. data/lib/twilio-ruby/rest/pricing/v2/number.rb +225 -0
  100. data/lib/twilio-ruby/rest/pricing/v2.rb +37 -0
  101. data/lib/twilio-ruby/rest/pricing.rb +19 -0
  102. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +1 -1
  103. data/lib/twilio-ruby/rest/serverless/v1/service.rb +7 -0
  104. data/lib/twilio-ruby/rest/studio/v1/flow/execution.rb +1 -1
  105. data/lib/twilio-ruby/rest/studio/v2/flow/execution.rb +1 -1
  106. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +372 -0
  107. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +44 -55
  108. data/lib/twilio-ruby/rest/supersim/v1/{command.rb → ip_command.rb} +132 -84
  109. data/lib/twilio-ruby/rest/supersim/v1/sim/billing_period.rb +231 -0
  110. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +30 -1
  111. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +1 -1
  112. data/lib/twilio-ruby/rest/supersim/v1/usage_record.rb +23 -9
  113. data/lib/twilio-ruby/rest/supersim/v1.rb +23 -7
  114. data/lib/twilio-ruby/rest/supersim.rb +15 -6
  115. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/activity.rb +7 -0
  116. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task/reservation.rb +7 -3
  117. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_cumulative_statistics.rb +6 -2
  118. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker/reservation.rb +7 -3
  119. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/worker.rb +23 -11
  120. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workflow/workflow_cumulative_statistics.rb +4 -2
  121. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/workspace_cumulative_statistics.rb +4 -2
  122. data/lib/twilio-ruby/rest/taskrouter/v1/workspace.rb +38 -22
  123. data/lib/twilio-ruby/rest/trunking/v1/trunk.rb +19 -3
  124. data/lib/twilio-ruby/rest/verify/v2/service/access_token.rb +155 -10
  125. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge/notification.rb +12 -9
  126. data/lib/twilio-ruby/rest/verify/v2/service/entity/challenge.rb +74 -22
  127. data/lib/twilio-ruby/rest/verify/v2/service/entity/factor.rb +34 -15
  128. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +66 -31
  129. data/lib/twilio-ruby/rest/verify/v2/service/entity.rb +7 -3
  130. data/lib/twilio-ruby/rest/verify/v2/service/verification.rb +25 -7
  131. data/lib/twilio-ruby/rest/verify/v2/service/webhook.rb +24 -5
  132. data/lib/twilio-ruby/rest/verify/v2/service.rb +40 -11
  133. data/lib/twilio-ruby/rest/verify/v2/template.rb +206 -0
  134. data/lib/twilio-ruby/rest/verify/v2/verification_attempt.rb +89 -21
  135. data/lib/twilio-ruby/rest/verify/v2/verification_attempts_summary.rb +234 -0
  136. data/lib/twilio-ruby/rest/verify/v2.rb +14 -0
  137. data/lib/twilio-ruby/rest/verify.rb +14 -2
  138. data/lib/twilio-ruby/rest/video/v1/composition.rb +21 -8
  139. data/lib/twilio-ruby/rest/video/v1/composition_hook.rb +0 -8
  140. data/lib/twilio-ruby/rest/video/v1/recording.rb +21 -0
  141. data/lib/twilio-ruby/rest/video/v1/room/recording.rb +7 -0
  142. data/lib/twilio-ruby/rest/video/v1/room.rb +62 -5
  143. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +184 -0
  144. data/lib/twilio-ruby/rest/voice/v1.rb +21 -0
  145. data/lib/twilio-ruby/rest/voice.rb +8 -0
  146. data/lib/twilio-ruby/rest/wireless/v1/rate_plan.rb +3 -3
  147. data/lib/twilio-ruby/rest/wireless/v1/sim.rb +16 -26
  148. data/lib/twilio-ruby/rest.rb +13 -0
  149. data/lib/twilio-ruby/twiml/voice_response.rb +727 -87
  150. data/lib/twilio-ruby/version.rb +1 -1
  151. data/lib/twilio-ruby.rb +6 -16
  152. data/sonar-project.properties +13 -0
  153. data/twilio-ruby.gemspec +1 -2
  154. metadata +59 -32
  155. data/.travis.yml +0 -45
  156. data/lib/twilio-ruby/rest/fax/v1/fax.rb +0 -536
  157. /data/lib/twilio-ruby/framework/{domain.rb → rest/domain.rb} +0 -0
  158. /data/lib/twilio-ruby/framework/{error.rb → rest/error.rb} +0 -0
  159. /data/lib/twilio-ruby/framework/{helper.rb → rest/helper.rb} +0 -0
  160. /data/lib/twilio-ruby/framework/{obsolete_client.rb → rest/obsolete_client.rb} +0 -0
  161. /data/lib/twilio-ruby/framework/{page.rb → rest/page.rb} +0 -0
  162. /data/lib/twilio-ruby/framework/{resource.rb → rest/resource.rb} +0 -0
  163. /data/lib/twilio-ruby/framework/{version.rb → rest/version.rb} +0 -0
@@ -0,0 +1,184 @@
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 Voice < Domain
12
+ class V1 < Version
13
+ ##
14
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
15
+ class ArchivedCallList < ListResource
16
+ ##
17
+ # Initialize the ArchivedCallList
18
+ # @param [Version] version Version that contains the resource
19
+ # @return [ArchivedCallList] ArchivedCallList
20
+ def initialize(version)
21
+ super(version)
22
+
23
+ # Path Solution
24
+ @solution = {}
25
+ end
26
+
27
+ ##
28
+ # Provide a user friendly representation
29
+ def to_s
30
+ '#<Twilio.Voice.V1.ArchivedCallList>'
31
+ end
32
+ end
33
+
34
+ ##
35
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
36
+ class ArchivedCallPage < Page
37
+ ##
38
+ # Initialize the ArchivedCallPage
39
+ # @param [Version] version Version that contains the resource
40
+ # @param [Response] response Response from the API
41
+ # @param [Hash] solution Path solution for the resource
42
+ # @return [ArchivedCallPage] ArchivedCallPage
43
+ def initialize(version, response, solution)
44
+ super(version, response)
45
+
46
+ # Path Solution
47
+ @solution = solution
48
+ end
49
+
50
+ ##
51
+ # Build an instance of ArchivedCallInstance
52
+ # @param [Hash] payload Payload response from the API
53
+ # @return [ArchivedCallInstance] ArchivedCallInstance
54
+ def get_instance(payload)
55
+ ArchivedCallInstance.new(@version, payload, )
56
+ end
57
+
58
+ ##
59
+ # Provide a user friendly representation
60
+ def to_s
61
+ '<Twilio.Voice.V1.ArchivedCallPage>'
62
+ end
63
+ end
64
+
65
+ ##
66
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
67
+ class ArchivedCallContext < InstanceContext
68
+ ##
69
+ # Initialize the ArchivedCallContext
70
+ # @param [Version] version Version that contains the resource
71
+ # @param [Date] date The date of the Call in UTC.
72
+ # @param [String] sid The Twilio-provided Call SID that uniquely identifies the
73
+ # Call resource to delete
74
+ # @return [ArchivedCallContext] ArchivedCallContext
75
+ def initialize(version, date, sid)
76
+ super(version)
77
+
78
+ # Path Solution
79
+ @solution = {date: date, sid: sid, }
80
+ @uri = "/Archives/#{@solution[:date]}/Calls/#{@solution[:sid]}"
81
+ end
82
+
83
+ ##
84
+ # Delete the ArchivedCallInstance
85
+ # @return [Boolean] true if delete succeeds, false otherwise
86
+ def delete
87
+ @version.delete('DELETE', @uri)
88
+ end
89
+
90
+ ##
91
+ # Provide a user friendly representation
92
+ def to_s
93
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
94
+ "#<Twilio.Voice.V1.ArchivedCallContext #{context}>"
95
+ end
96
+
97
+ ##
98
+ # Provide a detailed, user friendly representation
99
+ def inspect
100
+ context = @solution.map {|k, v| "#{k}: #{v}"}.join(',')
101
+ "#<Twilio.Voice.V1.ArchivedCallContext #{context}>"
102
+ end
103
+ end
104
+
105
+ ##
106
+ # PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
107
+ class ArchivedCallInstance < InstanceResource
108
+ ##
109
+ # Initialize the ArchivedCallInstance
110
+ # @param [Version] version Version that contains the resource
111
+ # @param [Hash] payload payload that contains response from Twilio
112
+ # @param [Date] date The date of the Call in UTC.
113
+ # @param [String] sid The Twilio-provided Call SID that uniquely identifies the
114
+ # Call resource to delete
115
+ # @return [ArchivedCallInstance] ArchivedCallInstance
116
+ def initialize(version, payload, date: nil, sid: nil)
117
+ super(version)
118
+
119
+ # Marshaled Properties
120
+ @properties = {
121
+ 'date' => Twilio.deserialize_iso8601_date(payload['date']),
122
+ 'sid' => payload['sid'],
123
+ 'url' => payload['url'],
124
+ }
125
+
126
+ # Context
127
+ @instance_context = nil
128
+ @params = {'date' => date || @properties['date'], 'sid' => sid || @properties['sid'], }
129
+ end
130
+
131
+ ##
132
+ # Generate an instance context for the instance, the context is capable of
133
+ # performing various actions. All instance actions are proxied to the context
134
+ # @return [ArchivedCallContext] ArchivedCallContext for this ArchivedCallInstance
135
+ def context
136
+ unless @instance_context
137
+ @instance_context = ArchivedCallContext.new(@version, @params['date'], @params['sid'], )
138
+ end
139
+ @instance_context
140
+ end
141
+
142
+ ##
143
+ # @return [Date] date
144
+ def date
145
+ @properties['date']
146
+ end
147
+
148
+ ##
149
+ # @return [String] sid
150
+ def sid
151
+ @properties['sid']
152
+ end
153
+
154
+ ##
155
+ # @return [String] The absolute URL of the resource
156
+ def url
157
+ @properties['url']
158
+ end
159
+
160
+ ##
161
+ # Delete the ArchivedCallInstance
162
+ # @return [Boolean] true if delete succeeds, false otherwise
163
+ def delete
164
+ context.delete
165
+ end
166
+
167
+ ##
168
+ # Provide a user friendly representation
169
+ def to_s
170
+ values = @params.map{|k, v| "#{k}: #{v}"}.join(" ")
171
+ "<Twilio.Voice.V1.ArchivedCallInstance #{values}>"
172
+ end
173
+
174
+ ##
175
+ # Provide a detailed, user friendly representation
176
+ def inspect
177
+ values = @properties.map{|k, v| "#{k}: #{v}"}.join(" ")
178
+ "<Twilio.Voice.V1.ArchivedCallInstance #{values}>"
179
+ end
180
+ end
181
+ end
182
+ end
183
+ end
184
+ end
@@ -15,6 +15,7 @@ module Twilio
15
15
  def initialize(domain)
16
16
  super
17
17
  @version = 'v1'
18
+ @archived_calls = nil
18
19
  @byoc_trunks = nil
19
20
  @connection_policies = nil
20
21
  @dialing_permissions = nil
@@ -22,6 +23,26 @@ module Twilio
22
23
  @source_ip_mappings = nil
23
24
  end
24
25
 
26
+ ##
27
+ # @param [Date] date The date of the Call in UTC.
28
+ # @param [String] sid The Twilio-provided Call SID that uniquely identifies the
29
+ # Call resource to delete
30
+ # @return [Twilio::REST::Voice::V1::ArchivedCallContext] if sid was passed.
31
+ # @return [Twilio::REST::Voice::V1::ArchivedCallList]
32
+ def archived_calls(date=:unset, sid=:unset)
33
+ if date.nil?
34
+ raise ArgumentError, 'date cannot be nil'
35
+ end
36
+ if sid.nil?
37
+ raise ArgumentError, 'sid cannot be nil'
38
+ end
39
+ if date == :unset && sid == :unset
40
+ @archived_calls ||= ArchivedCallList.new self
41
+ else
42
+ ArchivedCallContext.new(self, date, sid)
43
+ end
44
+ end
45
+
25
46
  ##
26
47
  # @param [String] sid The Twilio-provided string that uniquely identifies the BYOC
27
48
  # Trunk resource to fetch.
@@ -28,6 +28,14 @@ module Twilio
28
28
  @v1 ||= V1.new self
29
29
  end
30
30
 
31
+ ##
32
+ # @param [String] sid The call sid
33
+ # @return [Twilio::REST::Voice::V1::ArchivedCallInstance] if sid was passed.
34
+ # @return [Twilio::REST::Voice::V1::ArchivedCallList]
35
+ def archived_calls(date=:unset, sid=:unset)
36
+ self.v1.archived_calls(date, sid)
37
+ end
38
+
31
39
  ##
32
40
  # @param [String] sid The unique string that that we created to identify the BYOC
33
41
  # Trunk resource.
@@ -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
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
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
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
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.
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ Dir[File.join(__dir__, 'framework/rest/*.rb')].sort.each do |file|
4
+ require file
5
+ end
6
+
7
+ Dir[File.join(__dir__, 'rest/*.rb')].sort.each do |file|
8
+ require file
9
+ end
10
+
11
+ Dir[File.join(__dir__, 'rest/**/*.rb')].sort.each do |file|
12
+ require file
13
+ end