Skip to content

Commit

Permalink
Merge pull request #255 from plivo/SMS-6066-message-sdks
Browse files Browse the repository at this point in the history
SMS-6066 - Carrier details in message object
  • Loading branch information
renoldthomas-plivo committed Aug 25, 2023
2 parents 02f3807 + 831c3ec commit 237cffa
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

## [5.33.0](https://github.com/plivo/plivo-dotnet/tree/v5.33.0) (2023-08-25)
**Feature - Added New Param 'carrier_fees', 'carrier_fees_rate', 'destination_network' in Get Message and List Message APIs**
- Added new params on message get and list response

## [v5.32.0](https://github.com/plivo/plivo-dotnet/tree/v5.32.0) (2023-08-03)
**Feature - DLT parameters**
- Added new params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory` to the [send message API](https://www.plivo.com/docs/sms/api/message/send-a-message/)
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.32.0
PM> Install-Package Plivo -Version 5.33.0
```

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

```
> dotnet add package Plivo --version 5.32.0
> dotnet add package Plivo --version 5.33.0
```

## 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.32.0</ReleaseVersion>
<ReleaseVersion>5.33.0</ReleaseVersion>
<Version />
<Authors>Plivo SDKs Team</Authors>
<Owners>Plivo Inc.</Owners>
Expand Down
3 changes: 2 additions & 1 deletion src/Plivo/Plivo.nuspec
Original file line number Diff line number Diff line change
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.32.0</version>
<version>5.33.0</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.33.0 Added New Params `DestinationNetwork`, `CarrierFeesRate`, `CarrierFees`.
* 5.32.0 Added New Params `DLTEntityID`, `DLTTemplateID`, `DLTTemplateCategory`.
* 5.31.0 Added functionality to start, stop and fetch audio streams
* 5.30.0 Added New Param 'cnam_lookup' in to the response of the [list all numbers API], [list single number API]
Expand Down
23 changes: 23 additions & 0 deletions src/Plivo/Resource/Message/Message.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,25 @@ public class Message : Resource
/// <value>The destination_country_iso2.</value>
public string DestinationCountryIso2 { get; set; }

/// <summary>
/// Gets or sets the destination_network.
/// </summary>
/// <value>The destination_network.</value>
public string DestinationNetwork { get; set; }

/// <summary>
/// Gets or sets the carrier_fees_rate.
/// </summary>
/// <value>The carrier_fees_rate.</value>
public string CarrierFeesRate { get; set; }


/// <summary>
/// Gets or sets the carrier_fees.
/// </summary>
/// <value>The carrier_fees.</value>
public string CarrierFees { get; set; }

/// <summary>
/// Gets or sets the requester ip.
/// </summary>
Expand Down Expand Up @@ -163,6 +182,10 @@ public override string ToString()
"TendlcRegistrationStatus: "+ TendlcRegistrationStatus + "\n" +
"RequesterIP: " + RequesterIp + "\n" +
"IsDomestic: " + IsDomestic + "\n" +
"DestinationNetwork: " + DestinationNetwork + "\n" +
"CarrierFeesRate: " + CarrierFeesRate + "\n" +
"CarrierFees: " + CarrierFees + "\n" +
"ReplacedSender: " + ReplacedSender + "\n";
"ReplacedSender: " + ReplacedSender + "\n" +
"DLTEntityID: " + DltEntityId + "\n" +
"DLTTemplateID: " + DltTemplateId + "\n" +
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.32.0";
public const string SdkVersion = "5.33.0";
/// <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.32.0",
"version": "5.33.0",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit 237cffa

Please sign in to comment.