diff --git a/src/TransactionalEmails/Types/SendTransacEmailRequestBccItem.php b/src/TransactionalEmails/Types/SendTransacEmailRequestBccItem.php index 3534510..adcf1d6 100644 --- a/src/TransactionalEmails/Types/SendTransacEmailRequestBccItem.php +++ b/src/TransactionalEmails/Types/SendTransacEmailRequestBccItem.php @@ -7,6 +7,12 @@ class SendTransacEmailRequestBccItem extends JsonSerializableType { + /** + * @var ?bool $contactPixelTrackingConsent Consent of the recipient in bcc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account. + */ + #[JsonProperty('contactPixelTrackingConsent')] + public ?bool $contactPixelTrackingConsent; + /** * @var string $email BCC recipient email address */ @@ -21,6 +27,7 @@ class SendTransacEmailRequestBccItem extends JsonSerializableType /** * @param array{ + * contactPixelTrackingConsent?: ?bool, * email: string, * name?: ?string, * } $values @@ -28,6 +35,7 @@ class SendTransacEmailRequestBccItem extends JsonSerializableType public function __construct( array $values, ) { + $this->contactPixelTrackingConsent = $values['contactPixelTrackingConsent'] ?? null; $this->email = $values['email']; $this->name = $values['name'] ?? null; } diff --git a/src/TransactionalEmails/Types/SendTransacEmailRequestCcItem.php b/src/TransactionalEmails/Types/SendTransacEmailRequestCcItem.php index 307504c..cf0084a 100644 --- a/src/TransactionalEmails/Types/SendTransacEmailRequestCcItem.php +++ b/src/TransactionalEmails/Types/SendTransacEmailRequestCcItem.php @@ -7,6 +7,12 @@ class SendTransacEmailRequestCcItem extends JsonSerializableType { + /** + * @var ?bool $contactPixelTrackingConsent Consent of the recipient in cc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account. + */ + #[JsonProperty('contactPixelTrackingConsent')] + public ?bool $contactPixelTrackingConsent; + /** * @var string $email CC recipient email address */ @@ -21,6 +27,7 @@ class SendTransacEmailRequestCcItem extends JsonSerializableType /** * @param array{ + * contactPixelTrackingConsent?: ?bool, * email: string, * name?: ?string, * } $values @@ -28,6 +35,7 @@ class SendTransacEmailRequestCcItem extends JsonSerializableType public function __construct( array $values, ) { + $this->contactPixelTrackingConsent = $values['contactPixelTrackingConsent'] ?? null; $this->email = $values['email']; $this->name = $values['name'] ?? null; } diff --git a/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemBccItem.php b/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemBccItem.php index 79b63a1..5787ea5 100644 --- a/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemBccItem.php +++ b/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemBccItem.php @@ -7,6 +7,12 @@ class SendTransacEmailRequestMessageVersionsItemBccItem extends JsonSerializableType { + /** + * @var ?bool $contactPixelTrackingConsent Consent of the recipient in bcc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account. + */ + #[JsonProperty('contactPixelTrackingConsent')] + public ?bool $contactPixelTrackingConsent; + /** * @var string $email BCC recipient email address */ @@ -21,6 +27,7 @@ class SendTransacEmailRequestMessageVersionsItemBccItem extends JsonSerializable /** * @param array{ + * contactPixelTrackingConsent?: ?bool, * email: string, * name?: ?string, * } $values @@ -28,6 +35,7 @@ class SendTransacEmailRequestMessageVersionsItemBccItem extends JsonSerializable public function __construct( array $values, ) { + $this->contactPixelTrackingConsent = $values['contactPixelTrackingConsent'] ?? null; $this->email = $values['email']; $this->name = $values['name'] ?? null; } diff --git a/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemCcItem.php b/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemCcItem.php index 7d6020c..788cb5b 100644 --- a/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemCcItem.php +++ b/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemCcItem.php @@ -7,6 +7,12 @@ class SendTransacEmailRequestMessageVersionsItemCcItem extends JsonSerializableType { + /** + * @var ?bool $contactPixelTrackingConsent Consent of the recipient in cc for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account. + */ + #[JsonProperty('contactPixelTrackingConsent')] + public ?bool $contactPixelTrackingConsent; + /** * @var string $email CC recipient email address */ @@ -21,6 +27,7 @@ class SendTransacEmailRequestMessageVersionsItemCcItem extends JsonSerializableT /** * @param array{ + * contactPixelTrackingConsent?: ?bool, * email: string, * name?: ?string, * } $values @@ -28,6 +35,7 @@ class SendTransacEmailRequestMessageVersionsItemCcItem extends JsonSerializableT public function __construct( array $values, ) { + $this->contactPixelTrackingConsent = $values['contactPixelTrackingConsent'] ?? null; $this->email = $values['email']; $this->name = $values['name'] ?? null; } diff --git a/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemToItem.php b/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemToItem.php index f97a871..649c079 100644 --- a/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemToItem.php +++ b/src/TransactionalEmails/Types/SendTransacEmailRequestMessageVersionsItemToItem.php @@ -7,6 +7,12 @@ class SendTransacEmailRequestMessageVersionsItemToItem extends JsonSerializableType { + /** + * @var ?bool $contactPixelTrackingConsent Consent of the recipient for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account. + */ + #[JsonProperty('contactPixelTrackingConsent')] + public ?bool $contactPixelTrackingConsent; + /** * @var string $email Email address of the recipient */ @@ -21,6 +27,7 @@ class SendTransacEmailRequestMessageVersionsItemToItem extends JsonSerializableT /** * @param array{ + * contactPixelTrackingConsent?: ?bool, * email: string, * name?: ?string, * } $values @@ -28,6 +35,7 @@ class SendTransacEmailRequestMessageVersionsItemToItem extends JsonSerializableT public function __construct( array $values, ) { + $this->contactPixelTrackingConsent = $values['contactPixelTrackingConsent'] ?? null; $this->email = $values['email']; $this->name = $values['name'] ?? null; } diff --git a/src/TransactionalEmails/Types/SendTransacEmailRequestToItem.php b/src/TransactionalEmails/Types/SendTransacEmailRequestToItem.php index 6d0881a..67c2edc 100644 --- a/src/TransactionalEmails/Types/SendTransacEmailRequestToItem.php +++ b/src/TransactionalEmails/Types/SendTransacEmailRequestToItem.php @@ -7,6 +7,12 @@ class SendTransacEmailRequestToItem extends JsonSerializableType { + /** + * @var ?bool $contactPixelTrackingConsent Consent of the recipient for open (pixel) and click tracking, resolved by the sender at send time. Considered only if the per-contact pixel tracking consent feature is enabled for your account. Pass `true` if this recipient has consented to open and click tracking, in which case the open pixel and tracked links identify the recipient. Pass `false` to anonymise the open and click events (counted in aggregate statistics only). If it is not passed, the recipient is treated as unknown consent status and the email is still sent (the open and click are anonymised unless your account tracks unknown-consent contacts). A value other than `true`/`false` is rejected. Ignored when the feature is not enabled for your account. + */ + #[JsonProperty('contactPixelTrackingConsent')] + public ?bool $contactPixelTrackingConsent; + /** * @var string $email Email address of the recipient */ @@ -21,6 +27,7 @@ class SendTransacEmailRequestToItem extends JsonSerializableType /** * @param array{ + * contactPixelTrackingConsent?: ?bool, * email: string, * name?: ?string, * } $values @@ -28,6 +35,7 @@ class SendTransacEmailRequestToItem extends JsonSerializableType public function __construct( array $values, ) { + $this->contactPixelTrackingConsent = $values['contactPixelTrackingConsent'] ?? null; $this->email = $values['email']; $this->name = $values['name'] ?? null; }