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 committed Apr 22, 2024
2 parents 5cc26af + f5790d8 commit 97f31c0
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 5 deletions.
10 changes: 7 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# Change Log

## [5.44.0](https://github.com/plivo/plivo-dotnet/tree/v5.44.0) (2024-04-12)
**Feature - Support for dynamic payload in whatsapp templates**
- Added new params `payload` in templates to support dynamic payload in templates
## [5.44.0](https://github.com/plivo/plivo-dotnet/tree/v5.44.0) (2024-04-22)
**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.43.2](https://github.com/plivo/plivo-dotnet/tree/v5.43.2) (2024-04-4)
**Feature - new response field declined_reasons field**
- Added new response field `declined_reasons` for LIST / GET Brand APIs

## [5.43.1](https://github.com/plivo/plivo-dotnet/tree/v5.43.1) (2024-03-26)
**Bug Fix: Create profile API**
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ PM> Install-Package Plivo -Version 5.44.0
You can also use the .NET CLI to install this package as follows

```
> dotnet add package Plivo --version 5.43.
> dotnet add package Plivo --version 5.43.2
```

## Getting started
Expand Down
3 changes: 2 additions & 1 deletion src/Plivo/Plivo.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
<projectUrl>http://github.com/plivo/plivo-dotnet</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>
* 5.44.0 Support for dynamic payload in whatsapp templates
* 5.44.0 Added new param `payload` in templates to support dynamic payload in templates
* 5.43.2 Added New Param `declined_reasons` for GET and LIST Brand.
* 5.43.1 Bug fix on Create Profile API
* 5.43.0 Added Import Campaign API
* 5.42.0 Added Params `vertical`, `campaign_alias` for GET and LIST Campaigns.
Expand Down
13 changes: 13 additions & 0 deletions src/Plivo/Resource/Brand/Brand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,19 @@ public class BrandResponse
[JsonProperty("address")]
public Address Address { get; set; }

[JsonProperty("declined_reasons")]
public TCRErrorDetail[] DeclinedReasons { get; set; }

[JsonProperty("created_at")]
public string CreatedAt { get; set; }

}

public class TCRErrorDetail {
[JsonProperty("code")]
public string Code { get; set; }
[JsonProperty("message")]
public string Message { get; set; }
}

public class Address {
Expand Down Expand Up @@ -167,6 +177,9 @@ public class ListBrands: Resource

[JsonProperty("address")]
public Address Address { get; set; }

[JsonProperty("declined_reasons")]
public TCRErrorDetail[] DeclinedReasons { get; set; }

public override string ToString()
{
Expand Down

0 comments on commit 97f31c0

Please sign in to comment.