Skip to content

Commit

Permalink
Fixes discount property for SalesInvoice which should be nullable
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentVrijburg committed Nov 28, 2023
1 parent 1a0ef6a commit fe31dc3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Moneybird.Net/Entities/SalesInvoices/SalesInvoice.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class SalesInvoice : IMoneybirdEntity

[JsonPropertyName("discount")]
[JsonNumberHandling(JsonNumberHandling.AllowReadingFromString)]
public double Discount { get; set; }
public double? Discount { get; set; }

[JsonPropertyName("original_sales_invoice_id")]
public string OriginalSalesInvoiceId { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@
"reference": "Project X",
"language": "nl",
"currency": "EUR",
"discount": "0.0",
"discount": null,
"original_sales_invoice_id": null,
"paused": false,
"paid_at": null,
Expand Down

0 comments on commit fe31dc3

Please sign in to comment.