diff --git a/CHANGELOG.md b/CHANGELOG.md index 815e86af..dfe923aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log + +## [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** - Addressed issue with profile creation for subaccount. diff --git a/README.md b/README.md index f5591556..6b8b9c51 100644 --- a/README.md +++ b/README.md @@ -12,13 +12,13 @@ You can install this SDK either by referencing the .dll file or using NuGet. Use the following line to install the latest SDK using the NuGet CLI. ``` -PM> Install-Package Plivo -Version 5.43.1 +PM> Install-Package Plivo -Version 5.43.2 ``` 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 diff --git a/src/Plivo/Plivo.csproj b/src/Plivo/Plivo.csproj index 01949959..b583653c 100644 --- a/src/Plivo/Plivo.csproj +++ b/src/Plivo/Plivo.csproj @@ -1,7 +1,7 @@ netstandard2.0;netstandard1.3 - 5.43.1 + 5.43.2 Plivo SDKs Team Plivo Inc. diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index bc3e0d6f..d8e91897 100644 --- a/src/Plivo/Plivo.nuspec +++ b/src/Plivo/Plivo.nuspec @@ -4,7 +4,7 @@ A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML Plivo - 5.43.1 + 5.43.2 Plivo Plivo SDKs Team Plivo, Inc. @@ -12,6 +12,7 @@ http://github.com/plivo/plivo-dotnet false + * 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. diff --git a/src/Plivo/Resource/Brand/Brand.cs b/src/Plivo/Resource/Brand/Brand.cs index 189713b8..ddbff614 100644 --- a/src/Plivo/Resource/Brand/Brand.cs +++ b/src/Plivo/Resource/Brand/Brand.cs @@ -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 { @@ -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() { diff --git a/src/Plivo/Version.cs b/src/Plivo/Version.cs index 329dbe64..5c2cd09b 100644 --- a/src/Plivo/Version.cs +++ b/src/Plivo/Version.cs @@ -10,7 +10,7 @@ public class Version /// /// DotNet SDK version /// - public const string SdkVersion = "5.43.1"; + public const string SdkVersion = "5.43.2"; /// /// Plivo API version /// diff --git a/version.json b/version.json index a63014fb..88071a9e 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "5.43.1", + "version": "5.43.2", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$"