softwerkab / fortnox-csharp-api-sdk

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

Voucher ReferenceType missing enum value 'RECEIPT' #246

Closed aramB closed 2 years ago

aramB commented 2 years ago

We have recently seen this errors in our logs:

Error converting value "RECEIPT" to type 'System.Nullable`1[Fortnox.SDK.Entities.ReferenceType]'. Path 'Vouchers[25].ReferenceType', line 1, position 7798. Requested value 'RECEIPT' was not found. 

when calling: VoucherConnector.FindAsync(searchSettings))

We are suspecting that the API is sending this new undocumented value RECEIPT and it looks like the C# enum definition needs to be updated.

richardrandak commented 2 years ago

Ok, I will add it.

aramB commented 2 years ago

@richardrandak If it helps to get this fix out faster I can create a PR?

richardrandak commented 2 years ago

Next time, you can do PR, that will speed the things up, since I am not actively working with the repository anymore. This time, there will be a NuGet published in few minutes