softwerkab / fortnox-csharp-api-sdk

.NET SDK for Fortnox API.
MIT License
53 stars 65 forks source link

More Sources for payments #265

Closed Jorin71 closed 1 year ago

Jorin71 commented 2 years ago

Hello,

It seems like "autogiro" is missing among the valid sources in Entities. Today it supports manual, direct, settle, file and finance but not autogiro.

Newtonsoft.Json.JsonSerializationException: Error converting value "autogiro" to type 'System.Nullable`1[Fortnox.SDK.Entities.Source]'. Path 'InvoicePayments[458].Source', line 1, position 114605. ---> System.ArgumentException: Requested value 'autogiro' was not found.
at Newtonsoft.Json.Utilities.EnumUtils.ParseEnum(Type enumType, NamingStrategy namingStrategy, String value, Boolean disallowNumber)
at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer) --- End of inner exception stack trace ---
at Newtonsoft.Json.Converters.StringEnumConverter.ReadJson(JsonReader reader, Type objectType, Object existingValue, JsonSerializer serializer)
....