package com.ga.core.vo.commission;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * agent_guarantee_insurance 저장 요청.
 * status/createdAt/updatedAt 는 서버 결정.
 */
@Data
public class AgentGuaranteeInsuranceSaveReq {

    @NotNull
    private Long agentId;

    @NotBlank
    private String policyNo;

    /** 보증보험사 — 선택 */
    private Long carrierId;

    @NotNull
    @Positive
    private BigDecimal guaranteeAmount;

    @NotNull
    private LocalDate startDate;

    @NotNull
    private LocalDate endDate;
}
