Skip to content

Commit d70d295

Browse files
authored
Merge pull request #291 from plivo/SMS-7107
SMS-7107: Add fraud_check param support
2 parents f4dcc5c + 59dbcd8 commit d70d295

File tree

9 files changed

+27
-12
lines changed

9 files changed

+27
-12
lines changed

Diff for: CHANGELOG.md

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
# Change Log
2+
## [5.49.2](https://github.com/plivo/plivo-dotnet/tree/v5.49.2) (2024-10-23)
3+
**Feature - FraudCheck param in Create, Get and List Session**
4+
- Support for the `fraud_check` parameter in sms verify session request
5+
- Added support for `fraud_check` in GET and LIST verify session
6+
27
## [5.49.1](https://github.com/plivo/plivo-dotnet/tree/v5.49.1) (2024-10-10)
38
**Feature - Dtmf param in Create, Get and List Session**
49
- Support for the `dtmf` parameter in voice verify session request

Diff for: Makefile

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,8 @@ run:
1010

1111
start:
1212
docker-compose up --build --remove-orphans --detach
13-
docker attach $(shell docker-compose ps -q dotnetSDK)
13+
# Wait for the container to be running before attaching
14+
@while [ -z "$$(docker-compose ps -q dotnetSDK)" ]; do \
15+
sleep 1; \
16+
done
17+
docker attach $$(docker-compose ps -q dotnetSDK)

Diff for: README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ You can install this SDK either by referencing the .dll file or using NuGet.
1212
Use the following line to install the latest SDK using the NuGet CLI.
1313

1414
```
15-
PM> Install-Package Plivo -Version 5.49.1
15+
PM> Install-Package Plivo -Version 5.49.2
1616
```
1717

1818
You can also use the .NET CLI to install this package as follows
1919

2020
```
21-
> dotnet add package Plivo --version 5.49.1
21+
> dotnet add package Plivo --version 5.49.2
2222
```
2323

2424
## Getting started

Diff for: src/Plivo/Plivo.csproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22
<PropertyGroup>
33
<TargetFrameworks>netstandard2.0;netstandard1.3</TargetFrameworks>
4-
<ReleaseVersion>5.49.1</ReleaseVersion>
4+
<ReleaseVersion>5.49.2</ReleaseVersion>
55
<Version />
66
<Authors>Plivo SDKs Team</Authors>
77
<Owners>Plivo Inc.</Owners>

Diff for: src/Plivo/Plivo.nuspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<summary>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</summary>
55
<description>A .NET SDK to make voice calls and send SMS using Plivo and to generate Plivo XML</description>
66
<id>Plivo</id>
7-
<version>5.49.1</version>
7+
<version>5.49.2</version>
88
<title>Plivo</title>
99
<authors>Plivo SDKs Team</authors>
1010
<owners>Plivo, Inc.</owners>

Diff for: src/Plivo/Resource/VerifySession/VerifySession.cs

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ public class AttemptDetail {
3939
public int CodeLength {get; set;}
4040
[JsonProperty("dtmf")]
4141
public int? Dtmf {get; set;}
42+
[JsonProperty("fraud_check")]
43+
public string FraudCheck {get; set;}
4244
}
4345

4446
[JsonObject(MemberSerialization.OptIn)]

Diff for: src/Plivo/Resource/VerifySession/VerifySessionInterface.cs

+9-5
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,11 @@ public VerifySessionInterface(HttpClient client) : base(client)
3737
/// <param name="app_hash">AppHash.</param>
3838
/// <param name="code_length">CodeLength.</param>
3939
/// <param name="dtmf">dtmf.</param>
40+
/// <param name="fraud_check">FraudCheck.</param>
4041

4142
public VerifySessionCreateResponse Create(
4243
string recipient, string app_uuid = null, string channel = null, string url = null,
43-
string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0, int? dtmf = null)
44+
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)
4445
{
4546
Dictionary<string, object> data = null;
4647
var mandatoryParams = new List<string> { "recipient" };
@@ -57,7 +58,8 @@ public VerifySessionCreateResponse Create(
5758
brand_name,
5859
app_hash,
5960
code_length,
60-
dtmf
61+
dtmf,
62+
fraud_check
6163
});
6264

6365
return ExecuteWithExceptionUnwrap(() =>
@@ -81,11 +83,12 @@ public VerifySessionCreateResponse Create(
8183
/// <param name="brand_name">BrandName.</param>
8284
/// <param name="app_hash">AppHash.</param>
8385
/// <param name="code_length">CodeLength.</param>
84-
///<param name="dtmf">dtmf.</param>
86+
/// <param name="dtmf">dtmf.</param>
87+
/// <param name="fraud_check">FraudCheck.</param>
8588

8689
public async Task<VerifySessionCreateResponse> CreateAsync(
8790
string recipient, string app_uuid = null, string channel = null, string url = null,
88-
string method = null, string locale = null, string brand_name = null, string app_hash = null, int code_length = 0, int? dtmf = null)
91+
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)
8992
{
9093
Dictionary<string, object> data = null;
9194
var mandatoryParams = new List<string> { "recipient" };
@@ -102,7 +105,8 @@ public async Task<VerifySessionCreateResponse> CreateAsync(
102105
brand_name,
103106
app_hash,
104107
code_length,
105-
dtmf
108+
dtmf,
109+
fraud_check
106110
});
107111

108112
var result = await Client.Update<VerifySessionCreateResponse>(Uri, data);

Diff for: src/Plivo/Version.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class Version
1010
/// <summary>
1111
/// DotNet SDK version
1212
/// </summary>
13-
public const string SdkVersion = "5.49.1";
13+
public const string SdkVersion = "5.49.2";
1414
/// <summary>
1515
/// Plivo API version
1616
/// </summary>

Diff for: version.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "5.49.1",
2+
"version": "5.49.2",
33
"publicReleaseRefSpec": [
44
"^refs/heads/master$",
55
"^refs/heads/v\\d+(?:\\.\\d+)?$"

0 commit comments

Comments
 (0)