Skip to content

Commit

Permalink
Merge pull request #65 from HubSpot/fix/CommunicationPreferencesDisco…
Browse files Browse the repository at this point in the history
…very

Fix communication preferences discovery
  • Loading branch information
ksvirkou-hubspot authored Jul 22, 2021
2 parents 7ef90e4 + 8e5a865 commit bb7a111
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 11 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,14 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/3.0.2...HEAD)
## [Unreleased](https://github.com/HubSpot/hubspot-api-php/compare/3.1.0...HEAD)

## [3.1.0](https://github.com/HubSpot/hubspot-api-php/releases/tag/3.1.0) - 2021-07-22

### Added

- `communicationPreferences()` API client
- `files()` API client

## [3.0.2](https://github.com/HubSpot/hubspot-api-php/releases/tag/3.0.2) - 2021-06-18

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hubspot/api-client",
"version": "3.0.2",
"version": "3.1.0",
"description": "Hubspot API client",
"keywords": [
"hubspot",
Expand Down
19 changes: 10 additions & 9 deletions lib/Discovery/Discovery.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,16 @@
namespace HubSpot\Discovery;

/**
* @method Auth\Discovery auth()
* @method Automation\Discovery automation()
* @method Cms\Discovery cms()
* @method Conversations\Discovery conversations()
* @method Crm\Discovery crm()
* @method Events\Discovery events()
* @method Files\Discovery files()
* @method Marketing\Discovery marketing()
* @method Webhooks\Discovery webhooks()
* @method Auth\Discovery auth()
* @method Automation\Discovery automation()
* @method Cms\Discovery cms()
* @method Conversations\Discovery conversations()
* @method CommunicationPreferences\Discovery communicationPreferences()
* @method Crm\Discovery crm()
* @method Events\Discovery events()
* @method Files\Discovery files()
* @method Marketing\Discovery marketing()
* @method Webhooks\Discovery webhooks()
*/
class Discovery extends DiscoveryBase
{
Expand Down
1 change: 1 addition & 0 deletions tests/spec/Discovery/DiscoverySpec.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function it_creates_clients()
$this->automation()->shouldHaveType(\HubSpot\Discovery\Automation\Discovery::class);
$this->cms()->shouldHaveType(\HubSpot\Discovery\Cms\Discovery::class);
$this->conversations()->shouldHaveType(\HubSpot\Discovery\Conversations\Discovery::class);
$this->communicationPreferences()->shouldHaveType(\HubSpot\Discovery\CommunicationPreferences\Discovery::class);
$this->crm()->shouldHaveType(\HubSpot\Discovery\Crm\Discovery::class);
$this->events()->shouldHaveType(\HubSpot\Discovery\Events\Discovery::class);
$this->files()->shouldHaveType(\HubSpot\Discovery\Files\Discovery::class);
Expand Down

0 comments on commit bb7a111

Please sign in to comment.