twilio-ruby 7.0.0.pre.rc.2 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +73 -20
  3. data/README.md +2 -2
  4. data/UPGRADE.md +3 -2
  5. data/lib/twilio-ruby/rest/api/v2010/account/call.rb +37 -13
  6. data/lib/twilio-ruby/rest/api/v2010/account/conference/participant.rb +7 -0
  7. data/lib/twilio-ruby/rest/api/v2010/account/conference.rb +27 -3
  8. data/lib/twilio-ruby/rest/api/v2010/account/message.rb +15 -3
  9. data/lib/twilio-ruby/rest/client.rb +5 -5
  10. data/lib/twilio-ruby/rest/content/v1/content/approval_create.rb +6 -6
  11. data/lib/twilio-ruby/rest/content/v1/content/approval_fetch.rb +11 -11
  12. data/lib/twilio-ruby/rest/content/v1/content.rb +60 -1
  13. data/lib/twilio-ruby/rest/conversations/v1/service/conversation.rb +6 -6
  14. data/lib/twilio-ruby/rest/flex_api/v1/plugin.rb +6 -0
  15. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in_fetch.rb +7 -0
  16. data/lib/twilio-ruby/rest/numbers/v2/regulatory_compliance/bundle.rb +15 -3
  17. data/lib/twilio-ruby/rest/oauth/v1/authorize.rb +143 -0
  18. data/lib/twilio-ruby/rest/oauth/v1/token.rb +181 -0
  19. data/lib/twilio-ruby/rest/oauth/v1.rb +46 -0
  20. data/lib/twilio-ruby/rest/oauth.rb +6 -0
  21. data/lib/twilio-ruby/rest/{media_base.rb → oauth_base.rb} +6 -6
  22. data/lib/twilio-ruby/rest/trusthub/v1/compliance_registration_inquiries.rb +95 -4
  23. data/lib/twilio-ruby/rest/trusthub/v1/customer_profiles/customer_profiles_entity_assignments.rb +9 -3
  24. data/lib/twilio-ruby/rest/trusthub/v1/trust_products/trust_products_entity_assignments.rb +9 -3
  25. data/lib/twilio-ruby/rest/trusthub/v1/trust_products.rb +18 -18
  26. data/lib/twilio-ruby/rest/trusthub/v1.rb +12 -3
  27. data/lib/twilio-ruby/version.rb +1 -1
  28. metadata +9 -11
  29. data/lib/twilio-ruby/rest/media/v1/media_processor.rb +0 -424
  30. data/lib/twilio-ruby/rest/media/v1/media_recording.rb +0 -405
  31. data/lib/twilio-ruby/rest/media/v1/player_streamer/playback_grant.rb +0 -255
  32. data/lib/twilio-ruby/rest/media/v1/player_streamer.rb +0 -436
  33. data/lib/twilio-ruby/rest/media/v1.rb +0 -79
  34. data/lib/twilio-ruby/rest/media.rb +0 -35
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1730c85dbb2c0da063c2c73ea90bc28b87fb5015
4
- data.tar.gz: 70485b2a857f7076f8c2d05c4c4a43286688392c
3
+ metadata.gz: 5a4a38fd0b06c066f1abfd88ed48d87b6851d097
4
+ data.tar.gz: 31af551dd25aef5f129dc1c8d27046bb4431ca7b
5
5
  SHA512:
6
- metadata.gz: abbb783d2713dc054fcb827acdbf12a772764d0bcfff66432033c9eaedb6a60750986ae1afcf43164f653130e51df07976d49f9943632cad5c9e472a190c53ec
7
- data.tar.gz: 8cfbd2b13dad2fe85106abdb37cbded08d7828e961d9e2f87782240f11c75101fa39031a7b5a4ff4284d8b0fff9dc139f622c3e28144cc8afcfdf7ef4e8a4039
6
+ metadata.gz: 7bbd9b7c5ad4e884713d782cf99b7fca4db1e0dbcd70f6031e47b4f46eddbe9d5ccbf6a6133c2ba1158de4a395195d8b7d9510008afb6b9f73db5809fe921c27
7
+ data.tar.gz: 4972f0169ad698d82348b659a6c50b5e59374e7537f40b99c48f0993a0b24d44ed022928a3379ada39c95c7e347e4d9cb953755cfe281ca8e5660c448b2e4ea0
data/CHANGES.md CHANGED
@@ -1,31 +1,66 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2024-04-01] Version 7.0.0
5
+ --------------------------
6
+ **Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2024-01-19-6xx-to-7xx) for detailed migration notes.
7
+
8
+ **Library - Feature**
9
+ - [PR #719](https://github.com/twilio/twilio-ruby/pull/719): Merge '7.0.0-rc' into main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! **(breaking change)**
4
10
 
5
- [2024-03-12] Version 7.0.0-rc.2
6
- -------------------------------
7
11
  **Library - Chore**
8
- - [PR #714](https://github.com/twilio/twilio-ruby/pull/714): enable cluster test. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
12
+ - [PR #715](https://github.com/twilio/twilio-ruby/pull/715): remove media endpoint. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
13
+
14
+ **Api**
15
+ - Add property `queue_time` to conference participant resource
16
+ - Update RiskCheck documentation
17
+ - Correct call filtering by start and end time documentation, clarifying that times are UTC.
18
+
19
+ **Flex**
20
+ - Adding optional parameter to `plugins`
21
+
22
+ **Media**
23
+ - Remove API: MediaProcessor
24
+
25
+ **Messaging**
26
+ - Remove Sending-Window due to test failure
27
+ - Add Sending-Window as a response property to Messaging Services, gated by a beta feature flag
28
+
29
+ **Numbers**
30
+ - Correct valid_until_date field to be visible in Bundles resource
31
+ - Adding port_in_status field to the Port In resource and phone_number_status and sid fields to the Port In Phone Number resource
32
+
33
+ **Oauth**
34
+ - Modified token endpoint response
35
+ - Added refresh_token and scope as optional parameter to token endpoint
36
+ - Add new APIs for vendor authorize and token endpoints
37
+
38
+ **Trusthub**
39
+ - Add update inquiry endpoint in compliance_registration.
40
+ - Add new field in themeSetId in compliance_registration.
41
+
42
+ **Voice**
43
+ - Correct call filtering by start and end time documentation, clarifying that times are UTC.
44
+
45
+ **Twiml**
46
+ - Add support for new Google voices (Q1 2024) for `Say` verb - gu-IN voices
47
+ - Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb - Niamh (en-IE) and Sofie (da-DK) voices
48
+
9
49
 
50
+ [2024-03-12] Version 6.12.1
51
+ ---------------------------
10
52
  **Api**
11
53
  - Correct precedence documentation for application_sid vs status_callback in message creation
12
54
  - Mark MaxPrice as deprecated
13
- - remove feedback and feedback summary from call resource
14
55
 
15
56
  **Flex**
16
57
  - Making `plugins` visibility to public
17
- - Adding `routing_properties` to Interactions Channels Participant
18
-
19
- **Lookups**
20
- - Add new `line_status` package to the lookup response
21
- - Remove `live_activity` package from the lookup response **(breaking change)**
22
58
 
23
59
  **Messaging**
24
60
  - Add new `errors` attribute to the Brand Registration resource.
25
61
  - Mark `brand_feedback` attribute as deprecated.
26
62
  - Mark `failure_reason` attribute as deprecated.
27
63
  - 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`.
28
- - Add tollfree multiple rejection reasons response array
29
64
 
30
65
  **Numbers**
31
66
  - Correcting mount_name for porting port in fetch API
@@ -33,20 +68,43 @@ twilio-ruby changelog
33
68
  **Trusthub**
34
69
  - Add new field in statusCallbackUrl in compliance_registration.
35
70
  - Add new field in isvRegisteringForSelfOrTenant in compliance_registration.
71
+
72
+ **Twiml**
73
+ - Expanded description of Action parameter for Message verb
74
+
75
+
76
+ [2024-02-27] Version 6.12.0
77
+ ---------------------------
78
+ **Library - Chore**
79
+ - [PR #712](https://github.com/twilio/twilio-ruby/pull/712): cluster tests enabled. Thanks to [@sbansla](https://github.com/sbansla)!
80
+
81
+ **Api**
82
+ - remove feedback and feedback summary from call resource
83
+
84
+ **Flex**
85
+ - Adding `routing_properties` to Interactions Channels Participant
86
+
87
+ **Lookups**
88
+ - Add new `line_status` package to the lookup response
89
+ - Remove `live_activity` package from the lookup response **(breaking change)**
90
+
91
+ **Messaging**
92
+ - Add tollfree multiple rejection reasons response array
93
+
94
+ **Trusthub**
36
95
  - Add ENUM for businessRegistrationAuthority in compliance_registration. **(breaking change)**
37
96
  - Add new field in isIsvEmbed in compliance_registration.
38
97
  - Add additional optional fields in compliance_registration for Individual business type.
39
98
 
40
99
  **Twiml**
41
- - Expanded description of Action parameter for Message verb
42
100
  - Add support for new Amazon Polly and Google voices (Q1 2024) for `Say` verb
43
101
 
44
102
 
45
- [2024-02-09] Version 7.0.0-rc.1
46
- -------------------------------
103
+ [2024-02-09] Version 6.11.0
104
+ ---------------------------
47
105
  **Library - Chore**
48
- - [PR #711](https://github.com/twilio/twilio-ruby/pull/711): disable-cluster-test. Thanks to [@sbansla](https://github.com/sbansla)!
49
- - [PR #709](https://github.com/twilio/twilio-ruby/pull/709): removed ssl ca file from http client. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
106
+ - [PR #710](https://github.com/twilio/twilio-ruby/pull/710): remove live media endpoint. Thanks to [@califlower](https://github.com/califlower)!
107
+ - [PR #708](https://github.com/twilio/twilio-ruby/pull/708): removing oauth and autopilot references. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)!
50
108
 
51
109
  **Api**
52
110
  - Updated service base url for connect apps and authorized connect apps APIs **(breaking change)**
@@ -106,11 +164,6 @@ twilio-ruby changelog
106
164
  - Update Verify TOTP maturity to GA.
107
165
 
108
166
 
109
- [2024-01-26] Version 7.0.0-rc.0
110
- --------------------------
111
- - Release Candidate preparation
112
-
113
-
114
167
  [2024-01-25] Version 6.10.0
115
168
  ---------------------------
116
169
  **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', '~> 7.0.0-rc.2'
42
+ gem 'twilio-ruby', '~> 7.0.0'
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.2
48
+ gem install twilio-ruby -v 7.0.0
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
data/UPGRADE.md CHANGED
@@ -7,9 +7,10 @@ posted here._
7
7
  -----------------------------
8
8
  ### Overview
9
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
10
+ ##### Twilio Ruby Helper Library’s major version 7.0.0 is now available. We ensured that you can upgrade to Ruby helper Library 7.0.0 version without any breaking changes of existing apis
11
11
 
12
- Twilio Helper libraries now support nested json body while sending requests.
12
+ Behind the scenes Ruby Helper is now auto-generated via OpenAPI with this release. This enables us to rapidly add new features and enhance consistency across versions and languages.
13
+ We're pleased to inform you that version 7.0.0 adds support for the application/json content type in the request body.
13
14
 
14
15
  To learn more about the Ruby Helper Library, check out [our docs](https://www.twilio.com/docs/libraries/ruby).
15
16
 
@@ -164,8 +164,12 @@ module Twilio
164
164
  # @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
165
165
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
166
166
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
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] 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.
167
+ # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, 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 UTC, 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 UTC, 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] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, 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 UTC, 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 UTC, 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.
169
173
  # @param [Integer] limit Upper limit for the number of records to return. stream()
170
174
  # guarantees to never return more than limit. Default is no limit
171
175
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -173,14 +177,18 @@ module Twilio
173
177
  # but a limit is defined, stream() will attempt to read the limit with the most
174
178
  # efficient page size, i.e. min(limit, 1000)
175
179
  # @return [Array] Array of up to limit results
176
- 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)
177
181
  self.stream(
178
182
  to: to,
179
183
  from: from,
180
184
  parent_call_sid: parent_call_sid,
181
185
  status: status,
182
186
  start_time: start_time,
187
+ start_time_before: start_time_before,
188
+ start_time_after: start_time_after,
183
189
  end_time: end_time,
190
+ end_time_before: end_time_before,
191
+ end_time_after: end_time_after,
184
192
  limit: limit,
185
193
  page_size: page_size
186
194
  ).entries
@@ -194,8 +202,12 @@ module Twilio
194
202
  # @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
195
203
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
196
204
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
197
- # @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.
198
- # @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.
205
+ # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, 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 UTC, 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 UTC, 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] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, 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 UTC, 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 UTC, 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.
199
211
  # @param [Integer] limit Upper limit for the number of records to return. stream()
200
212
  # guarantees to never return more than limit. Default is no limit
201
213
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -203,7 +215,7 @@ module Twilio
203
215
  # but a limit is defined, stream() will attempt to read the limit with the most
204
216
  # efficient page size, i.e. min(limit, 1000)
205
217
  # @return [Enumerable] Enumerable that will yield up to limit results
206
- 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)
207
219
  limits = @version.read_limits(limit, page_size)
208
220
 
209
221
  page = self.page(
@@ -212,7 +224,11 @@ module Twilio
212
224
  parent_call_sid: parent_call_sid,
213
225
  status: status,
214
226
  start_time: start_time,
227
+ start_time_before: start_time_before,
228
+ start_time_after: start_time_after,
215
229
  end_time: end_time,
230
+ end_time_before: end_time_before,
231
+ end_time_after: end_time_after,
216
232
  page_size: limits[:page_size], )
217
233
 
218
234
  @version.stream(page, limit: limits[:limit], page_limit: limits[:page_limit])
@@ -239,20 +255,28 @@ module Twilio
239
255
  # @param [String] from Only include calls from this phone number, SIP address, Client identifier or SIM SID.
240
256
  # @param [String] parent_call_sid Only include calls spawned by calls with this SID.
241
257
  # @param [Status] status The status of the calls to include. Can be: `queued`, `ringing`, `in-progress`, `canceled`, `completed`, `failed`, `busy`, or `no-answer`.
242
- # @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.
243
- # @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.
258
+ # @param [Time] start_time Only include calls that started on this date. Specify a date as `YYYY-MM-DD` in UTC, 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 UTC, 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 UTC, 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] end_time Only include calls that ended on this date. Specify a date as `YYYY-MM-DD` in UTC, 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 UTC, 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 UTC, 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.
244
264
  # @param [String] page_token PageToken provided by the API
245
265
  # @param [Integer] page_number Page Number, this value is simply for client state
246
266
  # @param [Integer] page_size Number of records to return, defaults to 50
247
267
  # @return [Page] Page of CallInstance
248
- 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)
249
269
  params = Twilio::Values.of({
250
270
  'To' => to,
251
271
  'From' => from,
252
272
  'ParentCallSid' => parent_call_sid,
253
273
  'Status' => status,
254
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),
255
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),
256
280
  'PageToken' => page_token,
257
281
  'Page' => page_number,
258
282
  'PageSize' => page_size,
@@ -625,13 +649,13 @@ module Twilio
625
649
  end
626
650
 
627
651
  ##
628
- # @return [Time] The date and time in GMT that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
652
+ # @return [Time] The date and time in UTC that this resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
629
653
  def date_created
630
654
  @properties['date_created']
631
655
  end
632
656
 
633
657
  ##
634
- # @return [Time] The date and time in GMT that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
658
+ # @return [Time] The date and time in UTC that this resource was last updated, specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
635
659
  def date_updated
636
660
  @properties['date_updated']
637
661
  end
@@ -685,13 +709,13 @@ module Twilio
685
709
  end
686
710
 
687
711
  ##
688
- # @return [Time] The start time of the call, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
712
+ # @return [Time] The start time of the call, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call has not yet been dialed.
689
713
  def start_time
690
714
  @properties['start_time']
691
715
  end
692
716
 
693
717
  ##
694
- # @return [Time] The time the call ended, given as GMT in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
718
+ # @return [Time] The time the call ended, given as UTC in [RFC 2822](https://www.php.net/manual/en/class.datetime.php#datetime.constants.rfc2822) format. Empty if the call did not complete successfully.
695
719
  def end_time
696
720
  @properties['end_time']
697
721
  end
@@ -478,6 +478,7 @@ module Twilio
478
478
  'hold' => payload['hold'],
479
479
  'start_conference_on_enter' => payload['start_conference_on_enter'],
480
480
  'status' => payload['status'],
481
+ 'queue_time' => payload['queue_time'],
481
482
  'uri' => payload['uri'],
482
483
  }
483
484
 
@@ -575,6 +576,12 @@ module Twilio
575
576
  @properties['status']
576
577
  end
577
578
 
579
+ ##
580
+ # @return [String] The wait time in milliseconds before participant's call is placed. Only available in the response to a create participant request.
581
+ def queue_time
582
+ @properties['queue_time']
583
+ end
584
+
578
585
  ##
579
586
  # @return [String] The URI of the resource, relative to `https://api.twilio.com`.
580
587
  def uri
@@ -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,
@@ -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,
@@ -82,11 +82,6 @@ module Twilio
82
82
  @lookups ||= Lookups.new self
83
83
  end
84
84
  ##
85
- # Access the Media Twilio Domain
86
- def media
87
- @media ||= Media.new self
88
- end
89
- ##
90
85
  # Access the PreviewMessaging Twilio Domain
91
86
  def preview_messaging
92
87
  @preview_messaging ||= PreviewMessaging.new self
@@ -117,6 +112,11 @@ module Twilio
117
112
  @numbers ||= Numbers.new self
118
113
  end
119
114
  ##
115
+ # Access the Oauth Twilio Domain
116
+ def oauth
117
+ @oauth ||= Oauth.new self
118
+ end
119
+ ##
120
120
  # Access the Preview Twilio Domain
121
121
  def preview
122
122
  @preview ||= Preview.new self
@@ -41,11 +41,11 @@ module Twilio
41
41
  # Initialize the ApprovalCreateList
42
42
  # @param [Version] version Version that contains the resource
43
43
  # @return [ApprovalCreateList] ApprovalCreateList
44
- def initialize(version, sid: nil)
44
+ def initialize(version, content_sid: nil)
45
45
  super(version)
46
46
  # Path Solution
47
- @solution = { sid: sid }
48
- @uri = "/Content/#{@solution[:sid]}/ApprovalRequests/whatsapp"
47
+ @solution = { content_sid: content_sid }
48
+ @uri = "/Content/#{@solution[:content_sid]}/ApprovalRequests/whatsapp"
49
49
 
50
50
  end
51
51
  ##
@@ -60,7 +60,7 @@ module Twilio
60
60
  ApprovalCreateInstance.new(
61
61
  @version,
62
62
  payload,
63
- sid: @solution[:sid],
63
+ content_sid: @solution[:content_sid],
64
64
  )
65
65
  end
66
66
 
@@ -92,7 +92,7 @@ module Twilio
92
92
  # @param [Hash] payload Payload response from the API
93
93
  # @return [ApprovalCreateInstance] ApprovalCreateInstance
94
94
  def get_instance(payload)
95
- ApprovalCreateInstance.new(@version, payload, sid: @solution[:sid])
95
+ ApprovalCreateInstance.new(@version, payload, content_sid: @solution[:content_sid])
96
96
  end
97
97
 
98
98
  ##
@@ -111,7 +111,7 @@ module Twilio
111
111
  # resource.
112
112
  # @param [String] sid The SID of the Call resource to fetch.
113
113
  # @return [ApprovalCreateInstance] ApprovalCreateInstance
114
- def initialize(version, payload , sid: nil)
114
+ def initialize(version, payload , content_sid: nil)
115
115
  super(version)
116
116
 
117
117
  # Marshaled Properties