Skip to content

Commit

Permalink
Merge branch 'addedDomainFields' into 'master'
Browse files Browse the repository at this point in the history
Added read only domain fields

See merge request transip/restapi-php-library!200
  • Loading branch information
Jeroen Smit committed Jul 18, 2022
2 parents 34ae408 + 865c1f6 commit 3d0b2dd
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 5 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
CHANGELOG
=========

6.26.0
-----
* Added Domain.hasDnsSec
* Added Domain.canEditDns

6.24.0
-----
* Added an endpoint for operating system filtering on specs
Expand Down
34 changes: 30 additions & 4 deletions src/Entity/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,14 +58,24 @@ class Domain extends AbstractEntity
protected $hasAutoDns;

/**
* @var string[] $tags
* @var string $status
*/
protected $tags = [];
protected $status = '';

/**
* @var string $status
* @var boolean $hasDnsSec
*/
protected $status = '';
protected $hasDnsSec = true;

/**
* @var boolean $canEditDns
*/
protected $canEditDns = false;

/**
* @var string[] $tags
*/
protected $tags = [];

/**
* @var Nameserver[] $nameservers
Expand Down Expand Up @@ -266,4 +276,20 @@ public function setContacts(array $contacts): void
{
$this->contacts = $contacts;
}

/**
* @return bool
*/
public function isHasDnsSec(): bool
{
return $this->hasDnsSec;
}

/**
* @return bool
*/
public function isCanEditDns(): bool
{
return $this->canEditDns;
}
}
2 changes: 1 addition & 1 deletion src/TransipAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@
class TransipAPI
{
public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6";
public const TRANSIP_API_LIBRARY_VERSION = "6.25.0";
public const TRANSIP_API_LIBRARY_VERSION = "6.26.0";
public const TRANSIP_API_DEMO_TOKEN = "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsImp0aSI6ImN3MiFSbDU2eDNoUnkjelM4YmdOIn0.eyJpc3MiOiJhcGkudHJhbnNpcC5ubCIsImF1ZCI6ImFwaS50cmFuc2lwLm5sIiwianRpIjoiY3cyIVJsNTZ4M2hSeSN6UzhiZ04iLCJpYXQiOjE1ODIyMDE1NTAsIm5iZiI6MTU4MjIwMTU1MCwiZXhwIjoyMTE4NzQ1NTUwLCJjaWQiOiI2MDQ0OSIsInJvIjpmYWxzZSwiZ2siOmZhbHNlLCJrdiI6dHJ1ZX0.fYBWV4O5WPXxGuWG-vcrFWqmRHBm9yp0PHiYh_oAWxWxCaZX2Rf6WJfc13AxEeZ67-lY0TA2kSaOCp0PggBb_MGj73t4cH8gdwDJzANVxkiPL1Saqiw2NgZ3IHASJnisUWNnZp8HnrhLLe5ficvb1D9WOUOItmFC2ZgfGObNhlL2y-AMNLT4X7oNgrNTGm-mespo0jD_qH9dK5_evSzS3K8o03gu6p19jxfsnIh8TIVRvNdluYC2wo4qDl5EW5BEZ8OSuJ121ncOT1oRpzXB0cVZ9e5_UVAEr9X3f26_Eomg52-PjrgcRJ_jPIUYbrlo06KjjX2h0fzMr21ZE023Gw";

/**
Expand Down

0 comments on commit 3d0b2dd

Please sign in to comment.