package fr.titionfire.ffsaf.rest.from;

import jakarta.ws.rs.FormParam;
import lombok.Getter;
import lombok.ToString;
import org.eclipse.microprofile.openapi.annotations.media.Schema;

@Getter
@ToString
public class LicenceForm {
    @FormParam("id")
    @Schema(description = "L'identifiant de la licence. (-1 si nouvelle demande de licence)", required = true)
    private long id;

    @FormParam("membre")
    @Schema(description = "L'identifiant du membre.", example = "1", required = true)
    private long membre;

    @FormParam("saison")
    @Schema(description = "La saison de la licence.", example = "2025", required = true)
    private int saison;

    @FormParam("certificate")
    @Schema(description = "Nom et date du médecin sur certificat médical.", example = "M. Jean¤2025-02-03", format = "<Nom>¤<yyyy-mm-dd>", required = true)
    private String certificate = null;

    @FormParam("validate")
    @Schema(description = "Licence validée (seuls les admin pourrons modifier cette valeur)", example = "true", required = true)
    private boolean validate;

    @FormParam("pay")
    @Schema(description = "Paiement de la licence (seuls les admin pourrons modifier cette valeur)", example = "true", required = true)
    private boolean pay;
}
