From 0add6dba35e7fc32b7a90a786a4a9f26de0e186e Mon Sep 17 00:00:00 2001 From: Saurabh Newatiya Date: Thu, 23 Feb 2023 14:20:54 +0530 Subject: [PATCH 1/2] SMS-4946/SMS-4848 adding is domestic in get and list mdr api --- CHANGELOG.md | 3 + README.md | 6 +- pom.properties | 2 +- pom.xml | 2 +- .../com/plivo/api/models/message/Message.java | 5 ++ src/main/resources/com/plivo/api/version.txt | 2 +- .../com/plivo/api/messageGetResponse.json | 3 +- .../com/plivo/api/messageListResponse.json | 60 ++++++++++++------- 8 files changed, 56 insertions(+), 27 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d4e96dab..1b3a22e2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response +## [5.20.0](https://github.com/plivo/plivo-java/tree/v5.20.0) (2023-02-23) +- Add `isDomestic` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) + ## [5.19.1](https://github.com/plivo/plivo-java/tree/v5.19.1) (2022-01-31) - Add `requesterIP` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) diff --git a/README.md b/README.md index 2efb9fad..ba7f971f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,7 @@ The Plivo Java SDK makes it simpler to integrate communications into your Java a ### To Install Stable release -You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.19.1/plivo-java-5.19.1.jar). +You can use this SDK by adding it as a dependency in your dependency management tool. Alternatively, you can use the [JAR file](https://search.maven.org/remotecontent?filepath=com/plivo/plivo-java/5.20.0/plivo-java-5.20.0.jar). If you are using Maven, use the following XML to include the Plivo SDK as a dependency. @@ -18,13 +18,13 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe com.plivo plivo-java - 5.19.2 + 5.20.0 ``` If you are using Gradle, use the following line in your dependencies. ``` -compile 'com.plivo:plivo-java:5.19.2' +compile 'com.plivo:plivo-java:5.20.0' ``` ### To Install Beta release diff --git a/pom.properties b/pom.properties index d647ad89..dff0fce4 100644 --- a/pom.properties +++ b/pom.properties @@ -1,5 +1,5 @@ # Written manually. -version=5.19.2 +version=5.20.0 groupId=com.plivo artifactId=plivo-java diff --git a/pom.xml b/pom.xml index a7b4a23d..d30e8ce3 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.19.2 + 5.20.0 plivo-java A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML diff --git a/src/main/java/com/plivo/api/models/message/Message.java b/src/main/java/com/plivo/api/models/message/Message.java index 567e67f4..988374df 100644 --- a/src/main/java/com/plivo/api/models/message/Message.java +++ b/src/main/java/com/plivo/api/models/message/Message.java @@ -22,6 +22,7 @@ public class Message extends BaseResource { private String tendlcRegistrationStatus; private String destinationCountryIso2; private String requesterIP; + private Boolean isDomestic; public static MessageCreator creator(String source, List destination, String text) { return new MessageCreator(source, destination, text); @@ -116,6 +117,10 @@ public Long getUnits() { return units; } + public Boolean getIsDomestic() { + return isDomestic; + } + @Override public String getId() { return getMessageUuid(); diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index 8093dce1..0af471c5 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.19.2 +5.20.0 diff --git a/src/test/resources/com/plivo/api/messageGetResponse.json b/src/test/resources/com/plivo/api/messageGetResponse.json index ba8c2414..a1a83461 100644 --- a/src/test/resources/com/plivo/api/messageGetResponse.json +++ b/src/test/resources/com/plivo/api/messageGetResponse.json @@ -12,5 +12,6 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.1" + "requester_ip": "192.168.1.1", + "is_domestic": false } \ No newline at end of file diff --git a/src/test/resources/com/plivo/api/messageListResponse.json b/src/test/resources/com/plivo/api/messageListResponse.json index cd0814bf..b0edf244 100644 --- a/src/test/resources/com/plivo/api/messageListResponse.json +++ b/src/test/resources/com/plivo/api/messageListResponse.json @@ -20,7 +20,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.1" + "requester_ip": "192.168.1.1", + "is_domestic": false }, { "error_code": null, @@ -35,7 +36,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.2" + "requester_ip": "192.168.1.2", + "is_domestic": false }, { "error_code": null, @@ -50,7 +52,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.3" + "requester_ip": "192.168.1.3", + "is_domestic": false }, { "error_code": null, @@ -65,7 +68,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.4" + "requester_ip": "192.168.1.4", + "is_domestic": false }, { "error_code": null, @@ -80,7 +84,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.5" + "requester_ip": "192.168.1.5", + "is_domestic": false }, { "error_code": null, @@ -95,7 +100,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.6" + "requester_ip": "192.168.1.6", + "is_domestic": false }, { "error_code": null, @@ -110,7 +116,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.7" + "requester_ip": "192.168.1.7", + "is_domestic": false }, { "error_code": null, @@ -125,7 +132,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.8" + "requester_ip": "192.168.1.8", + "is_domestic": false }, { "error_code": "000", @@ -140,7 +148,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.9" + "requester_ip": "192.168.1.9", + "is_domestic": false }, { "error_code": null, @@ -155,7 +164,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.10" + "requester_ip": "192.168.1.10", + "is_domestic": false }, { "error_code": "000", @@ -170,7 +180,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.11" + "requester_ip": "192.168.1.11", + "is_domestic": false }, { "error_code": null, @@ -185,7 +196,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.12" + "requester_ip": "192.168.1.12", + "is_domestic": false }, { "error_code": "000", @@ -200,7 +212,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.13" + "requester_ip": "192.168.1.13", + "is_domestic": false }, { "error_code": null, @@ -215,7 +228,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.14" + "requester_ip": "192.168.1.14", + "is_domestic": false }, { "error_code": "000", @@ -230,7 +244,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.15" + "requester_ip": "192.168.1.15", + "is_domestic": false }, { "error_code": null, @@ -245,7 +260,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.16" + "requester_ip": "192.168.1.16", + "is_domestic": false }, { "error_code": "000", @@ -260,7 +276,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.17" + "requester_ip": "192.168.1.17", + "is_domestic": false }, { "error_code": "000", @@ -275,7 +292,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.18" + "requester_ip": "192.168.1.18", + "is_domestic": false }, { "error_code": "000", @@ -290,7 +308,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.19" + "requester_ip": "192.168.1.19", + "is_domestic": false }, { "error_code": "000", @@ -305,7 +324,8 @@ "total_amount": "0.00250", "total_rate": "0.00250", "units": 1, - "requester_ip": "192.168.1.20" + "requester_ip": "192.168.1.20", + "is_domestic": false } ] } \ No newline at end of file From 9a4b8b3e1714d8350a4828d07adfb50c8c975355 Mon Sep 17 00:00:00 2001 From: Saurabh Newatiya Date: Fri, 3 Mar 2023 15:39:28 +0530 Subject: [PATCH 2/2] updating order of changelog --- CHANGELOG.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1b3a22e2..53ef2e48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,11 +1,11 @@ # Change Log +## [5.20.0](https://github.com/plivo/plivo-java/tree/v5.20.0) (2023-02-23) +- Add `isDomestic` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) + ## [5.19.2](https://github.com/plivo/plivo-java/tree/v5.19.2) (2023-02-23) **Feature - Enhance MDR filtering capabilities ** - Added new fields on MDR object response -## [5.20.0](https://github.com/plivo/plivo-java/tree/v5.20.0) (2023-02-23) -- Add `isDomestic` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message) - ## [5.19.1](https://github.com/plivo/plivo-java/tree/v5.19.1) (2022-01-31) - Add `requesterIP` to the response for the [list all messages API](https://www.plivo.com/docs/sms/api/message/list-all-messages/) and the [get message details API](https://www.plivo.com/docs/sms/api/message#retrieve-a-message)