From f83d4b09637bcdff0fe696fa83aa8695e5a88446 Mon Sep 17 00:00:00 2001 From: Thumpala Vinay Kumar Date: Mon, 11 Dec 2023 16:54:41 +0530 Subject: [PATCH] added new params --- CHANGELOG.md | 4 ++ README.md | 6 +-- pom.properties | 2 +- pom.xml | 2 +- .../plivo/api/models/campaign/Campaign.java | 10 +++++ .../api/models/campaign/CampaignResponse.java | 18 +++++++++ src/main/resources/com/plivo/api/version.txt | 2 +- .../com/plivo/api/campaignGetResponse.json | 4 +- .../com/plivo/api/campaignListResponse.json | 40 ++++++++++++++----- 9 files changed, 71 insertions(+), 17 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea0b49bd..765844e7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Change Log +## [5.38.0](https://github.com/plivo/plivo-java/tree/v5.38.0) (2023-11-30) +**Feature - Added params for GET and LIST Campaign API** +- Added params 'vertical', 'campaign_alias' for GET and LIST Campaign APIs + ## [5.37.0](https://github.com/plivo/plivo-java/tree/v5.37.0) (2023-11-29) **Feature - add new response fields for LIST and GET campaign** - Added new response params `error_code`, `error_reason` for LIST / GET Campaign APIs diff --git a/README.md b/README.md index 14779e10..07675b5c 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.37.0/plivo-java-5.37.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.38.0/plivo-java-5.38.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.37.0 + 5.38.0 ``` If you are using Gradle, use the following line in your dependencies. ``` -compile 'com.plivo:plivo-java:5.37.0' +compile 'com.plivo:plivo-java:5.38.0' ``` ### To Install Beta release diff --git a/pom.properties b/pom.properties index a047f0b9..ab666f1e 100644 --- a/pom.properties +++ b/pom.properties @@ -1,6 +1,6 @@ # Written manually. -version=5.37.0 +version=5.38.0 groupId=com.plivo artifactId=plivo-java diff --git a/pom.xml b/pom.xml index 8e2b8615..2c7159de 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.37.0 + 5.38.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/campaign/Campaign.java b/src/main/java/com/plivo/api/models/campaign/Campaign.java index 045b61fe..58b57a53 100644 --- a/src/main/java/com/plivo/api/models/campaign/Campaign.java +++ b/src/main/java/com/plivo/api/models/campaign/Campaign.java @@ -29,6 +29,8 @@ public class Campaign extends BaseResource { private String campaignSource; private String errorReason; private String errorCode; + private String vertical; + private String campaignAlias; @@ -172,6 +174,14 @@ public String getCreatedAt() { return createdAt; } + public String getVertical() { + return vertical; + } + + public String getCampaignAlias() { + return campaignAlias; + } + @Override public String getId() { return this.campaignID; diff --git a/src/main/java/com/plivo/api/models/campaign/CampaignResponse.java b/src/main/java/com/plivo/api/models/campaign/CampaignResponse.java index 9e5f768c..94f330ca 100644 --- a/src/main/java/com/plivo/api/models/campaign/CampaignResponse.java +++ b/src/main/java/com/plivo/api/models/campaign/CampaignResponse.java @@ -27,6 +27,9 @@ public class CampaignResponse extends BaseResource{ private String errorReason; private String errorCode; private CampaignAttributes campaignAttributes; + private String vertical; + private String campaignAlias; + /** @@ -147,6 +150,21 @@ public String getCampaignSource() { return campaignSource; } + /** + * @return vertical return the vertical + */ + public String getVertical() { + return vertical; + } + + /** + * @return campaignAlias return the camp +aignAlias + */ + public String getCampaignAlias() { + return campaignAlias; + } + /** * @return errorCode return the errorCode */ diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index 7b941592..a347392e 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.37.0 +5.38.0 diff --git a/src/test/resources/com/plivo/api/campaignGetResponse.json b/src/test/resources/com/plivo/api/campaignGetResponse.json index 551bd509..4836214e 100644 --- a/src/test/resources/com/plivo/api/campaignGetResponse.json +++ b/src/test/resources/com/plivo/api/campaignGetResponse.json @@ -36,6 +36,8 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" } } \ No newline at end of file diff --git a/src/test/resources/com/plivo/api/campaignListResponse.json b/src/test/resources/com/plivo/api/campaignListResponse.json index 4275bd28..ced0d206 100644 --- a/src/test/resources/com/plivo/api/campaignListResponse.json +++ b/src/test/resources/com/plivo/api/campaignListResponse.json @@ -25,7 +25,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BNOOLMO", @@ -51,7 +53,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BWDWMAC", @@ -77,7 +81,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BCKWPKX", @@ -103,7 +109,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "B2IYFNC", @@ -129,7 +137,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BK98MJL", @@ -153,7 +163,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "B3WKVGC", @@ -179,7 +191,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BBYQU0Z", @@ -204,7 +218,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BBYQU0Z", @@ -229,7 +245,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BBYQU0Z", @@ -254,7 +272,9 @@ "created_at": "2023-03-07T11:25:28.262701Z", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" } ], "meta": {