From bd2f4603281fe03968ad7445ccdd5da070618a0a Mon Sep 17 00:00:00 2001 From: Franck Grenier Date: Wed, 28 Aug 2024 11:26:15 +0200 Subject: [PATCH] Fix transactionalEmailApi::getTransacBlockedContactsRequest $senders argument conversion --- lib/Api/TransactionalEmailsApi.php | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/Api/TransactionalEmailsApi.php b/lib/Api/TransactionalEmailsApi.php index ceca9c1..71c81f1 100644 --- a/lib/Api/TransactionalEmailsApi.php +++ b/lib/Api/TransactionalEmailsApi.php @@ -4179,7 +4179,7 @@ protected function getSmtpTemplatesRequest($templateStatus = null, $limit = '50' * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional) * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document on the page (optional, default to 0) - * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional) + * @param string[] $senders Array of emails of the senders from which contacts are blocked or unsubscribed (optional) * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc) * * @throws \Brevo\Client\ApiException on non-2xx response @@ -4201,7 +4201,7 @@ public function getTransacBlockedContacts($startDate = null, $endDate = null, $l * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional) * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document on the page (optional, default to 0) - * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional) + * @param string[] $senders Array of emails of the senders from which contacts are blocked or unsubscribed (optional) * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc) * * @throws \Brevo\Client\ApiException on non-2xx response @@ -4289,7 +4289,7 @@ public function getTransacBlockedContactsWithHttpInfo($startDate = null, $endDat * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional) * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document on the page (optional, default to 0) - * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional) + * @param string[] $senders Array of emails of the senders from which contacts are blocked or unsubscribed (optional) * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc) * * @throws \InvalidArgumentException @@ -4314,7 +4314,7 @@ function ($response) { * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional) * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document on the page (optional, default to 0) - * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional) + * @param string[] $senders Array of emails of the senders from which contacts are blocked or unsubscribed (optional) * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc) * * @throws \InvalidArgumentException @@ -4369,7 +4369,7 @@ function ($exception) { * @param string $endDate Mandatory if startDate is used. Ending date (YYYY-MM-DD) till which you want to fetch the blocked or unsubscribed contacts (optional) * @param int $limit Number of documents returned per page (optional, default to 50) * @param int $offset Index of the first document on the page (optional, default to 0) - * @param string[] $senders Comma separated list of emails of the senders from which contacts are blocked or unsubscribed (optional) + * @param string[] $senders Array of emails of the senders from which contacts are blocked or unsubscribed (optional) * @param string $sort Sort the results in the ascending/descending order of record creation. Default order is **descending** if `sort` is not passed (optional, default to desc) * * @throws \InvalidArgumentException @@ -4409,9 +4409,6 @@ protected function getTransacBlockedContactsRequest($startDate = null, $endDate $queryParams['offset'] = ObjectSerializer::toQueryValue($offset); } // query params - if (is_array($senders)) { - $queryParams['senders'] = $senders; - } else if ($senders !== null) { $queryParams['senders'] = ObjectSerializer::toQueryValue($senders); }