Skip to content

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

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

feat(smtp): add contactPixelTrackingConsent to transactional email recipients#17
piyush-sib wants to merge 1 commit into
getbrevo:mainfrom
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 send_transac_email 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 contact_pixel_tracking_consent (BOOLEAN, optional, JSON key contactPixelTrackingConsent — accessor, attribute_map, swagger_types, initialize, ==, hash) to:

Model Used by
SendSmtpEmailTo send_smtp_email.to
SendSmtpEmailTo1 send_smtp_email.message_versions[].to
SendSmtpEmailCc cc + message_versions[].cc
SendSmtpEmailBcc bcc + message_versions[].bcc

Descriptions copied verbatim from the source swagger. Also updated the matching docs/*.md tables and bumped Brevo::VERSION 4.0.0 → 4.0.1.

Verification

  • ruby -c on all 4 models → Syntax OK
  • Round-trip check: SendSmtpEmailTo.new(email: ..., 'contactPixelTrackingConsent' => true).to_hash{:email=>..., :contactPixelTrackingConsent=>true}

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

🤖 Generated with Claude Code

…cipients

Adds the per-recipient contact_pixel_tracking_consent (BOOLEAN, JSON key
contactPixelTrackingConsent) to SendSmtpEmailTo, SendSmtpEmailTo1,
SendSmtpEmailCc and SendSmtpEmailBcc (accessor, attribute_map,
swagger_types, initialize, ==, hash) plus the matching docs tables, per
the updated swagger_definition_client.yml (DTSL/public-api#5895).
Bumps version 4.0.0 -> 4.0.1.

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