Skip to content

Commit

Permalink
V24.11.1 - 2024-11-03
Browse files Browse the repository at this point in the history
  • Loading branch information
phpfui committed Nov 3, 2024
1 parent 40822b2 commit ba449f8
Show file tree
Hide file tree
Showing 7 changed files with 88 additions and 24 deletions.
14 changes: 11 additions & 3 deletions src/ConstantContact/V3/Account/Emails.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,18 @@ public function get(?string $confirm_status = null, ?string $role_code = null, ?

return $this->doGet(['confirm_status' => $confirm_status, 'role_code' => $role_code, 'email_address' => $email_address, ]);
}

public function getReturnSchema(?string $confirm_status = null, ?string $role_code = null, ?string $email_address = null) : \PHPFUI\ConstantContact\Definition\AccountEmails
/**
* @return array<\PHPFUI\ConstantContact\Definition\AccountEmails>
*/
public function getReturnSchema(?string $confirm_status = null, ?string $role_code = null, ?string $email_address = null) : array
{
return new \PHPFUI\ConstantContact\Definition\AccountEmails($this->get($confirm_status, $role_code, $email_address));
$array = [];
foreach ($this->get($confirm_status, $role_code, $email_address) as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\AccountEmails($object);
}

return $array;
}


Expand Down
14 changes: 11 additions & 3 deletions src/ConstantContact/V3/Account/User/Privileges.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,18 @@ public function get() : array

return $this->doGet([]);
}

public function getReturnSchema() : \PHPFUI\ConstantContact\Definition\UserPrivilegesResource
/**
* @return array<\PHPFUI\ConstantContact\Definition\UserPrivilegesResource>
*/
public function getReturnSchema() : array
{
return new \PHPFUI\ConstantContact\Definition\UserPrivilegesResource($this->get());
$array = [];
foreach ($this->get() as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\UserPrivilegesResource($object);
}

return $array;
}

}
14 changes: 11 additions & 3 deletions src/ConstantContact/V3/Contacts/SmsEngagementHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,18 @@ public function get(string $contact_id) : array

return $this->doGet(['contact_id' => $contact_id, ]);
}

public function getReturnSchema(string $contact_id) : \PHPFUI\ConstantContact\Definition\SmsEngagementHistory
/**
* @return array<\PHPFUI\ConstantContact\Definition\SmsEngagementHistory>
*/
public function getReturnSchema(string $contact_id) : array
{
return new \PHPFUI\ConstantContact\Definition\SmsEngagementHistory($this->get($contact_id));
$array = [];
foreach ($this->get($contact_id) as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\SmsEngagementHistory($object);
}

return $array;
}

}
14 changes: 11 additions & 3 deletions src/ConstantContact/V3/Emails/Activities/NonOpenerResends.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,18 @@ public function get(string $campaign_activity_id) : array

return $this->doGet(['campaign_activity_id' => $campaign_activity_id, ]);
}

public function getReturnSchema(string $campaign_activity_id) : \PHPFUI\ConstantContact\Definition\ResendToNonOpeners
/**
* @return array<\PHPFUI\ConstantContact\Definition\ResendToNonOpeners>
*/
public function getReturnSchema(string $campaign_activity_id) : array
{
return new \PHPFUI\ConstantContact\Definition\ResendToNonOpeners($this->get($campaign_activity_id));
$array = [];
foreach ($this->get($campaign_activity_id) as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\ResendToNonOpeners($object);
}

return $array;
}


Expand Down
28 changes: 22 additions & 6 deletions src/ConstantContact/V3/Emails/Activities/Schedules.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,18 @@ public function get(string $campaign_activity_id) : array

return $this->doGet(['campaign_activity_id' => $campaign_activity_id, ]);
}

public function getReturnSchema(string $campaign_activity_id) : \PHPFUI\ConstantContact\Definition\EmailScheduleResponse
/**
* @return array<\PHPFUI\ConstantContact\Definition\EmailScheduleResponse>
*/
public function getReturnSchema(string $campaign_activity_id) : array
{
return new \PHPFUI\ConstantContact\Definition\EmailScheduleResponse($this->get($campaign_activity_id));
$array = [];
foreach ($this->get($campaign_activity_id) as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\EmailScheduleResponse($object);
}

return $array;
}


Expand Down Expand Up @@ -80,10 +88,18 @@ public function post(string $campaign_activity_id, \PHPFUI\ConstantContact\Defin

return $this->doPost(['campaign_activity_id' => $campaign_activity_id, 'body' => $body->getData(), ]);
}

public function postReturnSchema(string $campaign_activity_id, \PHPFUI\ConstantContact\Definition\EmailScheduleInput $body) : \PHPFUI\ConstantContact\Definition\EmailScheduleResponse
/**
* @return array<\PHPFUI\ConstantContact\Definition\EmailScheduleResponse>
*/
public function postReturnSchema(string $campaign_activity_id, \PHPFUI\ConstantContact\Definition\EmailScheduleInput $body) : array
{
return new \PHPFUI\ConstantContact\Definition\EmailScheduleResponse($this->post($campaign_activity_id, $body));
$array = [];
foreach ($this->post($campaign_activity_id, $body) as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\EmailScheduleResponse($object);
}

return $array;
}

}
14 changes: 11 additions & 3 deletions src/ConstantContact/V3/Emails/Activities/SendHistory.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,18 @@ public function get(string $campaign_activity_id) : array

return $this->doGet(['campaign_activity_id' => $campaign_activity_id, ]);
}

public function getReturnSchema(string $campaign_activity_id) : \PHPFUI\ConstantContact\Definition\EmailSendHistory
/**
* @return array<\PHPFUI\ConstantContact\Definition\EmailSendHistory>
*/
public function getReturnSchema(string $campaign_activity_id) : array
{
return new \PHPFUI\ConstantContact\Definition\EmailSendHistory($this->get($campaign_activity_id));
$array = [];
foreach ($this->get($campaign_activity_id) as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\EmailSendHistory($object);
}

return $array;
}

}
14 changes: 11 additions & 3 deletions src/ConstantContact/V3/Partner/Webhooks/Subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,18 @@ public function get() : array

return $this->doGet([]);
}

public function getReturnSchema() : \PHPFUI\ConstantContact\Definition\WebhooksSubscriptionCollection
/**
* @return array<\PHPFUI\ConstantContact\Definition\WebhooksSubscriptionCollection>
*/
public function getReturnSchema() : array
{
return new \PHPFUI\ConstantContact\Definition\WebhooksSubscriptionCollection($this->get());
$array = [];
foreach ($this->get() as $object)
{
$array[] = new \PHPFUI\ConstantContact\Definition\WebhooksSubscriptionCollection($object);
}

return $array;
}

}

0 comments on commit ba449f8

Please sign in to comment.