Skip to content

Commit

Permalink
0.6.19.6 Patched handling for nullable boolean properties.
Browse files Browse the repository at this point in the history
  • Loading branch information
cdmdotnet committed Apr 13, 2021
1 parent 4ba1bad commit b06072c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
8 changes: 6 additions & 2 deletions HubSpot.NET/Core/Requests/RequestDataConverter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,12 @@ public dynamic ToHubspotDataEntity(IHubSpotModel entity, bool batchMode = false)
? propValue
:
prop.PropertyType == typeof(bool)
? propValue?.ToString().ToLowerInvariant()
: propValue?.ToString();
? propValue?.ToString().ToLowerInvariant()
:
prop.PropertyType == typeof(bool?)
? propValue?.ToString().ToLowerInvariant()
: propValue?.ToString();

var item = new HubspotDataEntityProp
{
Property = propSerializedName,
Expand Down
4 changes: 3 additions & 1 deletion HubSpot.NET/HubSpot.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<TargetFrameworks>net46;net451;netstandard2.0</TargetFrameworks>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<Version>0.6.19.5</Version>
<Version>0.6.19.6</Version>
<Authors>cdmdotnet Limited - originally Squared Up Ltd.</Authors>
<Company>cdmdotnet Limited - originally Squared Up Ltd.</Company>
<Description>C# .NET Wrapper around the common HubSpot APIs. This is a fork/continuation of the original project that now appears not to be maintained.</Description>
Expand All @@ -15,6 +15,8 @@
<RepositoryUrl>https://github.com/Chinchilla-Software-Com/HubSpot.NET</RepositoryUrl>
<PackageTags>hubspot api wrapper c# contact company deal engagement properties crm</PackageTags>
<PackageReleaseNotes>
0.6.19.6 Patched handling for nullable boolean properties.

0.6.19.5 Added the ability to get all contact and deal associations for a company.

0.6.19.4 Minor improvements to exceptions. Resolved a naming conflict.
Expand Down

0 comments on commit b06072c

Please sign in to comment.