diff --git a/src/Client/Model/DatastoreEndpoint.php b/src/Client/Model/DatastoreEndpoint.php index 0a4df25..588f226 100644 --- a/src/Client/Model/DatastoreEndpoint.php +++ b/src/Client/Model/DatastoreEndpoint.php @@ -82,6 +82,7 @@ class DatastoreEndpoint implements ModelInterface, ArrayAccess, \JsonSerializabl 'status' => '\Convoy\Client\Model\DatastoreEndpointStatus', 'success_count' => 'int', 'support_email' => 'string', + 'teams_webhook_url' => 'string', 'uid' => 'string', 'updated_at' => 'string', 'url' => 'string' @@ -119,6 +120,7 @@ class DatastoreEndpoint implements ModelInterface, ArrayAccess, \JsonSerializabl 'status' => null, 'success_count' => null, 'support_email' => null, + 'teams_webhook_url' => null, 'uid' => null, 'updated_at' => null, 'url' => null @@ -154,6 +156,7 @@ class DatastoreEndpoint implements ModelInterface, ArrayAccess, \JsonSerializabl 'status' => false, 'success_count' => true, 'support_email' => false, + 'teams_webhook_url' => false, 'uid' => false, 'updated_at' => false, 'url' => false @@ -269,6 +272,7 @@ public function isNullableSetToNull(string $property): bool 'status' => 'status', 'success_count' => 'success_count', 'support_email' => 'support_email', + 'teams_webhook_url' => 'teams_webhook_url', 'uid' => 'uid', 'updated_at' => 'updated_at', 'url' => 'url' @@ -304,6 +308,7 @@ public function isNullableSetToNull(string $property): bool 'status' => 'setStatus', 'success_count' => 'setSuccessCount', 'support_email' => 'setSupportEmail', + 'teams_webhook_url' => 'setTeamsWebhookUrl', 'uid' => 'setUid', 'updated_at' => 'setUpdatedAt', 'url' => 'setUrl' @@ -339,6 +344,7 @@ public function isNullableSetToNull(string $property): bool 'status' => 'getStatus', 'success_count' => 'getSuccessCount', 'support_email' => 'getSupportEmail', + 'teams_webhook_url' => 'getTeamsWebhookUrl', 'uid' => 'getUid', 'updated_at' => 'getUpdatedAt', 'url' => 'getUrl' @@ -425,6 +431,7 @@ public function __construct(?array $data = null) $this->setIfExists('status', $data ?? [], null); $this->setIfExists('success_count', $data ?? [], null); $this->setIfExists('support_email', $data ?? [], null); + $this->setIfExists('teams_webhook_url', $data ?? [], null); $this->setIfExists('uid', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); @@ -1183,6 +1190,33 @@ public function setSupportEmail($support_email) return $this; } + /** + * Gets teams_webhook_url + * + * @return string|null + */ + public function getTeamsWebhookUrl() + { + return $this->container['teams_webhook_url']; + } + + /** + * Sets teams_webhook_url + * + * @param string|null $teams_webhook_url teams_webhook_url + * + * @return self + */ + public function setTeamsWebhookUrl($teams_webhook_url) + { + if (is_null($teams_webhook_url)) { + throw new \InvalidArgumentException('non-nullable teams_webhook_url cannot be null'); + } + $this->container['teams_webhook_url'] = $teams_webhook_url; + + return $this; + } + /** * Gets uid * diff --git a/src/Client/Model/ModelsCreateEndpoint.php b/src/Client/Model/ModelsCreateEndpoint.php index 65c46b1..73489d5 100644 --- a/src/Client/Model/ModelsCreateEndpoint.php +++ b/src/Client/Model/ModelsCreateEndpoint.php @@ -73,6 +73,7 @@ class ModelsCreateEndpoint implements ModelInterface, ArrayAccess, \JsonSerializ 'secret' => 'string', 'slack_webhook_url' => 'string', 'support_email' => 'string', + 'teams_webhook_url' => 'string', 'url' => 'string' ]; @@ -99,6 +100,7 @@ class ModelsCreateEndpoint implements ModelInterface, ArrayAccess, \JsonSerializ 'secret' => null, 'slack_webhook_url' => null, 'support_email' => null, + 'teams_webhook_url' => null, 'url' => null ]; @@ -123,6 +125,7 @@ class ModelsCreateEndpoint implements ModelInterface, ArrayAccess, \JsonSerializ 'secret' => false, 'slack_webhook_url' => false, 'support_email' => false, + 'teams_webhook_url' => false, 'url' => false ]; @@ -227,6 +230,7 @@ public function isNullableSetToNull(string $property): bool 'secret' => 'secret', 'slack_webhook_url' => 'slack_webhook_url', 'support_email' => 'support_email', + 'teams_webhook_url' => 'teams_webhook_url', 'url' => 'url' ]; @@ -251,6 +255,7 @@ public function isNullableSetToNull(string $property): bool 'secret' => 'setSecret', 'slack_webhook_url' => 'setSlackWebhookUrl', 'support_email' => 'setSupportEmail', + 'teams_webhook_url' => 'setTeamsWebhookUrl', 'url' => 'setUrl' ]; @@ -275,6 +280,7 @@ public function isNullableSetToNull(string $property): bool 'secret' => 'getSecret', 'slack_webhook_url' => 'getSlackWebhookUrl', 'support_email' => 'getSupportEmail', + 'teams_webhook_url' => 'getTeamsWebhookUrl', 'url' => 'getUrl' ]; @@ -350,6 +356,7 @@ public function __construct(?array $data = null) $this->setIfExists('secret', $data ?? [], null); $this->setIfExists('slack_webhook_url', $data ?? [], null); $this->setIfExists('support_email', $data ?? [], null); + $this->setIfExists('teams_webhook_url', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); } @@ -800,6 +807,33 @@ public function setSupportEmail($support_email) return $this; } + /** + * Gets teams_webhook_url + * + * @return string|null + */ + public function getTeamsWebhookUrl() + { + return $this->container['teams_webhook_url']; + } + + /** + * Sets teams_webhook_url + * + * @param string|null $teams_webhook_url Microsoft Teams webhook URL is an alternative method to support email where endpoint developers can receive failure notifications in a Teams channel. Use a Workflows (Power Automate) webhook URL; retired Office 365 connector URLs no longer deliver. + * + * @return self + */ + public function setTeamsWebhookUrl($teams_webhook_url) + { + if (is_null($teams_webhook_url)) { + throw new \InvalidArgumentException('non-nullable teams_webhook_url cannot be null'); + } + $this->container['teams_webhook_url'] = $teams_webhook_url; + + return $this; + } + /** * Gets url * diff --git a/src/Client/Model/ModelsEndpointResponse.php b/src/Client/Model/ModelsEndpointResponse.php index 792d75c..b41db51 100644 --- a/src/Client/Model/ModelsEndpointResponse.php +++ b/src/Client/Model/ModelsEndpointResponse.php @@ -82,6 +82,7 @@ class ModelsEndpointResponse implements ModelInterface, ArrayAccess, \JsonSerial 'status' => '\Convoy\Client\Model\DatastoreEndpointStatus', 'success_count' => 'int', 'support_email' => 'string', + 'teams_webhook_url' => 'string', 'uid' => 'string', 'updated_at' => 'string', 'url' => 'string' @@ -119,6 +120,7 @@ class ModelsEndpointResponse implements ModelInterface, ArrayAccess, \JsonSerial 'status' => null, 'success_count' => null, 'support_email' => null, + 'teams_webhook_url' => null, 'uid' => null, 'updated_at' => null, 'url' => null @@ -154,6 +156,7 @@ class ModelsEndpointResponse implements ModelInterface, ArrayAccess, \JsonSerial 'status' => false, 'success_count' => true, 'support_email' => false, + 'teams_webhook_url' => false, 'uid' => false, 'updated_at' => false, 'url' => false @@ -269,6 +272,7 @@ public function isNullableSetToNull(string $property): bool 'status' => 'status', 'success_count' => 'success_count', 'support_email' => 'support_email', + 'teams_webhook_url' => 'teams_webhook_url', 'uid' => 'uid', 'updated_at' => 'updated_at', 'url' => 'url' @@ -304,6 +308,7 @@ public function isNullableSetToNull(string $property): bool 'status' => 'setStatus', 'success_count' => 'setSuccessCount', 'support_email' => 'setSupportEmail', + 'teams_webhook_url' => 'setTeamsWebhookUrl', 'uid' => 'setUid', 'updated_at' => 'setUpdatedAt', 'url' => 'setUrl' @@ -339,6 +344,7 @@ public function isNullableSetToNull(string $property): bool 'status' => 'getStatus', 'success_count' => 'getSuccessCount', 'support_email' => 'getSupportEmail', + 'teams_webhook_url' => 'getTeamsWebhookUrl', 'uid' => 'getUid', 'updated_at' => 'getUpdatedAt', 'url' => 'getUrl' @@ -425,6 +431,7 @@ public function __construct(?array $data = null) $this->setIfExists('status', $data ?? [], null); $this->setIfExists('success_count', $data ?? [], null); $this->setIfExists('support_email', $data ?? [], null); + $this->setIfExists('teams_webhook_url', $data ?? [], null); $this->setIfExists('uid', $data ?? [], null); $this->setIfExists('updated_at', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); @@ -1183,6 +1190,33 @@ public function setSupportEmail($support_email) return $this; } + /** + * Gets teams_webhook_url + * + * @return string|null + */ + public function getTeamsWebhookUrl() + { + return $this->container['teams_webhook_url']; + } + + /** + * Sets teams_webhook_url + * + * @param string|null $teams_webhook_url teams_webhook_url + * + * @return self + */ + public function setTeamsWebhookUrl($teams_webhook_url) + { + if (is_null($teams_webhook_url)) { + throw new \InvalidArgumentException('non-nullable teams_webhook_url cannot be null'); + } + $this->container['teams_webhook_url'] = $teams_webhook_url; + + return $this; + } + /** * Gets uid * diff --git a/src/Client/Model/ModelsUpdateEndpoint.php b/src/Client/Model/ModelsUpdateEndpoint.php index 5683d28..d2ba5ff 100644 --- a/src/Client/Model/ModelsUpdateEndpoint.php +++ b/src/Client/Model/ModelsUpdateEndpoint.php @@ -72,6 +72,7 @@ class ModelsUpdateEndpoint implements ModelInterface, ArrayAccess, \JsonSerializ 'secret' => 'string', 'slack_webhook_url' => 'string', 'support_email' => 'string', + 'teams_webhook_url' => 'string', 'url' => 'string' ]; @@ -97,6 +98,7 @@ class ModelsUpdateEndpoint implements ModelInterface, ArrayAccess, \JsonSerializ 'secret' => null, 'slack_webhook_url' => null, 'support_email' => null, + 'teams_webhook_url' => null, 'url' => null ]; @@ -120,6 +122,7 @@ class ModelsUpdateEndpoint implements ModelInterface, ArrayAccess, \JsonSerializ 'secret' => false, 'slack_webhook_url' => false, 'support_email' => false, + 'teams_webhook_url' => false, 'url' => false ]; @@ -223,6 +226,7 @@ public function isNullableSetToNull(string $property): bool 'secret' => 'secret', 'slack_webhook_url' => 'slack_webhook_url', 'support_email' => 'support_email', + 'teams_webhook_url' => 'teams_webhook_url', 'url' => 'url' ]; @@ -246,6 +250,7 @@ public function isNullableSetToNull(string $property): bool 'secret' => 'setSecret', 'slack_webhook_url' => 'setSlackWebhookUrl', 'support_email' => 'setSupportEmail', + 'teams_webhook_url' => 'setTeamsWebhookUrl', 'url' => 'setUrl' ]; @@ -269,6 +274,7 @@ public function isNullableSetToNull(string $property): bool 'secret' => 'getSecret', 'slack_webhook_url' => 'getSlackWebhookUrl', 'support_email' => 'getSupportEmail', + 'teams_webhook_url' => 'getTeamsWebhookUrl', 'url' => 'getUrl' ]; @@ -343,6 +349,7 @@ public function __construct(?array $data = null) $this->setIfExists('secret', $data ?? [], null); $this->setIfExists('slack_webhook_url', $data ?? [], null); $this->setIfExists('support_email', $data ?? [], null); + $this->setIfExists('teams_webhook_url', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); } @@ -766,6 +773,33 @@ public function setSupportEmail($support_email) return $this; } + /** + * Gets teams_webhook_url + * + * @return string|null + */ + public function getTeamsWebhookUrl() + { + return $this->container['teams_webhook_url']; + } + + /** + * Sets teams_webhook_url + * + * @param string|null $teams_webhook_url Microsoft Teams webhook URL is an alternative method to support email where endpoint developers can receive failure notifications in a Teams channel. Use a Workflows (Power Automate) webhook URL; retired Office 365 connector URLs no longer deliver. + * + * @return self + */ + public function setTeamsWebhookUrl($teams_webhook_url) + { + if (is_null($teams_webhook_url)) { + throw new \InvalidArgumentException('non-nullable teams_webhook_url cannot be null'); + } + $this->container['teams_webhook_url'] = $teams_webhook_url; + + return $this; + } + /** * Gets url *