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;

@Data
public class ReinstatementCommissionRuleSaveReq {
    @NotNull
    private Long productId;
    @NotBlank
    private String payType;
    private BigDecimal rateValue;
    private BigDecimal fixedAmount;
    @NotNull
    @DecimalMin("0")
    @DecimalMax("1")
    private BigDecimal chargebackReversalRate;
    @NotNull
    private LocalDate effectiveFrom;
    private LocalDate effectiveTo;
}
