diff --git a/CHANGELOG.md b/CHANGELOG.md index 96e14f4a..17f571f2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,10 +1,14 @@ # Change Log + +## [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 `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** - 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/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/java/com/plivo/api/models/brand/Brand.java b/src/main/java/com/plivo/api/models/brand/Brand.java index 7042cac8..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,6 +18,7 @@ public class Brand extends BaseResource { private AuthorizedContact authorizedContact; private BrandResponse brand; private String createdAt; + 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); @@ -119,6 +120,13 @@ public String getCreatedAt() { return createdAt; } + /** + * @return TCRErrorDetail[] return the getDeclinedReasons + */ + public List getDeclinedReasons() { + return declinedReasons; + } + 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..cb6e23c7 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 declinedReasons; /** * @return String return the getBrandID @@ -91,6 +92,13 @@ public AuthorizedContact getAuthorizedContact() { return authorizedContact; } + /** + * @return TCRErrorDetail[] return the getDeclinedReasons + */ + public List getDeclinedReasons() { + return declinedReasons; + } + @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 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