Skip to content

Commit

Permalink
Merge branch 'master' into SMS-6784
Browse files Browse the repository at this point in the history
  • Loading branch information
saurabhnewatiya-plivo authored Apr 18, 2024
2 parents 2493a5c + 98d7768 commit 86d551f
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 13 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
8 changes: 8 additions & 0 deletions src/main/java/com/plivo/api/models/brand/Brand.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public class Brand extends BaseResource {
private AuthorizedContact authorizedContact;
private BrandResponse brand;
private String createdAt;
private List<TCRErrorDetail> 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);
Expand Down Expand Up @@ -119,6 +120,13 @@ public String getCreatedAt() {
return createdAt;
}

/**
* @return TCRErrorDetail[] return the getDeclinedReasons
*/
public List<TCRErrorDetail> getDeclinedReasons() {
return declinedReasons;
}

public BrandResponse getBrand() {
return brand;
}
Expand Down
28 changes: 18 additions & 10 deletions src/main/java/com/plivo/api/models/brand/BrandResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<TCRErrorDetail> declinedReasons;

/**
* @return String return the getBrandID
Expand Down Expand Up @@ -91,6 +92,13 @@ public AuthorizedContact getAuthorizedContact() {
return authorizedContact;
}

/**
* @return TCRErrorDetail[] return the getDeclinedReasons
*/
public List<TCRErrorDetail> getDeclinedReasons() {
return declinedReasons;
}

@Override
public String getId() {
return this.brandID;
Expand Down
21 changes: 21 additions & 0 deletions src/main/java/com/plivo/api/models/brand/TCRErrorDetail.java
Original file line number Diff line number Diff line change
@@ -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;
}
}
3 changes: 2 additions & 1 deletion src/main/resources/com/plivo/api/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
5.40.0
5.40.0

0 comments on commit 86d551f

Please sign in to comment.