diff --git a/CHANGELOG.md b/CHANGELOG.md index 58c18ebc..1bd21fda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,14 +1,19 @@ # Change Log + ## [5.40.0](https://github.com/plivo/plivo-java/tree/v5.40.0) (2023-04-18) **Feature - Support for dynamic button components when sending a templated WhatsApp message** - Added new param `payload` in templates to support dynamic payload in templates + +## [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 c91e40ca..28039917 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ The Plivo Java SDK makes it simpler to integrate communications into your Java a 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.40.0/plivo-java-5.40.0.jar). + If you are using Maven, use the following XML to include the Plivo SDK as a dependency. ```xml @@ -24,7 +25,7 @@ If you are using Maven, use the following XML to include the Plivo SDK as a depe If you are using Gradle, use the following line in your dependencies. ``` -compile 'com.plivo:plivo-java:5.40.0' +compile 'com.plivo:plivo-java:' ``` ### To Install Beta release 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 3f2ef519..cc1eb5d7 100644 --- a/src/main/resources/com/plivo/api/version.txt +++ b/src/main/resources/com/plivo/api/version.txt @@ -1 +1,2 @@ -5.40.0 \ No newline at end of file +5.40.0 +