added param to force DKIM authority

This commit is contained in:
Tibor Hercz 2020-06-12 08:31:07 +02:00 committed by David Garcia
parent b30417facd
commit b91979b1b6

View File

@ -78,10 +78,11 @@ class Domain extends HttpApi
* @param string $smtpPass password for SMTP authentication
* @param string $spamAction `disable` or `tag` - inbound spam filtering
* @param bool $wildcard domain will accept email for subdomains
* @param bool $forceDkimAuthority force DKIM authority
*
* @return CreateResponse|array|ResponseInterface
*/
public function create(string $domain, string $smtpPass = null, string $spamAction = null, bool $wildcard = null)
public function create(string $domain, string $smtpPass = null, string $spamAction = null, bool $wildcard = null, bool $forceDkimAuthority = null)
{
Assert::stringNotEmpty($domain);
@ -106,6 +107,12 @@ class Domain extends HttpApi
$params['wildcard'] = $wildcard ? 'true' : 'false';
}
if (null !== $forceDkimAuthority) {
Assert::boolean($forceDkimAuthority);
$params['force_dkim_authority'] = $forceDkimAuthority ? 'true' : 'false';
}
$response = $this->httpPost('/v3/domains', $params);
return $this->hydrateResponse($response, CreateResponse::class);