Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.brevo</groupId>
<artifactId>brevo</artifactId>
<version>1.1.0</version>
<version>1.1.10</version>
<scope>compile</scope>
</dependency>
```
Expand All @@ -32,7 +32,7 @@ Add this dependency to your project's POM:
Add this dependency to your project's build file:

```groovy
compile "com.brevo:brevo:1.1.0"
compile "com.brevo:brevo:1.1.10"
```

### Others
Expand All @@ -45,7 +45,7 @@ mvn clean package

Then manually install the following JARs:

* `target/brevo-1.1.0.jar`
* `target/brevo-1.1.10.jar`
* `target/lib/*.jar`

## Getting Started
Expand Down
1 change: 1 addition & 0 deletions docs/SendSmtpEmailBcc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 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]



1 change: 1 addition & 0 deletions docs/SendSmtpEmailCc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 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]



1 change: 1 addition & 0 deletions docs/SendSmtpEmailTo.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 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]



1 change: 1 addition & 0 deletions docs/SendSmtpEmailTo1.md
Original file line number Diff line number Diff line change
Expand Up @@ -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) 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]



2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.brevo</groupId>
<artifactId>brevo</artifactId>
<version>1.1.9</version>
<version>1.1.10</version>
<packaging>jar</packaging>

<name>brevo</name>
Expand Down
28 changes: 26 additions & 2 deletions src/main/java/brevoModel/SendSmtpEmailBcc.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) 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.
* @return contactPixelTrackingConsent
**/
@ApiModelProperty(example = "true", value = "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.")
public Boolean isContactPixelTrackingConsent() {
return contactPixelTrackingConsent;
}

public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) {
this.contactPixelTrackingConsent = contactPixelTrackingConsent;
}


@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -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);
}


Expand All @@ -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();
}
Expand Down
28 changes: 26 additions & 2 deletions src/main/java/brevoModel/SendSmtpEmailCc.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) 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.
* @return contactPixelTrackingConsent
**/
@ApiModelProperty(example = "true", value = "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.")
public Boolean isContactPixelTrackingConsent() {
return contactPixelTrackingConsent;
}

public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) {
this.contactPixelTrackingConsent = contactPixelTrackingConsent;
}


@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -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);
}


Expand All @@ -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();
}
Expand Down
28 changes: 26 additions & 2 deletions src/main/java/brevoModel/SendSmtpEmailTo.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) 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.
* @return contactPixelTrackingConsent
**/
@ApiModelProperty(example = "true", value = "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.")
public Boolean isContactPixelTrackingConsent() {
return contactPixelTrackingConsent;
}

public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) {
this.contactPixelTrackingConsent = contactPixelTrackingConsent;
}


@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -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);
}


Expand All @@ -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();
}
Expand Down
28 changes: 26 additions & 2 deletions src/main/java/brevoModel/SendSmtpEmailTo1.java
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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) 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.
* @return contactPixelTrackingConsent
**/
@ApiModelProperty(example = "true", value = "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.")
public Boolean isContactPixelTrackingConsent() {
return contactPixelTrackingConsent;
}

public void setContactPixelTrackingConsent(Boolean contactPixelTrackingConsent) {
this.contactPixelTrackingConsent = contactPixelTrackingConsent;
}


@Override
public boolean equals(java.lang.Object o) {
if (this == o) {
Expand All @@ -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);
}


Expand All @@ -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();
}
Expand Down