Skip to content

Commit 10c8dd8

Browse files
author
Erik Räni
authored
🎉 2.0.0 (#8)
**Bug Fix** - [phonebook-api][contacts] Make sure scheduled deletion date field is only in responses, not in requests - The contact class in contact and contact list envelopes changed
1 parent 3c9afb7 commit 10c8dd8

14 files changed

+386
-55
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Messente API Library
22

33
- Messente API version: 1.3.0
4-
- Java artifact version: 1.3.0
4+
- Java artifact version: 2.0.0
55

66
[Messente](https://messente.com) is a global provider of messaging and user verification services. * Send and receive SMS, Viber, WhatsApp and Telegram messages. * Manage contacts and groups. * Fetch detailed info about phone numbers. * Blacklist phone numbers to make sure you're not sending any unwanted messages. Messente builds [tools](https://messente.com/documentation) to help organizations connect their services to people anywhere in the world.
77

@@ -12,7 +12,7 @@ Install Messente API library via Maven, Gradle, Ivy or manual build.
1212
### Gradle
1313

1414
```groovy
15-
compile "com.messente.api:messente-api:1.3.0"
15+
compile "com.messente.api:messente-api:2.0.0"
1616
```
1717

1818
### Maven
@@ -21,15 +21,15 @@ compile "com.messente.api:messente-api:1.3.0"
2121
<dependency>
2222
<groupId>com.messente.api</groupId>
2323
<artifactId>messente-api</artifactId>
24-
<version>1.3.0</version>
24+
<version>2.0.0</version>
2525
<type>pom</type>
2626
</dependency>
2727
```
2828

2929
### Ivy
3030

3131
```xml
32-
<dependency org='com.messente.api' name='messente-api' rev='1.3.0'>
32+
<dependency org='com.messente.api' name='messente-api' rev='2.0.0'>
3333
<artifact name='messente-api' ext='pom' ></artifact>
3434
</dependency>
3535
```
@@ -44,7 +44,7 @@ mvn clean package
4444

4545
Install
4646

47-
- `target/messente-api-1.3.0.jar`
47+
- `target/messente-api-2.0.0.jar`
4848
- `target/lib/*.jar`
4949

5050
## Features

build.gradle

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

44
group = 'com.messente.api'
5-
version = '1.3.0'
5+
version = '2.0.0'
66

77
buildscript {
88
repositories {

build.sbt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ lazy val root = (project in file(".")).
22
settings(
33
organization := "com.messente.api",
44
name := "messente-api",
5-
version := "1.3.0",
5+
version := "2.0.0",
66
scalaVersion := "2.11.4",
77
scalacOptions ++= Seq("-feature"),
88
javacOptions in compile ++= Seq("-Xlint:deprecation"),

docs/ContactEnvelope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**contact** | [**ContactFields**](ContactFields.md) | | [optional]
7+
**contact** | [**ContactResponseFields**](ContactResponseFields.md) | | [optional]
88

99

1010

docs/ContactFields.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
1414
**custom2** | **String** | The second custom field | [optional]
1515
**custom3** | **String** | The third custom field | [optional]
1616
**custom4** | **String** | The fourth custom field | [optional]
17-
**scheduledDeletionDate** | [**LocalDate**](LocalDate.md) | The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days | [optional]
1817

1918

2019

docs/ContactListEnvelope.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**contacts** | [**List&lt;ContactFields&gt;**](ContactFields.md) | An array of contacts | [optional]
7+
**contacts** | [**List&lt;ContactResponseFields&gt;**](ContactResponseFields.md) | An array of contacts | [optional]
88

99

1010

docs/ContactResponseFields.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
2+
# ContactResponseFields
3+
4+
## Properties
5+
Name | Type | Description | Notes
6+
------------ | ------------- | ------------- | -------------
7+
**phoneNumber** | **String** | Phone number in e.164 format | [optional]
8+
**email** | **String** | The email of the contact | [optional]
9+
**firstName** | **String** | The first name of the contact | [optional]
10+
**lastName** | **String** | The last name of the contact | [optional]
11+
**company** | **String** | The company of the contact | [optional]
12+
**title** | **String** | The title of the contact | [optional]
13+
**custom** | **String** | The first custom field | [optional]
14+
**custom2** | **String** | The second custom field | [optional]
15+
**custom3** | **String** | The third custom field | [optional]
16+
**custom4** | **String** | The fourth custom field | [optional]
17+
**scheduledDeletionDate** | [**LocalDate**](LocalDate.md) | The date in ISO 8601 format, YYYY-MM-DD, on which the contact is going to be deleted because it has not belonged to a group for 30 days | [optional]
18+
19+
20+

docs/ContactsApi.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ basicAuth.setUsername("YOUR USERNAME");
9191
basicAuth.setPassword("YOUR PASSWORD");
9292

9393
ContactsApi apiInstance = new ContactsApi();
94-
ContactFields contactFields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"}; // ContactFields |
94+
ContactFields contactFields = {"phoneNumber":"+37251000000","email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"}; // ContactFields |
9595
try {
9696
ContactEnvelope result = apiInstance.createContact(contactFields);
9797
System.out.println(result);
@@ -404,7 +404,7 @@ basicAuth.setPassword("YOUR PASSWORD");
404404

405405
ContactsApi apiInstance = new ContactsApi();
406406
String phone = +37251000000; // String | A phone number
407-
ContactUpdateFields contactUpdateFields = {"email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four","scheduledDeletionDate":"2020-08-31"}; // ContactUpdateFields |
407+
ContactUpdateFields contactUpdateFields = {"email":"[email protected]","firstName":"Any","lastName":"One","company":"Messente","title":"Sir","custom":"Any custom","custom2":"Any custom two","custom3":"Any custom three","custom4":"Any custom four"}; // ContactUpdateFields |
408408
try {
409409
ContactEnvelope result = apiInstance.updateContact(phone, contactUpdateFields);
410410
System.out.println(result);

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<artifactId>messente-api</artifactId>
66
<packaging>jar</packaging>
77
<name>messente-api</name>
8-
<version>1.3.0</version>
8+
<version>2.0.0</version>
99
<url>https://github.com/messente/messente-api-java</url>
1010
<description>Java library for Messente API</description>
1111
<scm>

src/main/java/com/messente/ApiClient.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ private void init() {
9999
json = new JSON();
100100

101101
// Set default User-Agent.
102-
setUserAgent("OpenAPI-Generator/1.3.0/java");
102+
setUserAgent("OpenAPI-Generator/2.0.0/java");
103103

104104
authentications = new HashMap<String, Authentication>();
105105
}

0 commit comments

Comments
 (0)