Skip to content

Commit

Permalink
fix: added type to attributes property of Recipient
Browse files Browse the repository at this point in the history
  • Loading branch information
antonioturdo committed Dec 19, 2023
1 parent 9a1f58e commit 5edf031
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions src/Object/Recipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,26 @@ class Recipient extends BaseObject

/**
* Only for campaigns and messages
*
*/
public ?array $trigger_properties = null;

/**
* Only for canvas
*
*/
public ?array $canvas_entry_properties = null;

/**
* Not included in documentation. Maybe available only on /campaigns/trigger/send endpoint
*
* Not well documented.
* Maybe available only on /campaigns/trigger/send and /canvas/trigger/send endpoints.
*/
public ?bool $send_to_existing_only = null;

/**
* Not included in documentation. Maybe available only on /campaigns/trigger/send endpoint
*
* Not well documented.
* Maybe available only on /campaigns/trigger/send and /canvas/trigger/send endpoints.
* We may remove the array type in the next major release.
*/
public ?array $attributes = null;
public array|UserAttributes|null $attributes = null;

public function validate(bool $strict): void
{
Expand Down

0 comments on commit 5edf031

Please sign in to comment.