diff --git a/src/Mindee/Parsing/Receipt/ReceiptV4Prediction.cs b/src/Mindee/Parsing/Receipt/ReceiptV4Prediction.cs index 925d2a3d..073dad64 100644 --- a/src/Mindee/Parsing/Receipt/ReceiptV4Prediction.cs +++ b/src/Mindee/Parsing/Receipt/ReceiptV4Prediction.cs @@ -17,6 +17,12 @@ public sealed class ReceiptV4Prediction : FinancialPredictionBase [JsonPropertyName("category")] public StringField Category { get; set; } + /// + /// The subcategory of the receipt. + /// + [JsonPropertyName("subcategory")] + public StringField SubCategory { get; set; } + /// /// The supplier name. /// @@ -64,6 +70,8 @@ public override string ToString() result.Append($"Tip: {Tip}\n"); result.Append($"Date: {Date.Value}\n"); result.Append($"Category: {Category.Value}\n"); + result.Append($"Subcategory: {SubCategory.Value}\n"); + result.Append($"Document type: {DocumentType.Value}\n"); result.Append($"Time: {Time.Value}\n"); result.Append($"Supplier name: {Supplier.Value}\n"); result.Append($"Taxes: {string.Join("\n ", Taxes.Select(t => t))}\n"); diff --git a/tests/resources b/tests/resources index 064cd8cf..134c591b 160000 --- a/tests/resources +++ b/tests/resources @@ -1 +1 @@ -Subproject commit 064cd8cf849aa2743aba3f41958516dd0e571bbc +Subproject commit 134c591bc79e8309dc54a552080a056769795dbb