Navigation Menu

Skip to content

Commit

Permalink
Mixed spec updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ekta-slit committed May 28, 2018
1 parent 59b0a89 commit f8503a9
Show file tree
Hide file tree
Showing 209 changed files with 593 additions and 583 deletions.
8 changes: 5 additions & 3 deletions .travis.yml
Expand Up @@ -2,12 +2,14 @@
# Generated by: https://github.com/swagger-api/swagger-codegen.git
#
language: java
jdk:
- oraclejdk8
- oraclejdk7

before_install:
# ensure gradlew has proper permission
- chmod a+x ./gradlew

jdk:
- oraclejdk8

script:
# test using maven
- mvn test
Expand Down
7 changes: 3 additions & 4 deletions README.md
Expand Up @@ -22,7 +22,7 @@ Add this dependency to your project's POM:
<dependency>
<groupId>com.sendinblue</groupId>
<artifactId>sib-api-v3-sdk</artifactId>
<version>2.0.1</version>
<version>3.0.0</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.sendinblue:sib-api-v3-sdk:2.0.1"
compile "com.sendinblue:sib-api-v3-sdk:3.0.0"
```

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

Then manually install the following JARs:

* target/sib-api-v3-sdk-2.0.1.jar
* target/sib-api-v3-sdk-3.0.0.jar
* target/lib/*.jar

## Getting Started
Expand Down Expand Up @@ -256,7 +256,6 @@ Class | Method | HTTP request | Description
- [GetEmailEventReportEvents](docs/GetEmailEventReportEvents.md)
- [GetExtendedCampaignOverviewSender](docs/GetExtendedCampaignOverviewSender.md)
- [GetExtendedCampaignStats](docs/GetExtendedCampaignStats.md)
- [GetExtendedCampaignStatsLinksStats](docs/GetExtendedCampaignStatsLinksStats.md)
- [GetExtendedClientAddress](docs/GetExtendedClientAddress.md)
- [GetExtendedContactDetailsStatistics](docs/GetExtendedContactDetailsStatistics.md)
- [GetExtendedContactDetailsStatisticsClicked](docs/GetExtendedContactDetailsStatisticsClicked.md)
Expand Down
11 changes: 6 additions & 5 deletions build.gradle
Expand Up @@ -2,7 +2,7 @@ apply plugin: 'idea'
apply plugin: 'eclipse'

group = 'com.sendinblue'
version = '2.0.1'
version = '3.0.0'

buildscript {
repositories {
Expand Down Expand Up @@ -32,8 +32,8 @@ if(hasProperty('target') && target == 'android') {
targetSdkVersion 25
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_7
targetCompatibility JavaVersion.VERSION_1_7
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}

// Rename the aar correctly
Expand Down Expand Up @@ -78,8 +78,8 @@ if(hasProperty('target') && target == 'android') {
apply plugin: 'java'
apply plugin: 'maven'

sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8

install {
repositories.mavenInstaller {
Expand All @@ -100,5 +100,6 @@ dependencies {
compile 'com.google.code.gson:gson:2.8.1'
compile 'io.gsonfire:gson-fire:1.8.0'
compile 'org.threeten:threetenbp:1.3.5'
compile 'org.apache.commons:commons-lang3:3.0'
testCompile 'junit:junit:4.12'
}
2 changes: 1 addition & 1 deletion build.sbt
Expand Up @@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
settings(
organization := "com.sendinblue",
name := "sib-api-v3-sdk",
version := "2.0.1",
version := "3.0.0",
scalaVersion := "2.11.4",
scalacOptions ++= Seq("-feature"),
javacOptions in compile ++= Seq("-Xlint:deprecation"),
Expand Down
6 changes: 3 additions & 3 deletions docs/CreateAttribute.md
Expand Up @@ -4,9 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**value** | **String** | Value of the attribute. Use only if the attribute&#39;s category is calculated or global | [optional]
**enumeration** | [**List&lt;CreateAttributeEnumeration&gt;**](CreateAttributeEnumeration.md) | Values that the attribute can take. Use only if the attribute&#39;s category is category | [optional]
**type** | [**TypeEnum**](#TypeEnum) | Type of the attribute. Use only if the attribute&#39;s category is normal, category or transactional ( type &#39;id&#39; only available if the category is &#39;transactional&#39; attribute &amp; type &#39;category&#39; only available if the category is &#39;category&#39; attribute ) | [optional]
**value** | **String** | Value of the attribute. Use only if the attribute&#39;s category is &#39;calculated&#39; or &#39;global&#39; | [optional]
**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]
**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]


<a name="TypeEnum"></a>
Expand Down
10 changes: 5 additions & 5 deletions docs/CreateContact.md
Expand Up @@ -4,12 +4,12 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **String** | Email address of the user. Mandatory if &#x60;attributes.sms&#x60; is not passed | [optional]
**attributes** | **Object** | Values of the attributes to fill. The attributes must exist in you contact database | [optional]
**emailBlacklisted** | **Boolean** | Blacklist the contact for emails (emailBlacklisted &#x3D; true) | [optional]
**smsBlacklisted** | **Boolean** | Blacklist the contact for SMS (smsBlacklisted &#x3D; true) | [optional]
**email** | **String** | Email address of the user. Mandatory if \&quot;sms\&quot; field is not passed in \&quot;attributes\&quot; parameter&#39; | [optional]
**attributes** | **Object** | Pass the set of attributes and their values. These attributes must be present in your SendinBlue account. For eg. {&#39;FNAME&#39;:&#39;Elly&#39;, &#39;LNAME&#39;:&#39;Roger&#39;} | [optional]
**emailBlacklisted** | **Boolean** | Set this field to blacklist the contact for emails (emailBlacklisted &#x3D; true) | [optional]
**smsBlacklisted** | **Boolean** | Set this field to blacklist the contact for SMS (smsBlacklisted &#x3D; true) | [optional]
**listIds** | **List&lt;Long&gt;** | Ids of the lists to add the contact to | [optional]
**updateEnabled** | **Boolean** | Facilitate to update existing contact in same request (updateEnabled &#x3D; true) | [optional]
**updateEnabled** | **Boolean** | Facilitate to update the existing contact in the same request (updateEnabled &#x3D; true) | [optional]
**smtpBlacklistSender** | **List&lt;String&gt;** | SMTP forbidden sender for contact. Use only for email Contact ( only available if updateEnabled &#x3D; true ) | [optional]


Expand Down
2 changes: 1 addition & 1 deletion docs/CreateEmailCampaign.md
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**name** | **String** | Name of the campaign |
**htmlContent** | **String** | Mandatory if htmlUrl is empty. Body of the message (HTML) | [optional]
**htmlUrl** | **String** | Mandatory if htmlContent is empty. Url to the message (HTML) | [optional]
**scheduledAt** | [**OffsetDateTime**](OffsetDateTime.md) | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
**scheduledAt** | [**OffsetDateTime**] | Sending UTC date-time (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
**subject** | **String** | Subject of the campaign |
**replyTo** | **String** | Email on which the campaign recipients will be able to reply to | [optional]
**toField** | **String** | To personalize the «To» Field, e.g. if you want to include the first name and last name of your recipient, use {FNAME} {LNAME}. These attributes must already exist in your contact database | [optional]
Expand Down
2 changes: 1 addition & 1 deletion docs/CreateList.md
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **String** | Name of the list |
**folderId** | **Long** | Id of the folder in which to create the list |
**folderId** | **Long** | Id of the parent folder in which this list is to be created |



2 changes: 1 addition & 1 deletion docs/CreateSmsCampaign.md
Expand Up @@ -8,7 +8,7 @@ Name | Type | Description | Notes
**sender** | **String** | Name of the sender. The number of characters is limited to 11 |
**content** | **String** | Content of the message. The maximum characters used per SMS is 160, if used more than that, it will be counted as more than one SMS | [optional]
**recipients** | [**CreateSmsCampaignRecipients**](CreateSmsCampaignRecipients.md) | | [optional]
**scheduledAt** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]
**scheduledAt** | [**OffsetDateTime**] | UTC date-time on which the campaign has to run (YYYY-MM-DDTHH:mm:ss.SSSZ). Prefer to pass your timezone in date-time format for accurate result. | [optional]



4 changes: 2 additions & 2 deletions docs/DeleteHardbounces.md
Expand Up @@ -4,8 +4,8 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**startDate** | **LocalDate** | Starting date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be lower than equal to endDate | [optional]
**endDate** | **LocalDate** | Ending date (YYYY-MM-DD) of the period from which the hardbounces will be deleted. Must be greater than equal to startDate | [optional]
**startDate** | **LocalDate** | Starting date (YYYY-MM-DD) of the time period for deletion. The hardbounces occurred after this date will be deleted. Must be less than or equal to the endDate | [optional]
**endDate** | **LocalDate** | Ending date (YYYY-MM-DD) of the time period for deletion. The hardbounces until this date will be deleted. Must be greater than or equal to the startDate | [optional]
**contactEmail** | **String** | Target a specific email address | [optional]


Expand Down
5 changes: 2 additions & 3 deletions docs/GetAccountPlan.md
Expand Up @@ -7,8 +7,8 @@ Name | Type | Description | Notes
**type** | [**TypeEnum**](#TypeEnum) | Displays the plan type of the user |
**creditsType** | [**CreditsTypeEnum**](#CreditsTypeEnum) | This is the type of the credit, \&quot;Send Limit\&quot; is one of the possible types of credit of a user. \&quot;Send Limit\&quot; implies the total number of emails you can send to the subscribers in your account. |
**credits** | **Float** | Remaining credits of the user |
**startDate** | **LocalDate** | Date of the period from which the plan will start (only available for \&quot;subscription\&quot;, \&quot;unlimited\&quot; and \&quot;reseller\&quot; plan type) | [optional]
**endDate** | **LocalDate** | Date of the period from which the plan will end (only available for \&quot;subscription\&quot;, \&quot;unlimited\&quot; and \&quot;reseller\&quot; plan type) | [optional]
**startDate** | **LocalDate** | Date of the period from which the plan will start (only available for \&quot;subscription\&quot; and \&quot;reseller\&quot; plan type) | [optional]
**endDate** | **LocalDate** | Date of the period from which the plan will end (only available for \&quot;subscription\&quot; and \&quot;reseller\&quot; plan type) | [optional]
**userLimit** | **Integer** | Only in case of reseller account. It implies the total number of child accounts you can add to your account. | [optional]


Expand All @@ -17,7 +17,6 @@ Name | Type | Description | Notes
Name | Value
---- | -----
PAYASYOUGO | &quot;payAsYouGo&quot;
UNLIMITED | &quot;unlimited&quot;
FREE | &quot;free&quot;
SUBSCRIPTION | &quot;subscription&quot;
SMS | &quot;sms&quot;
Expand Down
2 changes: 1 addition & 1 deletion docs/GetCampaignOverview.md
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**subject** | **String** | Subject of the campaign |
**type** | [**TypeEnum**](#TypeEnum) | Type of campaign |
**status** | [**StatusEnum**](#StatusEnum) | Status of the campaign |
**scheduledAt** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
**scheduledAt** | [**OffsetDateTime**] | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]


<a name="TypeEnum"></a>
Expand Down
6 changes: 3 additions & 3 deletions docs/GetCampaignStats.md
Expand Up @@ -4,9 +4,9 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**listId** | **Long** | List Id of email campaign (only in case of get email campaign(s)) | [optional]
**listId** | **Long** | List Id of email campaign (only in case of get email campaign(s)(not for global stats)) | [optional]
**uniqueClicks** | **Long** | Number of unique clicks for the campaign |
**clickers** | **Long** | Number of clicks for the campaign |
**clickers** | **Long** | Number of total clicks for the campaign |
**complaints** | **Long** | Number of complaints (Spam reports) for the campaign |
**delivered** | **Long** | Number of delivered emails for the campaign |
**sent** | **Long** | Number of sent emails for the campaign |
Expand All @@ -15,7 +15,7 @@ Name | Type | Description | Notes
**uniqueViews** | **Long** | Number of unique openings for the campaign |
**unsubscriptions** | **Long** | Number of unsubscription for the campaign |
**viewed** | **Long** | Number of openings for the campaign |
**deferred** | **Long** | Number of deferred emails for the campaign |
**deferred** | **Long** | Number of deferred emails for the campaign | [optional]



2 changes: 1 addition & 1 deletion docs/GetContactCampaignStatsOpened.md
Expand Up @@ -6,7 +6,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**campaignId** | **Long** | ID of the campaign which generated the event |
**count** | **Long** | Number of openings of the campaign |
**eventTime** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time of the event |
**eventTime** | [**OffsetDateTime**] | UTC date-time of the event |
**ip** | **String** | IP from which the user has opened the campaign |


Expand Down
4 changes: 2 additions & 2 deletions docs/GetContactDetails.md
Expand Up @@ -8,10 +8,10 @@ Name | Type | Description | Notes
**id** | **Long** | ID of the contact for which you requested the details |
**emailBlacklisted** | **Boolean** | Blacklist status for email campaigns (true&#x3D;blacklisted, false&#x3D;not blacklisted) |
**smsBlacklisted** | **Boolean** | Blacklist status for SMS campaigns (true&#x3D;blacklisted, false&#x3D;not blacklisted) |
**modifiedAt** | [**OffsetDateTime**](OffsetDateTime.md) | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**modifiedAt** | [**OffsetDateTime**] | Last modification UTC date-time of the contact (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**listIds** | **List&lt;Long&gt;** | |
**listUnsubscribed** | **List&lt;Long&gt;** | | [optional]
**attributes** | **Map&lt;String, String&gt;** | |
**attributes** | **Object** | Set of attributes of the contact |



6 changes: 3 additions & 3 deletions docs/GetEmailCampaign.md
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**subject** | **String** | Subject of the campaign |
**type** | [**TypeEnum**](#TypeEnum) | Type of campaign |
**status** | [**StatusEnum**](#StatusEnum) | Status of the campaign |
**scheduledAt** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
**scheduledAt** | [**OffsetDateTime**] | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
**testSent** | **Boolean** | Retrieved the status of test email sending. (true&#x3D;Test email has been sent false&#x3D;Test email has not been sent) |
**header** | **String** | Header of the campaign |
**footer** | **String** | Footer of the campaign |
Expand All @@ -19,8 +19,8 @@ Name | Type | Description | Notes
**htmlContent** | **String** | HTML content of the campaign |
**shareLink** | **String** | Link to share the campaign on social medias | [optional]
**tag** | **String** | Tag of the campaign |
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**modifiedAt** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**createdAt** | [**OffsetDateTime**] | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**modifiedAt** | [**OffsetDateTime**] | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**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]
**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]
**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]
Expand Down
2 changes: 1 addition & 1 deletion docs/GetEmailEventReportEvents.md
Expand Up @@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**email** | **String** | Email address which generates the event |
**date** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time on which the event has been generated |
**date** | [**OffsetDateTime**] | UTC date-time on which the event has been generated |
**subject** | **String** | Subject of the event | [optional]
**messageId** | **String** | Message ID which generated the event |
**event** | [**EventEnum**](#EventEnum) | Event which occurred |
Expand Down
6 changes: 3 additions & 3 deletions docs/GetExtendedCampaignOverview.md
Expand Up @@ -9,7 +9,7 @@ Name | Type | Description | Notes
**subject** | **String** | Subject of the campaign |
**type** | [**TypeEnum**](#TypeEnum) | Type of campaign |
**status** | [**StatusEnum**](#StatusEnum) | Status of the campaign |
**scheduledAt** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
**scheduledAt** | [**OffsetDateTime**] | UTC date-time on which campaign is scheduled (YYYY-MM-DDTHH:mm:ss.SSSZ) | [optional]
**testSent** | **Boolean** | Retrieved the status of test email sending. (true&#x3D;Test email has been sent false&#x3D;Test email has not been sent) |
**header** | **String** | Header of the campaign |
**footer** | **String** | Footer of the campaign |
Expand All @@ -19,8 +19,8 @@ Name | Type | Description | Notes
**htmlContent** | **String** | HTML content of the campaign |
**shareLink** | **String** | Link to share the campaign on social medias | [optional]
**tag** | **String** | Tag of the campaign |
**createdAt** | [**OffsetDateTime**](OffsetDateTime.md) | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**modifiedAt** | [**OffsetDateTime**](OffsetDateTime.md) | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**createdAt** | [**OffsetDateTime**] | Creation UTC date-time of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**modifiedAt** | [**OffsetDateTime**] | UTC date-time of last modification of the campaign (YYYY-MM-DDTHH:mm:ss.SSSZ) |
**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]
**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]
**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]
Expand Down
5 changes: 3 additions & 2 deletions docs/GetExtendedCampaignStats.md
Expand Up @@ -4,10 +4,11 @@
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**campaignStats** | **List&lt;Object&gt;** | |
**globalStats** | **Object** | Overall statistics of the campaign |
**campaignStats** | **List&lt;Object&gt;** | List-wise statistics of the campaign. |
**mirrorClick** | **Long** | Number of clicks on mirror link |
**remaining** | **Long** | Number of remaning emails to send |
**linksStats** | [**Map&lt;String, GetExtendedCampaignStatsLinksStats&gt;**](GetExtendedCampaignStatsLinksStats.md) | |
**linksStats** | **Object** | Statistics about the number of clicks for the links |
**statsByDomain** | [**GetStatsByDomain**](GetStatsByDomain.md) | |


Expand Down

0 comments on commit f8503a9

Please sign in to comment.