From b91979b1b6574ba0f11b176181e739310496ebb3 Mon Sep 17 00:00:00 2001 From: Tibor Hercz Date: Fri, 12 Jun 2020 08:31:07 +0200 Subject: [PATCH] added param to force DKIM authority --- src/Api/Domain.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Api/Domain.php b/src/Api/Domain.php index d676abb..0b1cb29 100644 --- a/src/Api/Domain.php +++ b/src/Api/Domain.php @@ -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);