twilio-ruby 6.11.0 → 7.0.0.pre.rc.1

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 (139) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +11 -5
  3. data/README.md +2 -2
  4. data/UPGRADE.md +10 -0
  5. data/lib/twilio-ruby/framework/request.rb +8 -1
  6. data/lib/twilio-ruby/http/http_client.rb +10 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/call/payment.rb +0 -2
  8. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +3 -27
  9. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +3 -27
  10. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on/assigned_add_on_extension.rb +0 -2
  11. data/lib/twilio-ruby/rest/api/v2010/account/incoming_phone_number/assigned_add_on.rb +0 -2
  12. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +3 -15
  13. data/lib/twilio-ruby/rest/client.rb +5 -0
  14. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +184 -0
  15. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +0 -2
  16. data/lib/twilio-ruby/rest/content/v1/content.rb +363 -3
  17. data/lib/twilio-ruby/rest/content/v1/content_and_approvals.rb +1 -1
  18. data/lib/twilio-ruby/rest/content/v1/legacy_content.rb +1 -1
  19. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +0 -2
  20. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +21 -0
  21. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +0 -2
  22. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +0 -2
  23. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires.rb +0 -2
  24. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_category.rb +0 -2
  25. data/lib/twilio-ruby/rest/flex_api/v1/insights_questionnaires_question.rb +0 -2
  26. data/lib/twilio-ruby/rest/flex_api/v1/insights_session.rb +0 -2
  27. data/lib/twilio-ruby/rest/flex_api/v1/insights_user_roles.rb +0 -2
  28. data/lib/twilio-ruby/rest/flex_api/v1/provisioning_status.rb +0 -2
  29. data/lib/twilio-ruby/rest/frontline_api/v1/user.rb +0 -2
  30. data/lib/twilio-ruby/rest/insights/v1/call/annotation.rb +0 -2
  31. data/lib/twilio-ruby/rest/insights/v1/room/participant.rb +0 -2
  32. data/lib/twilio-ruby/rest/insights/v1/room.rb +0 -2
  33. data/lib/twilio-ruby/rest/intelligence/v2/service.rb +0 -2
  34. data/lib/twilio-ruby/rest/intelligence/v2/transcript/media.rb +0 -2
  35. data/lib/twilio-ruby/rest/intelligence/v2/transcript/operator_result.rb +0 -2
  36. data/lib/twilio-ruby/rest/intelligence/v2/transcript.rb +0 -2
  37. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +0 -2
  38. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -2
  39. data/lib/twilio-ruby/rest/media.rb +32 -3
  40. data/lib/twilio-ruby/rest/messaging/v1/brand_registration/brand_vetting.rb +0 -2
  41. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +0 -2
  42. data/lib/twilio-ruby/rest/messaging/v1/domain_certs.rb +0 -2
  43. data/lib/twilio-ruby/rest/messaging/v1/domain_config.rb +0 -2
  44. data/lib/twilio-ruby/rest/messaging/v1/domain_config_messaging_service.rb +0 -2
  45. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service.rb +0 -2
  46. data/lib/twilio-ruby/rest/messaging/v1/linkshortening_messaging_service_domain_association.rb +0 -2
  47. data/lib/twilio-ruby/rest/messaging/v1/service/alpha_sender.rb +0 -2
  48. data/lib/twilio-ruby/rest/messaging/v1/service/channel_sender.rb +0 -2
  49. data/lib/twilio-ruby/rest/messaging/v1/service/phone_number.rb +0 -2
  50. data/lib/twilio-ruby/rest/messaging/v1/service/short_code.rb +0 -2
  51. data/lib/twilio-ruby/rest/messaging/v1/service/us_app_to_person.rb +0 -2
  52. data/lib/twilio-ruby/rest/messaging/v1/service.rb +0 -2
  53. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +0 -2
  54. data/lib/twilio-ruby/rest/microvisor/v1/account_config.rb +0 -2
  55. data/lib/twilio-ruby/rest/microvisor/v1/account_secret.rb +0 -2
  56. data/lib/twilio-ruby/rest/microvisor/v1/app/app_manifest.rb +0 -2
  57. data/lib/twilio-ruby/rest/microvisor/v1/app.rb +0 -2
  58. data/lib/twilio-ruby/rest/microvisor/v1/device/device_config.rb +0 -2
  59. data/lib/twilio-ruby/rest/microvisor/v1/device/device_secret.rb +0 -2
  60. data/lib/twilio-ruby/rest/microvisor/v1/device.rb +0 -2
  61. data/lib/twilio-ruby/rest/notify/v1/credential.rb +0 -2
  62. data/lib/twilio-ruby/rest/notify/v1/service/binding.rb +0 -2
  63. data/lib/twilio-ruby/rest/notify/v1/service.rb +0 -2
  64. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +13 -2
  65. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +125 -0
  66. data/lib/twilio-ruby/rest/numbers/v1/porting_bulk_portability.rb +0 -2
  67. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +132 -0
  68. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +0 -2
  69. data/lib/twilio-ruby/rest/numbers/v1/porting_portability.rb +0 -2
  70. data/lib/twilio-ruby/rest/numbers/v1.rb +12 -0
  71. data/lib/twilio-ruby/rest/numbers/v2/authorization_document.rb +0 -2
  72. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +13 -2
  73. data/lib/twilio-ruby/rest/numbers/v2/hosted_number_order.rb +0 -2
  74. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +3 -15
  75. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/certificate.rb +0 -2
  76. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/deployment.rb +0 -2
  77. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/device.rb +0 -2
  78. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet/key.rb +0 -2
  79. data/lib/twilio-ruby/rest/preview/deployed_devices/fleet.rb +0 -2
  80. data/lib/twilio-ruby/rest/preview/hosted_numbers/authorization_document.rb +0 -2
  81. data/lib/twilio-ruby/rest/preview/hosted_numbers/hosted_number_order.rb +0 -2
  82. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on/available_add_on_extension.rb +0 -2
  83. data/lib/twilio-ruby/rest/preview/marketplace/available_add_on.rb +0 -2
  84. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on/installed_add_on_extension.rb +0 -2
  85. data/lib/twilio-ruby/rest/preview/marketplace/installed_add_on.rb +0 -2
  86. data/lib/twilio-ruby/rest/preview/sync/service/document/document_permission.rb +0 -2
  87. data/lib/twilio-ruby/rest/preview/sync/service/document.rb +0 -2
  88. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_item.rb +0 -2
  89. data/lib/twilio-ruby/rest/preview/sync/service/sync_list/sync_list_permission.rb +0 -2
  90. data/lib/twilio-ruby/rest/preview/sync/service/sync_list.rb +0 -2
  91. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_item.rb +0 -2
  92. data/lib/twilio-ruby/rest/preview/sync/service/sync_map/sync_map_permission.rb +0 -2
  93. data/lib/twilio-ruby/rest/preview/sync/service/sync_map.rb +0 -2
  94. data/lib/twilio-ruby/rest/preview/sync/service.rb +0 -2
  95. data/lib/twilio-ruby/rest/preview/wireless/command.rb +0 -2
  96. data/lib/twilio-ruby/rest/preview/wireless/rate_plan.rb +0 -2
  97. data/lib/twilio-ruby/rest/preview/wireless/sim/usage.rb +0 -2
  98. data/lib/twilio-ruby/rest/preview/wireless/sim.rb +0 -2
  99. data/lib/twilio-ruby/rest/preview_messaging/v1/broadcast.rb +164 -0
  100. data/lib/twilio-ruby/rest/preview_messaging/v1/message.rb +235 -0
  101. data/lib/twilio-ruby/rest/preview_messaging/v1.rb +46 -0
  102. data/lib/twilio-ruby/rest/preview_messaging.rb +12 -0
  103. data/lib/twilio-ruby/rest/preview_messaging_base.rb +38 -0
  104. data/lib/twilio-ruby/rest/proxy/v1/service/phone_number.rb +0 -2
  105. data/lib/twilio-ruby/rest/proxy/v1/service/session/interaction.rb +0 -2
  106. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant/message_interaction.rb +0 -2
  107. data/lib/twilio-ruby/rest/proxy/v1/service/session/participant.rb +0 -2
  108. data/lib/twilio-ruby/rest/proxy/v1/service/session.rb +0 -2
  109. data/lib/twilio-ruby/rest/proxy/v1/service/short_code.rb +0 -2
  110. data/lib/twilio-ruby/rest/proxy/v1/service.rb +0 -2
  111. data/lib/twilio-ruby/rest/serverless/v1/service/asset/asset_version.rb +0 -2
  112. data/lib/twilio-ruby/rest/serverless/v1/service/asset.rb +0 -2
  113. data/lib/twilio-ruby/rest/serverless/v1/service/build/build_status.rb +0 -2
  114. data/lib/twilio-ruby/rest/serverless/v1/service/build.rb +0 -2
  115. data/lib/twilio-ruby/rest/serverless/v1/service/environment/deployment.rb +0 -2
  116. data/lib/twilio-ruby/rest/serverless/v1/service/environment/log.rb +0 -2
  117. data/lib/twilio-ruby/rest/serverless/v1/service/environment/variable.rb +0 -2
  118. data/lib/twilio-ruby/rest/serverless/v1/service/environment.rb +0 -2
  119. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version/function_version_content.rb +0 -2
  120. data/lib/twilio-ruby/rest/serverless/v1/service/function/function_version.rb +0 -2
  121. data/lib/twilio-ruby/rest/serverless/v1/service/function.rb +0 -2
  122. data/lib/twilio-ruby/rest/serverless/v1/service.rb +0 -2
  123. data/lib/twilio-ruby/rest/supersim/v1/esim_profile.rb +0 -2
  124. data/lib/twilio-ruby/rest/supersim/v1/fleet.rb +0 -2
  125. data/lib/twilio-ruby/rest/supersim/v1/ip_command.rb +0 -2
  126. data/lib/twilio-ruby/rest/supersim/v1/network.rb +0 -2
  127. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile/network_access_profile_network.rb +0 -2
  128. data/lib/twilio-ruby/rest/supersim/v1/network_access_profile.rb +0 -2
  129. data/lib/twilio-ruby/rest/supersim/v1/sim.rb +0 -2
  130. data/lib/twilio-ruby/rest/supersim/v1/sms_command.rb +0 -2
  131. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +161 -0
  132. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue.rb +8 -8
  133. data/lib/twilio-ruby/rest/verify/v2/form.rb +0 -2
  134. data/lib/twilio-ruby/rest/verify/v2/safelist.rb +0 -2
  135. data/lib/twilio-ruby/rest/voice/v1/archived_call.rb +0 -2
  136. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/country.rb +0 -2
  137. data/lib/twilio-ruby/rest/voice/v1/dialing_permissions/settings.rb +0 -2
  138. data/lib/twilio-ruby/version.rb +1 -1
  139. metadata +12 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 399c36884cdc02f71ee21db5b9eb072fe4df97fb
4
- data.tar.gz: 5b43bc808532dad8d2a751bbe1299640ed4fb646
3
+ metadata.gz: 4fc04f5b7e8b5662f2660255ab69debcd88c9f1e
4
+ data.tar.gz: 69d9201155d5a0d86e22533cb3bf60e27ea6c752
5
5
  SHA512:
6
- metadata.gz: cc67a778926052ae03460a5dfa2bc259fbdcea4e8960579690ce74951bce2f0564ba24adfc8dd574cd2b9de9dae089370860fad5c9cad9fe68be67559877f029
7
- data.tar.gz: 565a642a0418ff1664e9e656e39d98cdae16e31e498d9a2043fbe57d26a9b1a4787010acb26bdcdb6ebf1a858a34298c6bbb32db5300131a8891bceea74aea7a
6
+ metadata.gz: a8d2466da6a059765419f9856bec82da8827c94cf0528f49673ec67f99eedea66faf555f22e9ef9f2272bc95c7ab39027d68b23eea661916cf2a1a8badf91189
7
+ data.tar.gz: fd3ad8841cefd637f7b63e9a46043a02766c48a5d2e6ea91617449d5c497ff4bfdeab2c748c63d7d713c20d6f954228fe6a54bf093174f2bae61ac7450517934
data/CHANGES.md CHANGED
@@ -1,11 +1,12 @@
1
1
  twilio-ruby changelog
2
- =====================
2
+ =====================
3
3
 
4
- [2024-02-09] Version 6.11.0
5
- ---------------------------
4
+
5
+ [2024-02-09] Version 7.0.0-rc.1
6
+ -------------------------------
6
7
  **Library - Chore**
7
- - [PR #710](https://github.com/twilio/twilio-ruby/pull/710): remove live media endpoint. Thanks to [@califlower](https://github.com/califlower)!
8
- - [PR #708](https://github.com/twilio/twilio-ruby/pull/708): removing oauth and autopilot references. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
8
+ - [PR #711](https://github.com/twilio/twilio-ruby/pull/711): disable-cluster-test. Thanks to [@sbansla](https://github.com/sbansla)!
9
+ - [PR #709](https://github.com/twilio/twilio-ruby/pull/709): removed ssl ca file from http client. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
9
10
 
10
11
  **Api**
11
12
  - Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
@@ -65,6 +66,11 @@ twilio-ruby changelog
65
66
  - Update Verify TOTP maturity to GA.
66
67
 
67
68
 
69
+ [2024-01-26] Version 7.0.0-rc.0
70
+ --------------------------
71
+ - Release Candidate preparation
72
+
73
+
68
74
  [2024-01-25] Version 6.10.0
69
75
  ---------------------------
70
76
  **Oauth**
data/README.md CHANGED
@@ -39,13 +39,13 @@ This library supports the following Ruby implementations:
39
39
  To install using [Bundler][bundler] grab the latest stable version:
40
40
 
41
41
  ```ruby
42
- gem 'twilio-ruby', '~> 6.11.0'
42
+ gem 'twilio-ruby', '~> 7.0.0-rc.1'
43
43
  ```
44
44
 
45
45
  To manually install `twilio-ruby` via [Rubygems][rubygems] simply gem install:
46
46
 
47
47
  ```bash
48
- gem install twilio-ruby -v 6.11.0
48
+ gem install twilio-ruby -v 7.0.0-rc.1
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
data/UPGRADE.md CHANGED
@@ -3,6 +3,16 @@
3
3
  _After `5.0.0` all `MINOR` and `MAJOR` version bumps will have upgrade notes
4
4
  posted here._
5
5
 
6
+ [2024-01-19] 6.x.x to 7.x.x
7
+ -----------------------------
8
+ ### Overview
9
+
10
+ ##### Twilio Ruby Helper Library’s major version 7.0.0-rc.x is now available. We ensured that you can upgrade to Ruby helper Library 7.0.0-rc.x version without any breaking changes
11
+
12
+ Twilio Helper libraries now support nested json body while sending requests.
13
+
14
+ To learn more about the Ruby Helper Library, check out [our docs](https://www.twilio.com/docs/libraries/ruby).
15
+
6
16
  [2023-05-03] 5.x.x to 6.x.x
7
17
  -----------------------------
8
18
  ### Overview
@@ -32,7 +32,14 @@ module Twilio
32
32
  data = ''
33
33
  unless @data.nil? || @data.empty?
34
34
  data = @method.equal?('GET') ? "\n -G" : "\n"
35
- data += @data.each.map { |key, value| "-d \"#{key}\"=\"#{value}\"" }.join("\n")
35
+ data += case @headers['Content-Type']
36
+ when 'application/x-www-form-urlencoded'
37
+ @data.each.map { |key, value| "-d \"#{key}\"=\"#{value}\"" }.join("\n")
38
+ when 'application/json'
39
+ "-d '#{JSON.generate(@data)}'"
40
+ else
41
+ @data.each.map { |key, value| "-d \"#{key}\"=\"#{value}\"" }.join("\n")
42
+ end
36
43
  end
37
44
 
38
45
  "#{auth} #{@method} #{@url}#{params}#{data}#{headers}"
@@ -9,11 +9,10 @@ module Twilio
9
9
  attr_reader :timeout, :last_response, :last_request, :connection
10
10
 
11
11
  def initialize(proxy_prot = nil, proxy_addr = nil, proxy_port = nil, proxy_user = nil, proxy_pass = nil,
12
- ssl_ca_file = nil, timeout: nil)
12
+ timeout: nil)
13
13
  @proxy_prot = proxy_prot
14
14
  @proxy_path = "#{proxy_addr}:#{proxy_port}" if proxy_addr && proxy_port
15
15
  @proxy_auth = "#{proxy_user}:#{proxy_pass}@" if proxy_pass && proxy_user
16
- @ssl_ca_file = ssl_ca_file
17
16
  @timeout = timeout
18
17
  @adapter = Faraday.default_adapter
19
18
  @configure_connection_blocks = []
@@ -27,9 +26,17 @@ module Twilio
27
26
  end
28
27
 
29
28
  def _request(request) # rubocop:disable Metrics/MethodLength
29
+ middle_ware = case request.headers['Content-Type']
30
+ when 'application/json'
31
+ :json
32
+ when 'application/x-www-form-urlencoded'
33
+ :url_encoded
34
+ else
35
+ :url_encoded
36
+ end
30
37
  @connection = Faraday.new(url: request.host + ':' + request.port.to_s, ssl: { verify: true }) do |f|
31
38
  f.options.params_encoder = Faraday::FlatParamsEncoder
32
- f.request :url_encoded
39
+ f.request(middle_ware)
33
40
  f.headers = request.headers
34
41
  if Faraday::VERSION.start_with?('2.')
35
42
  f.request(:authorization, :basic, request.auth[0], request.auth[1])
@@ -110,8 +110,6 @@ module Twilio
110
110
  end
111
111
 
112
112
 
113
- ##
114
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
115
113
  class PaymentContext < InstanceContext
116
114
  ##
117
115
  # Initialize the PaymentContext
@@ -166,11 +166,7 @@ module Twilio
166
166
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
167
167
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
168
168
  # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
169
- # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
170
- # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
171
169
  # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
172
- # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
173
- # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
174
170
  # @param [Integer] limit Upper limit for the number of records to return. stream()
175
171
  # guarantees to never return more than limit. Default is no limit
176
172
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -178,18 +174,14 @@ module Twilio
178
174
  # but a limit is defined, stream() will attempt to read the limit with the most
179
175
  # efficient page size, i.e. min(limit, 1000)
180
176
  # @return [Array] Array of up to limit results
181
- def list(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, start_time_before: :unset, start_time_after: :unset, end_time: :unset, end_time_before: :unset, end_time_after: :unset, limit: nil, page_size: nil)
177
+ def list(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
182
178
  self.stream(
183
179
  to: to,
184
180
  from: from,
185
181
  parent_call_sid: parent_call_sid,
186
182
  status: status,
187
183
  start_time: start_time,
188
- start_time_before: start_time_before,
189
- start_time_after: start_time_after,
190
184
  end_time: end_time,
191
- end_time_before: end_time_before,
192
- end_time_after: end_time_after,
193
185
  limit: limit,
194
186
  page_size: page_size
195
187
  ).entries
@@ -204,11 +196,7 @@ module Twilio
204
196
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
205
197
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
206
198
  # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
207
- # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
208
- # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
209
199
  # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
210
- # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
211
- # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
212
200
  # @param [Integer] limit Upper limit for the number of records to return. stream()
213
201
  # guarantees to never return more than limit. Default is no limit
214
202
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -216,7 +204,7 @@ module Twilio
216
204
  # but a limit is defined, stream() will attempt to read the limit with the most
217
205
  # efficient page size, i.e. min(limit, 1000)
218
206
  # @return [Enumerable] Enumerable that will yield up to limit results
219
- def stream(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, start_time_before: :unset, start_time_after: :unset, end_time: :unset, end_time_before: :unset, end_time_after: :unset, limit: nil, page_size: nil)
207
+ def stream(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
220
208
  limits = @version.read_limits(limit, page_size)
221
209
 
222
210
  page = self.page(
@@ -225,11 +213,7 @@ module Twilio
225
213
  parent_call_sid: parent_call_sid,
226
214
  status: status,
227
215
  start_time: start_time,
228
- start_time_before: start_time_before,
229
- start_time_after: start_time_after,
230
216
  end_time: end_time,
231
- end_time_before: end_time_before,
232
- end_time_after: end_time_after,
233
217
  page_size: limits[:page_size], )
234
218
 
235
219
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -257,27 +241,19 @@ module Twilio
257
241
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
258
242
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
259
243
  # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
260
- # @param [Time] start_time_before Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
261
- # @param [Time] start_time_after Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that started on this date. You can also specify an inequality, such as `StartTime<=YYYY-MM-DD`, to read calls that started on or before midnight of this date, and `StartTime>=YYYY-MM-DD` to read calls that started on or after midnight of this date.
262
244
  # @param [Time] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
263
- # @param [Time] end_time_before Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
264
- # @param [Time] end_time_after Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in GMT, for example: `2009-07-06`, to read only calls that ended on this date. You can also specify an inequality, such as `EndTime<=YYYY-MM-DD`, to read calls that ended on or before midnight of this date, and `EndTime>=YYYY-MM-DD` to read calls that ended on or after midnight of this date.
265
245
  # @param [String] page_token PageToken provided by the API
266
246
  # @param [Integer] page_number Page Number, this value is simply for client state
267
247
  # @param [Integer] page_size Number of records to return, defaults to 50
268
248
  # @return [Page] Page of CallInstance
269
- def page(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, start_time_before: :unset, start_time_after: :unset, end_time: :unset, end_time_before: :unset, end_time_after: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
249
+ def page(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
270
250
  params = Twilio::Values.of({
271
251
  'To' => to,
272
252
  'From' => from,
273
253
  'ParentCallSid' => parent_call_sid,
274
254
  'Status' => status,
275
255
  'StartTime' => Twilio.serialize_iso8601_datetime(start_time),
276
- 'StartTime<' => Twilio.serialize_iso8601_datetime(start_time_before),
277
- 'StartTime>' => Twilio.serialize_iso8601_datetime(start_time_after),
278
256
  'EndTime' => Twilio.serialize_iso8601_datetime(end_time),
279
- 'EndTime<' => Twilio.serialize_iso8601_datetime(end_time_before),
280
- 'EndTime>' => Twilio.serialize_iso8601_datetime(end_time_after),
281
257
  'PageToken' => page_token,
282
258
  'Page' => page_number,
283
259
  'PageSize' => page_size,
@@ -38,11 +38,7 @@ module Twilio
38
38
  # Unlike stream(), this operation is eager and will load `limit` records into
39
39
  # memory before returning.
40
40
  # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
41
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
42
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
43
41
  # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
44
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
45
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
46
42
  # @param [String] friendly_name The string that identifies the Conference resources to read.
47
43
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
48
44
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -52,14 +48,10 @@ module Twilio
52
48
  # but a limit is defined, stream() will attempt to read the limit with the most
53
49
  # efficient page size, i.e. min(limit, 1000)
54
50
  # @return [Array] Array of up to limit results
55
- def list(date_created: :unset, date_created_before: :unset, date_created_after: :unset, date_updated: :unset, date_updated_before: :unset, date_updated_after: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
51
+ def list(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
56
52
  self.stream(
57
53
  date_created: date_created,
58
- date_created_before: date_created_before,
59
- date_created_after: date_created_after,
60
54
  date_updated: date_updated,
61
- date_updated_before: date_updated_before,
62
- date_updated_after: date_updated_after,
63
55
  friendly_name: friendly_name,
64
56
  status: status,
65
57
  limit: limit,
@@ -72,11 +64,7 @@ module Twilio
72
64
  # This operation lazily loads records as efficiently as possible until the limit
73
65
  # is reached.
74
66
  # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
75
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
76
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
77
67
  # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
78
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
79
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
80
68
  # @param [String] friendly_name The string that identifies the Conference resources to read.
81
69
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
82
70
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -86,16 +74,12 @@ module Twilio
86
74
  # but a limit is defined, stream() will attempt to read the limit with the most
87
75
  # efficient page size, i.e. min(limit, 1000)
88
76
  # @return [Enumerable] Enumerable that will yield up to limit results
89
- def stream(date_created: :unset, date_created_before: :unset, date_created_after: :unset, date_updated: :unset, date_updated_before: :unset, date_updated_after: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
77
+ def stream(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
90
78
  limits = @version.read_limits(limit, page_size)
91
79
 
92
80
  page = self.page(
93
81
  date_created: date_created,
94
- date_created_before: date_created_before,
95
- date_created_after: date_created_after,
96
82
  date_updated: date_updated,
97
- date_updated_before: date_updated_before,
98
- date_updated_after: date_updated_after,
99
83
  friendly_name: friendly_name,
100
84
  status: status,
101
85
  page_size: limits[:page_size], )
@@ -121,25 +105,17 @@ module Twilio
121
105
  # Retrieve a single page of ConferenceInstance records from the API.
122
106
  # Request is executed immediately.
123
107
  # @param [Date] date_created The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
124
- # @param [Date] date_created_before The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
125
- # @param [Date] date_created_after The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`.
126
108
  # @param [Date] date_updated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
127
- # @param [Date] date_updated_before The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
128
- # @param [Date] date_updated_after The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`.
129
109
  # @param [String] friendly_name The string that identifies the Conference resources to read.
130
110
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
131
111
  # @param [String] page_token PageToken provided by the API
132
112
  # @param [Integer] page_number Page Number, this value is simply for client state
133
113
  # @param [Integer] page_size Number of records to return, defaults to 50
134
114
  # @return [Page] Page of ConferenceInstance
135
- def page(date_created: :unset, date_created_before: :unset, date_created_after: :unset, date_updated: :unset, date_updated_before: :unset, date_updated_after: :unset, friendly_name: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
115
+ def page(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
136
116
  params = Twilio::Values.of({
137
117
  'DateCreated' => Twilio.serialize_iso8601_date(date_created),
138
- 'DateCreated<' => Twilio.serialize_iso8601_date(date_created_before),
139
- 'DateCreated>' => Twilio.serialize_iso8601_date(date_created_after),
140
118
  'DateUpdated' => Twilio.serialize_iso8601_date(date_updated),
141
- 'DateUpdated<' => Twilio.serialize_iso8601_date(date_updated_before),
142
- 'DateUpdated>' => Twilio.serialize_iso8601_date(date_updated_after),
143
119
  'FriendlyName' => friendly_name,
144
120
  'Status' => status,
145
121
  'PageToken' => page_token,
@@ -128,8 +128,6 @@ module Twilio
128
128
  end
129
129
 
130
130
 
131
- ##
132
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
133
131
  class AssignedAddOnExtensionContext < InstanceContext
134
132
  ##
135
133
  # Initialize the AssignedAddOnExtensionContext
@@ -149,8 +149,6 @@ module Twilio
149
149
  end
150
150
 
151
151
 
152
- ##
153
- #PLEASE NOTE that this class contains beta products that are subject to change. Use them with caution.
154
152
  class AssignedAddOnContext < InstanceContext
155
153
  ##
156
154
  # Initialize the AssignedAddOnContext
@@ -127,8 +127,6 @@ module Twilio
127
127
  # @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
128
128
  # @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
129
129
  # @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
130
- # @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
131
- # @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
132
130
  # @param [Integer] limit Upper limit for the number of records to return. stream()
133
131
  # guarantees to never return more than limit. Default is no limit
134
132
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -136,13 +134,11 @@ module Twilio
136
134
  # but a limit is defined, stream() will attempt to read the limit with the most
137
135
  # efficient page size, i.e. min(limit, 1000)
138
136
  # @return [Array] Array of up to limit results
139
- def list(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset, date_sent_after: :unset, limit: nil, page_size: nil)
137
+ def list(to: :unset, from: :unset, date_sent: :unset, limit: nil, page_size: nil)
140
138
  self.stream(
141
139
  to: to,
142
140
  from: from,
143
141
  date_sent: date_sent,
144
- date_sent_before: date_sent_before,
145
- date_sent_after: date_sent_after,
146
142
  limit: limit,
147
143
  page_size: page_size
148
144
  ).entries
@@ -155,8 +151,6 @@ module Twilio
155
151
  # @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
156
152
  # @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
157
153
  # @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
158
- # @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
159
- # @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
160
154
  # @param [Integer] limit Upper limit for the number of records to return. stream()
161
155
  # guarantees to never return more than limit. Default is no limit
162
156
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -164,15 +158,13 @@ module Twilio
164
158
  # but a limit is defined, stream() will attempt to read the limit with the most
165
159
  # efficient page size, i.e. min(limit, 1000)
166
160
  # @return [Enumerable] Enumerable that will yield up to limit results
167
- def stream(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset, date_sent_after: :unset, limit: nil, page_size: nil)
161
+ def stream(to: :unset, from: :unset, date_sent: :unset, limit: nil, page_size: nil)
168
162
  limits = @version.read_limits(limit, page_size)
169
163
 
170
164
  page = self.page(
171
165
  to: to,
172
166
  from: from,
173
167
  date_sent: date_sent,
174
- date_sent_before: date_sent_before,
175
- date_sent_after: date_sent_after,
176
168
  page_size: limits[:page_size], )
177
169
 
178
170
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -198,19 +190,15 @@ module Twilio
198
190
  # @param [String] to Filter by recipient. For example: Set this `to` parameter to `+15558881111` to retrieve a list of Message resources with `to` properties of `+15558881111`
199
191
  # @param [String] from Filter by sender. For example: Set this `from` parameter to `+15552229999` to retrieve a list of Message resources with `from` properties of `+15552229999`
200
192
  # @param [Time] date_sent Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
201
- # @param [Time] date_sent_before Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
202
- # @param [Time] date_sent_after Filter by Message `sent_date`. Accepts GMT dates in the following formats: `YYYY-MM-DD` (to find Messages with a specific `sent_date`), `<=YYYY-MM-DD` (to find Messages with `sent_date`s on and before a specific date), and `>=YYYY-MM-DD` (to find Messages with `sent_dates` on and after a specific date).
203
193
  # @param [String] page_token PageToken provided by the API
204
194
  # @param [Integer] page_number Page Number, this value is simply for client state
205
195
  # @param [Integer] page_size Number of records to return, defaults to 50
206
196
  # @return [Page] Page of MessageInstance
207
- def page(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset, date_sent_after: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
197
+ def page(to: :unset, from: :unset, date_sent: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
208
198
  params = Twilio::Values.of({
209
199
  'To' => to,
210
200
  'From' => from,
211
201
  'DateSent' => Twilio.serialize_iso8601_datetime(date_sent),
212
- 'DateSent<' => Twilio.serialize_iso8601_datetime(date_sent_before),
213
- 'DateSent>' => Twilio.serialize_iso8601_datetime(date_sent_after),
214
202
  'PageToken' => page_token,
215
203
  'Page' => page_number,
216
204
  'PageSize' => page_size,
@@ -87,6 +87,11 @@ module Twilio
87
87
  @media ||= Media.new self
88
88
  end
89
89
  ##
90
+ # Access the PreviewMessaging Twilio Domain
91
+ def preview_messaging
92
+ @preview_messaging ||= PreviewMessaging.new self
93
+ end
94
+ ##
90
95
  # Access the Messaging Twilio Domain
91
96
  def messaging
92
97
  @messaging ||= Messaging.new self
@@ -0,0 +1,184 @@
1
+ ##
2
+ # This code was generated by
3
+ # ___ _ _ _ _ _ _ ____ ____ ____ _ ____ ____ _ _ ____ ____ ____ ___ __ __
4
+ # | | | | | | | | | __ | | |__| | __ | __ |___ |\ | |___ |__/ |__| | | | |__/
5
+ # | |_|_| | |___ | |__| |__| | | | |__] |___ | \| |___ | \ | | | |__| | \
6
+ #
7
+ # Twilio - Content
8
+ # This is the public Twilio REST API.
9
+ #
10
+ # NOTE: This class is auto generated by OpenAPI Generator.
11
+ # https://openapi-generator.tech
12
+ # Do not edit the class manually.
13
+ #
14
+
15
+
16
+ module Twilio
17
+ module REST
18
+ class Content < ContentBase
19
+ class V1 < Version
20
+ class ContentContext < InstanceContext
21
+
22
+ class ApprovalCreateList < ListResource
23
+
24
+ class ContentApprovalRequest
25
+ # @param [name]: [String] Name of the template.
26
+ # @param [category]: [String] A WhatsApp recognized template category.
27
+ attr_accessor :name, :category
28
+ def initialize(payload)
29
+ @name = payload["name"]
30
+ @category = payload["category"]
31
+ end
32
+ def to_json(options = {})
33
+ {
34
+ name: @name,
35
+ category: @category,
36
+ }.to_json(options)
37
+ end
38
+ end
39
+
40
+ ##
41
+ # Initialize the ApprovalCreateList
42
+ # @param [Version] version Version that contains the resource
43
+ # @return [ApprovalCreateList] ApprovalCreateList
44
+ def initialize(version, sid: nil)
45
+ super(version)
46
+ # Path Solution
47
+ @solution = { sid: sid }
48
+ @uri = "/Content/#{@solution[:sid]}/ApprovalRequests/whatsapp"
49
+
50
+ end
51
+ ##
52
+ # Create the ApprovalCreateInstance
53
+ # @param [ContentApprovalRequest] content_approval_request
54
+ # @return [ApprovalCreateInstance] Created ApprovalCreateInstance
55
+ def create(content_approval_request: nil
56
+ )
57
+
58
+ headers = Twilio::Values.of({"Content-Type"=> "application/json"})
59
+ payload = @version.create('POST', @uri, data: content_approval_request.to_json, headers: headers)
60
+ ApprovalCreateInstance.new(
61
+ @version,
62
+ payload,
63
+ sid: @solution[:sid],
64
+ )
65
+ end
66
+
67
+
68
+
69
+
70
+ # Provide a user friendly representation
71
+ def to_s
72
+ '#<Twilio.Content.V1.ApprovalCreateList>'
73
+ end
74
+ end
75
+
76
+ class ApprovalCreatePage < Page
77
+ ##
78
+ # Initialize the ApprovalCreatePage
79
+ # @param [Version] version Version that contains the resource
80
+ # @param [Response] response Response from the API
81
+ # @param [Hash] solution Path solution for the resource
82
+ # @return [ApprovalCreatePage] ApprovalCreatePage
83
+ def initialize(version, response, solution)
84
+ super(version, response)
85
+
86
+ # Path Solution
87
+ @solution = solution
88
+ end
89
+
90
+ ##
91
+ # Build an instance of ApprovalCreateInstance
92
+ # @param [Hash] payload Payload response from the API
93
+ # @return [ApprovalCreateInstance] ApprovalCreateInstance
94
+ def get_instance(payload)
95
+ ApprovalCreateInstance.new(@version, payload, sid: @solution[:sid])
96
+ end
97
+
98
+ ##
99
+ # Provide a user friendly representation
100
+ def to_s
101
+ '<Twilio.Content.V1.ApprovalCreatePage>'
102
+ end
103
+ end
104
+ class ApprovalCreateInstance < InstanceResource
105
+ ##
106
+ # Initialize the ApprovalCreateInstance
107
+ # @param [Version] version Version that contains the resource
108
+ # @param [Hash] payload payload that contains response from Twilio
109
+ # @param [String] account_sid The SID of the
110
+ # {Account}[https://www.twilio.com/docs/iam/api/account] that created this ApprovalCreate
111
+ # resource.
112
+ # @param [String] sid The SID of the Call resource to fetch.
113
+ # @return [ApprovalCreateInstance] ApprovalCreateInstance
114
+ def initialize(version, payload , sid: nil)
115
+ super(version)
116
+
117
+ # Marshaled Properties
118
+ @properties = {
119
+ 'name' => payload['name'],
120
+ 'category' => payload['category'],
121
+ 'content_type' => payload['content_type'],
122
+ 'status' => payload['status'],
123
+ 'rejection_reason' => payload['rejection_reason'],
124
+ 'allow_category_change' => payload['allow_category_change'],
125
+ }
126
+ end
127
+
128
+
129
+ ##
130
+ # @return [String]
131
+ def name
132
+ @properties['name']
133
+ end
134
+
135
+ ##
136
+ # @return [String]
137
+ def category
138
+ @properties['category']
139
+ end
140
+
141
+ ##
142
+ # @return [String]
143
+ def content_type
144
+ @properties['content_type']
145
+ end
146
+
147
+ ##
148
+ # @return [String]
149
+ def status
150
+ @properties['status']
151
+ end
152
+
153
+ ##
154
+ # @return [String]
155
+ def rejection_reason
156
+ @properties['rejection_reason']
157
+ end
158
+
159
+ ##
160
+ # @return [Boolean]
161
+ def allow_category_change
162
+ @properties['allow_category_change']
163
+ end
164
+
165
+ ##
166
+ # Provide a user friendly representation
167
+ def to_s
168
+ "<Twilio.Content.V1.ApprovalCreateInstance>"
169
+ end
170
+
171
+ ##
172
+ # Provide a detailed, user friendly representation
173
+ def inspect
174
+ "<Twilio.Content.V1.ApprovalCreateInstance>"
175
+ end
176
+ end
177
+
178
+ end
179
+ end
180
+ end
181
+ end
182
+ end
183
+
184
+
@@ -42,8 +42,6 @@ module Twilio
42
42
  end
43
43
 
44
44
 
45
- ##
46
- #PLEASE NOTE that this class contains preview products that are subject to change. Use them with caution. If you currently do not have developer preview access, please contact help@twilio.com.
47
45
  class ApprovalFetchContext < InstanceContext
48
46
  ##
49
47
  # Initialize the ApprovalFetchContext