From 44166eec3fdb1429d55f61a8a1606af24dcf30c3 Mon Sep 17 00:00:00 2001 From: Piyush Singh Date: Mon, 27 Jul 2026 14:08:19 +0530 Subject: [PATCH] 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