From c1a5075b8c81905764c38a792117c19fb4e638a6 Mon Sep 17 00:00:00 2001 From: Leo Verbeke Date: Fri, 8 Mar 2024 10:49:01 +0100 Subject: [PATCH] feat(domain): add lock and unlock transfer function --- src/Api/Domain.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/src/Api/Domain.php b/src/Api/Domain.php index f592597..66fb819 100644 --- a/src/Api/Domain.php +++ b/src/Api/Domain.php @@ -113,4 +113,23 @@ final public function setNameservers(string $domain, array $nameservers, ?array { return $this->getGandi()->getClient()->domain->nameservers->set($domain, $nameservers, $options); } + + + /** + * @param string $domain + * @return array + */ + final public function transferLock(string $domain): array + { + return $this->getGandi()->getClient()->domain->status->lock($domain); + } + + /** + * @param string $domain + * @return array + */ + final public function transferUnlock(string $domain): array + { + return $this->getGandi()->getClient()->domain->status->unlock($domain); + } }