From 44166eec3fdb1429d55f61a8a1606af24dcf30c3 Mon Sep 17 00:00:00 2001 From: Piyush Singh Date: Mon, 27 Jul 2026 14:08:19 +0530 Subject: [PATCH 1/3] feat(smtp): add contactPixelTrackingConsent to transactional email recipients 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) --- docs/SendSmtpEmailBcc.md | 1 + docs/SendSmtpEmailCc.md | 1 + docs/SendSmtpEmailTo.md | 1 + docs/SendSmtpEmailTo1.md | 1 + lib/brevo/models/send_smtp_email_bcc.rb | 18 ++++++++++++++---- lib/brevo/models/send_smtp_email_cc.rb | 18 ++++++++++++++---- lib/brevo/models/send_smtp_email_to.rb | 18 ++++++++++++++---- lib/brevo/models/send_smtp_email_to_1.rb | 18 ++++++++++++++---- lib/brevo/version.rb | 2 +- 9 files changed, 61 insertions(+), 17 deletions(-) diff --git a/docs/SendSmtpEmailBcc.md b/docs/SendSmtpEmailBcc.md index 2d4a8ee..41ec39b 100644 --- a/docs/SendSmtpEmailBcc.md +++ b/docs/SendSmtpEmailBcc.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient in bcc | **name** | **String** | Name of the recipient in bcc. Maximum allowed characters are 70. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient in bcc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] diff --git a/docs/SendSmtpEmailCc.md b/docs/SendSmtpEmailCc.md index 4e85199..5093ba9 100644 --- a/docs/SendSmtpEmailCc.md +++ b/docs/SendSmtpEmailCc.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient in cc | **name** | **String** | Name of the recipient in cc. Maximum allowed characters are 70. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient in cc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] diff --git a/docs/SendSmtpEmailTo.md b/docs/SendSmtpEmailTo.md index 8e32414..238f831 100644 --- a/docs/SendSmtpEmailTo.md +++ b/docs/SendSmtpEmailTo.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient | **name** | **String** | Name of the recipient. Maximum allowed characters are 70. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] diff --git a/docs/SendSmtpEmailTo1.md b/docs/SendSmtpEmailTo1.md index f6c5aea..9b9d8cb 100644 --- a/docs/SendSmtpEmailTo1.md +++ b/docs/SendSmtpEmailTo1.md @@ -5,5 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient | **name** | **String** | Name of the recipient. **Maximum allowed characters are 70**. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] diff --git a/lib/brevo/models/send_smtp_email_bcc.rb b/lib/brevo/models/send_smtp_email_bcc.rb index a03d671..0d7f0c3 100644 --- a/lib/brevo/models/send_smtp_email_bcc.rb +++ b/lib/brevo/models/send_smtp_email_bcc.rb @@ -20,11 +20,15 @@ class SendSmtpEmailBcc # Name of the recipient in bcc. Maximum allowed characters are 70. attr_accessor :name + # Consent of the recipient in bcc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + attr_accessor :contact_pixel_tracking_consent + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'email' => :'email', - :'name' => :'name' + :'name' => :'name', + :'contact_pixel_tracking_consent' => :'contactPixelTrackingConsent' } end @@ -32,7 +36,8 @@ def self.attribute_map def self.swagger_types { :'email' => :'String', - :'name' => :'String' + :'name' => :'String', + :'contact_pixel_tracking_consent' => :'BOOLEAN' } end @@ -51,6 +56,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + + if attributes.has_key?(:'contactPixelTrackingConsent') + self.contact_pixel_tracking_consent = attributes[:'contactPixelTrackingConsent'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -77,7 +86,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && email == o.email && - name == o.name + name == o.name && + contact_pixel_tracking_consent == o.contact_pixel_tracking_consent end # @see the `==` method @@ -89,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, name].hash + [email, name, contact_pixel_tracking_consent].hash end # Builds the object from hash diff --git a/lib/brevo/models/send_smtp_email_cc.rb b/lib/brevo/models/send_smtp_email_cc.rb index 385fba3..3aadbce 100644 --- a/lib/brevo/models/send_smtp_email_cc.rb +++ b/lib/brevo/models/send_smtp_email_cc.rb @@ -20,11 +20,15 @@ class SendSmtpEmailCc # Name of the recipient in cc. Maximum allowed characters are 70. attr_accessor :name + # Consent of the recipient in cc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + attr_accessor :contact_pixel_tracking_consent + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'email' => :'email', - :'name' => :'name' + :'name' => :'name', + :'contact_pixel_tracking_consent' => :'contactPixelTrackingConsent' } end @@ -32,7 +36,8 @@ def self.attribute_map def self.swagger_types { :'email' => :'String', - :'name' => :'String' + :'name' => :'String', + :'contact_pixel_tracking_consent' => :'BOOLEAN' } end @@ -51,6 +56,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + + if attributes.has_key?(:'contactPixelTrackingConsent') + self.contact_pixel_tracking_consent = attributes[:'contactPixelTrackingConsent'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -77,7 +86,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && email == o.email && - name == o.name + name == o.name && + contact_pixel_tracking_consent == o.contact_pixel_tracking_consent end # @see the `==` method @@ -89,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, name].hash + [email, name, contact_pixel_tracking_consent].hash end # Builds the object from hash diff --git a/lib/brevo/models/send_smtp_email_to.rb b/lib/brevo/models/send_smtp_email_to.rb index b7c0e2c..5c4271e 100644 --- a/lib/brevo/models/send_smtp_email_to.rb +++ b/lib/brevo/models/send_smtp_email_to.rb @@ -20,11 +20,15 @@ class SendSmtpEmailTo # Name of the recipient. Maximum allowed characters are 70. attr_accessor :name + # Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + attr_accessor :contact_pixel_tracking_consent + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'email' => :'email', - :'name' => :'name' + :'name' => :'name', + :'contact_pixel_tracking_consent' => :'contactPixelTrackingConsent' } end @@ -32,7 +36,8 @@ def self.attribute_map def self.swagger_types { :'email' => :'String', - :'name' => :'String' + :'name' => :'String', + :'contact_pixel_tracking_consent' => :'BOOLEAN' } end @@ -51,6 +56,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + + if attributes.has_key?(:'contactPixelTrackingConsent') + self.contact_pixel_tracking_consent = attributes[:'contactPixelTrackingConsent'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -77,7 +86,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && email == o.email && - name == o.name + name == o.name && + contact_pixel_tracking_consent == o.contact_pixel_tracking_consent end # @see the `==` method @@ -89,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, name].hash + [email, name, contact_pixel_tracking_consent].hash end # Builds the object from hash diff --git a/lib/brevo/models/send_smtp_email_to_1.rb b/lib/brevo/models/send_smtp_email_to_1.rb index 8169518..edd2ba3 100644 --- a/lib/brevo/models/send_smtp_email_to_1.rb +++ b/lib/brevo/models/send_smtp_email_to_1.rb @@ -20,11 +20,15 @@ class SendSmtpEmailTo1 # Name of the recipient. **Maximum allowed characters are 70**. attr_accessor :name + # Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + attr_accessor :contact_pixel_tracking_consent + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'email' => :'email', - :'name' => :'name' + :'name' => :'name', + :'contact_pixel_tracking_consent' => :'contactPixelTrackingConsent' } end @@ -32,7 +36,8 @@ def self.attribute_map def self.swagger_types { :'email' => :'String', - :'name' => :'String' + :'name' => :'String', + :'contact_pixel_tracking_consent' => :'BOOLEAN' } end @@ -51,6 +56,10 @@ def initialize(attributes = {}) if attributes.has_key?(:'name') self.name = attributes[:'name'] end + + if attributes.has_key?(:'contactPixelTrackingConsent') + self.contact_pixel_tracking_consent = attributes[:'contactPixelTrackingConsent'] + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -77,7 +86,8 @@ def ==(o) return true if self.equal?(o) self.class == o.class && email == o.email && - name == o.name + name == o.name && + contact_pixel_tracking_consent == o.contact_pixel_tracking_consent end # @see the `==` method @@ -89,7 +99,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Fixnum] Hash code def hash - [email, name].hash + [email, name, contact_pixel_tracking_consent].hash end # Builds the object from hash diff --git a/lib/brevo/version.rb b/lib/brevo/version.rb index 38616ec..fcd0c2a 100644 --- a/lib/brevo/version.rb +++ b/lib/brevo/version.rb @@ -11,5 +11,5 @@ =end module Brevo - VERSION = '4.0.0' + VERSION = '4.0.1' end From e3db8ecbbf6e0c42017e5bfffaa532f90dca640b Mon Sep 17 00:00:00 2001 From: Piyush Singh Date: Thu, 30 Jul 2026 12:15:00 +0530 Subject: [PATCH 2/3] test(smtp): add generated spec stubs for contactPixelTrackingConsent swagger-codegen emits one 'test attribute' block per attribute, so the four recipient specs were missing a block for contact_pixel_tracking_consent and a future regeneration would have produced a spurious diff. Co-Authored-By: Claude Opus 5 (1M context) --- spec/models/send_smtp_email_bcc_spec.rb | 6 ++++++ spec/models/send_smtp_email_cc_spec.rb | 6 ++++++ spec/models/send_smtp_email_to_1_spec.rb | 6 ++++++ spec/models/send_smtp_email_to_spec.rb | 6 ++++++ 4 files changed, 24 insertions(+) diff --git a/spec/models/send_smtp_email_bcc_spec.rb b/spec/models/send_smtp_email_bcc_spec.rb index d407cd6..6456e4f 100644 --- a/spec/models/send_smtp_email_bcc_spec.rb +++ b/spec/models/send_smtp_email_bcc_spec.rb @@ -44,4 +44,10 @@ end end + describe 'test attribute "contact_pixel_tracking_consent"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/send_smtp_email_cc_spec.rb b/spec/models/send_smtp_email_cc_spec.rb index f05ca2a..e50c476 100644 --- a/spec/models/send_smtp_email_cc_spec.rb +++ b/spec/models/send_smtp_email_cc_spec.rb @@ -44,4 +44,10 @@ end end + describe 'test attribute "contact_pixel_tracking_consent"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/send_smtp_email_to_1_spec.rb b/spec/models/send_smtp_email_to_1_spec.rb index 0c17280..660ea20 100644 --- a/spec/models/send_smtp_email_to_1_spec.rb +++ b/spec/models/send_smtp_email_to_1_spec.rb @@ -44,4 +44,10 @@ end end + describe 'test attribute "contact_pixel_tracking_consent"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end diff --git a/spec/models/send_smtp_email_to_spec.rb b/spec/models/send_smtp_email_to_spec.rb index 3704a95..480e179 100644 --- a/spec/models/send_smtp_email_to_spec.rb +++ b/spec/models/send_smtp_email_to_spec.rb @@ -44,4 +44,10 @@ end end + describe 'test attribute "contact_pixel_tracking_consent"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + end From 5856d0b275aaa390948116f74ede574f8f7ddd7c Mon Sep 17 00:00:00 2001 From: Piyush Singh Date: Wed, 5 Aug 2026 12:33:02 +0530 Subject: [PATCH 3/3] docs(smtp): cover click tracking in contactPixelTrackingConsent description 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) --- docs/SendSmtpEmailBcc.md | 2 +- docs/SendSmtpEmailCc.md | 2 +- docs/SendSmtpEmailTo.md | 2 +- docs/SendSmtpEmailTo1.md | 2 +- lib/brevo/models/send_smtp_email_bcc.rb | 2 +- lib/brevo/models/send_smtp_email_cc.rb | 2 +- lib/brevo/models/send_smtp_email_to.rb | 2 +- lib/brevo/models/send_smtp_email_to_1.rb | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/SendSmtpEmailBcc.md b/docs/SendSmtpEmailBcc.md index 41ec39b..4256935 100644 --- a/docs/SendSmtpEmailBcc.md +++ b/docs/SendSmtpEmailBcc.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient in bcc | **name** | **String** | Name of the recipient in bcc. Maximum allowed characters are 70. | [optional] -**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient in bcc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | 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. | [optional] diff --git a/docs/SendSmtpEmailCc.md b/docs/SendSmtpEmailCc.md index 5093ba9..4504c9d 100644 --- a/docs/SendSmtpEmailCc.md +++ b/docs/SendSmtpEmailCc.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient in cc | **name** | **String** | Name of the recipient in cc. Maximum allowed characters are 70. | [optional] -**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient in cc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | 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. | [optional] diff --git a/docs/SendSmtpEmailTo.md b/docs/SendSmtpEmailTo.md index 238f831..68d0cf3 100644 --- a/docs/SendSmtpEmailTo.md +++ b/docs/SendSmtpEmailTo.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient | **name** | **String** | Name of the recipient. Maximum allowed characters are 70. | [optional] -**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | 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. | [optional] diff --git a/docs/SendSmtpEmailTo1.md b/docs/SendSmtpEmailTo1.md index 9b9d8cb..391fe0d 100644 --- a/docs/SendSmtpEmailTo1.md +++ b/docs/SendSmtpEmailTo1.md @@ -5,6 +5,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient | **name** | **String** | Name of the recipient. **Maximum allowed characters are 70**. | [optional] -**contact_pixel_tracking_consent** | **BOOLEAN** | Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. | [optional] +**contact_pixel_tracking_consent** | **BOOLEAN** | 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. | [optional] diff --git a/lib/brevo/models/send_smtp_email_bcc.rb b/lib/brevo/models/send_smtp_email_bcc.rb index 0d7f0c3..36a4040 100644 --- a/lib/brevo/models/send_smtp_email_bcc.rb +++ b/lib/brevo/models/send_smtp_email_bcc.rb @@ -20,7 +20,7 @@ class SendSmtpEmailBcc # Name of the recipient in bcc. Maximum allowed characters are 70. attr_accessor :name - # Consent of the recipient in bcc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + # 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. attr_accessor :contact_pixel_tracking_consent # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/brevo/models/send_smtp_email_cc.rb b/lib/brevo/models/send_smtp_email_cc.rb index 3aadbce..1e4e1a1 100644 --- a/lib/brevo/models/send_smtp_email_cc.rb +++ b/lib/brevo/models/send_smtp_email_cc.rb @@ -20,7 +20,7 @@ class SendSmtpEmailCc # Name of the recipient in cc. Maximum allowed characters are 70. attr_accessor :name - # Consent of the recipient in cc for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + # 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. attr_accessor :contact_pixel_tracking_consent # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/brevo/models/send_smtp_email_to.rb b/lib/brevo/models/send_smtp_email_to.rb index 5c4271e..8ac4ba0 100644 --- a/lib/brevo/models/send_smtp_email_to.rb +++ b/lib/brevo/models/send_smtp_email_to.rb @@ -20,7 +20,7 @@ class SendSmtpEmailTo # Name of the recipient. Maximum allowed characters are 70. attr_accessor :name - # Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + # 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. attr_accessor :contact_pixel_tracking_consent # Attribute mapping from ruby-style variable name to JSON key. diff --git a/lib/brevo/models/send_smtp_email_to_1.rb b/lib/brevo/models/send_smtp_email_to_1.rb index edd2ba3..f29e478 100644 --- a/lib/brevo/models/send_smtp_email_to_1.rb +++ b/lib/brevo/models/send_smtp_email_to_1.rb @@ -20,7 +20,7 @@ class SendSmtpEmailTo1 # Name of the recipient. **Maximum allowed characters are 70**. attr_accessor :name - # Consent of the recipient for open (pixel) 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 tracking, in which case the open pixel identifies the recipient. Pass `false` to anonymise the open event (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 is 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. + # 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. attr_accessor :contact_pixel_tracking_consent # Attribute mapping from ruby-style variable name to JSON key.