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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/test-and-deploy.yml +9 -9
  3. data/CHANGES.md +46 -0
  4. data/README.md +2 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +28 -37
  6. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +27 -3
  7. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +17 -5
  8. data/lib/twilio-ruby/rest/client.rb +5 -0
  9. data/lib/twilio-ruby/rest/content/v1/content.rb +60 -1
  10. data/lib/twilio-ruby/rest/flex_api/v1/configuration.rb +10 -5
  11. data/lib/twilio-ruby/rest/flex_api/v1/interaction/interaction_channel/interaction_channel_participant.rb +11 -1
  12. data/lib/twilio-ruby/rest/flex_api/v1/plugin/plugin_versions.rb +384 -0
  13. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +446 -0
  14. data/lib/twilio-ruby/rest/flex_api/v1/plugin_archive.rb +247 -0
  15. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration/configured_plugin.rb +393 -0
  16. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration.rb +386 -0
  17. data/lib/twilio-ruby/rest/flex_api/v1/plugin_configuration_archive.rb +233 -0
  18. data/lib/twilio-ruby/rest/flex_api/v1/plugin_release.rb +332 -0
  19. data/lib/twilio-ruby/rest/flex_api/v1/plugin_version_archive.rb +256 -0
  20. data/lib/twilio-ruby/rest/flex_api/v1.rb +112 -30
  21. data/lib/twilio-ruby/rest/lookups/v1/phone_number.rb +1 -1
  22. data/lib/twilio-ruby/rest/lookups/v2/phone_number.rb +6 -6
  23. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +9 -2
  24. data/lib/twilio-ruby/rest/messaging/v1/tollfree_verification.rb +11 -4
  25. data/lib/twilio-ruby/rest/numbers/v1/bulk_eligibility.rb +5 -3
  26. data/lib/twilio-ruby/rest/numbers/v1/eligibility.rb +5 -3
  27. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +5 -3
  28. data/lib/twilio-ruby/rest/numbers/v1.rb +3 -3
  29. data/lib/twilio-ruby/rest/numbers/v2/bulk_hosted_number_order.rb +5 -3
  30. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +15 -3
  31. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  32. data/lib/twilio-ruby/rest/oauth/v1/token.rb +175 -0
  33. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  34. data/lib/twilio-ruby/rest/oauth.rb +6 -0
  35. data/lib/twilio-ruby/rest/oauth_base.rb +38 -0
  36. data/lib/twilio-ruby/rest/taskrouter/v1/workspace/task_queue/task_queue_bulk_real_time_statistics.rb +5 -3
  37. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +26 -2
  38. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  39. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  40. data/lib/twilio-ruby/twiml/messaging_response.rb +1 -1
  41. data/lib/twilio-ruby/version.rb +1 -1
  42. metadata +15 -6
  43. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback.rb +0 -267
  44. data/lib/twilio-ruby/rest/api/v2010/account/call/feedback_summary.rb +0 -332
  45. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai.rb +0 -274
  46. data/lib/twilio-ruby/rest/flex_api/v1/insights_conversational_ai_report_insights.rb +0 -253
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fc04f5b7e8b5662f2660255ab69debcd88c9f1e
4
- data.tar.gz: 69d9201155d5a0d86e22533cb3bf60e27ea6c752
3
+ metadata.gz: b26986efc81d3a3fffc2b6d307adc1c448f93691
4
+ data.tar.gz: e7e446ff01aa4c4ca736cf1f231304ae52da786d
5
5
  SHA512:
6
- metadata.gz: a8d2466da6a059765419f9856bec82da8827c94cf0528f49673ec67f99eedea66faf555f22e9ef9f2272bc95c7ab39027d68b23eea661916cf2a1a8badf91189
7
- data.tar.gz: fd3ad8841cefd637f7b63e9a46043a02766c48a5d2e6ea91617449d5c497ff4bfdeab2c748c63d7d713c20d6f954228fe6a54bf093174f2bae61ac7450517934
6
+ metadata.gz: 3420cc10ea1b8f7bca5772d2bcfe7cdf041b166245d292f82bde90206b32d40bc5685e8553918df81ee264f84b3ca6aae4e31de1d071d63de55abcb658712465
7
+ data.tar.gz: b07b4864e25cbf7971e63b71fad9681fd5763f86070a87246bb09e4b44a079c5d98a94e2ecad10b7650205d87c1e39c3f3f1da0dba59f213175e434e5e15a746
@@ -45,15 +45,15 @@ jobs:
45
45
  - name: Run Unit Tests
46
46
  run: make test
47
47
 
48
- # - name: Run Cluster Test
49
- # if: (!github.event.pull_request.head.repo.fork)
50
- # env:
51
- # TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
52
- # TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
53
- # TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
54
- # TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
55
- # TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
56
- # run: make cluster-test
48
+ - name: Run Cluster Test
49
+ if: (!github.event.pull_request.head.repo.fork)
50
+ env:
51
+ TWILIO_ACCOUNT_SID: ${{ secrets.TWILIO_ACCOUNT_SID }}
52
+ TWILIO_API_KEY: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY}}
53
+ TWILIO_API_SECRET: ${{ secrets.TWILIO_CLUSTER_TEST_API_KEY_SECRET }}
54
+ TWILIO_FROM_NUMBER: ${{ secrets.TWILIO_FROM_NUMBER }}
55
+ TWILIO_TO_NUMBER: ${{ secrets.TWILIO_TO_NUMBER }}
56
+ run: make cluster-test
57
57
 
58
58
  - name: Fix code coverage paths
59
59
  if: ${{ (github.event_name == 'pull_request' || github.ref_type == 'branch') && matrix.ruby == '3.0' && !github.event.pull_request.head.repo.fork }}
data/CHANGES.md CHANGED
@@ -2,6 +2,52 @@ twilio-ruby changelog
2
2
  =====================
3
3
 
4
4
 
5
+ [2024-03-14] Version 7.0.0-rc.3
6
+ -------------------------------
7
+ **Oauth**
8
+ - Add new APIs for vendor authorize and token endpoints
9
+
10
+
11
+ [2024-03-12] Version 7.0.0-rc.2
12
+ -------------------------------
13
+ **Library - Chore**
14
+ - [PR #714](https://github.com/twilio/twilio-ruby/pull/714): enable cluster test. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
15
+
16
+ **Api**
17
+ - Correct precedence documentation for application_sid vs status_callback in message creation
18
+ - Mark MaxPrice as deprecated
19
+ - remove feedback and feedback summary from call resource
20
+
21
+ **Flex**
22
+ - Making `plugins` visibility to public
23
+ - Adding `routing_properties` to Interactions Channels Participant
24
+
25
+ **Lookups**
26
+ - Add new `line_status` package to the lookup response
27
+ - Remove `live_activity` package from the lookup response **(breaking change)**
28
+
29
+ **Messaging**
30
+ - Add new `errors` attribute to the Brand Registration resource.
31
+ - Mark `brand_feedback` attribute as deprecated.
32
+ - Mark `failure_reason` attribute as deprecated.
33
+ - The new `errors` attribute is expected to provide additional information about Brand registration failures and feedback (if any has been provided by The Campaign Registry). Consumers should use this attribute instead of `brand_feedback` and `failure_reason`.
34
+ - Add tollfree multiple rejection reasons response array
35
+
36
+ **Numbers**
37
+ - Correcting mount_name for porting port in fetch API
38
+
39
+ **Trusthub**
40
+ - Add new field in statusCallbackUrl in compliance_registration.
41
+ - Add new field in isvRegisteringForSelfOrTenant in compliance_registration.
42
+ - Add ENUM for businessRegistrationAuthority in compliance_registration. **(breaking change)**
43
+ - Add new field in isIsvEmbed in compliance_registration.
44
+ - Add additional optional fields in compliance_registration for Individual business type.
45
+
46
+ **Twiml**
47
+ - Expanded description of Action parameter for Message verb
48
+ - Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb
49
+
50
+
5
51
  [2024-02-09] Version 7.0.0-rc.1
6
52
  -------------------------------
7
53
  **Library - Chore**
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', '~> 7.0.0-rc.1'
42
+ gem 'twilio-ruby', '~> 7.0.0-rc.3'
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 7.0.0-rc.1
48
+ gem install twilio-ruby -v 7.0.0-rc.3
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -30,8 +30,7 @@ module Twilio
30
30
  # Path Solution
31
31
  @solution = { account_sid: account_sid }
32
32
  @uri = "/Accounts/#{@solution[:account_sid]}/Calls.json"
33
- # Components
34
- @feedback_summaries = nil
33
+
35
34
  end
36
35
  ##
37
36
  # Create the CallInstance
@@ -166,7 +165,11 @@ module Twilio
166
165
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
167
166
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
168
167
  # @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.
168
+ # @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.
169
+ # @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.
169
170
  # @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.
171
+ # @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.
172
+ # @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.
170
173
  # @param [Integer] limit Upper limit for the number of records to return. stream()
171
174
  # guarantees to never return more than limit. Default is no limit
172
175
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -174,14 +177,18 @@ module Twilio
174
177
  # but a limit is defined, stream() will attempt to read the limit with the most
175
178
  # efficient page size, i.e. min(limit, 1000)
176
179
  # @return [Array] Array of up to limit results
177
- def list(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
180
+ 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)
178
181
  self.stream(
179
182
  to: to,
180
183
  from: from,
181
184
  parent_call_sid: parent_call_sid,
182
185
  status: status,
183
186
  start_time: start_time,
187
+ start_time_before: start_time_before,
188
+ start_time_after: start_time_after,
184
189
  end_time: end_time,
190
+ end_time_before: end_time_before,
191
+ end_time_after: end_time_after,
185
192
  limit: limit,
186
193
  page_size: page_size
187
194
  ).entries
@@ -196,7 +203,11 @@ module Twilio
196
203
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
197
204
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
198
205
  # @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.
206
+ # @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.
207
+ # @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.
199
208
  # @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.
209
+ # @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.
210
+ # @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.
200
211
  # @param [Integer] limit Upper limit for the number of records to return. stream()
201
212
  # guarantees to never return more than limit. Default is no limit
202
213
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -204,7 +215,7 @@ module Twilio
204
215
  # but a limit is defined, stream() will attempt to read the limit with the most
205
216
  # efficient page size, i.e. min(limit, 1000)
206
217
  # @return [Enumerable] Enumerable that will yield up to limit results
207
- def stream(to: :unset, from: :unset, parent_call_sid: :unset, status: :unset, start_time: :unset, end_time: :unset, limit: nil, page_size: nil)
218
+ 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)
208
219
  limits = @version.read_limits(limit, page_size)
209
220
 
210
221
  page = self.page(
@@ -213,7 +224,11 @@ module Twilio
213
224
  parent_call_sid: parent_call_sid,
214
225
  status: status,
215
226
  start_time: start_time,
227
+ start_time_before: start_time_before,
228
+ start_time_after: start_time_after,
216
229
  end_time: end_time,
230
+ end_time_before: end_time_before,
231
+ end_time_after: end_time_after,
217
232
  page_size: limits[:page_size], )
218
233
 
219
234
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -241,19 +256,27 @@ module Twilio
241
256
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
242
257
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
243
258
  # @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.
259
+ # @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.
260
+ # @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.
244
261
  # @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.
262
+ # @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.
263
+ # @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.
245
264
  # @param [String] page_token PageToken provided by the API
246
265
  # @param [Integer] page_number Page Number, this value is simply for client state
247
266
  # @param [Integer] page_size Number of records to return, defaults to 50
248
267
  # @return [Page] Page of CallInstance
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)
268
+ 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)
250
269
  params = Twilio::Values.of({
251
270
  'To' => to,
252
271
  'From' => from,
253
272
  'ParentCallSid' => parent_call_sid,
254
273
  'Status' => status,
255
274
  'StartTime' => Twilio.serialize_iso8601_datetime(start_time),
275
+ 'StartTime<' => Twilio.serialize_iso8601_datetime(start_time_before),
276
+ 'StartTime>' => Twilio.serialize_iso8601_datetime(start_time_after),
256
277
  'EndTime' => Twilio.serialize_iso8601_datetime(end_time),
278
+ 'EndTime<' => Twilio.serialize_iso8601_datetime(end_time_before),
279
+ 'EndTime>' => Twilio.serialize_iso8601_datetime(end_time_after),
257
280
  'PageToken' => page_token,
258
281
  'Page' => page_number,
259
282
  'PageSize' => page_size,
@@ -278,19 +301,6 @@ module Twilio
278
301
  end
279
302
 
280
303
 
281
- ##
282
- # Access the feedback_summaries
283
- # @return [FeedbackSummaryList]
284
- # @return [FeedbackSummaryContext] if sid was passed.
285
- def feedback_summaries(sid=:unset)
286
- raise ArgumentError, 'sid cannot be nil' if sid.nil?
287
-
288
- if sid != :unset
289
- return FeedbackSummaryContext.new(@version, @solution[:account_sid],sid )
290
- end
291
-
292
- @feedback_summaries ||= FeedbackSummaryList.new(@version, account_sid: @solution[:account_sid] )
293
- end
294
304
 
295
305
  # Provide a user friendly representation
296
306
  def to_s
@@ -321,7 +331,6 @@ module Twilio
321
331
  @payments = nil
322
332
  @recordings = nil
323
333
  @notifications = nil
324
- @feedback = nil
325
334
  @streams = nil
326
335
  end
327
336
  ##
@@ -512,17 +521,6 @@ module Twilio
512
521
  @notifications
513
522
  end
514
523
  ##
515
- # Access the feedback
516
- # @return [FeedbackList]
517
- # @return [FeedbackContext]
518
- def feedback
519
- FeedbackContext.new(
520
- @version,
521
- @solution[:account_sid],
522
- @solution[:sid]
523
- )
524
- end
525
- ##
526
524
  # Access the streams
527
525
  # @return [StreamList]
528
526
  # @return [StreamContext] if sid was passed.
@@ -902,13 +900,6 @@ module Twilio
902
900
  context.notifications
903
901
  end
904
902
 
905
- ##
906
- # Access the feedback
907
- # @return [feedback] feedback
908
- def feedback
909
- context.feedback
910
- end
911
-
912
903
  ##
913
904
  # Access the streams
914
905
  # @return [streams] streams
@@ -38,7 +38,11 @@ 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`.
41
43
  # @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`.
42
46
  # @param [String] friendly_name The string that identifies the Conference resources to read.
43
47
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
44
48
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -48,10 +52,14 @@ module Twilio
48
52
  # but a limit is defined, stream() will attempt to read the limit with the most
49
53
  # efficient page size, i.e. min(limit, 1000)
50
54
  # @return [Array] Array of up to limit results
51
- def list(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
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)
52
56
  self.stream(
53
57
  date_created: date_created,
58
+ date_created_before: date_created_before,
59
+ date_created_after: date_created_after,
54
60
  date_updated: date_updated,
61
+ date_updated_before: date_updated_before,
62
+ date_updated_after: date_updated_after,
55
63
  friendly_name: friendly_name,
56
64
  status: status,
57
65
  limit: limit,
@@ -64,7 +72,11 @@ module Twilio
64
72
  # This operation lazily loads records as efficiently as possible until the limit
65
73
  # is reached.
66
74
  # @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`.
67
77
  # @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`.
68
80
  # @param [String] friendly_name The string that identifies the Conference resources to read.
69
81
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
70
82
  # @param [Integer] limit Upper limit for the number of records to return. stream()
@@ -74,12 +86,16 @@ module Twilio
74
86
  # but a limit is defined, stream() will attempt to read the limit with the most
75
87
  # efficient page size, i.e. min(limit, 1000)
76
88
  # @return [Enumerable] Enumerable that will yield up to limit results
77
- def stream(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, limit: nil, page_size: nil)
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)
78
90
  limits = @version.read_limits(limit, page_size)
79
91
 
80
92
  page = self.page(
81
93
  date_created: date_created,
94
+ date_created_before: date_created_before,
95
+ date_created_after: date_created_after,
82
96
  date_updated: date_updated,
97
+ date_updated_before: date_updated_before,
98
+ date_updated_after: date_updated_after,
83
99
  friendly_name: friendly_name,
84
100
  status: status,
85
101
  page_size: limits[:page_size], )
@@ -105,17 +121,25 @@ module Twilio
105
121
  # Retrieve a single page of ConferenceInstance records from the API.
106
122
  # Request is executed immediately.
107
123
  # @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`.
108
126
  # @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`.
109
129
  # @param [String] friendly_name The string that identifies the Conference resources to read.
110
130
  # @param [Status] status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`.
111
131
  # @param [String] page_token PageToken provided by the API
112
132
  # @param [Integer] page_number Page Number, this value is simply for client state
113
133
  # @param [Integer] page_size Number of records to return, defaults to 50
114
134
  # @return [Page] Page of ConferenceInstance
115
- def page(date_created: :unset, date_updated: :unset, friendly_name: :unset, status: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
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)
116
136
  params = Twilio::Values.of({
117
137
  '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),
118
140
  '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),
119
143
  'FriendlyName' => friendly_name,
120
144
  'Status' => status,
121
145
  'PageToken' => page_token,
@@ -36,8 +36,8 @@ module Twilio
36
36
  # Create the MessageInstance
37
37
  # @param [String] to The recipient's phone number in [E.164](https://www.twilio.com/docs/glossary/what-e164) format (for SMS/MMS) or [channel address](https://www.twilio.com/docs/messaging/channels), e.g. `whatsapp:+15552229999`.
38
38
  # @param [String] status_callback The URL of the endpoint to which Twilio sends [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url). URL must contain a valid hostname and underscores are not allowed. If you include this parameter with the `messaging_service_sid`, Twilio uses this URL instead of the Status Callback URL of the [Messaging Service](https://www.twilio.com/docs/messaging/api/service-resource).
39
- # @param [String] application_sid The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). If this parameter is provided, the `status_callback` parameter of this request is ignored; [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL.
40
- # @param [Float] max_price The maximum price in US dollars that you are willing to pay for this Message's delivery. The value can have up to four decimal places. When the `max_price` parameter is provided, the cost of a message is checked before it is sent. If the cost exceeds `max_price`, the message is not sent and the Message `status` is `failed`.
39
+ # @param [String] application_sid The SID of the associated [TwiML Application](https://www.twilio.com/docs/usage/api/applications). [Message status callback requests](https://www.twilio.com/docs/sms/api/message-resource#twilios-request-to-the-statuscallback-url) are sent to the TwiML App's `message_status_callback` URL. Note that the `status_callback` parameter of a request takes priority over the `application_sid` parameter; if both are included `application_sid` is ignored.
40
+ # @param [Float] max_price [DEPRECATED] This parameter will no longer have any effect as of 2024-06-03.
41
41
  # @param [Boolean] provide_feedback Boolean indicating whether or not you intend to provide delivery confirmation feedback to Twilio (used in conjunction with the [Message Feedback subresource](https://www.twilio.com/docs/sms/api/message-feedback-resource)). Default value is `false`.
42
42
  # @param [String] attempt Total number of attempts made (including this request) to send the message regardless of the provider used
43
43
  # @param [String] validity_period The maximum length in seconds that the Message can remain in Twilio's outgoing message queue. If a queued Message exceeds the `validity_period`, the Message is not sent. Accepted values are integers from `1` to `14400`. Default value is `14400`. A `validity_period` greater than `5` is recommended. [Learn more about the validity period](https://www.twilio.com/blog/take-more-control-of-outbound-messages-using-validity-period-html)
@@ -127,6 +127,8 @@ 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).
130
132
  # @param [Integer] limit Upper limit for the number of records to return. stream()
131
133
  # guarantees to never return more than limit. Default is no limit
132
134
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -134,11 +136,13 @@ module Twilio
134
136
  # but a limit is defined, stream() will attempt to read the limit with the most
135
137
  # efficient page size, i.e. min(limit, 1000)
136
138
  # @return [Array] Array of up to limit results
137
- def list(to: :unset, from: :unset, date_sent: :unset, limit: nil, page_size: nil)
139
+ def list(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset, date_sent_after: :unset, limit: nil, page_size: nil)
138
140
  self.stream(
139
141
  to: to,
140
142
  from: from,
141
143
  date_sent: date_sent,
144
+ date_sent_before: date_sent_before,
145
+ date_sent_after: date_sent_after,
142
146
  limit: limit,
143
147
  page_size: page_size
144
148
  ).entries
@@ -151,6 +155,8 @@ module Twilio
151
155
  # @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`
152
156
  # @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`
153
157
  # @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).
154
160
  # @param [Integer] limit Upper limit for the number of records to return. stream()
155
161
  # guarantees to never return more than limit. Default is no limit
156
162
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -158,13 +164,15 @@ module Twilio
158
164
  # but a limit is defined, stream() will attempt to read the limit with the most
159
165
  # efficient page size, i.e. min(limit, 1000)
160
166
  # @return [Enumerable] Enumerable that will yield up to limit results
161
- def stream(to: :unset, from: :unset, date_sent: :unset, limit: nil, page_size: nil)
167
+ def stream(to: :unset, from: :unset, date_sent: :unset, date_sent_before: :unset, date_sent_after: :unset, limit: nil, page_size: nil)
162
168
  limits = @version.read_limits(limit, page_size)
163
169
 
164
170
  page = self.page(
165
171
  to: to,
166
172
  from: from,
167
173
  date_sent: date_sent,
174
+ date_sent_before: date_sent_before,
175
+ date_sent_after: date_sent_after,
168
176
  page_size: limits[:page_size], )
169
177
 
170
178
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -190,15 +198,19 @@ module Twilio
190
198
  # @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`
191
199
  # @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`
192
200
  # @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).
193
203
  # @param [String] page_token PageToken provided by the API
194
204
  # @param [Integer] page_number Page Number, this value is simply for client state
195
205
  # @param [Integer] page_size Number of records to return, defaults to 50
196
206
  # @return [Page] Page of MessageInstance
197
- def page(to: :unset, from: :unset, date_sent: :unset, page_token: :unset, page_number: :unset, page_size: :unset)
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)
198
208
  params = Twilio::Values.of({
199
209
  'To' => to,
200
210
  'From' => from,
201
211
  '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),
202
214
  'PageToken' => page_token,
203
215
  'Page' => page_number,
204
216
  'PageSize' => page_size,
@@ -117,6 +117,11 @@ module Twilio
117
117
  @numbers ||= Numbers.new self
118
118
  end
119
119
  ##
120
+ # Access the Oauth Twilio Domain
121
+ def oauth
122
+ @oauth ||= Oauth.new self
123
+ end
124
+ ##
120
125
  # Access the Preview Twilio Domain
121
126
  def preview
122
127
  @preview ||= Preview.new self
@@ -85,6 +85,34 @@ module Twilio
85
85
  end
86
86
  end
87
87
 
88
+ class CatalogItem
89
+ # @param [id]: [String]
90
+ # @param [section_title]: [String]
91
+ # @param [name]: [String]
92
+ # @param [media_url]: [String]
93
+ # @param [price]: [Float]
94
+ # @param [description]: [String]
95
+ attr_accessor :id, :section_title, :name, :media_url, :price, :description
96
+ def initialize(payload)
97
+ @id = payload["id"]
98
+ @section_title = payload["section_title"]
99
+ @name = payload["name"]
100
+ @media_url = payload["media_url"]
101
+ @price = payload["price"]
102
+ @description = payload["description"]
103
+ end
104
+ def to_json(options = {})
105
+ {
106
+ id: @id,
107
+ section_title: @section_title,
108
+ name: @name,
109
+ media_url: @media_url,
110
+ price: @price,
111
+ description: @description,
112
+ }.to_json(options)
113
+ end
114
+ end
115
+
88
116
  class ContentCreateRequest
89
117
  # @param [friendly_name]: [String] User defined name of the content
90
118
  # @param [variables]: [Hash<String, String>] Key value pairs of variable name to value
@@ -183,6 +211,34 @@ module Twilio
183
211
  end
184
212
  end
185
213
 
214
+ class TwilioCatalog
215
+ # @param [title]: [String]
216
+ # @param [body]: [String]
217
+ # @param [subtitle]: [String]
218
+ # @param [id]: [String]
219
+ # @param [items]: [Array<ContentList.CatalogItem>]
220
+ # @param [dynamic_items]: [String]
221
+ attr_accessor :title, :body, :subtitle, :id, :items, :dynamic_items
222
+ def initialize(payload)
223
+ @title = payload["title"]
224
+ @body = payload["body"]
225
+ @subtitle = payload["subtitle"]
226
+ @id = payload["id"]
227
+ @items = payload["items"]
228
+ @dynamic_items = payload["dynamic_items"]
229
+ end
230
+ def to_json(options = {})
231
+ {
232
+ title: @title,
233
+ body: @body,
234
+ subtitle: @subtitle,
235
+ id: @id,
236
+ items: @items,
237
+ dynamic_items: @dynamic_items,
238
+ }.to_json(options)
239
+ end
240
+ end
241
+
186
242
  class TwilioListPicker
187
243
  # @param [body]: [String]
188
244
  # @param [button]: [String]
@@ -274,9 +330,10 @@ module Twilio
274
330
  # @param [twilio_call_to_action]: [ContentList.TwilioCallToAction]
275
331
  # @param [twilio_quick_reply]: [ContentList.TwilioQuickReply]
276
332
  # @param [twilio_card]: [ContentList.TwilioCard]
333
+ # @param [twilio_catalog]: [ContentList.TwilioCatalog]
277
334
  # @param [whatsapp_card]: [ContentList.WhatsappCard]
278
335
  # @param [whatsapp_authentication]: [ContentList.WhatsappAuthentication]
279
- attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :whatsapp_card, :whatsapp_authentication
336
+ attr_accessor :twilio_text, :twilio_media, :twilio_location, :twilio_list_picker, :twilio_call_to_action, :twilio_quick_reply, :twilio_card, :twilio_catalog, :whatsapp_card, :whatsapp_authentication
280
337
  def initialize(payload)
281
338
  @twilio_text = payload["twilio_text"]
282
339
  @twilio_media = payload["twilio_media"]
@@ -285,6 +342,7 @@ module Twilio
285
342
  @twilio_call_to_action = payload["twilio_call_to_action"]
286
343
  @twilio_quick_reply = payload["twilio_quick_reply"]
287
344
  @twilio_card = payload["twilio_card"]
345
+ @twilio_catalog = payload["twilio_catalog"]
288
346
  @whatsapp_card = payload["whatsapp_card"]
289
347
  @whatsapp_authentication = payload["whatsapp_authentication"]
290
348
  end
@@ -297,6 +355,7 @@ module Twilio
297
355
  twilio_call_to_action: @twilio_call_to_action,
298
356
  twilio_quick_reply: @twilio_quick_reply,
299
357
  twilio_card: @twilio_card,
358
+ twilio_catalog: @twilio_catalog,
300
359
  whatsapp_card: @whatsapp_card,
301
360
  whatsapp_authentication: @whatsapp_authentication,
302
361
  }.to_json(options)
@@ -75,11 +75,13 @@ module Twilio
75
75
 
76
76
  ##
77
77
  # Update the ConfigurationInstance
78
+ # @param [Object] body
78
79
  # @return [ConfigurationInstance] Updated ConfigurationInstance
79
- def update
80
+ def update(body: :unset
81
+ )
80
82
 
81
-
82
- payload = @version.update('POST', @uri)
83
+ headers = Twilio::Values.of({"Content-Type"=> "application/json"})
84
+ payload = @version.update('POST', @uri, data: body.to_json, headers: headers)
83
85
  ConfigurationInstance.new(
84
86
  @version,
85
87
  payload,
@@ -521,10 +523,13 @@ module Twilio
521
523
 
522
524
  ##
523
525
  # Update the ConfigurationInstance
526
+ # @param [Object] body
524
527
  # @return [ConfigurationInstance] Updated ConfigurationInstance
525
- def update
528
+ def update(body: :unset
529
+ )
526
530
 
527
- context.update
531
+ context.update(
532
+ )
528
533
  end
529
534
 
530
535
  ##