diff --git a/docs/SendSmtpEmailBcc.md b/docs/SendSmtpEmailBcc.md index 2b9bee9..ba4a545 100644 --- a/docs/SendSmtpEmailBcc.md +++ b/docs/SendSmtpEmailBcc.md @@ -6,6 +6,7 @@ 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] +**contactPixelTrackingConsent** | **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 d6c28ca..9250ac1 100644 --- a/docs/SendSmtpEmailCc.md +++ b/docs/SendSmtpEmailCc.md @@ -6,6 +6,7 @@ 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] +**contactPixelTrackingConsent** | **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 de114e2..65f6349 100644 --- a/docs/SendSmtpEmailTo.md +++ b/docs/SendSmtpEmailTo.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient | **name** | **String** | Name of the recipient. Maximum allowed characters are 70. | [optional] +**contactPixelTrackingConsent** | **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 c215440..de31d0d 100644 --- a/docs/SendSmtpEmailTo1.md +++ b/docs/SendSmtpEmailTo1.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **email** | **String** | Email address of the recipient | **name** | **String** | Name of the recipient. **Maximum allowed characters are 70**. | [optional] +**contactPixelTrackingConsent** | **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/pom.xml b/pom.xml index 100a3cf..7ff5d7b 100644 --- a/pom.xml +++ b/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.brevo brevo - 1.1.9 + 1.1.10 jar brevo diff --git a/src/main/java/brevoModel/SendSmtpEmailBcc.java b/src/main/java/brevoModel/SendSmtpEmailBcc.java index f9aeb6f..0cad62e 100644 --- a/src/main/java/brevoModel/SendSmtpEmailBcc.java +++ b/src/main/java/brevoModel/SendSmtpEmailBcc.java @@ -34,6 +34,9 @@ public class SendSmtpEmailBcc { @SerializedName("name") private String name = null; + @SerializedName("contactPixelTrackingConsent") + private Boolean contactPixelTrackingConsent = null; + public SendSmtpEmailBcc email(String email) { this.email = email; return this; @@ -71,6 +74,25 @@ public void setName(String name) { } + public SendSmtpEmailBcc contactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + return this; + } + + /** + * 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. + * @return contactPixelTrackingConsent + **/ + @ApiModelProperty(example = "true", value = "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.") + public Boolean isContactPixelTrackingConsent() { + return contactPixelTrackingConsent; + } + + public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,12 +103,13 @@ public boolean equals(java.lang.Object o) { } SendSmtpEmailBcc sendSmtpEmailBcc = (SendSmtpEmailBcc) o; return ObjectUtils.equals(this.email, sendSmtpEmailBcc.email) && - ObjectUtils.equals(this.name, sendSmtpEmailBcc.name); + ObjectUtils.equals(this.name, sendSmtpEmailBcc.name) && + ObjectUtils.equals(this.contactPixelTrackingConsent, sendSmtpEmailBcc.contactPixelTrackingConsent); } @Override public int hashCode() { - return ObjectUtils.hashCodeMulti(email, name); + return ObjectUtils.hashCodeMulti(email, name, contactPixelTrackingConsent); } @@ -97,6 +120,7 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" contactPixelTrackingConsent: ").append(toIndentedString(contactPixelTrackingConsent)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/brevoModel/SendSmtpEmailCc.java b/src/main/java/brevoModel/SendSmtpEmailCc.java index ae6dbdc..6b5c455 100644 --- a/src/main/java/brevoModel/SendSmtpEmailCc.java +++ b/src/main/java/brevoModel/SendSmtpEmailCc.java @@ -34,6 +34,9 @@ public class SendSmtpEmailCc { @SerializedName("name") private String name = null; + @SerializedName("contactPixelTrackingConsent") + private Boolean contactPixelTrackingConsent = null; + public SendSmtpEmailCc email(String email) { this.email = email; return this; @@ -71,6 +74,25 @@ public void setName(String name) { } + public SendSmtpEmailCc contactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + return this; + } + + /** + * 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. + * @return contactPixelTrackingConsent + **/ + @ApiModelProperty(example = "true", value = "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.") + public Boolean isContactPixelTrackingConsent() { + return contactPixelTrackingConsent; + } + + public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,12 +103,13 @@ public boolean equals(java.lang.Object o) { } SendSmtpEmailCc sendSmtpEmailCc = (SendSmtpEmailCc) o; return ObjectUtils.equals(this.email, sendSmtpEmailCc.email) && - ObjectUtils.equals(this.name, sendSmtpEmailCc.name); + ObjectUtils.equals(this.name, sendSmtpEmailCc.name) && + ObjectUtils.equals(this.contactPixelTrackingConsent, sendSmtpEmailCc.contactPixelTrackingConsent); } @Override public int hashCode() { - return ObjectUtils.hashCodeMulti(email, name); + return ObjectUtils.hashCodeMulti(email, name, contactPixelTrackingConsent); } @@ -97,6 +120,7 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" contactPixelTrackingConsent: ").append(toIndentedString(contactPixelTrackingConsent)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/brevoModel/SendSmtpEmailTo.java b/src/main/java/brevoModel/SendSmtpEmailTo.java index b35db18..57c97da 100644 --- a/src/main/java/brevoModel/SendSmtpEmailTo.java +++ b/src/main/java/brevoModel/SendSmtpEmailTo.java @@ -34,6 +34,9 @@ public class SendSmtpEmailTo { @SerializedName("name") private String name = null; + @SerializedName("contactPixelTrackingConsent") + private Boolean contactPixelTrackingConsent = null; + public SendSmtpEmailTo email(String email) { this.email = email; return this; @@ -71,6 +74,25 @@ public void setName(String name) { } + public SendSmtpEmailTo contactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + return this; + } + + /** + * 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. + * @return contactPixelTrackingConsent + **/ + @ApiModelProperty(example = "true", value = "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.") + public Boolean isContactPixelTrackingConsent() { + return contactPixelTrackingConsent; + } + + public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,12 +103,13 @@ public boolean equals(java.lang.Object o) { } SendSmtpEmailTo sendSmtpEmailTo = (SendSmtpEmailTo) o; return ObjectUtils.equals(this.email, sendSmtpEmailTo.email) && - ObjectUtils.equals(this.name, sendSmtpEmailTo.name); + ObjectUtils.equals(this.name, sendSmtpEmailTo.name) && + ObjectUtils.equals(this.contactPixelTrackingConsent, sendSmtpEmailTo.contactPixelTrackingConsent); } @Override public int hashCode() { - return ObjectUtils.hashCodeMulti(email, name); + return ObjectUtils.hashCodeMulti(email, name, contactPixelTrackingConsent); } @@ -97,6 +120,7 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" contactPixelTrackingConsent: ").append(toIndentedString(contactPixelTrackingConsent)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/brevoModel/SendSmtpEmailTo1.java b/src/main/java/brevoModel/SendSmtpEmailTo1.java index fb933f4..e4f899c 100644 --- a/src/main/java/brevoModel/SendSmtpEmailTo1.java +++ b/src/main/java/brevoModel/SendSmtpEmailTo1.java @@ -34,6 +34,9 @@ public class SendSmtpEmailTo1 { @SerializedName("name") private String name = null; + @SerializedName("contactPixelTrackingConsent") + private Boolean contactPixelTrackingConsent = null; + public SendSmtpEmailTo1 email(String email) { this.email = email; return this; @@ -71,6 +74,25 @@ public void setName(String name) { } + public SendSmtpEmailTo1 contactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + return this; + } + + /** + * 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. + * @return contactPixelTrackingConsent + **/ + @ApiModelProperty(example = "true", value = "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.") + public Boolean isContactPixelTrackingConsent() { + return contactPixelTrackingConsent; + } + + public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) { + this.contactPixelTrackingConsent = contactPixelTrackingConsent; + } + + @Override public boolean equals(java.lang.Object o) { if (this == o) { @@ -81,12 +103,13 @@ public boolean equals(java.lang.Object o) { } SendSmtpEmailTo1 sendSmtpEmailTo1 = (SendSmtpEmailTo1) o; return ObjectUtils.equals(this.email, sendSmtpEmailTo1.email) && - ObjectUtils.equals(this.name, sendSmtpEmailTo1.name); + ObjectUtils.equals(this.name, sendSmtpEmailTo1.name) && + ObjectUtils.equals(this.contactPixelTrackingConsent, sendSmtpEmailTo1.contactPixelTrackingConsent); } @Override public int hashCode() { - return ObjectUtils.hashCodeMulti(email, name); + return ObjectUtils.hashCodeMulti(email, name, contactPixelTrackingConsent); } @@ -97,6 +120,7 @@ public String toString() { sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" contactPixelTrackingConsent: ").append(toIndentedString(contactPixelTrackingConsent)).append("\n"); sb.append("}"); return sb.toString(); }