Skip to content

Commit

Permalink
Merge pull request #274 from plivo/SMS-6627
Browse files Browse the repository at this point in the history
SMS-6627 Adding decline reasons in list and get brand APIs
  • Loading branch information
renoldthomas-plivo committed Apr 18, 2024
2 parents 7b749a1 + 2c1913f commit f5790d8
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 6 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
@@ -1,4 +1,9 @@
# Change Log

## [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**
- Addressed issue with profile creation for subaccount.
Expand Down
4 changes: 2 additions & 2 deletions README.md
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.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
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Plivo.csproj
@@ -1,7 +1,7 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFrameworks>netstandard2.0;netstandard1.3</TargetFrameworks>
<ReleaseVersion>5.43.1</ReleaseVersion>
<ReleaseVersion>5.43.2</ReleaseVersion>
<Version />
<Authors>Plivo SDKs Team</Authors>
<Owners>Plivo Inc.</Owners>
Expand Down
3 changes: 2 additions & 1 deletion src/Plivo/Plivo.nuspec
Expand Up @@ -4,14 +4,15 @@
<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.43.1</version>
<version>5.43.2</version>
<title>Plivo</title>
<authors>Plivo SDKs Team</authors>
<owners>Plivo, Inc.</owners>
<licenseUrl>https://github.com/plivo/plivo-dotnet/blob/master/LICENSE.txt</licenseUrl>
<projectUrl>http://github.com/plivo/plivo-dotnet</projectUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<releaseNotes>
* 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.
Expand Down
13 changes: 13 additions & 0 deletions src/Plivo/Resource/Brand/Brand.cs
Expand Up @@ -47,9 +47,19 @@ public class BrandResponse
[JsonProperty("address")]
public Address Address { get; set; }

[JsonProperty("declined_reasons")]
public TCRErrorDetail[] DeclinedReasons { 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 {
Expand Down Expand Up @@ -167,6 +177,9 @@ public class ListBrands: Resource

[JsonProperty("address")]
public Address Address { get; set; }

[JsonProperty("declined_reasons")]
public TCRErrorDetail[] DeclinedReasons { get; set; }

public override string ToString()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Plivo/Version.cs
Expand Up @@ -10,7 +10,7 @@ public class Version
/// <summary>
/// DotNet SDK version
/// </summary>
public const string SdkVersion = "5.43.1";
public const string SdkVersion = "5.43.2";
/// <summary>
/// Plivo API version
/// </summary>
Expand Down
2 changes: 1 addition & 1 deletion version.json
@@ -1,5 +1,5 @@
{
"version": "5.43.1",
"version": "5.43.2",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit f5790d8

Please sign in to comment.