Skip to content

Commit

Permalink
Merge pull request #19 from nexylan/transfer-lock
Browse files Browse the repository at this point in the history
feat(domain): add lock and unlock transfer function
  • Loading branch information
flubble authored Mar 8, 2024
2 parents 35334be + c1a5075 commit c567824
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions src/Api/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}

0 comments on commit c567824

Please sign in to comment.