twilio-ruby 7.6.5 → 7.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGES.md +51 -0
  3. data/README.md +2 -2
  4. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +4 -4
  5. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +4 -4
  6. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +4 -4
  7. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +4 -4
  8. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +4 -4
  9. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +4 -4
  10. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +4 -4
  11. data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +4 -4
  12. data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +4 -4
  13. data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +5 -5
  14. data/lib/twilio-ruby/rest/content/v1/content.rb +4 -1
  15. data/lib/twilio-ruby/rest/events/v1/subscription.rb +2 -8
  16. data/lib/twilio-ruby/rest/flex_api/v1/assessments.rb +3 -3
  17. data/lib/twilio-ruby/rest/flex_api/v1/insights_assessments_comment.rb +3 -3
  18. data/lib/twilio-ruby/rest/flex_api/v2/web_channels.rb +3 -0
  19. data/lib/twilio-ruby/rest/iam/v1/get_api_keys.rb +7 -0
  20. data/lib/twilio-ruby/rest/insights/v1/call_summaries.rb +27 -3
  21. data/lib/twilio-ruby/rest/messaging/v1/brand_registration.rb +18 -0
  22. data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +171 -26
  23. data/lib/twilio-ruby/rest/messaging/v2.rb +1 -1
  24. data/lib/twilio-ruby/rest/numbers/v1/porting_port_in.rb +21 -0
  25. data/lib/twilio-ruby/rest/numbers/v1/{porting_webhook_configuration_fetch.rb → webhook.rb} +20 -20
  26. data/lib/twilio-ruby/rest/numbers/v1.rb +6 -6
  27. data/lib/twilio-ruby/rest/studio/v1/flow/engagement/step.rb +7 -0
  28. data/lib/twilio-ruby/rest/studio/v1/flow/execution/execution_step.rb +7 -0
  29. data/lib/twilio-ruby/rest/studio/v2/flow/execution/execution_step.rb +7 -0
  30. data/lib/twilio-ruby/rest/verify/v2/service/entity/new_factor.rb +7 -0
  31. data/lib/twilio-ruby/rest/verify/v2/service.rb +61 -0
  32. data/lib/twilio-ruby/rest/voice_base.rb +1 -6
  33. data/lib/twilio-ruby/version.rb +1 -1
  34. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 133dba44ff1c8cd6de6ea4d887595c604fa790be
4
- data.tar.gz: 8630417e440372137cf666b8ae2bd9ce31859d86
3
+ metadata.gz: e88cf9b829dc06745800593b0c509f9fe4cf0b25
4
+ data.tar.gz: 718f708c4c309bc3cd8046c823cc153702a79729
5
5
  SHA512:
6
- metadata.gz: d577852d62d5d4b0d0e05ad47bc6985d15ba3349550c2c7b7dda0761358259597b3648ab92e2c8279cb522051c4e1c0ba1ee4846a2260231aae42f67b7b01aa9
7
- data.tar.gz: 96c04a7e244907013f87ba249f3050fa0f1f80b8b221baab5e04d098dcb874e03083abb135bb6723d3901a3aa7c29202b5d28726fe872685f596439911b28829
6
+ metadata.gz: fbbfe2dbdb666e8f3244098354e9dd87c22b9d3ed902181454297c0e20758597c36428ccb92f9c5efea65f4d8983a6e040e3c93cf63535b0184f22cf59371737
7
+ data.tar.gz: 44315005800e2958406e530a8991874f30bbb7e870da9159da22cd61f5f17ebb8f6f103d32040d3532f3970c0babbdac3b23c28d9eff1231dc365acd2bfdecae
data/CHANGES.md CHANGED
@@ -1,6 +1,57 @@
1
1
  twilio-ruby changelog
2
2
  =====================
3
3
 
4
+ [2025-09-04] Version 7.8.0
5
+ --------------------------
6
+ **Api**
7
+ - Remove usage category enum from usage record and usage triggers API **(breaking change)**
8
+
9
+
10
+ [2025-08-28] Version 7.7.2
11
+ --------------------------
12
+ **Studio**
13
+ - Add `type` to Step resource APIs
14
+
15
+ **Verify**
16
+ - Allow to update all passkeys parameters in the service update
17
+
18
+
19
+ [2025-08-18] Version 7.7.1
20
+ --------------------------
21
+ **Accounts**
22
+ - Update beta feature flag for consent and contact bulk upsert APIs
23
+
24
+ **Api**
25
+ - Add multiple missing usage categories to usage records and usage triggers api
26
+ - Add `channels-whatsapp-template-marketing` and `channels-whatsapp-template-utility` to usage categories
27
+
28
+ **Conversations**
29
+ - Fix `state` spelling for `initializing` enum value
30
+ - Update `state` to include `intializing` for ServiceConversationWithParticipants and ConversationWithParticipants
31
+
32
+ **Flex**
33
+ - Adding new optional parameter `identity` to `web_channels` API in version `v2`
34
+
35
+ **Trusthub**
36
+ - Add required Permissions to the ComplianceInquiries API
37
+
38
+ **Verify**
39
+ - Add passkeys support to Verify API creating and updating services.
40
+ - Update `ienum` type for Factor creation
41
+ - Add passkeys as challenge and factor type
42
+
43
+
44
+ [2025-07-24] Version 7.7.0
45
+ --------------------------
46
+ **Events**
47
+ - Remove `SinkSid` parameter when updating subscriptions. **(breaking change)**
48
+
49
+ **Twiml**
50
+ - Remove Duplicates.
51
+ - Add Polly Generative voices.
52
+ - Add Latest Google (Chirp3-HD) voices.
53
+
54
+
4
55
  [2025-07-10] Version 7.6.5
5
56
  --------------------------
6
57
  **Flex**
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.6.5'
42
+ gem 'twilio-ruby', '~> 7.8.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.6.5
48
+ gem install twilio-ruby -v 7.8.0
49
49
  ```
50
50
 
51
51
  To build and install the development branch yourself from the latest source:
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists AllTimeInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of AllTimeInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists DailyInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of DailyInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists LastMonthInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of LastMonthInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists MonthlyInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of MonthlyInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists ThisMonthInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of ThisMonthInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists TodayInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of TodayInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists YearlyInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of YearlyInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -39,7 +39,7 @@ module Twilio
39
39
  # Lists YesterdayInstance records from the API as a list.
40
40
  # Unlike stream(), this operation is eager and will load `limit` records into
41
41
  # memory before returning.
42
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
42
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
43
43
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
44
44
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
45
45
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -65,7 +65,7 @@ module Twilio
65
65
  # Streams Instance records from the API as an Enumerable.
66
66
  # This operation lazily loads records as efficiently as possible until the limit
67
67
  # is reached.
68
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
68
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
69
69
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
70
70
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
71
71
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -106,7 +106,7 @@ module Twilio
106
106
  ##
107
107
  # Retrieve a single page of YesterdayInstance records from the API.
108
108
  # Request is executed immediately.
109
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
109
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
110
110
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
111
111
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
112
112
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -235,7 +235,7 @@ module Twilio
235
235
  end
236
236
 
237
237
  ##
238
- # @return [Category]
238
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
239
239
  def category
240
240
  @properties['category']
241
241
  end
@@ -46,7 +46,7 @@ module Twilio
46
46
  # Lists RecordInstance records from the API as a list.
47
47
  # Unlike stream(), this operation is eager and will load `limit` records into
48
48
  # memory before returning.
49
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
49
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
50
50
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
51
51
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
52
52
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -72,7 +72,7 @@ module Twilio
72
72
  # Streams Instance records from the API as an Enumerable.
73
73
  # This operation lazily loads records as efficiently as possible until the limit
74
74
  # is reached.
75
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
75
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
76
76
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
77
77
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
78
78
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -113,7 +113,7 @@ module Twilio
113
113
  ##
114
114
  # Retrieve a single page of RecordInstance records from the API.
115
115
  # Request is executed immediately.
116
- # @param [Category] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
116
+ # @param [String] category The [usage category](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) of the UsageRecord resources to read. Only UsageRecord resources in the specified category are retrieved.
117
117
  # @param [Date] start_date Only include usage that has occurred on or after this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `-30days`, which will set the start date to be 30 days before the current date.
118
118
  # @param [Date] end_date Only include usage that occurred on or before this date. Specify the date in GMT and format as `YYYY-MM-DD`. You can also specify offsets from the current date, such as: `+30days`, which will set the end date to 30 days from the current date.
119
119
  # @param [Boolean] include_subaccounts Whether to include usage from the master account and all its subaccounts. Can be: `true` (the default) to include usage from the master account and all subaccounts or `false` to retrieve usage from only the specified account.
@@ -298,7 +298,7 @@ module Twilio
298
298
  end
299
299
 
300
300
  ##
301
- # @return [Category]
301
+ # @return [String] The category of usage. For more information, see [Usage Categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
302
302
  def category
303
303
  @properties['category']
304
304
  end
@@ -37,7 +37,7 @@ module Twilio
37
37
  # Create the TriggerInstance
38
38
  # @param [String] callback_url The URL we should call using `callback_method` when the trigger fires.
39
39
  # @param [String] trigger_value The usage value at which the trigger should fire. For convenience, you can use an offset value such as `+30` to specify a trigger_value that is 30 units more than the current usage value. Be sure to urlencode a `+` as `%2B`.
40
- # @param [UsageCategory] usage_category
40
+ # @param [String] usage_category The usage category that the trigger should watch. Use one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories) for this value.
41
41
  # @param [String] callback_method The HTTP method we should use to call `callback_url`. Can be: `GET` or `POST` and the default is `POST`.
42
42
  # @param [String] friendly_name A descriptive string that you create to describe the resource. It can be up to 64 characters long.
43
43
  # @param [Recurring] recurring
@@ -84,7 +84,7 @@ module Twilio
84
84
  # memory before returning.
85
85
  # @param [Recurring] recurring The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
86
86
  # @param [TriggerField] trigger_by The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
87
- # @param [UsageCategory] usage_category The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
87
+ # @param [String] usage_category The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
88
88
  # @param [Integer] limit Upper limit for the number of records to return. stream()
89
89
  # guarantees to never return more than limit. Default is no limit
90
90
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -108,7 +108,7 @@ module Twilio
108
108
  # is reached.
109
109
  # @param [Recurring] recurring The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
110
110
  # @param [TriggerField] trigger_by The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
111
- # @param [UsageCategory] usage_category The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
111
+ # @param [String] usage_category The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
112
112
  # @param [Integer] limit Upper limit for the number of records to return. stream()
113
113
  # guarantees to never return more than limit. Default is no limit
114
114
  # @param [Integer] page_size Number of records to fetch per request, when
@@ -147,7 +147,7 @@ module Twilio
147
147
  # Request is executed immediately.
148
148
  # @param [Recurring] recurring The frequency of recurring UsageTriggers to read. Can be: `daily`, `monthly`, or `yearly` to read recurring UsageTriggers. An empty value or a value of `alltime` reads non-recurring UsageTriggers.
149
149
  # @param [TriggerField] trigger_by The trigger field of the UsageTriggers to read. Can be: `count`, `usage`, or `price` as described in the [UsageRecords documentation](https://www.twilio.com/docs/usage/api/usage-record#usage-count-price).
150
- # @param [UsageCategory] usage_category The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
150
+ # @param [String] usage_category The usage category of the UsageTriggers to read. Must be a supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
151
151
  # @param [String] page_token PageToken provided by the API
152
152
  # @param [Integer] page_number Page Number, this value is simply for client state
153
153
  # @param [Integer] page_size Number of records to return, defaults to 50
@@ -451,7 +451,7 @@ module Twilio
451
451
  end
452
452
 
453
453
  ##
454
- # @return [UsageCategory]
454
+ # @return [String] The usage category the trigger watches. Must be one of the supported [usage categories](https://www.twilio.com/docs/usage/api/usage-record#usage-categories).
455
455
  def usage_category
456
456
  @properties['usage_category']
457
457
  end
@@ -70,7 +70,8 @@ module Twilio
70
70
  # @param [phone]: [String]
71
71
  # @param [id]: [String]
72
72
  # @param [code]: [String]
73
- attr_accessor :type, :title, :url, :phone, :id, :code
73
+ # @param [webview_size]: [WebviewSizeType]
74
+ attr_accessor :type, :title, :url, :phone, :id, :code, :webview_size
74
75
  def initialize(payload)
75
76
  @type = payload["type"]
76
77
  @title = payload["title"]
@@ -78,6 +79,7 @@ module Twilio
78
79
  @phone = payload["phone"]
79
80
  @id = payload["id"]
80
81
  @code = payload["code"]
82
+ @webview_size = payload["webview_size"]
81
83
  end
82
84
  def to_json(options = {})
83
85
  {
@@ -87,6 +89,7 @@ module Twilio
87
89
  "phone": @phone,
88
90
  "id": @id,
89
91
  "code": @code,
92
+ "webview_size": @webview_size,
90
93
  }.to_json(options)
91
94
  end
92
95
  end
@@ -214,16 +214,13 @@ module Twilio
214
214
  ##
215
215
  # Update the SubscriptionInstance
216
216
  # @param [String] description A human readable description for the Subscription.
217
- # @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
218
217
  # @return [SubscriptionInstance] Updated SubscriptionInstance
219
218
  def update(
220
- description: :unset,
221
- sink_sid: :unset
219
+ description: :unset
222
220
  )
223
221
 
224
222
  data = Twilio::Values.of({
225
223
  'Description' => description,
226
- 'SinkSid' => sink_sid,
227
224
  })
228
225
 
229
226
  headers = Twilio::Values.of({'Content-Type' => 'application/x-www-form-urlencoded', })
@@ -411,16 +408,13 @@ module Twilio
411
408
  ##
412
409
  # Update the SubscriptionInstance
413
410
  # @param [String] description A human readable description for the Subscription.
414
- # @param [String] sink_sid The SID of the sink that events selected by this subscription should be sent to. Sink must be active for the subscription to be created.
415
411
  # @return [SubscriptionInstance] Updated SubscriptionInstance
416
412
  def update(
417
- description: :unset,
418
- sink_sid: :unset
413
+ description: :unset
419
414
  )
420
415
 
421
416
  context.update(
422
417
  description: description,
423
- sink_sid: sink_sid,
424
418
  )
425
419
  end
426
420
 
@@ -346,7 +346,7 @@ module Twilio
346
346
  end
347
347
 
348
348
  ##
349
- # @return [Float] Offset of the conversation
349
+ # @return [String] Offset of the conversation
350
350
  def offset
351
351
  @properties['offset']
352
352
  end
@@ -358,7 +358,7 @@ module Twilio
358
358
  end
359
359
 
360
360
  ##
361
- # @return [Float] The weightage given to this comment
361
+ # @return [String] The weightage given to this comment
362
362
  def weight
363
363
  @properties['weight']
364
364
  end
@@ -406,7 +406,7 @@ module Twilio
406
406
  end
407
407
 
408
408
  ##
409
- # @return [Float]
409
+ # @return [String]
410
410
  def timestamp
411
411
  @properties['timestamp']
412
412
  end