Skip to content

Commit

Permalink
Merge branch 'mailboxUpdate' into 'master'
Browse files Browse the repository at this point in the history
Added IMAP, SMTP and POP3 information to mailbox resource

See merge request transip/restapi-php-library!173
  • Loading branch information
Thies Verhave committed Apr 1, 2022
2 parents e426ed7 + 6991ce3 commit 701ade9
Show file tree
Hide file tree
Showing 3 changed files with 131 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

6.16.1
-----
* Added IMAP, SMTP and POP3 information to mailbox resource

6.16.0
-----
* Added ssl certificate details endpoint
Expand Down
126 changes: 126 additions & 0 deletions src/Entity/Email/Mailbox.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,36 @@ class Mailbox extends AbstractEntity
*/
public $isLocked;

/**
* @var string $imapServer
*/
public $imapServer;

/**
* @var int $imapPort
*/
public $imapPort;

/**
* @var string $smtpServer
*/
public $smtpServer;

/**
* @var int $smtpPort
*/
public $smtpPort;

/**
* @var string $pop3Server
*/
public $pop3Server;

/**
* @var int $pop3Port
*/
public $pop3Port;

/**
* @return string
*/
Expand Down Expand Up @@ -173,4 +203,100 @@ public function setIsLocked(bool $isLocked): void
{
$this->isLocked = $isLocked;
}

/**
* @return string
*/
public function getImapServer(): string
{
return $this->imapServer;
}

/**
* @param string $imapServer
*/
public function setImapServer(string $imapServer): void
{
$this->imapServer = $imapServer;
}

/**
* @return int
*/
public function getImapPort(): int
{
return $this->imapPort;
}

/**
* @param int $imapPort
*/
public function setImapPort(int $imapPort): void
{
$this->imapPort = $imapPort;
}

/**
* @return string
*/
public function getSmtpServer(): string
{
return $this->smtpServer;
}

/**
* @param string $smtpServer
*/
public function setSmtpServer(string $smtpServer): void
{
$this->smtpServer = $smtpServer;
}

/**
* @return int
*/
public function getSmtpPort(): int
{
return $this->smtpPort;
}

/**
* @param int $smtpPort
*/
public function setSmtpPort(int $smtpPort): void
{
$this->smtpPort = $smtpPort;
}

/**
* @return string
*/
public function getPop3Server(): string
{
return $this->pop3Server;
}

/**
* @param string $pop3Server
*/
public function setPop3Server(string $pop3Server): void
{
$this->pop3Server = $pop3Server;
}

/**
* @return int
*/
public function getPop3Port(): int
{
return $this->pop3Port;
}

/**
* @param int $pop3Port
*/
public function setPop3Port(int $pop3Port): void
{
$this->pop3Port = $pop3Port;
}
}
2 changes: 1 addition & 1 deletion src/TransipAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@
class TransipAPI
{
public const TRANSIP_API_ENDPOINT = "https://api.transip.nl/v6";
public const TRANSIP_API_LIBRARY_VERSION = "6.16.0";
public const TRANSIP_API_LIBRARY_VERSION = "6.16.1";
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 701ade9

Please sign in to comment.