softwerkab / fortnox-csharp-api-sdk

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

Property or indexer 'VoucherRow.Description' cannot be assigned to -- it is read only #279

Closed bartclement closed 1 year ago

bartclement commented 1 year ago

According to Fortnox Support: "The Description of our Voucher endpoint is not Read-Only". How can I assign a value to this property via the SDK?

bartclement commented 1 year ago

This is great, thanks for your fast response. When will this version 4.3.13 be pushed to NuGet?

adamelfstrom commented 1 year ago

Hi, sorry for closing your issue before the update was available! It should be live now on NuGet.

bartclement commented 1 year ago

Hi, sorry for closing your issue before the update was available! It should be live now on NuGet.

Thanks, I see it now. But I think another small change is needed:

public string Description { get; private set; }

This 'private' should be removed from the set? Or we alternatively we need a class constructor to set the value?

adamelfstrom commented 1 year ago

You are correct, I only removed the decorator but never fixed the actual property. A fix will be published shortly. My bad!