From 6e202c3ccf779a5752c136ee7f36ab8f9fc5be99 Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Fri, 3 Nov 2023 16:01:59 +0530 Subject: [PATCH 1/2] Added registration_status filter to Java SDK --- CHANGELOG.md | 5 +++++ README.md | 6 +++--- pom.xml | 2 +- src/main/java/com/plivo/api/PlivoAPIService.java | 2 +- .../com/plivo/api/models/campaign/CampaignLister.java | 9 ++++++++- src/main/resources/com/plivo/api/version.txt | 2 +- 6 files changed, 19 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 896bdef5..aaba5c4f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## [5.35.0](https://github.com/plivo/plivo-java/tree/v5.35.0) (2023-11-03) +**Feature - registration_status field** +- Added new param `registration_status` in LIST Campaign APIs + + ## [5.34.0](https://github.com/plivo/plivo-java/tree/v5.34.0) (2023-11-03) **Feature - TollFree Verification API Support** - API support for Create, Update, Get, Delete and List Tollfree Verification. diff --git a/README.md b/README.md index e1654a4a..6849eb90 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.34.0/plivo-java-5.34.0.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.35.0/plivo-java-5.35.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.34.0 + 5.35.0 ``` If you are using Gradle, use the following line in your dependencies. ``` -compile 'com.plivo:plivo-java:5.34.0' +compile 'com.plivo:plivo-java:5.35.0' ``` ### To Install Beta release diff --git a/pom.xml b/pom.xml index 12f5c2af..e4f678dc 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.34.0 + 5.35.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/PlivoAPIService.java b/src/main/java/com/plivo/api/PlivoAPIService.java index 2331ec02..84371e78 100644 --- a/src/main/java/com/plivo/api/PlivoAPIService.java +++ b/src/main/java/com/plivo/api/PlivoAPIService.java @@ -310,7 +310,7 @@ Call> profileList(@Path("authId") String authId, @GET("Account/{authId}/10dlc/Campaign/") Call> campaignList(@Path("authId") String authId, @QueryMap Map campaignListRequest, - @Query("limit") Integer limit, @Query("offset") Integer offset, @Query("campaign_source") String campaignSource, @Query("brand_id") String brandId, @Query("usecase") String usecase); + @Query("limit") Integer limit, @Query("offset") Integer offset, @Query("campaign_source") String campaignSource, @Query("brand_id") String brandId, @Query("usecase") String usecase, @Query("registration_status") String registrationStatus); @GET("Account/{authId}/10dlc/Campaign/{campaignId}/") Call campaignGet(@Path("authId") String authId, @Path("campaignId") String campaignId); diff --git a/src/main/java/com/plivo/api/models/campaign/CampaignLister.java b/src/main/java/com/plivo/api/models/campaign/CampaignLister.java index 1556a22f..ef452db2 100644 --- a/src/main/java/com/plivo/api/models/campaign/CampaignLister.java +++ b/src/main/java/com/plivo/api/models/campaign/CampaignLister.java @@ -12,6 +12,7 @@ public class CampaignLister extends MessagingCampaignLister { private String campaignSource; private String brandId; private String usecase; + private String registrationStatus; public CampaignLister limit(Integer limit) { this.limit = limit; @@ -33,6 +34,12 @@ public CampaignLister usecase(String usecase) { this.usecase = usecase; return this; + } + + public CampaignLister registrationStatus(String registrationStatus) { + this.registrationStatus = registrationStatus; + return this; + } public CampaignLister brandId(String brandId) { this.brandId = brandId; @@ -42,6 +49,6 @@ public CampaignLister brandId(String brandId) { @Override protected Call> obtainCall() { - return client().getApiService().campaignList(client().getAuthId(), toMap(), limit, offset, campaignSource, brandId, usecase); + return client().getApiService().campaignList(client().getAuthId(), toMap(), limit, offset, campaignSource, brandId, usecase, registrationStatus); } } diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index 04a88321..8ccdf66d 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.34.0 +5.35.0 From 126dcaea0d6d7b95b2e88424b47c80c77772465b Mon Sep 17 00:00:00 2001 From: Rajneesh Katkam Date: Fri, 3 Nov 2023 16:16:24 +0530 Subject: [PATCH 2/2] Added registration_status filter to Java SDK --- pom.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.properties b/pom.properties index 4e9655f2..4ef96468 100644 --- a/pom.properties +++ b/pom.properties @@ -1,6 +1,6 @@ # Written manually. -version=5.34.0 +version=5.35.0 groupId=com.plivo artifactId=plivo-java