Skip to content

Commit cdc8a76

Browse files
Update Marketing Events discovery
1 parent 2981612 commit cdc8a76

2 files changed

Lines changed: 24 additions & 12 deletions

File tree

lib/Discovery/Marketing/Events/Discovery.php

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@
22

33
namespace HubSpot\Discovery\Marketing\Events;
44

5-
use HubSpot\Client\Marketing\Events\Api\AttendanceSubscriberStateChangesApi;
5+
use HubSpot\Client\Marketing\Events\Api\AddEventAttendeesApi;
66
use HubSpot\Client\Marketing\Events\Api\BasicApi;
7+
use HubSpot\Client\Marketing\Events\Api\BatchApi;
8+
use HubSpot\Client\Marketing\Events\Api\ChangePropertyApi;
9+
use HubSpot\Client\Marketing\Events\Api\IdentifiersApi;
710
use HubSpot\Client\Marketing\Events\Api\ListAssociationsApi;
8-
use HubSpot\Client\Marketing\Events\Api\ParticipantStateApi;
11+
use HubSpot\Client\Marketing\Events\Api\RetrieveParticipantStateApi;
912
use HubSpot\Client\Marketing\Events\Api\SettingsApi;
1013
use HubSpot\Client\Marketing\Events\Api\SubscriberStateChangesApi;
1114
use HubSpot\Discovery\DiscoveryBase;
1215

1316
/**
14-
* @method AttendanceSubscriberStateChangesApi attendanceSubscriberStateChangesApi()
15-
* @method BasicApi basicApi()
16-
* @method ListAssociationsApi listAssociationsApi()
17-
* @method ParticipantStateApi participantStateApi()
18-
* @method SettingsApi settingsApi()
19-
* @method SubscriberStateChangesApi subscriberStateChangesApi()
17+
* @method AddEventAttendeesApi addEventAttendeesApi()
18+
* @method BasicApi basicApi()
19+
* @method BatchApi batchApi()
20+
* @method ChangePropertyApi changePropertyApi()
21+
* @method IdentifiersApi identifiersApi()
22+
* @method ListAssociationsApi listAssociationsApi()
23+
* @method RetrieveParticipantStateApi retrieveParticipantStateApi()
24+
* @method SettingsApi settingsApi()
25+
* @method SubscriberStateChangesApi subscriberStateChangesApi()
2026
*/
2127
class Discovery extends DiscoveryBase {}

tests/spec/Discovery/Marketing/Events/DiscoverySpec.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,13 @@
33
namespace spec\HubSpot\Discovery\Marketing\Events;
44

55
use GuzzleHttp\Client;
6-
use HubSpot\Client\Marketing\Events\Api\AttendanceSubscriberStateChangesApi;
6+
use HubSpot\Client\Marketing\Events\Api\AddEventAttendeesApi;
77
use HubSpot\Client\Marketing\Events\Api\BasicApi;
8+
use HubSpot\Client\Marketing\Events\Api\BatchApi;
9+
use HubSpot\Client\Marketing\Events\Api\ChangePropertyApi;
10+
use HubSpot\Client\Marketing\Events\Api\IdentifiersApi;
811
use HubSpot\Client\Marketing\Events\Api\ListAssociationsApi;
9-
use HubSpot\Client\Marketing\Events\Api\ParticipantStateApi;
12+
use HubSpot\Client\Marketing\Events\Api\RetrieveParticipantStateApi;
1013
use HubSpot\Client\Marketing\Events\Api\SettingsApi;
1114
use HubSpot\Client\Marketing\Events\Api\SubscriberStateChangesApi;
1215
use HubSpot\Config;
@@ -27,10 +30,13 @@ public function it_is_initializable()
2730

2831
public function it_creates_clients()
2932
{
30-
$this->attendanceSubscriberStateChangesApi()->shouldHaveType(AttendanceSubscriberStateChangesApi::class);
33+
$this->addEventAttendeesApi()->shouldHaveType(AddEventAttendeesApi::class);
3134
$this->basicApi()->shouldHaveType(BasicApi::class);
35+
$this->batchApi()->shouldHaveType(BatchApi::class);
36+
$this->changePropertyApi()->shouldHaveType(ChangePropertyApi::class);
37+
$this->identifiersApi()->shouldHaveType(IdentifiersApi::class);
3238
$this->listAssociationsApi()->shouldHaveType(ListAssociationsApi::class);
33-
$this->participantStateApi()->shouldHaveType(ParticipantStateApi::class);
39+
$this->retrieveParticipantStateApi()->shouldHaveType(RetrieveParticipantStateApi::class);
3440
$this->settingsApi()->shouldHaveType(SettingsApi::class);
3541
$this->subscriberStateChangesApi()->shouldHaveType(SubscriberStateChangesApi::class);
3642
}

0 commit comments

Comments
 (0)