From 2a064c5fb85a7302ec089e3624f372942c0a78f2 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Thu, 28 Mar 2024 16:28:34 +0530 Subject: [PATCH 1/3] SMS-6627 Adding decline reasons in list and get brand APIs --- CHANGELOG.md | 5 +++++ README.md | 4 ++-- src/Plivo/Plivo.csproj | 2 +- src/Plivo/Plivo.nuspec | 3 ++- src/Plivo/Resource/Brand/Brand.cs | 13 +++++++++++++ src/Plivo/Version.cs | 2 +- version.json | 2 +- 7 files changed, 25 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 815e86af..843c2802 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log + +## [5.43.2](https://github.com/plivo/plivo-dotnet/tree/v5.42.4) (2024-04-2) +**Feature - new response field decline_reasons field** +- Added new response field `decline_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..5283b92f 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 `decline_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..ad621814 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("decline_reasons")] + public TCRErrorDetail[] DeclineReasons { 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("decline_reasons")] + public TCRErrorDetail[] DeclineReasons { 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+)?$" From dec3645a0f751003073509a4d1c758698168c3ca Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Wed, 13 Mar 2024 17:46:15 +0530 Subject: [PATCH 2/3] updating version --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 843c2802..a7115cda 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Change Log -## [5.43.2](https://github.com/plivo/plivo-dotnet/tree/v5.42.4) (2024-04-2) +## [5.43.2](https://github.com/plivo/plivo-dotnet/tree/v5.43.2) (2024-04-2) **Feature - new response field decline_reasons field** - Added new response field `decline_reasons` for LIST / GET Brand APIs From 2c1913f6a5b8e5f8daf37ef6805fa238f8db8272 Mon Sep 17 00:00:00 2001 From: Sajal Singhal Date: Tue, 2 Apr 2024 20:32:10 +0530 Subject: [PATCH 3/3] changig field name of decline_reason to declined_reasons --- CHANGELOG.md | 6 +++--- src/Plivo/Plivo.nuspec | 2 +- src/Plivo/Resource/Brand/Brand.cs | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a7115cda..dfe923aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,8 @@ # Change Log -## [5.43.2](https://github.com/plivo/plivo-dotnet/tree/v5.43.2) (2024-04-2) -**Feature - new response field decline_reasons field** -- Added new response field `decline_reasons` for LIST / GET Brand APIs +## [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** diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index 5283b92f..d8e91897 100644 --- a/src/Plivo/Plivo.nuspec +++ b/src/Plivo/Plivo.nuspec @@ -12,7 +12,7 @@ http://github.com/plivo/plivo-dotnet false - * 5.43.2 Added New Param `decline_reasons` for GET and LIST Brand. + * 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 ad621814..ddbff614 100644 --- a/src/Plivo/Resource/Brand/Brand.cs +++ b/src/Plivo/Resource/Brand/Brand.cs @@ -47,8 +47,8 @@ public class BrandResponse [JsonProperty("address")] public Address Address { get; set; } - [JsonProperty("decline_reasons")] - public TCRErrorDetail[] DeclineReasons { get; set; } + [JsonProperty("declined_reasons")] + public TCRErrorDetail[] DeclinedReasons { get; set; } [JsonProperty("created_at")] public string CreatedAt { get; set; } @@ -178,8 +178,8 @@ public class ListBrands: Resource [JsonProperty("address")] public Address Address { get; set; } - [JsonProperty("decline_reasons")] - public TCRErrorDetail[] DeclineReasons { get; set; } + [JsonProperty("declined_reasons")] + public TCRErrorDetail[] DeclinedReasons { get; set; } public override string ToString() {