package de.cannamanage.api.dto.report;

import java.math.BigDecimal;
import java.time.Instant;
import java.time.LocalDate;
import java.util.List;
import java.util.UUID;

/**
 * JSON response DTO for the recall/batch trace report.
 */
public record RecallReportResponse(
        UUID batchId,
        String strainName,
        String batchNumber,
        LocalDate receivedDate,
        BigDecimal totalGramsDistributed,
        List<AffectedMemberDto> affectedMembers
) {
    public record AffectedMemberDto(
            UUID memberId,
            String firstName,
            String lastName,
            Instant distributionDate,
            BigDecimal grams
    ) {}
}
