package com.ga.core.vo.settle;

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

import java.math.BigDecimal;

@Data
public class AgentDeductionSaveReq {

    @NotNull(message = "설계사 ID는 필수입니다")
    private Long agentId;

    @NotBlank(message = "정산월은 필수입니다")
    @Size(min = 6, max = 6, message = "정산월은 6자리(YYYYMM)입니다")
    private String settleMonth;

    @NotBlank(message = "차감유형은 필수입니다")
    private String deductionType;

    @NotNull(message = "차감금액은 필수입니다")
    @Positive(message = "차감금액은 양수여야 합니다")
    private BigDecimal amount;

    @Size(max = 255)
    private String description;
}
