namespace GerbilManagerWebAPI.Dtos
{
    /// <summary>RÜCKNAHME: Payload für POST/PUT /returns.</summary>
    public record ReturnRecordInput(
        Guid? GerbilId,
        string? GerbilName,
        DateTime? ReturnDate,
        decimal? ReturnPrice,
        decimal? OriginalPrice,
        DateTime? OriginalSaleDate,
        Guid? FromContactId,
        string? FromContactName,
        string? Note);

    /// <summary>RÜCKNAHME: Antwort-DTO für einen gespeicherten Rücknahme-Datensatz.</summary>
    public record ReturnRecordDto(
        Guid Id,
        Guid? GerbilId,
        string? GerbilName,
        DateTime? ReturnDate,
        decimal? ReturnPrice,
        decimal? OriginalPrice,
        DateTime? OriginalSaleDate,
        Guid? FromContactId,
        string? FromContactName,
        string? Note,
        DateTimeOffset CreatedAt);
}
