From 1a40833ec18f1acdf03a844d3a0eed6bc87a52b1 Mon Sep 17 00:00:00 2001 From: ksvirkou-hubspot Date: Wed, 23 Oct 2024 11:44:16 +0300 Subject: [PATCH] Update CRM Line Items Discovery --- lib/Discovery/Crm/LineItems/Discovery.php | 15 +-------------- .../Discovery/Crm/LineItems/DiscoverySpec.php | 4 ---- 2 files changed, 1 insertion(+), 18 deletions(-) diff --git a/lib/Discovery/Crm/LineItems/Discovery.php b/lib/Discovery/Crm/LineItems/Discovery.php index a8e6c59f..90eaa258 100644 --- a/lib/Discovery/Crm/LineItems/Discovery.php +++ b/lib/Discovery/Crm/LineItems/Discovery.php @@ -4,25 +4,12 @@ use HubSpot\Client\Crm\LineItems\Api\BasicApi; use HubSpot\Client\Crm\LineItems\Api\BatchApi; -use HubSpot\Client\Crm\LineItems\Api\GDPRApi; -use HubSpot\Client\Crm\LineItems\Api\PublicObjectApi; use HubSpot\Client\Crm\LineItems\Api\SearchApi; -use HubSpot\Client\Crm\LineItems\Configuration; use HubSpot\Discovery\Crm\ObjectDiscovery; /** * @method BasicApi basicApi() * @method BatchApi batchApi() - * @method GDPRApi gdprApi() - * @method PublicObjectApi publicObjectApi() * @method SearchApi searchApi() */ -class Discovery extends ObjectDiscovery -{ - public function gdprApi() - { - $config = $this->config->convertToClientConfig(Configuration::class); - - return new GDPRApi($this->client, $config); - } -} +class Discovery extends ObjectDiscovery {} diff --git a/tests/spec/Discovery/Crm/LineItems/DiscoverySpec.php b/tests/spec/Discovery/Crm/LineItems/DiscoverySpec.php index 0a3237e8..9b67a773 100644 --- a/tests/spec/Discovery/Crm/LineItems/DiscoverySpec.php +++ b/tests/spec/Discovery/Crm/LineItems/DiscoverySpec.php @@ -5,8 +5,6 @@ use GuzzleHttp\Client; use HubSpot\Client\Crm\LineItems\Api\BasicApi; use HubSpot\Client\Crm\LineItems\Api\BatchApi; -use HubSpot\Client\Crm\LineItems\Api\GDPRApi; -use HubSpot\Client\Crm\LineItems\Api\PublicObjectApi; use HubSpot\Client\Crm\LineItems\Api\SearchApi; use HubSpot\Config; use HubSpot\Discovery\Crm\LineItems\Discovery; @@ -28,8 +26,6 @@ public function it_creates_clients() { $this->basicApi()->shouldHaveType(BasicApi::class); $this->batchApi()->shouldHaveType(BatchApi::class); - $this->gdprApi()->shouldHaveType(GDPRApi::class); - $this->publicObjectApi()->shouldHaveType(PublicObjectApi::class); $this->searchApi()->shouldHaveType(SearchApi::class); } }