Skip to content

Commit

Permalink
Update CRM Line Items Discovery
Browse files Browse the repository at this point in the history
  • Loading branch information
ksvirkou-hubspot committed Oct 23, 2024
1 parent 8233173 commit 1a40833
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
15 changes: 1 addition & 14 deletions lib/Discovery/Crm/LineItems/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 {}
4 changes: 0 additions & 4 deletions tests/spec/Discovery/Crm/LineItems/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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);
}
}

0 comments on commit 1a40833

Please sign in to comment.