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;
import java.time.LocalDate;

/**
 * award_rule 등록/수정 요청.
 */
@Data
public class AwardRuleSaveReq {

    @NotBlank
    private String awardType;

    @NotBlank
    private String calcType;

    @DecimalMin("0")
    private BigDecimal thresholdAmount;

    @DecimalMin("0")
    @DecimalMax("1")
    private BigDecimal awardRate;

    @DecimalMin("0")
    private BigDecimal awardFixed;

    @NotNull
    private LocalDate effectiveFrom;

    private LocalDate effectiveTo;
}
