From 83c9768b8ff148373281798facc7adf76bb0a2cb Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Thu, 7 Mar 2024 19:39:42 +0530 Subject: [PATCH 1/5] SMS-6627 adding decline_reasons field in get and list brand APIs --- CHANGELOG.md | 5 +++- .../com/plivo/api/models/brand/Brand.java | 8 ++++++ .../plivo/api/models/brand/BrandResponse.java | 28 ++++++++++++------- .../api/models/brand/TCRErrorDetail.java | 21 ++++++++++++++ 4 files changed, 51 insertions(+), 11 deletions(-) create mode 100644 src/main/java/com/plivo/api/models/brand/TCRErrorDetail.java diff --git a/CHANGELOG.md b/CHANGELOG.md index 96e14f4a..e8426e47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,13 @@ # Change Log +## [5.39.1](https://github.com/plivo/plivo-java/tree/v5.39.0) (2023-03-19) +**Feature - add new response fields for LIST and GET brand** +- Added new response params `decline_reasons` for LIST / GET Brand APIs + ## [5.39.0](https://github.com/plivo/plivo-java/tree/v5.39.0) (2024-03-13) **Feature - Import Campaign API** - Import Campaign API - ## [5.38.3](https://github.com/plivo/plivo-java/tree/v5.38.3) (2024-02-28) **Feature - Log Redaction Enhancement** - Added log attribute in GET and List MDR response diff --git a/src/main/java/com/plivo/api/models/brand/Brand.java b/src/main/java/com/plivo/api/models/brand/Brand.java index 7042cac8..ab9e58a4 100644 --- a/src/main/java/com/plivo/api/models/brand/Brand.java +++ b/src/main/java/com/plivo/api/models/brand/Brand.java @@ -18,6 +18,7 @@ public class Brand extends BaseResource { private AuthorizedContact authorizedContact; private BrandResponse brand; private String createdAt; + private List declineReasons; public static BrandCreator creator(String brandAlias,String profileUUID,String brandType,Boolean secondaryVetting,String url,String method) { return new BrandCreator(brandAlias,profileUUID,brandType,secondaryVetting,url,method); @@ -119,6 +120,13 @@ public String getCreatedAt() { return createdAt; } + /** + * @return TCRErrorDetail[] return the getDeclineReasons + */ + public List getDeclineReasons() { + return declineReasons; + } + public BrandResponse getBrand() { return brand; } diff --git a/src/main/java/com/plivo/api/models/brand/BrandResponse.java b/src/main/java/com/plivo/api/models/brand/BrandResponse.java index 6c716ae9..531f466d 100644 --- a/src/main/java/com/plivo/api/models/brand/BrandResponse.java +++ b/src/main/java/com/plivo/api/models/brand/BrandResponse.java @@ -7,16 +7,17 @@ @JsonInclude(JsonInclude.Include.NON_NULL) public class BrandResponse extends BaseResource { - private String brandID; - private String brandType; - private String einIssuingCountry; - private String entityType; - private String profileUUID; - private String registrationStatus; - private String vertical; - private Address address; - private String createdAt; - private AuthorizedContact authorizedContact; + private String brandID; + private String brandType; + private String einIssuingCountry; + private String entityType; + private String profileUUID; + private String registrationStatus; + private String vertical; + private Address address; + private String createdAt; + private AuthorizedContact authorizedContact; + private List declineReasons; /** * @return String return the getBrandID @@ -91,6 +92,13 @@ public AuthorizedContact getAuthorizedContact() { return authorizedContact; } + /** + * @return TCRErrorDetail[] return the getDeclineReasons + */ + public List getDeclineReasons() { + return declineReasons; + } + @Override public String getId() { return this.brandID; diff --git a/src/main/java/com/plivo/api/models/brand/TCRErrorDetail.java b/src/main/java/com/plivo/api/models/brand/TCRErrorDetail.java new file mode 100644 index 00000000..e392ca64 --- /dev/null +++ b/src/main/java/com/plivo/api/models/brand/TCRErrorDetail.java @@ -0,0 +1,21 @@ +package com.plivo.api.models.brand; + +public class TCRErrorDetail { + private String code; + private String message; + + public TCRErrorDetail(String code, String message) { + this.code = code; + this.message = message; + } + + public TCRErrorDetail() { + } + + public String getCode() { + return code; + } + public String getMessage(){ + return message; + } +} \ No newline at end of file From 55e20df7e0cd6b1fd45b9bc097b7ba1299e90928 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Thu, 7 Mar 2024 19:41:20 +0530 Subject: [PATCH 2/5] updating changelog date --- CHANGELOG.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8426e47..ef501acd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ # Change Log -## [5.39.1](https://github.com/plivo/plivo-java/tree/v5.39.0) (2023-03-19) + +## [5.39.1](https://github.com/plivo/plivo-java/tree/v5.39.1) (2023-03-19) **Feature - add new response fields for LIST and GET brand** - Added new response params `decline_reasons` for LIST / GET Brand APIs From 213ce81f1f4dafa11497e0fd44f8b0b58579efd3 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Thu, 28 Mar 2024 16:33:04 +0530 Subject: [PATCH 3/5] updating changelog date --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ef501acd..3eeca77f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,7 +1,7 @@ # Change Log -## [5.39.1](https://github.com/plivo/plivo-java/tree/v5.39.1) (2023-03-19) +## [5.39.1](https://github.com/plivo/plivo-java/tree/v5.39.1) (2024-04-02) **Feature - add new response fields for LIST and GET brand** - Added new response params `decline_reasons` for LIST / GET Brand APIs From f296f5dfcc823f47a96b9504b9894cef032670f1 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Tue, 2 Apr 2024 20:28:12 +0530 Subject: [PATCH 4/5] changig field name of decline_reason to declined_reasons --- CHANGELOG.md | 4 ++-- src/main/java/com/plivo/api/models/brand/Brand.java | 8 ++++---- .../java/com/plivo/api/models/brand/BrandResponse.java | 8 ++++---- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3eeca77f..17f571f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,9 @@ # Change Log -## [5.39.1](https://github.com/plivo/plivo-java/tree/v5.39.1) (2024-04-02) +## [5.39.1](https://github.com/plivo/plivo-java/tree/v5.39.1) (2024-04-04) **Feature - add new response fields for LIST and GET brand** -- Added new response params `decline_reasons` for LIST / GET Brand APIs +- Added new response params `declined_reasons` for LIST / GET Brand APIs ## [5.39.0](https://github.com/plivo/plivo-java/tree/v5.39.0) (2024-03-13) **Feature - Import Campaign API** diff --git a/src/main/java/com/plivo/api/models/brand/Brand.java b/src/main/java/com/plivo/api/models/brand/Brand.java index ab9e58a4..651d4dc9 100644 --- a/src/main/java/com/plivo/api/models/brand/Brand.java +++ b/src/main/java/com/plivo/api/models/brand/Brand.java @@ -18,7 +18,7 @@ public class Brand extends BaseResource { private AuthorizedContact authorizedContact; private BrandResponse brand; private String createdAt; - private List declineReasons; + private List declinedReasons; public static BrandCreator creator(String brandAlias,String profileUUID,String brandType,Boolean secondaryVetting,String url,String method) { return new BrandCreator(brandAlias,profileUUID,brandType,secondaryVetting,url,method); @@ -121,10 +121,10 @@ public String getCreatedAt() { } /** - * @return TCRErrorDetail[] return the getDeclineReasons + * @return TCRErrorDetail[] return the getDeclinedReasons */ - public List getDeclineReasons() { - return declineReasons; + public List getDeclinedReasons() { + return declinedReasons; } public BrandResponse getBrand() { diff --git a/src/main/java/com/plivo/api/models/brand/BrandResponse.java b/src/main/java/com/plivo/api/models/brand/BrandResponse.java index 531f466d..cb6e23c7 100644 --- a/src/main/java/com/plivo/api/models/brand/BrandResponse.java +++ b/src/main/java/com/plivo/api/models/brand/BrandResponse.java @@ -17,7 +17,7 @@ public class BrandResponse extends BaseResource { private Address address; private String createdAt; private AuthorizedContact authorizedContact; - private List declineReasons; + private List declinedReasons; /** * @return String return the getBrandID @@ -93,10 +93,10 @@ public AuthorizedContact getAuthorizedContact() { } /** - * @return TCRErrorDetail[] return the getDeclineReasons + * @return TCRErrorDetail[] return the getDeclinedReasons */ - public List getDeclineReasons() { - return declineReasons; + public List getDeclinedReasons() { + return declinedReasons; } @Override From cfc935dc0041bcdf2d6f48f1953eaddf1088be9a Mon Sep 17 00:00:00 2001 From: renoldthomas-plivo Date: Thu, 18 Apr 2024 13:47:47 +0530 Subject: [PATCH 5/5] updated version --- README.md | 4 ++-- pom.properties | 2 +- pom.xml | 2 +- src/main/resources/com/plivo/api/version.txt | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index b6d24ee0..beba9baa 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.39.0/plivo-java-5.39.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.39.1/plivo-java-5.39.1.jar). If you are using Maven, use the following XML to include the Plivo SDK as a dependency. @@ -18,7 +18,7 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe com.plivo plivo-java - 5.39.0 + 5.39.1 ``` diff --git a/pom.properties b/pom.properties index 127683b8..bbac2b61 100644 --- a/pom.properties +++ b/pom.properties @@ -1,6 +1,6 @@ # Written manually. -version=5.39.0 +version=5.39.1 groupId=com.plivo artifactId=plivo-java diff --git a/pom.xml b/pom.xml index 01283bcf..88235763 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ 4.0.0 com.plivo plivo-java - 5.39.0 + 5.39.1 plivo-java A Java SDK to make voice calls & send SMS using Plivo and to generate Plivo XML diff --git a/src/main/resources/com/plivo/api/version.txt b/src/main/resources/com/plivo/api/version.txt index 132ee7b4..d47ce0c7 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1 @@ -5.39.0 \ No newline at end of file +5.39.1 \ No newline at end of file