package dev.lions.unionflow.server.api.dto.finance_workflow.response;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.UUID;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * DTO de réponse pour une ligne budgétaire
 *
 * @author UnionFlow Team
 * @version 1.0
 * @since 2026-03-13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class BudgetLineResponse {

    private UUID id;

    @NotBlank
    private String category; // CONTRIBUTIONS, SAVINGS, SOLIDARITY, etc.

    @NotBlank
    private String name;

    private String description;

    @NotNull
    private BigDecimal amountPlanned;

    @NotNull
    private BigDecimal amountRealized;

    private String notes;

    // Champs calculés
    private Double realizationRate;
    private BigDecimal variance;
    private Boolean isOverBudget;
}
