Skip to content

Commit 67544a8

Browse files
committed
Mixed specification updates
1 parent 0c20b3c commit 67544a8

File tree

177 files changed

+533
-281
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+533
-281
lines changed

Diff for: README.md

+8-7
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Add this dependency to your project's POM:
2222
<dependency>
2323
<groupId>com.sendinblue</groupId>
2424
<artifactId>sib-api-v3-sdk</artifactId>
25-
<version>1.0.1</version>
25+
<version>2.0.0</version>
2626
<scope>compile</scope>
2727
</dependency>
2828
```
@@ -32,7 +32,7 @@ Add this dependency to your project's POM:
3232
Add this dependency to your project's build file:
3333

3434
```groovy
35-
compile "com.sendinblue:sib-api-v3-sdk:1.0.1"
35+
compile "com.sendinblue:sib-api-v3-sdk:2.0.0"
3636
```
3737

3838
### Others
@@ -45,7 +45,7 @@ At first generate the JAR by executing:
4545

4646
Then manually install the following JARs:
4747

48-
* target/sib-api-v3-sdk-1.0.1.jar
48+
* target/sib-api-v3-sdk-2.0.0.jar
4949
* target/lib/*.jar
5050

5151
## Getting Started
@@ -116,7 +116,7 @@ Class | Method | HTTP request | Description
116116
*ContactsApi* | [**getList**](docs/ContactsApi.md#getList) | **GET** /contacts/lists/{listId} | Get the details of a list
117117
*ContactsApi* | [**getLists**](docs/ContactsApi.md#getLists) | **GET** /contacts/lists | Get all the lists
118118
*ContactsApi* | [**importContacts**](docs/ContactsApi.md#importContacts) | **POST** /contacts/import | Import contacts
119-
*ContactsApi* | [**removeContactToList**](docs/ContactsApi.md#removeContactToList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
119+
*ContactsApi* | [**removeContactFromList**](docs/ContactsApi.md#removeContactFromList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
120120
*ContactsApi* | [**requestContactExport**](docs/ContactsApi.md#requestContactExport) | **POST** /contacts/export | Export contacts
121121
*ContactsApi* | [**updateAttribute**](docs/ContactsApi.md#updateAttribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute
122122
*ContactsApi* | [**updateContact**](docs/ContactsApi.md#updateContact) | **PUT** /contacts/{email} | Updates a contact
@@ -145,7 +145,7 @@ Class | Method | HTTP request | Description
145145
*ListsApi* | [**getFolderLists**](docs/ListsApi.md#getFolderLists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder
146146
*ListsApi* | [**getList**](docs/ListsApi.md#getList) | **GET** /contacts/lists/{listId} | Get the details of a list
147147
*ListsApi* | [**getLists**](docs/ListsApi.md#getLists) | **GET** /contacts/lists | Get all the lists
148-
*ListsApi* | [**removeContactToList**](docs/ListsApi.md#removeContactToList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
148+
*ListsApi* | [**removeContactFromList**](docs/ListsApi.md#removeContactFromList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
149149
*ListsApi* | [**updateList**](docs/ListsApi.md#updateList) | **PUT** /contacts/lists/{listId} | Update a list
150150
*ProcessApi* | [**getProcess**](docs/ProcessApi.md#getProcess) | **GET** /processes/{processId} | Return the informations for a process
151151
*ProcessApi* | [**getProcesses**](docs/ProcessApi.md#getProcesses) | **GET** /processes | Return all the processes for your account
@@ -199,8 +199,8 @@ Class | Method | HTTP request | Description
199199

200200
## Documentation for Models
201201

202+
- [AddContactToList](docs/AddContactToList.md)
202203
- [AddCredits](docs/AddCredits.md)
203-
- [AddRemoveContactToList](docs/AddRemoveContactToList.md)
204204
- [CreateAttribute](docs/CreateAttribute.md)
205205
- [CreateAttributeEnumeration](docs/CreateAttributeEnumeration.md)
206206
- [CreateChild](docs/CreateChild.md)
@@ -304,6 +304,7 @@ Class | Method | HTTP request | Description
304304
- [RemainingCreditModel](docs/RemainingCreditModel.md)
305305
- [RemainingCreditModelChild](docs/RemainingCreditModelChild.md)
306306
- [RemainingCreditModelReseller](docs/RemainingCreditModelReseller.md)
307+
- [RemoveContactFromList](docs/RemoveContactFromList.md)
307308
- [RemoveCredits](docs/RemoveCredits.md)
308309
- [RequestContactExport](docs/RequestContactExport.md)
309310
- [RequestContactImport](docs/RequestContactImport.md)
@@ -369,4 +370,4 @@ Be sure to visit the SendinBlue official [documentation website](https://sendinb
369370

370371
If you find a bug, please post the issue on [Github](https://github.com/sendinblue/APIv3-java-library/issues).
371372

372-
As always, if you need additional assistance, drop us a note [here](https://account.sendinblue.com/support).
373+
As always, if you need additional assistance, drop us a note [here](https://account.sendinblue.com/support).

Diff for: build.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'idea'
22
apply plugin: 'eclipse'
33

44
group = 'com.sendinblue'
5-
version = '1.0.0'
5+
version = '2.0.0'
66

77
buildscript {
88
repositories {

Diff for: build.sbt

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.sendinblue",
44
name := "sib-api-v3-sdk",
5-
version := "1.0.0",
5+
version := "2.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11

2-
# AddRemoveContactToList
2+
# AddContactToList
33

44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**emails** | **List&lt;String&gt;** | Emails to add or remove from a list | [optional]
7+
**emails** | **List&lt;String&gt;** | Emails to add to a list | [optional]
88

99

1010

Diff for: docs/AddCredits.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**sms** | **Long** | SMS credits to be added to the child account | [optional]
8-
**email** | **Long** | Email credits to be added to the child account | [optional]
7+
**sms** | **Long** | Required if email credits are empty. SMS credits to be added to the child account | [optional]
8+
**email** | **Long** | Required if sms credits are empty. Email credits to be added to the child account | [optional]
99

1010

1111

Diff for: docs/ContactsApi.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Method | HTTP request | Description
2323
[**getList**](ContactsApi.md#getList) | **GET** /contacts/lists/{listId} | Get the details of a list
2424
[**getLists**](ContactsApi.md#getLists) | **GET** /contacts/lists | Get all the lists
2525
[**importContacts**](ContactsApi.md#importContacts) | **POST** /contacts/import | Import contacts
26-
[**removeContactToList**](ContactsApi.md#removeContactToList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
26+
[**removeContactFromList**](ContactsApi.md#removeContactFromList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
2727
[**requestContactExport**](ContactsApi.md#requestContactExport) | **POST** /contacts/export | Export contacts
2828
[**updateAttribute**](ContactsApi.md#updateAttribute) | **PUT** /contacts/attributes/{attributeCategory}/{attributeName} | Updates contact attribute
2929
[**updateContact**](ContactsApi.md#updateContact) | **PUT** /contacts/{email} | Updates a contact
@@ -56,7 +56,7 @@ apiKey.setApiKey("YOUR API KEY");
5656

5757
ContactsApi apiInstance = new ContactsApi();
5858
Long listId = 789L; // Long | Id of the list
59-
AddRemoveContactToList contactEmails = new AddRemoveContactToList(); // AddRemoveContactToList | Emails addresses of the contacts
59+
AddContactToList contactEmails = new AddContactToList(); // AddContactToList | Emails addresses of the contacts
6060
try {
6161
PostContactInfo result = apiInstance.addContactToList(listId, contactEmails);
6262
System.out.println(result);
@@ -71,7 +71,7 @@ try {
7171
Name | Type | Description | Notes
7272
------------- | ------------- | ------------- | -------------
7373
**listId** | **Long**| Id of the list |
74-
**contactEmails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
74+
**contactEmails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts |
7575

7676
### Return type
7777

@@ -1058,9 +1058,9 @@ Name | Type | Description | Notes
10581058
- **Content-Type**: application/json
10591059
- **Accept**: application/json
10601060

1061-
<a name="removeContactToList"></a>
1062-
# **removeContactToList**
1063-
> PostContactInfo removeContactToList(listId, contactEmails)
1061+
<a name="removeContactFromList"></a>
1062+
# **removeContactFromList**
1063+
> PostContactInfo removeContactFromList(listId, contactEmails)
10641064
10651065
Remove existing contacts from a list
10661066

@@ -1083,12 +1083,12 @@ apiKey.setApiKey("YOUR API KEY");
10831083

10841084
ContactsApi apiInstance = new ContactsApi();
10851085
Long listId = 789L; // Long | Id of the list
1086-
AddRemoveContactToList contactEmails = new AddRemoveContactToList(); // AddRemoveContactToList | Emails adresses of the contact
1086+
RemoveContactFromList contactEmails = new RemoveContactFromList(); // RemoveContactFromList | Emails adresses of the contact
10871087
try {
1088-
PostContactInfo result = apiInstance.removeContactToList(listId, contactEmails);
1088+
PostContactInfo result = apiInstance.removeContactFromList(listId, contactEmails);
10891089
System.out.println(result);
10901090
} catch (ApiException e) {
1091-
System.err.println("Exception when calling ContactsApi#removeContactToList");
1091+
System.err.println("Exception when calling ContactsApi#removeContactFromList");
10921092
e.printStackTrace();
10931093
}
10941094
```
@@ -1098,7 +1098,7 @@ try {
10981098
Name | Type | Description | Notes
10991099
------------- | ------------- | ------------- | -------------
11001100
**listId** | **Long**| Id of the list |
1101-
**contactEmails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
1101+
**contactEmails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact |
11021102

11031103
### Return type
11041104

Diff for: docs/GetEmailCampaign.md

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ Name | Type | Description | Notes
2424
**inlineImageActivation** | **Boolean** | Status of inline image. inlineImageActivation &#x3D; false means image can’t be embedded, &amp; inlineImageActivation &#x3D; true means image can be embedded, in the email. | [optional]
2525
**mirrorActive** | **Boolean** | Status of mirror links in campaign. mirrorActive &#x3D; false means mirror links are deactivated, &amp; mirrorActive &#x3D; true means mirror links are activated, in the campaign | [optional]
2626
**recurring** | **Boolean** | FOR TRIGGER ONLY ! Type of trigger campaign.recurring &#x3D; false means contact can receive the same Trigger campaign only once, &amp; recurring &#x3D; true means contact can receive the same Trigger campaign several times | [optional]
27+
**recipients** | **Object** | |
28+
**statistics** | **Object** | |
2729

2830

2931
<a name="TypeEnum"></a>

Diff for: docs/GetEmailEventReportEvents.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ Name | Type | Description | Notes
1010
**messageId** | **String** | Message ID which generated the event |
1111
**event** | [**EventEnum**](#EventEnum) | Event which occurred |
1212
**reason** | **String** | Reason of bounce (only available if the event is hardbounce or softbounce) | [optional]
13-
**tag** | **String** | Tag of the email which generated the event |
13+
**tag** | **String** | Tag of the email which generated the event | [optional]
1414
**ip** | **String** | IP from which the user has opened the email or clicked on the link (only available if the event is opened or clicks) | [optional]
1515
**link** | **String** | The link which is sent to the user (only available if the event is requests or opened or clicks) | [optional]
16-
**from** | **String** | Sender email from which the emails are sent |
16+
**from** | **String** | Sender email from which the emails are sent | [optional]
1717

1818

1919
<a name="EventEnum"></a>

Diff for: docs/GetSmsCampaign.md

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ Name | Type | Description | Notes
1313
**sender** | **String** | Sender of the SMS Campaign |
1414
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Creation UTC date-time of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
1515
**modifiedAt** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time of last modification of the SMS campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
16+
**recipients** | **Object** | |
17+
**statistics** | **Object** | |
1618

1719

1820
<a name="StatusEnum"></a>

Diff for: docs/ListsApi.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Method | HTTP request | Description
1111
[**getFolderLists**](ListsApi.md#getFolderLists) | **GET** /contacts/folders/{folderId}/lists | Get the lists in a folder
1212
[**getList**](ListsApi.md#getList) | **GET** /contacts/lists/{listId} | Get the details of a list
1313
[**getLists**](ListsApi.md#getLists) | **GET** /contacts/lists | Get all the lists
14-
[**removeContactToList**](ListsApi.md#removeContactToList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
14+
[**removeContactFromList**](ListsApi.md#removeContactFromList) | **POST** /contacts/lists/{listId}/contacts/remove | Remove existing contacts from a list
1515
[**updateList**](ListsApi.md#updateList) | **PUT** /contacts/lists/{listId} | Update a list
1616

1717

@@ -40,7 +40,7 @@ apiKey.setApiKey("YOUR API KEY");
4040

4141
ListsApi apiInstance = new ListsApi();
4242
Long listId = 789L; // Long | Id of the list
43-
AddRemoveContactToList contactEmails = new AddRemoveContactToList(); // AddRemoveContactToList | Emails addresses of the contacts
43+
AddContactToList contactEmails = new AddContactToList(); // AddContactToList | Emails addresses of the contacts
4444
try {
4545
PostContactInfo result = apiInstance.addContactToList(listId, contactEmails);
4646
System.out.println(result);
@@ -55,7 +55,7 @@ try {
5555
Name | Type | Description | Notes
5656
------------- | ------------- | ------------- | -------------
5757
**listId** | **Long**| Id of the list |
58-
**contactEmails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails addresses of the contacts |
58+
**contactEmails** | [**AddContactToList**](AddContactToList.md)| Emails addresses of the contacts |
5959

6060
### Return type
6161

@@ -399,9 +399,9 @@ Name | Type | Description | Notes
399399
- **Content-Type**: application/json
400400
- **Accept**: application/json
401401

402-
<a name="removeContactToList"></a>
403-
# **removeContactToList**
404-
> PostContactInfo removeContactToList(listId, contactEmails)
402+
<a name="removeContactFromList"></a>
403+
# **removeContactFromList**
404+
> PostContactInfo removeContactFromList(listId, contactEmails)
405405
406406
Remove existing contacts from a list
407407

@@ -424,12 +424,12 @@ apiKey.setApiKey("YOUR API KEY");
424424

425425
ListsApi apiInstance = new ListsApi();
426426
Long listId = 789L; // Long | Id of the list
427-
AddRemoveContactToList contactEmails = new AddRemoveContactToList(); // AddRemoveContactToList | Emails adresses of the contact
427+
RemoveContactFromList contactEmails = new RemoveContactFromList(); // RemoveContactFromList | Emails adresses of the contact
428428
try {
429-
PostContactInfo result = apiInstance.removeContactToList(listId, contactEmails);
429+
PostContactInfo result = apiInstance.removeContactFromList(listId, contactEmails);
430430
System.out.println(result);
431431
} catch (ApiException e) {
432-
System.err.println("Exception when calling ListsApi#removeContactToList");
432+
System.err.println("Exception when calling ListsApi#removeContactFromList");
433433
e.printStackTrace();
434434
}
435435
```
@@ -439,7 +439,7 @@ try {
439439
Name | Type | Description | Notes
440440
------------- | ------------- | ------------- | -------------
441441
**listId** | **Long**| Id of the list |
442-
**contactEmails** | [**AddRemoveContactToList**](AddRemoveContactToList.md)| Emails adresses of the contact |
442+
**contactEmails** | [**RemoveContactFromList**](RemoveContactFromList.md)| Emails adresses of the contact |
443443

444444
### Return type
445445

Diff for: docs/RemoveContactFromList.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
2+
# RemoveContactFromList
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**emails** | **List&lt;String&gt;** | Required if &#39;all&#39; is false. Emails to remove from a list | [optional]
8+
**all** | **Boolean** | Required if &#39;emails&#39; is empty. Remove all existing contacts from a list | [optional]
9+
10+
11+

Diff for: docs/RemoveCredits.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**sms** | **Long** | SMS credits to be removed from the child account | [optional]
8-
**email** | **Long** | Email credits to be removed from the child account | [optional]
7+
**sms** | **Long** | Required if email credits are empty. SMS credits to be removed from the child account | [optional]
8+
**email** | **Long** | Required if sms credits are empty. Email credits to be removed from the child account | [optional]
99

1010

1111

Diff for: docs/SendEmailAttachment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**content** | **byte[]** | Byte array of the attachment generated on the fly ( Encoded to base64 chunk data at our end ) | [optional]
8-
**name** | **String** | Required for content. Name of the attachment | [optional]
8+
**name** | **String** | Required for content. Name of the attachment | [optional]

Diff for: docs/SendSmtpEmail.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**sender** | [**SendSmtpEmailSender**](SendSmtpEmailSender.md) | |
7+
**sender** | [**SendSmtpEmailSender**](SendSmtpEmailSender.md) | | [optional]
88
**to** | [**List&lt;SendSmtpEmailTo&gt;**](SendSmtpEmailTo.md) | Email addresses and names of the recipients |
99
**bcc** | [**List&lt;SendSmtpEmailBcc&gt;**](SendSmtpEmailBcc.md) | Email addresses and names of the recipients in bcc | [optional]
1010
**cc** | [**List&lt;SendSmtpEmailCc&gt;**](SendSmtpEmailCc.md) | Email addresses and names of the recipients in cc | [optional]
11-
**htmlContent** | **String** | HTML body of the message ( Ignored if templateId is passed ) |
12-
**textContent** | **String** | Plain Text body of the message ( Ignored if templateId is passed ) | [optional]
13-
**subject** | **String** | Subject of the message |
11+
**htmlContent** | **String** | HTML body of the message ( Mandatory if &#39;templateId&#39; is not passed, ignored if &#39;templateId&#39; is passed ) | [optional]
12+
**textContent** | **String** | Plain Text body of the message ( Ignored if &#39;templateId&#39; is passed ) | [optional]
13+
**subject** | **String** | Subject of the message. Mandatory if &#39;templateId&#39; is not passed | [optional]
1414
**replyTo** | [**SendSmtpEmailReplyTo**](SendSmtpEmailReplyTo.md) | | [optional]
15-
**attachment** | [**List&lt;SendSmtpEmailAttachment&gt;**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the byte array of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps | [optional]
15+
**attachment** | [**List&lt;SendSmtpEmailAttachment&gt;**](SendSmtpEmailAttachment.md) | Pass the absolute URL (no local file) or the or the byte array of the attachment. Name can be used in both cases to define the attachment name. It is mandatory in case of content. Extension allowed: xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps ( Ignored if &#39;templateId&#39; is passed ) | [optional]
1616
**headers** | **Map&lt;String, String&gt;** | | [optional]
1717
**templateId** | **Long** | Id of the template | [optional]
1818
**params** | **Map&lt;String, String&gt;** | | [optional]

Diff for: docs/SendSmtpEmailAttachment.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**url** | **String** | Absolute url of the attachment (no local file). | [optional]
88
**content** | **byte[]** | Byte array of the attachment generated on the fly ( Encoded to base64 chunk data at our end ) | [optional]
9-
**name** | **String** | Required for content. Name of the attachment | [optional]
9+
**name** | **String** | Required for content. Name of the attachment | [optional]

Diff for: pom.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>sib-api-v3-sdk</artifactId>
66
<packaging>jar</packaging>
77
<name>sib-api-v3-sdk</name>
8-
<version>1.0.1</version>
8+
<version>2.0.0</version>
99
<url>https://github.com/sendinblue/APIv3-java-library</url>
1010
<description>SendinBlue&#39;s API v3 Java Library</description>
1111
<scm>

Diff for: src/main/java/sendinblue/ApiClient.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ public ApiClient() {
8585
json = new Json();
8686

8787
// Set default User-Agent.
88-
setUserAgent("Swagger-Codegen/1.0.0/java");
88+
setUserAgent("Swagger-Codegen/2.0.0/java");
8989

9090
// Setup authentications (key: authentication name, value: authentication).
9191
authentications = new HashMap<String, Authentication>();

0 commit comments

Comments
 (0)