From b6f09f3b8bddf62687998a02c48beff971b9f355 Mon Sep 17 00:00:00 2001 From: J Cobb <777522+jwcobb@users.noreply.github.com> Date: Mon, 29 Nov 2021 13:27:51 -0700 Subject: [PATCH] Add deleteClientEmailAddress method (#163) --- CHANGELOG.md | 3 +++ src/Client.php | 2 +- src/Resources/v9/clients.php | 29 +++++++++++++++++++++++++++++ 3 files changed, 33 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 16971f8..03cda62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ # Changelog +## 4.2.8 (November 29, 2021) +- Add new `deleteClientEmailAddress()` method. + ## 4.2.7 (September 20, 2021) - Add new `updateOrder()` method. diff --git a/src/Client.php b/src/Client.php index 7372781..9911d22 100755 --- a/src/Client.php +++ b/src/Client.php @@ -16,7 +16,7 @@ class Client * * @const string */ - const VERSION = '4.2.7'; + const VERSION = '4.2.8'; /** * Guzzle service description diff --git a/src/Resources/v9/clients.php b/src/Resources/v9/clients.php index b507c17..62d98a0 100755 --- a/src/Resources/v9/clients.php +++ b/src/Resources/v9/clients.php @@ -247,6 +247,35 @@ ], + /** + * Clients / Email Addresses / Delete + */ + 'deleteClientEmailAddress' => [ + 'extends' => null, + 'httpMethod' => 'DELETE', + 'uri' => '/v9/clients/{client_id}/email_addresses/{email_address_id}', + 'summary' => 'Delete a client Email Address.', + 'notes' => '', + 'documentationUrl' => 'https://ticketevolution.atlassian.net/wiki/spaces/API/pages/27394202/Clients+Email+Addresses+Delete', + 'deprecated' => false, + 'responseModel' => 'defaultJsonResponse', + 'parameters' => [ + 'client_id' => [ + 'location' => 'uri', + 'type' => 'integer', + 'description' => 'ID of the Client.', + 'required' => true, + ], + 'email_address_id' => [ + 'location' => 'uri', + 'type' => 'integer', + 'description' => 'ID of the Email Address.', + 'required' => true, + ], + ], + ], + + /** * Clients / Addresses / Index */