From 5edf031d1a22d40907ba39c3418836cc7204e6bd Mon Sep 17 00:00:00 2001 From: antonioturdo Date: Tue, 19 Dec 2023 10:56:08 +0100 Subject: [PATCH] fix: added type to attributes property of Recipient --- src/Object/Recipient.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Object/Recipient.php b/src/Object/Recipient.php index ba4c6e3..6411522 100644 --- a/src/Object/Recipient.php +++ b/src/Object/Recipient.php @@ -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 {