Skip to content

Commit

Permalink
[Librarian] Regenerated @ b894abe9525247ea4345d78891244817d397f6de f8…
Browse files Browse the repository at this point in the history
…0058eb415516baff0287784518c3a22be1b1b6
  • Loading branch information
twilio-dx committed Apr 4, 2024
1 parent c8b4e6c commit 9c76e34
Show file tree
Hide file tree
Showing 15 changed files with 215 additions and 79 deletions.
30 changes: 30 additions & 0 deletions 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**
Expand Down
48 changes: 24 additions & 24 deletions src/Twilio/Rest/Api/V2010/Account/ConferenceOptions.php

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions src/Twilio/Rest/Conversations/V1/ConversationOptions.php
Expand Up @@ -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
*/
Expand Down Expand Up @@ -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(
Expand All @@ -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
Expand All @@ -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
Expand Down
4 changes: 4 additions & 0 deletions src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsList.php
Expand Up @@ -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']]);
Expand Down
36 changes: 36 additions & 0 deletions src/Twilio/Rest/FlexApi/V1/Plugin/PluginVersionsOptions.php
Expand Up @@ -24,20 +24,26 @@ 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
*/
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
{
return new CreatePluginVersionsOptions(
$changelog,
$private,
$cliVersion,
$validateStatus,
$flexMetadata
);
}
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
*
Expand Down
4 changes: 0 additions & 4 deletions src/Twilio/Rest/FlexApi/V1/PluginList.php
Expand Up @@ -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']]);
Expand Down
36 changes: 0 additions & 36 deletions src/Twilio/Rest/FlexApi/V1/PluginOptions.php
Expand Up @@ -23,26 +23,20 @@ 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
*/
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
{
return new CreatePluginOptions(
$friendlyName,
$description,
$cliVersion,
$validateStatus,
$flexMetadata
);
}
Expand Down Expand Up @@ -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;
}

Expand Down Expand Up @@ -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
*
Expand Down
2 changes: 2 additions & 0 deletions src/Twilio/Rest/Lookups/V2/PhoneNumberContext.php
Expand Up @@ -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, []);
Expand Down
2 changes: 2 additions & 0 deletions src/Twilio/Rest/Lookups/V2/PhoneNumberInstance.php
Expand Up @@ -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
Expand Down Expand Up @@ -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'),
];

Expand Down

0 comments on commit 9c76e34

Please sign in to comment.