Skip to content

Commit

Permalink
Merge branch 'master' into SMS-6644
Browse files Browse the repository at this point in the history
  • Loading branch information
Thumpala Vinay Kumar authored and Thumpala Vinay Kumar committed Feb 21, 2024
2 parents 693c47a + 758720b commit 07e0ab2
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 8 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.42.2](https://github.com/plivo/plivo-dotnet/tree/v5.42.2) (2024-01-25)
**Feature - added field in profile apis**
- Added new field `alt_business_id` for POST create Profile, GET List Profiles, GET Profiles SDKs

## [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
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.42.1
PM> Install-Package Plivo -Version 5.42.2
```

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

```
> dotnet add package Plivo --version 5.42.1
> dotnet add package Plivo --version 5.42.2
```

## 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.42.1</ReleaseVersion>
<ReleaseVersion>5.42.2</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.42.1</version>
<version>5.42.2</version>
<title>Plivo</title>
<authors>Plivo SDKs Team</authors>
<owners>Plivo, Inc.</owners>
Expand Down
6 changes: 6 additions & 0 deletions src/Plivo/Resource/Profile/Profile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ public class Profile
[JsonProperty("address")]
public Address Address { get; set; }

[JsonProperty("alt_business_id")]
public string AltBusinessId { get; set; }

[JsonProperty("alt_business_id_type")]
public string AltBusinessIdType { get; set; }

Expand Down Expand Up @@ -148,6 +151,9 @@ public class ListProfiles: Resource
[JsonProperty("address")]
public Address Address { get; set; }

[JsonProperty("alt_business_id")]
public string AltBusinessId { get; set; }

[JsonProperty("alt_business_id_type")]
public string AltBusinessIdType { get; set; }

Expand Down
8 changes: 6 additions & 2 deletions src/Plivo/Resource/Profile/ProfileInterface.cs
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,14 @@ public async Task<ProfileListResponse<ListProfiles>> ListAsync(uint? limit = nul
/// <param name="ein_issuing_country">ein_issuing_country</param>
/// <param name="stock_symbol">stock_symbol</param>
/// <param name="stock_exchange">stock_exchange</param>
/// <param name="alt_business_id">alt_business_id</param>
/// <param name="alt_business_id_type">alt_business_id_type</param>
/// <param name="authorized_contact">authorized_contact</param>
/// <param name="address">address</param>

public ProfileResponse Create(string profile_alias, string plivo_subaccount, string customer_type,
string entity_type, string company_name, string ein, string vertical,
string ein_issuing_country, string stock_symbol, string stock_exchange, string website,string alt_business_id_type, AuthorizedContact authorized_contact, Address address)
string ein_issuing_country, string stock_symbol, string stock_exchange, string website,string alt_business_id, string alt_business_id_type, AuthorizedContact authorized_contact, Address address)
{
var mandatoryParams = new List<string>{"profile_alias"};
Console.WriteLine(entity_type);
Expand All @@ -140,6 +141,7 @@ public ProfileResponse Create(string profile_alias, string plivo_subaccount, st
ein_issuing_country,
stock_symbol,
stock_exchange,
alt_business_id,
alt_business_id_type,
authorized_contact,
address,
Expand Down Expand Up @@ -167,12 +169,13 @@ public ProfileResponse Create(string profile_alias, string plivo_subaccount, st
/// <param name="ein_issuing_country">ein_issuing_country</param>
/// <param name="stock_symbol">stock_symbol</param>
/// <param name="stock_exchange">stock_exchange</param>
/// <param name="alt_business_id">alt_business_id</param>
/// <param name="alt_business_id_type">alt_business_id_type</param>
/// <param name="authorized_contact">authorized_contact</param>
/// <param name="address">address</param>
public async Task<ProfileResponse> CreateAsync(string profile_alias, string plivo_subaccount, string customer_type,
string entity_type, string company_name, string ein, string vertical, string website,
string ein_issuing_country, string stock_symbol, string stock_exchange, string alt_business_id_type, AuthorizedContact authorized_contact, Address address)
string ein_issuing_country, string stock_symbol, string stock_exchange, string alt_business_id, string alt_business_id_type, AuthorizedContact authorized_contact, Address address)
{
var mandatoryParams = new List<string>{"profile_alias"};
var data = CreateData(
Expand All @@ -188,6 +191,7 @@ public async Task<ProfileResponse> CreateAsync(string profile_alias, string pliv
ein_issuing_country,
stock_symbol,
stock_exchange,
alt_business_id,
alt_business_id_type,
authorized_contact,
address,
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.42.1";
public const string SdkVersion = "5.42.2";
/// <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.42.1",
"version": "5.42.2",
"publicReleaseRefSpec": [
"^refs/heads/master$",
"^refs/heads/v\\d+(?:\\.\\d+)?$"
Expand Down

0 comments on commit 07e0ab2

Please sign in to comment.