diff --git a/AutoTask.Psa.Api/AutoTask.Psa.Api.csproj b/AutoTask.Psa.Api/AutoTask.Psa.Api.csproj
index c6d51d0..4d9e375 100644
--- a/AutoTask.Psa.Api/AutoTask.Psa.Api.csproj
+++ b/AutoTask.Psa.Api/AutoTask.Psa.Api.csproj
@@ -43,6 +43,7 @@
+
@@ -50,4 +51,4 @@
-
\ No newline at end of file
+
diff --git a/AutoTask.Psa.Api/AutoTaskClient.cs b/AutoTask.Psa.Api/AutoTaskClient.cs
index 209aaed..a04a20b 100644
--- a/AutoTask.Psa.Api/AutoTaskClient.cs
+++ b/AutoTask.Psa.Api/AutoTaskClient.cs
@@ -1,4 +1,6 @@
+using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
+using Newtonsoft.Json.Serialization;
using System.Text;
namespace AutoTask.Psa.Api;
@@ -31,18 +33,13 @@ public AutoTaskClient(HttpClient client)
_httpClient = client;
_refitSettings = new RefitSettings
{
- //ContentSerializer = new NewtonsoftJsonContentSerializer(
- // new JsonSerializerSettings
- // {
- // // By default nulls should not be rendered out, this will allow the receiving API to apply any defaults.
- // // Use [JsonProperty(NullValueHandling = NullValueHandling.Include)] to send
- // // nulls for specific properties, e.g. disassociating port schedule ids from a port
- // NullValueHandling = NullValueHandling.Ignore,
- // #if DEBUG
- // MissingMemberHandling = MissingMemberHandling.Error,
- // #endif
- // Converters = new List { new StringEnumConverter() }
- // })
+ ContentSerializer = new NewtonsoftJsonContentSerializer(
+ new JsonSerializerSettings
+ {
+ NullValueHandling = NullValueHandling.Ignore,
+ ContractResolver = new CamelCasePropertyNamesContractResolver(),
+ Formatting = Formatting.Indented,
+ })
};
ActionTypes = RefitFor(ActionTypes!);
AdditionalInvoiceFieldValues = RefitFor(AdditionalInvoiceFieldValues!);
diff --git a/Directory.Packages.props b/Directory.Packages.props
index 4483ce3..2ee9318 100644
--- a/Directory.Packages.props
+++ b/Directory.Packages.props
@@ -18,6 +18,7 @@
+