diff --git a/CHANGES.md b/CHANGES.md index 4126df20d..144078c0b 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,36 @@ twilio-php Changelog ==================== +[2024-04-04] Version 8.0.0 +-------------------------- +**Note:** This release contains breaking changes, check our [upgrade guide](./UPGRADE.md#2023-03-25-7xx-to-8xx) for detailed migration notes. + +**Library - Feature** +- [PR #803](https://github.com/twilio/twilio-php/pull/803): Merge 8.0.0-rc into main. Thanks to [@tiwarishubham635](https://github.com/tiwarishubham635)! **(breaking change)** + +**Api** +- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC. + +**Flex** +- Remove optional parameter from `plugins` and it to `plugin_versions` + +**Lookups** +- Add new `pre_fill` package to the lookup response + +**Messaging** +- Cleanup api.messaging.next-gen from Messaging Services endpoints +- Readd Sending-Window after fixing test failure + +**Verify** +- Add `whatsapp.msg_service_sid` and `whatsapp.from` parameters to create, update, get and list of services endpoints + +**Voice** +- Correct conference filtering by date_created and date_updated documentation, clarifying that times are UTC. + +**Twiml** +- Add new `token_type` value `payment-method` for `Pay` verb + + [2024-04-01] Version 7.16.2 --------------------------- **Api** diff --git a/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php b/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php index 1bcb658c5..88bbc2674 100644 --- a/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php +++ b/src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php @@ -22,12 +22,12 @@ abstract class ConferenceOptions { /** - * @param string $dateCreatedBefore The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. - * @param string $dateCreated The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. - * @param string $dateCreatedAfter The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. - * @param string $dateUpdatedBefore The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. - * @param string $dateUpdated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. - * @param string $dateUpdatedAfter The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * @param string $dateCreatedBefore Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. + * @param string $dateCreated Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. + * @param string $dateCreatedAfter Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. + * @param string $dateUpdatedBefore Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. + * @param string $dateUpdated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. + * @param string $dateUpdatedAfter Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * @param string $friendlyName The string that identifies the Conference resources to read. * @param string $status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. * @return ReadConferenceOptions Options builder @@ -84,12 +84,12 @@ public static function update( class ReadConferenceOptions extends Options { /** - * @param string $dateCreatedBefore The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. - * @param string $dateCreated The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. - * @param string $dateCreatedAfter The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. - * @param string $dateUpdatedBefore The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. - * @param string $dateUpdated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. - * @param string $dateUpdatedAfter The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * @param string $dateCreatedBefore Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. + * @param string $dateCreated Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. + * @param string $dateCreatedAfter Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. + * @param string $dateUpdatedBefore Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. + * @param string $dateUpdated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. + * @param string $dateUpdatedAfter Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * @param string $friendlyName The string that identifies the Conference resources to read. * @param string $status The status of the resources to read. Can be: `init`, `in-progress`, or `completed`. */ @@ -116,9 +116,9 @@ public function __construct( } /** - * The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + * Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. * - * @param string $dateCreatedBefore The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + * @param string $dateCreatedBefore Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. * @return $this Fluent Builder */ public function setDateCreatedBefore(string $dateCreatedBefore): self @@ -128,9 +128,9 @@ public function setDateCreatedBefore(string $dateCreatedBefore): self } /** - * The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + * Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. * - * @param string $dateCreated The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + * @param string $dateCreated Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. * @return $this Fluent Builder */ public function setDateCreated(string $dateCreated): self @@ -140,9 +140,9 @@ public function setDateCreated(string $dateCreated): self } /** - * The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + * Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. * - * @param string $dateCreatedAfter The `date_created` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that started on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that started on or after midnight on a date, use `>=YYYY-MM-DD`. + * @param string $dateCreatedAfter Only include conferences that were created on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were created on this date. You can also specify an inequality, such as `DateCreated<=YYYY-MM-DD`, to read conferences that were created on or before midnight of this date, and `DateCreated>=YYYY-MM-DD` to read conferences that were created on or after midnight of this date. * @return $this Fluent Builder */ public function setDateCreatedAfter(string $dateCreatedAfter): self @@ -152,9 +152,9 @@ public function setDateCreatedAfter(string $dateCreatedAfter): self } /** - * The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * - * @param string $dateUpdatedBefore The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * @param string $dateUpdatedBefore Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * @return $this Fluent Builder */ public function setDateUpdatedBefore(string $dateUpdatedBefore): self @@ -164,9 +164,9 @@ public function setDateUpdatedBefore(string $dateUpdatedBefore): self } /** - * The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * - * @param string $dateUpdated The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * @param string $dateUpdated Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * @return $this Fluent Builder */ public function setDateUpdated(string $dateUpdated): self @@ -176,9 +176,9 @@ public function setDateUpdated(string $dateUpdated): self } /** - * The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * - * @param string $dateUpdatedAfter The `date_updated` value, specified as `YYYY-MM-DD`, of the resources to read. To read conferences that were last updated on or before midnight on a date, use `<=YYYY-MM-DD`, and to specify conferences that were last updated on or after midnight on a given date, use `>=YYYY-MM-DD`. + * @param string $dateUpdatedAfter Only include conferences that were last updated on this date. Specify a date as `YYYY-MM-DD` in UTC, for example: `2009-07-06`, to read only conferences that were last updated on this date. You can also specify an inequality, such as `DateUpdated<=YYYY-MM-DD`, to read conferences that were last updated on or before midnight of this date, and `DateUpdated>=YYYY-MM-DD` to read conferences that were last updated on or after midnight of this date. * @return $this Fluent Builder */ public function setDateUpdatedAfter(string $dateUpdatedAfter): self diff --git a/src/Twilio/Rest/Conversations/V1/ConversationOptions.php b/src/Twilio/Rest/Conversations/V1/ConversationOptions.php index bbc0501bf..eaf808664 100644 --- a/src/Twilio/Rest/Conversations/V1/ConversationOptions.php +++ b/src/Twilio/Rest/Conversations/V1/ConversationOptions.php @@ -85,8 +85,8 @@ public static function delete( /** - * @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. - * @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. + * @param string $startDate Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. + * @param string $endDate Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. * @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` * @return ReadConversationOptions Options builder */ @@ -396,8 +396,8 @@ public function __toString(): string class ReadConversationOptions extends Options { /** - * @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. - * @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. + * @param string $startDate Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. + * @param string $endDate Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. * @param string $state State for sorting and filtering list of Conversations. Can be `active`, `inactive` or `closed` */ public function __construct( @@ -413,9 +413,9 @@ public function __construct( } /** - * Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. + * Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. * - * @param string $startDate Start date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the start time of the date is used (YYYY-MM-DDT00:00:00Z). Can be combined with other filters. + * @param string $startDate Specifies the beginning of the date range for filtering Conversations based on their creation date. Conversations that were created on or after this date will be included in the results. The date must be in ISO8601 format, specifically starting at the beginning of the specified date (YYYY-MM-DDT00:00:00Z), for precise filtering. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. * @return $this Fluent Builder */ public function setStartDate(string $startDate): self @@ -425,9 +425,9 @@ public function setStartDate(string $startDate): self } /** - * End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. + * Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. * - * @param string $endDate End date or time in ISO8601 format for filtering list of Conversations. If a date is provided, the end time of the date is used (YYYY-MM-DDT23:59:59Z). Can be combined with other filters. + * @param string $endDate Defines the end of the date range for filtering conversations by their creation date. Only conversations that were created on or before this date will appear in the results. The date must be in ISO8601 format, specifically capturing up to the end of the specified date (YYYY-MM-DDT23:59:59Z), to ensure that conversations from the entire end day are included. This parameter can be combined with other filters. If this filter is used, the returned list is sorted by latest conversation creation date in descending order. * @return $this Fluent Builder */ public function setEndDate(string $endDate): self diff --git a/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsList.php b/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsList.php index 736fa8059..7e7fdaee7 100644 --- a/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsList.php +++ b/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsList.php @@ -73,6 +73,10 @@ public function create(string $version, string $pluginUrl, array $options = []): $options['changelog'], 'Private' => Serialize::booleanToString($options['_private']), + 'CliVersion' => + $options['cliVersion'], + 'ValidateStatus' => + $options['validateStatus'], ]); $headers = Values::of(['Flex-Metadata' => $options['flexMetadata']]); diff --git a/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsOptions.php b/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsOptions.php index 61335d0dc..54af0dc3d 100644 --- a/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsOptions.php +++ b/src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsOptions.php @@ -24,6 +24,8 @@ abstract class PluginVersionsOptions /** * @param string $changelog The changelog of the Flex Plugin Version. * @param bool $private Whether this Flex Plugin Version requires authorization. + * @param string $cliVersion The version of Flex Plugins CLI used to create this plugin + * @param string $validateStatus The validation status of the plugin, indicating whether it has been validated * @param string $flexMetadata The Flex-Metadata HTTP request header * @return CreatePluginVersionsOptions Options builder */ @@ -31,6 +33,8 @@ public static function create( string $changelog = Values::NONE, bool $private = Values::BOOL_NONE, + string $cliVersion = Values::NONE, + string $validateStatus = Values::NONE, string $flexMetadata = Values::NONE ): CreatePluginVersionsOptions @@ -38,6 +42,8 @@ public static function create( return new CreatePluginVersionsOptions( $changelog, $private, + $cliVersion, + $validateStatus, $flexMetadata ); } @@ -79,17 +85,23 @@ class CreatePluginVersionsOptions extends Options /** * @param string $changelog The changelog of the Flex Plugin Version. * @param bool $private Whether this Flex Plugin Version requires authorization. + * @param string $cliVersion The version of Flex Plugins CLI used to create this plugin + * @param string $validateStatus The validation status of the plugin, indicating whether it has been validated * @param string $flexMetadata The Flex-Metadata HTTP request header */ public function __construct( string $changelog = Values::NONE, bool $private = Values::BOOL_NONE, + string $cliVersion = Values::NONE, + string $validateStatus = Values::NONE, string $flexMetadata = Values::NONE ) { $this->options['changelog'] = $changelog; $this->options['private'] = $private; + $this->options['cliVersion'] = $cliVersion; + $this->options['validateStatus'] = $validateStatus; $this->options['flexMetadata'] = $flexMetadata; } @@ -117,6 +129,30 @@ public function setPrivate(bool $private): self return $this; } + /** + * The version of Flex Plugins CLI used to create this plugin + * + * @param string $cliVersion The version of Flex Plugins CLI used to create this plugin + * @return $this Fluent Builder + */ + public function setCliVersion(string $cliVersion): self + { + $this->options['cliVersion'] = $cliVersion; + return $this; + } + + /** + * The validation status of the plugin, indicating whether it has been validated + * + * @param string $validateStatus The validation status of the plugin, indicating whether it has been validated + * @return $this Fluent Builder + */ + public function setValidateStatus(string $validateStatus): self + { + $this->options['validateStatus'] = $validateStatus; + return $this; + } + /** * The Flex-Metadata HTTP request header * diff --git a/src/Twilio/Rest/FlexApi/V1/PluginList.php b/src/Twilio/Rest/FlexApi/V1/PluginList.php index 9974df26d..5fcf0e729 100644 --- a/src/Twilio/Rest/FlexApi/V1/PluginList.php +++ b/src/Twilio/Rest/FlexApi/V1/PluginList.php @@ -63,10 +63,6 @@ public function create(string $uniqueName, array $options = []): PluginInstance $options['friendlyName'], 'Description' => $options['description'], - 'CliVersion' => - $options['cliVersion'], - 'ValidateStatus' => - $options['validateStatus'], ]); $headers = Values::of(['Flex-Metadata' => $options['flexMetadata']]); diff --git a/src/Twilio/Rest/FlexApi/V1/PluginOptions.php b/src/Twilio/Rest/FlexApi/V1/PluginOptions.php index f9f7a27fe..8f88677b2 100644 --- a/src/Twilio/Rest/FlexApi/V1/PluginOptions.php +++ b/src/Twilio/Rest/FlexApi/V1/PluginOptions.php @@ -23,8 +23,6 @@ abstract class PluginOptions /** * @param string $friendlyName The Flex Plugin's friendly name. * @param string $description A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long - * @param string $cliVersion The version of Flex Plugins CLI used to create this plugin - * @param string $validateStatus The validation status of the plugin, indicating whether it has been validated * @param string $flexMetadata The Flex-Metadata HTTP request header * @return CreatePluginOptions Options builder */ @@ -32,8 +30,6 @@ public static function create( string $friendlyName = Values::NONE, string $description = Values::NONE, - string $cliVersion = Values::NONE, - string $validateStatus = Values::NONE, string $flexMetadata = Values::NONE ): CreatePluginOptions @@ -41,8 +37,6 @@ public static function create( return new CreatePluginOptions( $friendlyName, $description, - $cliVersion, - $validateStatus, $flexMetadata ); } @@ -105,23 +99,17 @@ class CreatePluginOptions extends Options /** * @param string $friendlyName The Flex Plugin's friendly name. * @param string $description A descriptive string that you create to describe the plugin resource. It can be up to 500 characters long - * @param string $cliVersion The version of Flex Plugins CLI used to create this plugin - * @param string $validateStatus The validation status of the plugin, indicating whether it has been validated * @param string $flexMetadata The Flex-Metadata HTTP request header */ public function __construct( string $friendlyName = Values::NONE, string $description = Values::NONE, - string $cliVersion = Values::NONE, - string $validateStatus = Values::NONE, string $flexMetadata = Values::NONE ) { $this->options['friendlyName'] = $friendlyName; $this->options['description'] = $description; - $this->options['cliVersion'] = $cliVersion; - $this->options['validateStatus'] = $validateStatus; $this->options['flexMetadata'] = $flexMetadata; } @@ -149,30 +137,6 @@ public function setDescription(string $description): self return $this; } - /** - * The version of Flex Plugins CLI used to create this plugin - * - * @param string $cliVersion The version of Flex Plugins CLI used to create this plugin - * @return $this Fluent Builder - */ - public function setCliVersion(string $cliVersion): self - { - $this->options['cliVersion'] = $cliVersion; - return $this; - } - - /** - * The validation status of the plugin, indicating whether it has been validated - * - * @param string $validateStatus The validation status of the plugin, indicating whether it has been validated - * @return $this Fluent Builder - */ - public function setValidateStatus(string $validateStatus): self - { - $this->options['validateStatus'] = $validateStatus; - return $this; - } - /** * The Flex-Metadata HTTP request header * diff --git a/src/Twilio/Rest/Lookups/V2/PhoneNumberContext.php b/src/Twilio/Rest/Lookups/V2/PhoneNumberContext.php index 8bcc388e2..eff855a55 100644 --- a/src/Twilio/Rest/Lookups/V2/PhoneNumberContext.php +++ b/src/Twilio/Rest/Lookups/V2/PhoneNumberContext.php @@ -87,6 +87,8 @@ public function fetch(array $options = []): PhoneNumberInstance $options['dateOfBirth'], 'LastVerifiedDate' => $options['lastVerifiedDate'], + 'VerificationSid' => + $options['verificationSid'], ]); $payload = $this->version->fetch('GET', $this->uri, $params, []); diff --git a/src/Twilio/Rest/Lookups/V2/PhoneNumberInstance.php b/src/Twilio/Rest/Lookups/V2/PhoneNumberInstance.php index 11d525cd4..8da1b0bda 100644 --- a/src/Twilio/Rest/Lookups/V2/PhoneNumberInstance.php +++ b/src/Twilio/Rest/Lookups/V2/PhoneNumberInstance.php @@ -40,6 +40,7 @@ * @property array|null $reassignedNumber * @property array|null $smsPumpingRisk * @property array|null $phoneNumberQualityScore + * @property array|null $preFill * @property string|null $url */ class PhoneNumberInstance extends InstanceResource @@ -72,6 +73,7 @@ public function __construct(Version $version, array $payload, string $phoneNumbe 'reassignedNumber' => Values::array_get($payload, 'reassigned_number'), 'smsPumpingRisk' => Values::array_get($payload, 'sms_pumping_risk'), 'phoneNumberQualityScore' => Values::array_get($payload, 'phone_number_quality_score'), + 'preFill' => Values::array_get($payload, 'pre_fill'), 'url' => Values::array_get($payload, 'url'), ]; diff --git a/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.php b/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.php index ff6eddffb..c832428c3 100644 --- a/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.php +++ b/src/Twilio/Rest/Lookups/V2/PhoneNumberOptions.php @@ -21,7 +21,7 @@ abstract class PhoneNumberOptions { /** - * @param string $fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score. + * @param string $fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill. * @param string $countryCode The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. * @param string $firstName User’s first name. This query parameter is only used (optionally) for identity_match package requests. * @param string $lastName User’s last name. This query parameter is only used (optionally) for identity_match package requests. @@ -34,6 +34,7 @@ abstract class PhoneNumberOptions * @param string $nationalId User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests. * @param string $dateOfBirth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests. * @param string $lastVerifiedDate The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests. + * @param string $verificationSid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests. * @return FetchPhoneNumberOptions Options builder */ public static function fetch( @@ -50,7 +51,8 @@ public static function fetch( string $addressCountryCode = Values::NONE, string $nationalId = Values::NONE, string $dateOfBirth = Values::NONE, - string $lastVerifiedDate = Values::NONE + string $lastVerifiedDate = Values::NONE, + string $verificationSid = Values::NONE ): FetchPhoneNumberOptions { @@ -67,7 +69,8 @@ public static function fetch( $addressCountryCode, $nationalId, $dateOfBirth, - $lastVerifiedDate + $lastVerifiedDate, + $verificationSid ); } @@ -76,7 +79,7 @@ public static function fetch( class FetchPhoneNumberOptions extends Options { /** - * @param string $fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score. + * @param string $fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill. * @param string $countryCode The [country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) used if the phone number provided is in national format. * @param string $firstName User’s first name. This query parameter is only used (optionally) for identity_match package requests. * @param string $lastName User’s last name. This query parameter is only used (optionally) for identity_match package requests. @@ -89,6 +92,7 @@ class FetchPhoneNumberOptions extends Options * @param string $nationalId User’s national ID, such as SSN or Passport ID. This query parameter is only used (optionally) for identity_match package requests. * @param string $dateOfBirth User’s date of birth, in YYYYMMDD format. This query parameter is only used (optionally) for identity_match package requests. * @param string $lastVerifiedDate The date you obtained consent to call or text the end-user of the phone number or a date on which you are reasonably certain that the end-user could still be reached at that number. This query parameter is only used (optionally) for reassigned_number package requests. + * @param string $verificationSid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests. */ public function __construct( @@ -104,7 +108,8 @@ public function __construct( string $addressCountryCode = Values::NONE, string $nationalId = Values::NONE, string $dateOfBirth = Values::NONE, - string $lastVerifiedDate = Values::NONE + string $lastVerifiedDate = Values::NONE, + string $verificationSid = Values::NONE ) { $this->options['fields'] = $fields; @@ -120,12 +125,13 @@ public function __construct( $this->options['nationalId'] = $nationalId; $this->options['dateOfBirth'] = $dateOfBirth; $this->options['lastVerifiedDate'] = $lastVerifiedDate; + $this->options['verificationSid'] = $verificationSid; } /** - * A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score. + * A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill. * - * @param string $fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score. + * @param string $fields A comma-separated list of fields to return. Possible values are validation, caller_name, sim_swap, call_forwarding, line_status, line_type_intelligence, identity_match, reassigned_number, sms_pumping_risk, phone_number_quality_score, pre_fill. * @return $this Fluent Builder */ public function setFields(string $fields): self @@ -278,6 +284,18 @@ public function setLastVerifiedDate(string $lastVerifiedDate): self return $this; } + /** + * The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests. + * + * @param string $verificationSid The unique identifier associated with a verification process through verify API. This query parameter is only used (optionally) for pre_fill package requests. + * @return $this Fluent Builder + */ + public function setVerificationSid(string $verificationSid): self + { + $this->options['verificationSid'] = $verificationSid; + return $this; + } + /** * Provide a friendly representation * diff --git a/src/Twilio/Rest/Messaging/V1/ServiceInstance.php b/src/Twilio/Rest/Messaging/V1/ServiceInstance.php index d879eb356..e0e39b32b 100644 --- a/src/Twilio/Rest/Messaging/V1/ServiceInstance.php +++ b/src/Twilio/Rest/Messaging/V1/ServiceInstance.php @@ -55,6 +55,7 @@ * @property string|null $usecase * @property bool|null $usAppToPersonRegistered * @property bool|null $useInboundWebhookOnNumber + * @property array|null $sendingWindows */ class ServiceInstance extends InstanceResource { @@ -101,6 +102,7 @@ public function __construct(Version $version, array $payload, string $sid = null 'usecase' => Values::array_get($payload, 'usecase'), 'usAppToPersonRegistered' => Values::array_get($payload, 'us_app_to_person_registered'), 'useInboundWebhookOnNumber' => Values::array_get($payload, 'use_inbound_webhook_on_number'), + 'sendingWindows' => Values::array_get($payload, 'sending_windows'), ]; $this->solution = ['sid' => $sid ?: $this->properties['sid'], ]; diff --git a/src/Twilio/Rest/Verify/V2/ServiceContext.php b/src/Twilio/Rest/Verify/V2/ServiceContext.php index 5dd65454f..e9e45e539 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceContext.php +++ b/src/Twilio/Rest/Verify/V2/ServiceContext.php @@ -159,6 +159,10 @@ public function update(array $options = []): ServiceInstance $options['totpSkew'], 'DefaultTemplateSid' => $options['defaultTemplateSid'], + 'Whatsapp.MsgServiceSid' => + $options['whatsappMsgServiceSid'], + 'Whatsapp.From' => + $options['whatsappFrom'], 'VerifyEventSubscriptionEnabled' => Serialize::booleanToString($options['verifyEventSubscriptionEnabled']), ]); diff --git a/src/Twilio/Rest/Verify/V2/ServiceInstance.php b/src/Twilio/Rest/Verify/V2/ServiceInstance.php index 6758d9aff..f5eb4f646 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceInstance.php +++ b/src/Twilio/Rest/Verify/V2/ServiceInstance.php @@ -47,6 +47,7 @@ * @property array|null $push * @property array|null $totp * @property string|null $defaultTemplateSid + * @property array|null $whatsapp * @property bool|null $verifyEventSubscriptionEnabled * @property \DateTime|null $dateCreated * @property \DateTime|null $dateUpdated @@ -90,6 +91,7 @@ public function __construct(Version $version, array $payload, string $sid = null 'push' => Values::array_get($payload, 'push'), 'totp' => Values::array_get($payload, 'totp'), 'defaultTemplateSid' => Values::array_get($payload, 'default_template_sid'), + 'whatsapp' => Values::array_get($payload, 'whatsapp'), 'verifyEventSubscriptionEnabled' => Values::array_get($payload, 'verify_event_subscription_enabled'), 'dateCreated' => Deserialize::dateTime(Values::array_get($payload, 'date_created')), 'dateUpdated' => Deserialize::dateTime(Values::array_get($payload, 'date_updated')), diff --git a/src/Twilio/Rest/Verify/V2/ServiceList.php b/src/Twilio/Rest/Verify/V2/ServiceList.php index dcb40a536..d333163c2 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceList.php +++ b/src/Twilio/Rest/Verify/V2/ServiceList.php @@ -92,6 +92,10 @@ public function create(string $friendlyName, array $options = []): ServiceInstan $options['totpSkew'], 'DefaultTemplateSid' => $options['defaultTemplateSid'], + 'Whatsapp.MsgServiceSid' => + $options['whatsappMsgServiceSid'], + 'Whatsapp.From' => + $options['whatsappFrom'], 'VerifyEventSubscriptionEnabled' => Serialize::booleanToString($options['verifyEventSubscriptionEnabled']), ]); diff --git a/src/Twilio/Rest/Verify/V2/ServiceOptions.php b/src/Twilio/Rest/Verify/V2/ServiceOptions.php index d5ff62d4f..3912af781 100644 --- a/src/Twilio/Rest/Verify/V2/ServiceOptions.php +++ b/src/Twilio/Rest/Verify/V2/ServiceOptions.php @@ -37,6 +37,8 @@ abstract class ServiceOptions * @param int $totpCodeLength Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6 * @param int $totpSkew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1 * @param string $defaultTemplateSid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. + * @param string $whatsappMsgServiceSid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users. + * @param string $whatsappFrom The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID. * @param bool $verifyEventSubscriptionEnabled Whether to allow verifications from the service to reach the stream-events sinks if configured * @return CreateServiceOptions Options builder */ @@ -58,6 +60,8 @@ public static function create( int $totpCodeLength = Values::INT_NONE, int $totpSkew = Values::INT_NONE, string $defaultTemplateSid = Values::NONE, + string $whatsappMsgServiceSid = Values::NONE, + string $whatsappFrom = Values::NONE, bool $verifyEventSubscriptionEnabled = Values::BOOL_NONE ): CreateServiceOptions @@ -79,6 +83,8 @@ public static function create( $totpCodeLength, $totpSkew, $defaultTemplateSid, + $whatsappMsgServiceSid, + $whatsappFrom, $verifyEventSubscriptionEnabled ); } @@ -104,6 +110,8 @@ public static function create( * @param int $totpCodeLength Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6 * @param int $totpSkew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1 * @param string $defaultTemplateSid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. + * @param string $whatsappMsgServiceSid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service. + * @param string $whatsappFrom The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service. * @param bool $verifyEventSubscriptionEnabled Whether to allow verifications from the service to reach the stream-events sinks if configured * @return UpdateServiceOptions Options builder */ @@ -126,6 +134,8 @@ public static function update( int $totpCodeLength = Values::INT_NONE, int $totpSkew = Values::INT_NONE, string $defaultTemplateSid = Values::NONE, + string $whatsappMsgServiceSid = Values::NONE, + string $whatsappFrom = Values::NONE, bool $verifyEventSubscriptionEnabled = Values::BOOL_NONE ): UpdateServiceOptions @@ -148,6 +158,8 @@ public static function update( $totpCodeLength, $totpSkew, $defaultTemplateSid, + $whatsappMsgServiceSid, + $whatsappFrom, $verifyEventSubscriptionEnabled ); } @@ -173,6 +185,8 @@ class CreateServiceOptions extends Options * @param int $totpCodeLength Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6 * @param int $totpSkew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1 * @param string $defaultTemplateSid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. + * @param string $whatsappMsgServiceSid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users. + * @param string $whatsappFrom The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID. * @param bool $verifyEventSubscriptionEnabled Whether to allow verifications from the service to reach the stream-events sinks if configured */ public function __construct( @@ -193,6 +207,8 @@ public function __construct( int $totpCodeLength = Values::INT_NONE, int $totpSkew = Values::INT_NONE, string $defaultTemplateSid = Values::NONE, + string $whatsappMsgServiceSid = Values::NONE, + string $whatsappFrom = Values::NONE, bool $verifyEventSubscriptionEnabled = Values::BOOL_NONE ) { @@ -212,6 +228,8 @@ public function __construct( $this->options['totpCodeLength'] = $totpCodeLength; $this->options['totpSkew'] = $totpSkew; $this->options['defaultTemplateSid'] = $defaultTemplateSid; + $this->options['whatsappMsgServiceSid'] = $whatsappMsgServiceSid; + $this->options['whatsappFrom'] = $whatsappFrom; $this->options['verifyEventSubscriptionEnabled'] = $verifyEventSubscriptionEnabled; } @@ -407,6 +425,30 @@ public function setDefaultTemplateSid(string $defaultTemplateSid): self return $this; } + /** + * The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users. + * + * @param string $whatsappMsgServiceSid The SID of the Messaging Service containing WhatsApp Sender(s) that Verify will use to send WhatsApp messages to your users. + * @return $this Fluent Builder + */ + public function setWhatsappMsgServiceSid(string $whatsappMsgServiceSid): self + { + $this->options['whatsappMsgServiceSid'] = $whatsappMsgServiceSid; + return $this; + } + + /** + * The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID. + * + * @param string $whatsappFrom The number to use as the WhatsApp Sender that Verify will use to send WhatsApp messages to your users.This WhatsApp Sender must be associated with a Messaging Service SID. + * @return $this Fluent Builder + */ + public function setWhatsappFrom(string $whatsappFrom): self + { + $this->options['whatsappFrom'] = $whatsappFrom; + return $this; + } + /** * Whether to allow verifications from the service to reach the stream-events sinks if configured * @@ -454,6 +496,8 @@ class UpdateServiceOptions extends Options * @param int $totpCodeLength Optional configuration for the TOTP factors. Number of digits for generated TOTP codes. Must be between 3 and 8, inclusive. Defaults to 6 * @param int $totpSkew Optional configuration for the TOTP factors. The number of time-steps, past and future, that are valid for validation of TOTP codes. Must be between 0 and 2, inclusive. Defaults to 1 * @param string $defaultTemplateSid The default message [template](https://www.twilio.com/docs/verify/api/templates). Will be used for all SMS verifications unless explicitly overriden. SMS channel only. + * @param string $whatsappMsgServiceSid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service. + * @param string $whatsappFrom The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service. * @param bool $verifyEventSubscriptionEnabled Whether to allow verifications from the service to reach the stream-events sinks if configured */ public function __construct( @@ -475,6 +519,8 @@ public function __construct( int $totpCodeLength = Values::INT_NONE, int $totpSkew = Values::INT_NONE, string $defaultTemplateSid = Values::NONE, + string $whatsappMsgServiceSid = Values::NONE, + string $whatsappFrom = Values::NONE, bool $verifyEventSubscriptionEnabled = Values::BOOL_NONE ) { @@ -495,6 +541,8 @@ public function __construct( $this->options['totpCodeLength'] = $totpCodeLength; $this->options['totpSkew'] = $totpSkew; $this->options['defaultTemplateSid'] = $defaultTemplateSid; + $this->options['whatsappMsgServiceSid'] = $whatsappMsgServiceSid; + $this->options['whatsappFrom'] = $whatsappFrom; $this->options['verifyEventSubscriptionEnabled'] = $verifyEventSubscriptionEnabled; } @@ -702,6 +750,30 @@ public function setDefaultTemplateSid(string $defaultTemplateSid): self return $this; } + /** + * The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service. + * + * @param string $whatsappMsgServiceSid The SID of the [Messaging Service](https://www.twilio.com/docs/messaging/services) to associate with the Verification Service. + * @return $this Fluent Builder + */ + public function setWhatsappMsgServiceSid(string $whatsappMsgServiceSid): self + { + $this->options['whatsappMsgServiceSid'] = $whatsappMsgServiceSid; + return $this; + } + + /** + * The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service. + * + * @param string $whatsappFrom The WhatsApp number to use as the sender of the verification messages. This number must be associated with the WhatsApp Message Service. + * @return $this Fluent Builder + */ + public function setWhatsappFrom(string $whatsappFrom): self + { + $this->options['whatsappFrom'] = $whatsappFrom; + return $this; + } + /** * Whether to allow verifications from the service to reach the stream-events sinks if configured *