Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

verift dtmf change #290

Merged
merged 2 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
# Change Log
## [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
-
## [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
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Plivo.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard1.3</TargetFrameworks>
<ReleaseVersion>5.49.0</ReleaseVersion>
<ReleaseVersion>5.49.1</ReleaseVersion>
<Version />
<Authors>Plivo SDKs Team</Authors>
<Owners>Plivo Inc.</Owners>
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Plivo.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<summary>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</summary>
<description>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</description>
<id>Plivo</id>
<version>5.49.0</version>
<version>5.49.1</version>
<title>Plivo</title>
<authors>Plivo SDKs Team</authors>
<owners>Plivo, Inc.</owners>
Expand Down
2 changes: 2 additions & 0 deletions src/Plivo/Resource/VerifySession/VerifySession.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down
12 changes: 8 additions & 4 deletions src/Plivo/Resource/VerifySession/VerifySessionInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,11 @@ public VerifySessionInterface(HttpClient client) : base(client)
/// <param name="brand_name">BrandName.</param>
/// <param name="app_hash">AppHash.</param>
/// <param name="code_length">CodeLength.</param>
/// <param name="dtmf">dtmf.</param>

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<string, object> data = null;
var mandatoryParams = new List<string> { "recipient" };
Expand All @@ -55,7 +56,8 @@ public VerifySessionCreateResponse Create(
locale,
brand_name,
app_hash,
code_length
code_length,
dtmf
});

return ExecuteWithExceptionUnwrap(() =>
Expand All @@ -79,10 +81,11 @@ public VerifySessionCreateResponse Create(
/// <param name="brand_name">BrandName.</param>
/// <param name="app_hash">AppHash.</param>
/// <param name="code_length">CodeLength.</param>
///<param name="dtmf">dtmf.</param>

public async Task<VerifySessionCreateResponse> 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<string, object> data = null;
var mandatoryParams = new List<string> { "recipient" };
Expand All @@ -98,7 +101,8 @@ public async Task<VerifySessionCreateResponse> CreateAsync(
locale,
brand_name,
app_hash,
code_length
code_length,
dtmf
});

var result = await Client.Update<VerifySessionCreateResponse>(Uri, data);
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ public class Version
/// <summary>
/// DotNet SDK version
/// </summary>
public const string SdkVersion = "5.49.0";
public const string SdkVersion = "5.49.1";
/// <summary>
/// Plivo API version
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "5.49.0",
"version": "5.49.1",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down
Loading