diff --git a/CHANGELOG.md b/CHANGELOG.md index b3646f44..0eda40a3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ # Change Log +## [5.49.2](https://github.com/plivo/plivo-dotnet/tree/v5.49.2) (2024-10-23) +**Feature - FraudCheck param in Create, Get and List Session** +- Support for the `fraud_check` parameter in sms verify session request +- Added support for `fraud_check` in GET and LIST verify session + ## [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 diff --git a/Makefile b/Makefile index 3e009415..bad18839 100644 --- a/Makefile +++ b/Makefile @@ -10,4 +10,8 @@ run: start: docker-compose up --build --remove-orphans --detach - docker attach $(shell docker-compose ps -q dotnetSDK) \ No newline at end of file + # Wait for the container to be running before attaching + @while [ -z "$$(docker-compose ps -q dotnetSDK)" ]; do \ + sleep 1; \ + done + docker attach $$(docker-compose ps -q dotnetSDK) \ No newline at end of file diff --git a/README.md b/README.md index 2ec1e335..111c945f 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.1 +PM> Install-Package Plivo -Version 5.49.2 ``` You can also use the .NET CLI to install this package as follows ``` -> dotnet add package Plivo --version 5.49.1 +> dotnet add package Plivo --version 5.49.2 ``` ## Getting started diff --git a/src/Plivo/Plivo.csproj b/src/Plivo/Plivo.csproj index 039d5d87..d0dc9437 100644 --- a/src/Plivo/Plivo.csproj +++ b/src/Plivo/Plivo.csproj @@ -1,7 +1,7 @@ netstandard2.0;netstandard1.3 - 5.49.1 + 5.49.2 Plivo SDKs Team Plivo Inc. diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index 75565d68..583e9c3a 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.1 + 5.49.2 Plivo Plivo SDKs Team Plivo, Inc. diff --git a/src/Plivo/Resource/VerifySession/VerifySession.cs b/src/Plivo/Resource/VerifySession/VerifySession.cs index 626cc28d..e872b288 100755 --- a/src/Plivo/Resource/VerifySession/VerifySession.cs +++ b/src/Plivo/Resource/VerifySession/VerifySession.cs @@ -39,6 +39,8 @@ public class AttemptDetail { public int CodeLength {get; set;} [JsonProperty("dtmf")] public int? Dtmf {get; set;} + [JsonProperty("fraud_check")] + public string FraudCheck {get; set;} } [JsonObject(MemberSerialization.OptIn)] diff --git a/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs b/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs index b23b13f4..6a8a1c91 100755 --- a/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs +++ b/src/Plivo/Resource/VerifySession/VerifySessionInterface.cs @@ -37,10 +37,11 @@ public VerifySessionInterface(HttpClient client) : base(client) /// AppHash. /// CodeLength. /// dtmf. + /// FraudCheck. 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, int? dtmf = null) + string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0, int? dtmf = null, string fraud_check = null) { Dictionary data = null; var mandatoryParams = new List { "recipient" }; @@ -57,7 +58,8 @@ public VerifySessionCreateResponse Create( brand_name, app_hash, code_length, - dtmf + dtmf, + fraud_check }); return ExecuteWithExceptionUnwrap(() => @@ -81,11 +83,12 @@ public VerifySessionCreateResponse Create( /// BrandName. /// AppHash. /// CodeLength. - ///dtmf. + /// dtmf. + /// FraudCheck. 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, int? dtmf = null) + string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0, int? dtmf = null, string fraud_check = null) { Dictionary data = null; var mandatoryParams = new List { "recipient" }; @@ -102,7 +105,8 @@ public async Task CreateAsync( brand_name, app_hash, code_length, - dtmf + dtmf, + fraud_check }); var result = await Client.Update(Uri, data); diff --git a/src/Plivo/Version.cs b/src/Plivo/Version.cs index 4db4a015..f5039a24 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.1"; + public const string SdkVersion = "5.49.2"; /// /// Plivo API version /// diff --git a/version.json b/version.json index 2d357195..62216821 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "5.49.1", + "version": "5.49.2", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$"