Skip to content

Commit f92a642

Browse files
authored
Merge pull request #10 from sendinblue/feature_new-params
Mixed spec updates
2 parents c70b66c + 4fe252b commit f92a642

22 files changed

+105
-34
lines changed

README.md

+3-3
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>3.0.0</version>
25+
<version>3.0.1</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:3.0.0"
35+
compile "com.sendinblue:sib-api-v3-sdk:3.0.1"
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-3.0.0.jar
48+
* target/sib-api-v3-sdk-3.0.1.jar
4949
* target/lib/*.jar
5050

5151
## Getting Started

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 = '3.0.0'
5+
version = '3.0.1'
66

77
buildscript {
88
repositories {

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 := "3.0.0",
5+
version := "3.0.1",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/CreateAttribute.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**value** | **String** | Value of the attribute. Use only if the attribute&#39;s category is &#39;calculated&#39; or &#39;global&#39; | [optional]
88
**enumeration** | [**List&lt;CreateAttributeEnumeration&gt;**](CreateAttributeEnumeration.md) | List of values and labels that the attribute can take. Use only if the attribute&#39;s category is \&quot;category\&quot;. For example, [{&#39;value&#39;:1, &#39;label&#39;:&#39;male&#39;}, {&#39;value&#39;:2, &#39;label&#39;:&#39;female&#39;}] | [optional]
9-
**type** | [**TypeEnum**](#TypeEnum) | Type of the attribute. Use only if the attribute&#39;s category is &#39;normal&#39;, &#39;category&#39; or &#39;transactional&#39; ( type &#39;id&#39; is only available if the category is &#39;transactional&#39; attribute &amp; type &#39;category&#39; is only available if the category is &#39;category&#39; attribute ) | [optional]
9+
**type** | [**TypeEnum**](#TypeEnum) | Type of the attribute. Use only if the attribute&#39;s category is &#39;normal&#39;, &#39;category&#39; or &#39;transactional&#39; ( type &#39;boolean&#39; is only available if the category is &#39;normal&#39; attribute, type &#39;id&#39; is only available if the category is &#39;transactional&#39; attribute &amp; type &#39;category&#39; is only available if the category is &#39;category&#39; attribute ) | [optional]
1010

1111

1212
<a name="TypeEnum"></a>
@@ -16,6 +16,7 @@ Name | Value
1616
TEXT | &quot;text&quot;
1717
DATE | &quot;date&quot;
1818
FLOAT | &quot;float&quot;
19+
BOOLEAN | &quot;boolean&quot;
1920
ID | &quot;id&quot;
2021
CATEGORY | &quot;category&quot;
2122

docs/EmailCampaignsApi.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ Name | Type | Description | Notes
231231

232232
<a name="getEmailCampaigns"></a>
233233
# **getEmailCampaigns**
234-
> GetEmailCampaigns getEmailCampaigns(type, status, limit, offset)
234+
> GetEmailCampaigns getEmailCampaigns(type, status, startDate, endDate, limit, offset)
235235
236236
Return all your created campaigns
237237

@@ -255,10 +255,12 @@ apiKey.setApiKey("YOUR API KEY");
255255
EmailCampaignsApi apiInstance = new EmailCampaignsApi();
256256
String type = "type_example"; // String | Filter on the type of the campaigns
257257
String status = "status_example"; // String | Filter on the status of the campaign
258+
OffsetDateTime startDate = new DateTime(); // DateTime | Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
259+
OffsetDateTime endDate = new DateTime(); // DateTime | Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either 'status' not passed and if passed is set to 'sent' )
258260
Long limit = 500L; // Long | Number of documents per page
259261
Long offset = 0L; // Long | Index of the first document in the page
260262
try {
261-
GetEmailCampaigns result = apiInstance.getEmailCampaigns(type, status, limit, offset);
263+
GetEmailCampaigns result = apiInstance.getEmailCampaigns(type, status, startDate, endDate, limit, offset);
262264
System.out.println(result);
263265
} catch (ApiException e) {
264266
System.err.println("Exception when calling EmailCampaignsApi#getEmailCampaigns");
@@ -272,6 +274,8 @@ Name | Type | Description | Notes
272274
------------- | ------------- | ------------- | -------------
273275
**type** | **String**| Filter on the type of the campaigns | [optional] [enum: classic, trigger]
274276
**status** | **String**| Filter on the status of the campaign | [optional] [enum: suspended, archive, sent, queued, draft, inProcess]
277+
**startDate** | **OffsetDateTime**| Mandatory if endDate is used. Starting (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either &#39;status&#39; not passed and if passed is set to &#39;sent&#39; ) | [optional]
278+
**endDate** | **OffsetDateTime**| Mandatory if startDate is used. Ending (urlencoded) UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ) to filter the sent email campaigns. Prefer to pass your timezone in date-time format for accurate result ( only available if either &#39;status&#39; not passed and if passed is set to &#39;sent&#39; ) | [optional]
275279
**limit** | **Long**| Number of documents per page | [optional] [default to 500]
276280
**offset** | **Long**| Index of the first document in the page | [optional] [default to 0]
277281

docs/GetEmailCampaign.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ 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+
**sentDate** | [**OffsetDateTime**] | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if &#39;status&#39; of the campaign is &#39;sent&#39; | [optional]
2728
**recipients** | **Object** | |
2829
**statistics** | **Object** | |
2930

docs/GetExtendedCampaignOverview.md

+1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ 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+
**sentDate** | [**OffsetDateTime**] | Sent UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ). Only available if &#39;status&#39; of the campaign is &#39;sent&#39; | [optional]
2728

2829

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

docs/SendTransacSms.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**sender** | **String** | Name of the sender. Only alphanumeric characters. No more than 11 characters |
88
**recipient** | **String** | Mobile number to send SMS with the country code |
9-
**content** | **String** | Content of the message. If more than 160 characters long, multiple text messages will be sent |
9+
**content** | **String** | Content of the message. If more than 160 characters long, will be sent as multiple text messages |
1010
**type** | [**TypeEnum**](#TypeEnum) | Type of the SMS | [optional]
1111
**tag** | **String** | Tag of the message | [optional]
1212
**webUrl** | **String** | Webhook to call for each event triggered by the message (delivered etc.) | [optional]

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>3.0.0</version>
8+
<version>3.0.1</version>
99
<url>https://github.com/sendinblue/APIv3-java-library</url>
1010
<description>SendinBlue&#39;s API v3 Java Library</description>
1111
<scm>

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/3.0.0/java");
88+
setUserAgent("Swagger-Codegen/3.0.1/java");
8989

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

src/main/java/sendinblue/ApiException.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
import java.util.Map;
1717
import java.util.List;
1818

19-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
19+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
2020
public class ApiException extends Exception {
2121
private int code = 0;
2222
private Map<String, List<String>> responseHeaders = null;

src/main/java/sendinblue/Configuration.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package sendinblue;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
16+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
1717
public class Configuration {
1818
private static ApiClient defaultApiClient = new ApiClient();
1919

src/main/java/sendinblue/Json.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -363,4 +363,4 @@ public LocalDate read(JsonReader in) throws IOException {
363363
}
364364
}
365365

366-
}
366+
}

src/main/java/sendinblue/Pair.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package sendinblue;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
16+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
1717
public class Pair {
1818
private String name = "";
1919
private String value = "";

src/main/java/sendinblue/StringUtil.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
package sendinblue;
1515

16-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
16+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
1717
public class StringUtil {
1818
/**
1919
* Check if the given array contains the given value (with case-insensitive comparison).

src/main/java/sendinblue/auth/ApiKeyAuth.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.Map;
1919
import java.util.List;
2020

21-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
21+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
2222
public class ApiKeyAuth implements Authentication {
2323
private final String location;
2424
private final String paramName;

src/main/java/sendinblue/auth/OAuth.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
import java.util.Map;
1919
import java.util.List;
2020

21-
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-05-24T12:07:09.251+05:30")
21+
@javax.annotation.Generated(value = "io.swagger.codegen.languages.JavaClientCodegen", date = "2018-08-24T17:45:47.569+05:30")
2222
public class OAuth implements Authentication {
2323
private String accessToken;
2424

0 commit comments

Comments
 (0)