diff --git a/docs/SendSmtpEmailBcc.md b/docs/SendSmtpEmailBcc.md index 2d4a8ee..4256935 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) 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 4e85199..4504c9d 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) 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 8e32414..68d0cf3 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) 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 f6c5aea..391fe0d 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) 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 a03d671..36a4040 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) 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. 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..1e4e1a1 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) 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. 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..8ac4ba0 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) 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. 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..f29e478 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) 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. 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 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