Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/Mindee/Parsing/Invoice/InvoiceV4Prediction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ namespace Mindee.Parsing.Invoice
[Endpoint("invoices", "4")]
public sealed class InvoiceV4Prediction : FinancialPredictionBase
{
/// <summary>
/// List of Reference numbers including PO number.
/// </summary>
[JsonPropertyName("reference_numbers")]
public List<StringField> ReferenceNumbers { get; set; }

/// <summary>
/// The supplier name.
/// </summary>
Expand Down Expand Up @@ -105,6 +111,7 @@ public override string ToString()
StringBuilder result = new StringBuilder("----- Invoice V4 -----\n");
result.Append($"Locale: {Locale}\n");
result.Append($"Invoice number: {InvoiceNumber.Value}\n");
result.Append($"Reference numbers: {string.Join(", ", ReferenceNumbers.Select(rn => rn.Value))}\n");
result.Append($"Invoice date: {Date.Value}\n");
result.Append($"Invoice due date: {DueDate.Value}\n");
result.Append($"Supplier name: {SupplierName.Value}\n");
Expand Down