diff --git a/CHANGELOG.md b/CHANGELOG.md index 64a102ca..e56492d9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Change Log +## [5.42.1](https://github.com/plivo/plivo-dotnet/tree/v5.42.1) (2023-12-19) +**Feature - added param in speak api** +- Added new field `type` for POST Speak APIs + +## [5.42.0](https://github.com/plivo/plivo-dotnet/tree/v5.42.0) (2023-12-14) +**Feature - added two fields vertical and campaign_alias** +- Added response fields `vertical and campaign_alias`for LIST / GET Campaign APIs + +## [5.41.1](https://github.com/plivo/plivo-dotnet/tree/v5.41.1) (2023-12-13) +**Support from_number and to_number filters for List Message** +- Supporting from_number and to_number params for List Message filtering + ## [5.41.0](https://github.com/plivo/plivo-dotnet/tree/v5.41.0) (2023-11-29) **Feature - new response field error_code and error_reason** - Added new response field `error_code and error_reason`for LIST / GET Campaign APIs diff --git a/README.md b/README.md index 8dff308d..c10efc49 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.41.0 +PM> Install-Package Plivo -Version 5.42.1 ``` You can also use the .NET CLI to install this package as follows ``` -> dotnet add package Plivo --version 5.41.0 +> dotnet add package Plivo --version 5.42.1 ``` ## Getting started diff --git a/src/Plivo/Plivo.csproj b/src/Plivo/Plivo.csproj index 7e1b3aad..b0c6fc73 100644 --- a/src/Plivo/Plivo.csproj +++ b/src/Plivo/Plivo.csproj @@ -1,7 +1,7 @@ netstandard2.0;netstandard1.3 - 5.41.0 + 5.42.1 Plivo SDKs Team Plivo Inc. diff --git a/src/Plivo/Plivo.nuspec b/src/Plivo/Plivo.nuspec index 9fd23f3d..c173fcf3 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.41.0 + 5.42.1 Plivo Plivo SDKs Team Plivo, Inc. @@ -12,6 +12,8 @@ http://github.com/plivo/plivo-dotnet false + * 5.42.0 Added Params `vertical`, `campaign_alias` for GET and LIST Campaigns. + * 5.41.1 Support Params `from_number` and `to_number` for LIST Message. * 5.41.0 Added New Params `error_code`, `error_reason` for GET and LIST Campaign. * 5.40.0 Added New Params `registration_status`. * 5.39.0 API support for verifying, updating, getting and deleting caller IDs. diff --git a/src/Plivo/Resource/Call/Call.cs b/src/Plivo/Resource/Call/Call.cs index 81854e7c..6981cc70 100755 --- a/src/Plivo/Resource/Call/Call.cs +++ b/src/Plivo/Resource/Call/Call.cs @@ -275,14 +275,15 @@ public DeleteResponse StopRecording(string URL = null) /// Legs. /// Loop. /// Mix. + /// Type. public UpdateResponse StartSpeaking( string text, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null) + bool? mix = null, string type = null) { return ((CallInterface)Interface) .StartSpeaking( - Id, text, voice, language, legs, loop, mix); + Id, text, voice, language, legs, loop, mix, type); } /// /// Asynchronously starts the speaking. @@ -294,16 +295,17 @@ public DeleteResponse StopRecording(string URL = null) /// Legs. /// Loop. /// Mix. + /// Type. /// Callback URL. /// Callback method. public async Task StartSpeakingAsync( string text, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null, string callbackUrl = null, string callbackMethod = null) + bool? mix = null, string type = null, string callbackUrl = null, string callbackMethod = null) { return await ((CallInterface)Interface) .StartSpeakingAsync( - Id, text, voice, language, legs, loop, mix, callbackUrl, callbackMethod); + Id, text, voice, language, legs, loop, mix, type, callbackUrl, callbackMethod); } #endregion diff --git a/src/Plivo/Resource/Call/CallInterface.cs b/src/Plivo/Resource/Call/CallInterface.cs index 40eb3772..f3921f6d 100755 --- a/src/Plivo/Resource/Call/CallInterface.cs +++ b/src/Plivo/Resource/Call/CallInterface.cs @@ -1047,10 +1047,11 @@ public async Task GetAsync(string callUuid = null, string callbac /// Legs. /// Loop. /// Mix. + /// Type. public UpdateResponse StartSpeaking ( string callUuid = null, string text = null, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null) { + bool? mix = null, string type = null) { MpcUtils.ValidParamString("callUuid",callUuid,true); var mandatoryParams = new List { "text" }; bool isVoiceRequest = true; @@ -1063,6 +1064,7 @@ public async Task GetAsync(string callUuid = null, string callbac legs, loop, mix, + type, isVoiceRequest }); @@ -1083,12 +1085,13 @@ public async Task GetAsync(string callUuid = null, string callbac /// Legs. /// Loop. /// Mix. + /// Type. /// Callback URL. /// Callback method. public async Task StartSpeakingAsync ( string callUuid = null, string text = null, string voice = null, string language = null, string legs = null, bool? loop = null, - bool? mix = null, string callbackUrl = null, string callbackMethod = null) { + bool? mix = null, string type = null, string callbackUrl = null, string callbackMethod = null) { MpcUtils.ValidParamString("callUuid",callUuid,true); var mandatoryParams = new List { "text" }; bool isVoiceRequest = true; @@ -1101,6 +1104,7 @@ public async Task GetAsync(string callUuid = null, string callbac legs, loop, mix, + type, callbackUrl, callbackMethod, isVoiceRequest diff --git a/src/Plivo/Resource/Campaign/Campaign.cs b/src/Plivo/Resource/Campaign/Campaign.cs index bf71973e..f2689901 100644 --- a/src/Plivo/Resource/Campaign/Campaign.cs +++ b/src/Plivo/Resource/Campaign/Campaign.cs @@ -112,6 +112,12 @@ public class CampaignResponse [JsonProperty("error_reason")] public string ErrorReason { get; set; } + + [JsonProperty("vertical")] + public string Vertical { get; set; } + + [JsonProperty("campaign_alias")] + public string CampaignAlias { get; set; } } [JsonObject(MemberSerialization.OptIn)] @@ -231,6 +237,12 @@ public class ListCampaigns: Resource [JsonProperty("error_reason")] public string ErrorReason { get; set; } + [JsonProperty("vertical")] + public string Vertical { get; set; } + + [JsonProperty("campaign_alias")] + public string CampaignAlias { get; set; } + public override string ToString() { return JsonConvert.SerializeObject(this, Formatting.Indented); diff --git a/src/Plivo/Resource/Message/MessageInterface.cs b/src/Plivo/Resource/Message/MessageInterface.cs index f6d68a54..e0b8d333 100755 --- a/src/Plivo/Resource/Message/MessageInterface.cs +++ b/src/Plivo/Resource/Message/MessageInterface.cs @@ -580,6 +580,8 @@ public async Task> ListMediaAsync(string messageUuid) /// Subaccount. /// Limit. /// Offset. + /// FromNumber. + /// ToNumber. /// MessageState. /// MessageType. /// MessageDirection. @@ -599,6 +601,8 @@ public async Task> ListMediaAsync(string messageUuid) string subaccount = null, uint? limit = null, uint? offset = null, + string from_number = null, + string to_number = null, string message_state = null, string message_type = null, string message_direction = null, @@ -628,6 +632,8 @@ public async Task> ListMediaAsync(string messageUuid) subaccount, limit, offset, + from_number, + to_number, message_state, message_type, message_direction, @@ -661,6 +667,8 @@ public async Task> ListMediaAsync(string messageUuid) /// Subaccount. /// Limit. /// Offset. + /// FromNumber. + /// ToNumber. /// MessageState. /// MessageType. /// MessageDirection. @@ -680,6 +688,8 @@ public async Task> ListMediaAsync(string messageUuid) string subaccount = null, uint? limit = null, uint? offset = null, + string from_number = null, + string to_number = null, string message_state = null, string message_type = null, string message_direction = null, @@ -709,6 +719,8 @@ public async Task> ListMediaAsync(string messageUuid) subaccount, limit, offset, + from_number, + to_number, message_state, message_type, message_direction, diff --git a/src/Plivo/Version.cs b/src/Plivo/Version.cs index aa5165c7..b510ef13 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.41.0"; + public const string SdkVersion = "5.42.1"; /// /// Plivo API version /// diff --git a/tests_netcore/Plivo.NetCore.Test/Mocks/campaignGetResponse.json b/tests_netcore/Plivo.NetCore.Test/Mocks/campaignGetResponse.json index 7bf6ccb1..2b037add 100644 --- a/tests_netcore/Plivo.NetCore.Test/Mocks/campaignGetResponse.json +++ b/tests_netcore/Plivo.NetCore.Test/Mocks/campaignGetResponse.json @@ -36,6 +36,8 @@ }, "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" } } \ No newline at end of file diff --git a/tests_netcore/Plivo.NetCore.Test/Mocks/campaignListResponse.json b/tests_netcore/Plivo.NetCore.Test/Mocks/campaignListResponse.json index 66ffcd19..cdac905c 100644 --- a/tests_netcore/Plivo.NetCore.Test/Mocks/campaignListResponse.json +++ b/tests_netcore/Plivo.NetCore.Test/Mocks/campaignListResponse.json @@ -33,7 +33,9 @@ "usecase": "MIXED", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BHYYNCK", @@ -59,7 +61,9 @@ "usecase": "2FA", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BHYYNCK", @@ -80,7 +84,9 @@ "usecase": "MIXED", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" }, { "brand_id": "BRPXS6E", @@ -99,7 +105,9 @@ "usecase": "ACCOUNT_NOTIFICATION", "campaign_source": "plivo", "error_code": "1001", - "error_reason": "The campaign content falls under a prohibited content category." + "error_reason": "The campaign content falls under a prohibited content category.", + "vertical":"ENTERTAINMENT", + "campaign_alias":"testing" } ] } \ No newline at end of file diff --git a/version.json b/version.json index bba672aa..722d8639 100644 --- a/version.json +++ b/version.json @@ -1,5 +1,5 @@ { - "version": "5.41.0", + "version": "5.42.1", "publicReleaseRefSpec": [ "^refs/heads/master$", "^refs/heads/v\\d+(?:\\.\\d+)?$"