twilio-ruby 7.7.2 → 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.
- checksums.yaml +4 -4
- data/CHANGES.md +6 -0
- data/README.md +2 -2
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/all_time.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/daily.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/last_month.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/monthly.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/this_month.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/today.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yearly.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record/yesterday.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/record.rb +4 -4
- data/lib/twilio-ruby/rest/api/v2010/account/usage/trigger.rb +5 -5
- data/lib/twilio-ruby/rest/content/v1/content.rb +4 -1
- data/lib/twilio-ruby/rest/messaging/v2/channels_sender.rb +29 -29
- data/lib/twilio-ruby/rest/messaging/v2.rb +1 -1
- data/lib/twilio-ruby/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e88cf9b829dc06745800593b0c509f9fe4cf0b25
|
4
|
+
data.tar.gz: 718f708c4c309bc3cd8046c823cc153702a79729
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbbfe2dbdb666e8f3244098354e9dd87c22b9d3ed902181454297c0e20758597c36428ccb92f9c5efea65f4d8983a6e040e3c93cf63535b0184f22cf59371737
|
7
|
+
data.tar.gz: 44315005800e2958406e530a8991874f30bbb7e870da9159da22cd61f5f17ebb8f6f103d32040d3532f3970c0babbdac3b23c28d9eff1231dc365acd2bfdecae
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,12 @@
|
|
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
|
+
|
4
10
|
[2025-08-28] Version 7.7.2
|
5
11
|
--------------------------
|
6
12
|
**Studio**
|
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.
|
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.
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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 [
|
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
|
-
|
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
|
@@ -20,19 +20,19 @@ module Twilio
|
|
20
20
|
class ChannelsSenderList < ListResource
|
21
21
|
|
22
22
|
class MessagingV2ChannelsSenderProfile
|
23
|
-
# @param [name]: [String] The name of the sender.
|
24
|
-
# @param [about]: [String] The about text
|
23
|
+
# @param [name]: [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362).
|
24
|
+
# @param [about]: [String] The profile about text for the sender.
|
25
25
|
# @param [address]: [String] The address of the sender.
|
26
26
|
# @param [description]: [String] The description of the sender.
|
27
27
|
# @param [logo_url]: [String] The logo URL of the sender.
|
28
28
|
# @param [banner_url]: [String] The banner URL of the sender.
|
29
|
-
# @param [privacy_url]: [String] The privacy URL of the sender.
|
29
|
+
# @param [privacy_url]: [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
|
30
30
|
# @param [terms_of_service_url]: [String] The terms of service URL of the sender.
|
31
|
-
# @param [accent_color]: [String]
|
32
|
-
# @param [vertical]: [String] The vertical of the sender. Allowed values are: -
|
33
|
-
# @param [websites]: [Hash] The websites of the sender
|
34
|
-
# @param [emails]: [Hash] The emails of the sender
|
35
|
-
# @param [phone_numbers]: [Hash] The phone numbers of the sender
|
31
|
+
# @param [accent_color]: [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.
|
32
|
+
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`
|
33
|
+
# @param [websites]: [Hash] The websites of the sender.
|
34
|
+
# @param [emails]: [Hash] The emails of the sender.
|
35
|
+
# @param [phone_numbers]: [Hash] The phone numbers of the sender.
|
36
36
|
attr_accessor :name, :about, :address, :description, :logo_url, :banner_url, :privacy_url, :terms_of_service_url, :accent_color, :vertical, :websites, :emails, :phone_numbers
|
37
37
|
def initialize(payload)
|
38
38
|
@name = payload["name"]
|
@@ -117,7 +117,7 @@ module Twilio
|
|
117
117
|
end
|
118
118
|
|
119
119
|
class MessagingV2ChannelsSenderRequestsCreate
|
120
|
-
# @param [sender_id]: [String] The ID of
|
120
|
+
# @param [sender_id]: [String] The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
|
121
121
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
122
122
|
# @param [webhook]: [ChannelsSenderList.MessagingV2ChannelsSenderWebhook]
|
123
123
|
# @param [profile]: [ChannelsSenderList.MessagingV2ChannelsSenderProfile]
|
@@ -158,7 +158,7 @@ module Twilio
|
|
158
158
|
end
|
159
159
|
|
160
160
|
class MessagingV2RcsCarrier
|
161
|
-
# @param [name]: [String]
|
161
|
+
# @param [name]: [String] The name of the carrier. For example, `Verizon` or `AT&T` for US.
|
162
162
|
# @param [status]: [MessagingV2RcsCarrierStatus]
|
163
163
|
attr_accessor :name, :status
|
164
164
|
def initialize(payload)
|
@@ -174,8 +174,8 @@ module Twilio
|
|
174
174
|
end
|
175
175
|
|
176
176
|
class MessagingV2RcsComplianceCountryResponse
|
177
|
-
# @param [country]: [String] ISO 3166-1 alpha-2 country code
|
178
|
-
# @param [registration_sid]: [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries
|
177
|
+
# @param [country]: [String] The ISO 3166-1 alpha-2 country code.
|
178
|
+
# @param [registration_sid]: [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array.
|
179
179
|
# @param [status]: [MessagingV2RcsCountryStatus]
|
180
180
|
# @param [carriers]: [Array<MessagingV2RcsCarrier>]
|
181
181
|
attr_accessor :country, :registration_sid, :status, :carriers
|
@@ -197,19 +197,19 @@ module Twilio
|
|
197
197
|
|
198
198
|
|
199
199
|
class MessagingV2ChannelsSenderProfile
|
200
|
-
# @param [name]: [String] The name of the sender.
|
201
|
-
# @param [about]: [String] The about text
|
200
|
+
# @param [name]: [String] The name of the sender. Required for WhatsApp senders and must follow [Meta's display name guidelines](https://www.facebook.com/business/help/757569725593362).
|
201
|
+
# @param [about]: [String] The profile about text for the sender.
|
202
202
|
# @param [address]: [String] The address of the sender.
|
203
203
|
# @param [description]: [String] The description of the sender.
|
204
204
|
# @param [logo_url]: [String] The logo URL of the sender.
|
205
205
|
# @param [banner_url]: [String] The banner URL of the sender.
|
206
|
-
# @param [privacy_url]: [String] The privacy URL of the sender.
|
206
|
+
# @param [privacy_url]: [String] The privacy URL of the sender. Must be a publicly accessible HTTP or HTTPS URI associated with the sender.
|
207
207
|
# @param [terms_of_service_url]: [String] The terms of service URL of the sender.
|
208
|
-
# @param [accent_color]: [String]
|
209
|
-
# @param [vertical]: [String] The vertical of the sender. Allowed values are: -
|
210
|
-
# @param [websites]: [Hash] The websites of the sender
|
211
|
-
# @param [emails]: [Hash] The emails of the sender
|
212
|
-
# @param [phone_numbers]: [Hash] The phone numbers of the sender
|
208
|
+
# @param [accent_color]: [String] The color theme of the sender. Must be in hex format and have at least a 4:5:1 contrast ratio against white.
|
209
|
+
# @param [vertical]: [String] The vertical of the sender. Allowed values are: - `Automotive` - `Beauty, Spa and Salon` - `Clothing and Apparel` - `Education` - `Entertainment` - `Event Planning and Service` - `Finance and Banking` - `Food and Grocery` - `Public Service` - `Hotel and Lodging` - `Medical and Health` - `Non-profit` - `Professional Services` - `Shopping and Retail` - `Travel and Transportation` - `Restaurant` - `Other`
|
210
|
+
# @param [websites]: [Hash] The websites of the sender.
|
211
|
+
# @param [emails]: [Hash] The emails of the sender.
|
212
|
+
# @param [phone_numbers]: [Hash] The phone numbers of the sender.
|
213
213
|
attr_accessor :name, :about, :address, :description, :logo_url, :banner_url, :privacy_url, :terms_of_service_url, :accent_color, :vertical, :websites, :emails, :phone_numbers
|
214
214
|
def initialize(payload)
|
215
215
|
@name = payload["name"]
|
@@ -294,7 +294,7 @@ module Twilio
|
|
294
294
|
end
|
295
295
|
|
296
296
|
class MessagingV2ChannelsSenderRequestsCreate
|
297
|
-
# @param [sender_id]: [String] The ID of
|
297
|
+
# @param [sender_id]: [String] The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
|
298
298
|
# @param [configuration]: [ChannelsSenderList.MessagingV2ChannelsSenderConfiguration]
|
299
299
|
# @param [webhook]: [ChannelsSenderList.MessagingV2ChannelsSenderWebhook]
|
300
300
|
# @param [profile]: [ChannelsSenderList.MessagingV2ChannelsSenderProfile]
|
@@ -335,7 +335,7 @@ module Twilio
|
|
335
335
|
end
|
336
336
|
|
337
337
|
class MessagingV2RcsCarrier
|
338
|
-
# @param [name]: [String]
|
338
|
+
# @param [name]: [String] The name of the carrier. For example, `Verizon` or `AT&T` for US.
|
339
339
|
# @param [status]: [MessagingV2RcsCarrierStatus]
|
340
340
|
attr_accessor :name, :status
|
341
341
|
def initialize(payload)
|
@@ -351,8 +351,8 @@ module Twilio
|
|
351
351
|
end
|
352
352
|
|
353
353
|
class MessagingV2RcsComplianceCountryResponse
|
354
|
-
# @param [country]: [String] ISO 3166-1 alpha-2 country code
|
355
|
-
# @param [registration_sid]: [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries
|
354
|
+
# @param [country]: [String] The ISO 3166-1 alpha-2 country code.
|
355
|
+
# @param [registration_sid]: [String] The default compliance registration SID (e.g., from CR-Google) that applies to all countries unless overridden in the `countries` array.
|
356
356
|
# @param [status]: [MessagingV2RcsCountryStatus]
|
357
357
|
# @param [carriers]: [Array<MessagingV2RcsCarrier>]
|
358
358
|
attr_accessor :country, :registration_sid, :status, :carriers
|
@@ -511,7 +511,7 @@ module Twilio
|
|
511
511
|
##
|
512
512
|
# Initialize the ChannelsSenderContext
|
513
513
|
# @param [Version] version Version that contains the resource
|
514
|
-
# @param [String] sid
|
514
|
+
# @param [String] sid The SID of the sender.
|
515
515
|
# @return [ChannelsSenderContext] ChannelsSenderContext
|
516
516
|
def initialize(version, sid)
|
517
517
|
super(version)
|
@@ -662,7 +662,7 @@ module Twilio
|
|
662
662
|
end
|
663
663
|
|
664
664
|
##
|
665
|
-
# @return [String]
|
665
|
+
# @return [String] The SID of the sender.
|
666
666
|
def sid
|
667
667
|
@properties['sid']
|
668
668
|
end
|
@@ -674,7 +674,7 @@ module Twilio
|
|
674
674
|
end
|
675
675
|
|
676
676
|
##
|
677
|
-
# @return [String] The ID of
|
677
|
+
# @return [String] The ID of the sender in `whatsapp:<E.164_PHONE_NUMBER>` format.
|
678
678
|
def sender_id
|
679
679
|
@properties['sender_id']
|
680
680
|
end
|
@@ -704,7 +704,7 @@ module Twilio
|
|
704
704
|
end
|
705
705
|
|
706
706
|
##
|
707
|
-
# @return [Array<MessagingV2ChannelsSenderOfflineReasonsItems>]
|
707
|
+
# @return [Array<MessagingV2ChannelsSenderOfflineReasonsItems>] The reasons why the sender is offline.
|
708
708
|
def offline_reasons
|
709
709
|
@properties['offline_reasons']
|
710
710
|
end
|
@@ -716,7 +716,7 @@ module Twilio
|
|
716
716
|
end
|
717
717
|
|
718
718
|
##
|
719
|
-
# @return [String] The URL of
|
719
|
+
# @return [String] The URL of the resource.
|
720
720
|
def url
|
721
721
|
@properties['url']
|
722
722
|
end
|
@@ -25,7 +25,7 @@ module Twilio
|
|
25
25
|
end
|
26
26
|
|
27
27
|
##
|
28
|
-
# @param [String] sid
|
28
|
+
# @param [String] sid The SID of the sender.
|
29
29
|
# @return [Twilio::REST::Messaging::V2::ChannelsSenderContext] if sid was passed.
|
30
30
|
# @return [Twilio::REST::Messaging::V2::ChannelsSenderList]
|
31
31
|
def channels_senders(sid=:unset)
|
data/lib/twilio-ruby/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: twilio-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Twilio API Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|