package com.ga.core.vo.commission;

import jakarta.validation.constraints.DecimalMax;
import jakarta.validation.constraints.DecimalMin;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.math.BigDecimal;

@Data
public class PersistencyBonusSaveReq {
    @NotNull
    private Long agentId;
    private Long ruleId;
    @NotBlank
    private String baseMonth;
    @NotNull
    private Integer retentionMonth;
    @NotBlank
    private String settleMonth;
    @NotNull
    @DecimalMin("0")
    @DecimalMax("1")
    private BigDecimal retentionRate;
    @NotNull
    private BigDecimal bonusAmount;
}
