Skip to content

feat(smtp): add contactPixelTrackingConsent to transactional email recipients - #19

Open
piyush-sib wants to merge 1 commit into
getbrevo:masterfrom
piyush-sib:feat/smtp-email-contact-pixel-tracking-consent
Open

feat(smtp): add contactPixelTrackingConsent to transactional email recipients#19
piyush-sib wants to merge 1 commit into
getbrevo:masterfrom
piyush-sib:feat/smtp-email-contact-pixel-tracking-consent

Conversation

@piyush-sib

Copy link
Copy Markdown

Summary

Adds the per-recipient contactPixelTrackingConsent boolean to the sendTransacEmail recipient models, per the updated swagger_definition_client.yml (DTSL/public-api#5895). This is the SDK counterpart of the per-contact pixel tracking consent feature on POST /v3/smtp/email (backend live since 2026-07-15; documented on developers.brevo.com).

Changes

Added ContactPixelTrackingConsent (bool?, optional — trailing constructor param, property with [DataMember(Name="contactPixelTrackingConsent", EmitDefaultValue=false)], ToString, Equals, GetHashCode) to:

Model Used by
SendSmtpEmailTo sendSmtpEmail.to
SendSmtpEmailTo1 sendSmtpEmail.messageVersions[].to
SendSmtpEmailCc sendSmtpEmail.cc + messageVersions[].cc
SendSmtpEmailBcc sendSmtpEmail.bcc + messageVersions[].bcc

The new constructor parameter is appended last with a default value, so existing positional callers are unaffected. Descriptions copied verbatim from the source swagger. Also updated the matching docs/*.md tables and bumped brevo_csharp.csproj version 1.1.2 → 1.1.3.

Verification

dotnet build src/brevo_csharp/brevo_csharp.csproj → 0 errors (135 pre-existing warnings, unchanged).

Sibling PRs: getbrevo/brevo-java#27, brevo-ruby, brevo-go (same field).

🤖 Generated with Claude Code

…cipients

Adds the per-recipient contactPixelTrackingConsent bool? to
SendSmtpEmailTo, SendSmtpEmailTo1, SendSmtpEmailCc and SendSmtpEmailBcc
(constructor param, property, ToString, Equals, GetHashCode) plus the
matching docs tables, per the updated swagger_definition_client.yml
(DTSL/public-api#5895). Bumps version 1.1.2 -> 1.1.3.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant