Consolidate the .NET, Java, and Node SDKs into root-level pdftract-<lang>/ directories (matching the already-tracked pdftract-go/), per the decision to make the generated SDKs first-class monorepo members rather than separate repos. Content imported from the standalone ~/pdftract-<lang> repos (build artifacts excluded). Removes the broken empty-git nested clones that were polluting the working tree. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
39 lines
900 B
C#
39 lines
900 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Pdftract.Models;
|
|
|
|
/// <summary>
|
|
/// Receipt verification information.
|
|
/// </summary>
|
|
public record ReceiptInfo
|
|
{
|
|
/// <summary>
|
|
/// Whether the receipt is valid.
|
|
/// </summary>
|
|
[JsonPropertyName("valid")]
|
|
public required bool Valid { get; init; }
|
|
|
|
/// <summary>
|
|
/// Merchant name.
|
|
/// </summary>
|
|
[JsonPropertyName("merchant")]
|
|
public string? Merchant { get; init; }
|
|
|
|
/// <summary>
|
|
/// Transaction amount.
|
|
/// </summary>
|
|
[JsonPropertyName("amount")]
|
|
public double? Amount { get; init; }
|
|
|
|
/// <summary>
|
|
/// Transaction date.
|
|
/// </summary>
|
|
[JsonPropertyName("date")]
|
|
public string? Date { get; init; }
|
|
|
|
/// <summary>
|
|
/// Additional receipt details.
|
|
/// </summary>
|
|
[JsonPropertyName("details")]
|
|
public Dictionary<string, object>? Details { get; init; }
|
|
}
|