Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix transactionalEmailApi::getTransacBlockedContactsRequest $senders argument conversion #38

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 5 additions & 8 deletions lib/Api/TransactionalEmailsApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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);
}
Expand Down