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

import com.fasterxml.jackson.annotation.JsonFormat;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.UUID;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * DTO de réponse pour une action d'approbateur
 *
 * @author UnionFlow Team
 * @version 1.0
 * @since 2026-03-13
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class ApproverActionResponse {

    private UUID id;

    @NotNull
    private UUID approverId;

    @NotBlank
    private String approverName;

    @NotBlank
    private String approverRole;

    @NotBlank
    private String decision; // PENDING, APPROVED, REJECTED

    private String comment;

    @JsonFormat(pattern = "yyyy-MM-dd'T'HH:mm:ss")
    private LocalDateTime decidedAt;
}
