Skip to content

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

Open
piyush-sib wants to merge 3 commits into
getbrevo:mainfrom
piyush-sib:feat/smtp-email-contact-pixel-tracking-consent
Open

feat(smtp): add contactPixelTrackingConsent to transactional email recipients#27
piyush-sib wants to merge 3 commits into
getbrevo:mainfrom
piyush-sib:feat/smtp-email-contact-pixel-tracking-consent

Conversation

@piyush-sib

@piyush-sib piyush-sib commented Jul 27, 2026

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 (Boolean, optional — field, fluent builder, isContactPixelTrackingConsent/setter, equals, hashCode, toString) to:

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

Descriptions copied verbatim from the source swagger. Also updated the matching docs/*.md tables and bumped pom.xml version 1.1.9 → 1.1.10.

Verification

mvn -q compile → success (exit 0).

Same change shape as #26 (utmTerm/utmContent). Sibling PRs: brevo-csharp, brevo-ruby, brevo-go (same field).

🤖 Generated with Claude Code

Description wording covers clicks too

Per-contact consent gates click links as well as the open pixel — an=1 is stamped at send time by DTSL/sendmail-personaliser#1231 and consumed by DTSL/redirection#2384, in production since 2026-08-03. A follow-up commit here extends the field description accordingly ("open (pixel) and click tracking", false anonymises both events). Comment/doc text only — no type, signature or serialisation change.

Matching spec wording: DTSL/public-api#5895 (single spec PR — legacy client spec + OpenAPI bundle + generated v3).

…cipients

Adds the per-recipient contactPixelTrackingConsent Boolean to
SendSmtpEmailTo, SendSmtpEmailTo1, SendSmtpEmailCc and SendSmtpEmailBcc
(field, fluent builder, getter/setter, equals, hashCode, toString) plus
the matching docs tables, per the updated swagger_definition_client.yml
(DTSL/public-api#5895). Bumps version 1.1.9 -> 1.1.10.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
The Maven/Gradle dependency snippets and the manual-install JAR name
still pointed at 1.1.0 while the pom is now 1.1.10.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
…iption

Per-contact consent gates click links as well as the open pixel: an=1 is
stamped at send time by DTSL/sendmail-personaliser#1231 and consumed by
DTSL/redirection#2384, in production since 2026-08-03. The description added
earlier in this PR said "open (pixel) tracking" only, which understated what
passing false actually does.

Four phrase-level edits, applied to every occurrence (to/to_1/cc/bcc plus the
docs/ tables):

  - "for open (pixel) tracking" -> "for open (pixel) and click tracking"
  - "consented to open tracking, in which case the open pixel identifies the
    recipient" -> "consented to open and click tracking, in which case the
    open pixel and tracked links identify the recipient"
  - "anonymise the open event" -> "anonymise the open and click events"
  - "the open is anonymised unless" -> "the open and click are anonymised
    unless"

Comment/doc text only: no type, signature or serialisation change. Matching
spec wording update is DTSL/public-api#5900 (bundle) and #5895 (legacy client
spec).

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