package com.ga.core.vo.product;

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;

@Data
public class ContractSaveReq {
    @NotNull private Long agentId;
    @NotNull private Long productId;
    @NotBlank(message = "증권번호는 필수입니다")
    private String policyNo;
    private String contractorName;
    private String insuredName;
    @NotNull @Positive
    private BigDecimal premium;
    private String payCycle;
    private Integer payPeriod;
    private Integer coveragePeriod;
    @NotNull private LocalDate contractDate;
    private LocalDate effectiveDate;
}
