From f85af6a27ca6a0f2b64e9e5686bfd3adb75f7d63 Mon Sep 17 00:00:00 2001 From: MJMortimer Date: Thu, 19 Jul 2018 20:18:50 +1200 Subject: [PATCH] Allow nullable LineAmountTypes to be serialized correctly. Includes support for nullable ManualJournalStatus --- Xero.Api/Serialization/DefaultMapper.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Xero.Api/Serialization/DefaultMapper.cs b/Xero.Api/Serialization/DefaultMapper.cs index 01c21032..680fc232 100644 --- a/Xero.Api/Serialization/DefaultMapper.cs +++ b/Xero.Api/Serialization/DefaultMapper.cs @@ -71,6 +71,7 @@ private void BuildCore() JsConfig.DeSerializeFn = EnumDeserializer; JsConfig.DeSerializeFn = EnumDeserializer; JsConfig.DeSerializeFn = EnumDeserializer; + JsConfig.DeSerializeFn = EnumDeserializerNullable; JsConfig.DeSerializeFn = EnumDeserializer; JsConfig.DeSerializeFn = EnumDeserializer; JsConfig.DeSerializeFn = EnumDeserializer; @@ -84,6 +85,8 @@ private void BuildCore() JsConfig.DeSerializeFn = EnumDeserializer; JsConfig.DeSerializeFn = EnumDeserializer; JsConfig.DeSerializeFn = EnumDeserializer; + JsConfig.DeSerializeFn = EnumDeserializer; + JsConfig.DeSerializeFn = EnumDeserializerNullable; JsConfig.DeSerializeFn = EnumDeserializer; JsConfig.DeSerializeFn = EnumDeserializerNullable; JsConfig.DeSerializeFn = EnumDeserializer;