From 03bf2450a9021374535933c1e53166a6de6ce3c3 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Wed, 9 Oct 2024 07:28:56 +0530 Subject: [PATCH 1/2] verift dtmf change --- CHANGELOG.md | 5 +++++ README.md | 4 ++-- src/Plivo/Plivo.csproj | 2 +- src/Plivo/Plivo.nuspec | 2 +- src/Plivo/Resource/VerifySession/VerifySession.cs | 2 ++ .../Resource/VerifySession/VerifySessionInterface.cs | 12 ++++++++---- src/Plivo/Version.cs | 2 +- version.json | 2 +- 8 files changed, 21 insertions(+), 10 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index cda3feb8..290db58e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## [5.49.1](https://github.com/plivo/plivo-ruby/tree/v5.49.1) (2024-10-10) +**Feature - Dtmf param in Create, Get and List Session** +- Support for the `dtmf` parameter in voice verify session request +- Added support for `dtmf` in GET and LIST verify session +- ## [5.49.0](https://github.com/plivo/plivo-dotnet/tree/v5.49.0) (2024-09-30) **Feature - Adding new param support for Number Masking session with single party ** - Added `create_session_with_single_party`, `virtual_number_cooloff_period` and `force_pin_authentication` attributes in Masking Session diff --git a/README.md b/README.md index c2a4b584..2ec1e335 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.49.0 +PM> Install-Package Plivo -Version 5.49.1 ``` You can also use the .NET CLI to install this package as follows ``` -> dotnet add package Plivo --version 5.49.0 +> dotnet add package Plivo --version 5.49.1 ``` ## Getting started diff --git a/src/Plivo/Plivo.csproj b/src/Plivo/Plivo.csproj index b3f099cc..039d5d87 100644 --- a/src/Plivo/Plivo.csproj +++ b/src/Plivo/Plivo.csproj @@ -1,7 +1,7 @@ netstandard2.0;netstandard1.3 - 5.49.0 + 5.49.1 Plivo SDKs Team Plivo Inc. diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index 57815b2f..75565d68 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.49.0 + 5.49.1 Plivo Plivo SDKs Team Plivo, Inc. diff --git a/src/Plivo/Resource/VerifySession/VerifySession.cs b/src/Plivo/Resource/VerifySession/VerifySession.cs index 522ad739..626cc28d 100755 --- a/src/Plivo/Resource/VerifySession/VerifySession.cs +++ b/src/Plivo/Resource/VerifySession/VerifySession.cs @@ -37,6 +37,8 @@ public class AttemptDetail { public string AppHash {get; set;} [JsonProperty("code_length")] public int CodeLength {get; set;} + [JsonProperty("dtmf")] + public int? Dtmf {get; set;} } [JsonObject(MemberSerialization.OptIn)] diff --git a/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs b/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs index 408e01ce..b23b13f4 100755 --- a/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs +++ b/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs @@ -36,10 +36,11 @@ public VerifySessionInterface(HttpClient client) : base(client) /// BrandName. /// AppHash. /// CodeLength. + /// dtmf. public VerifySessionCreateResponse Create( string recipient, string app_uuid = null, string channel = null, string url = null, - string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0) + string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0, int? dtmf = null) { Dictionary data = null; var mandatoryParams = new List { "recipient" }; @@ -55,7 +56,8 @@ public VerifySessionCreateResponse Create( locale, brand_name, app_hash, - code_length + code_length, + dtmf }); return ExecuteWithExceptionUnwrap(() => @@ -79,10 +81,11 @@ public VerifySessionCreateResponse Create( /// BrandName. /// AppHash. /// CodeLength. + ///dtmf. public async Task CreateAsync( string recipient, string app_uuid = null, string channel = null, string url = null, - string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0) + string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0, int? dtmf = null) { Dictionary data = null; var mandatoryParams = new List { "recipient" }; @@ -98,7 +101,8 @@ public async Task CreateAsync( locale, brand_name, app_hash, - code_length + code_length, + dtmf }); var result = await Client.Update(Uri, data); diff --git a/src/Plivo/Version.cs b/src/Plivo/Version.cs index 8c735034..4db4a015 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.49.0"; + public const string SdkVersion = "5.49.1"; /// /// Plivo API version /// diff --git a/version.json b/version.json index 60d2f66b..2d357195 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "5.49.0", + "version": "5.49.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$" From c6323111f92f44a1210ec4bdf520a2f272517523 Mon Sep 17 00:00:00 2001 From: narayana-plivo Date: Wed, 9 Oct 2024 07:39:05 +0530 Subject: [PATCH 2/2] change log update --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 290db58e..b3646f44 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,5 @@ # Change Log -## [5.49.1](https://github.com/plivo/plivo-ruby/tree/v5.49.1) (2024-10-10) +## [5.49.1](https://github.com/plivo/plivo-dotnet/tree/v5.49.1) (2024-10-10) **Feature - Dtmf param in Create, Get and List Session** - Support for the `dtmf` parameter in voice verify session request - Added support for `dtmf` in GET and LIST verify session