package com.ga.core.vo.commission;

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

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * product_conversion_rate 등록/수정 요청.
 */
@Data
public class ProductConversionRateSaveReq {

    @NotNull
    private Long productId;

    @NotNull
    @DecimalMin("0")
    @DecimalMax("1")
    private BigDecimal conversionRate;

    @NotNull
    private LocalDate effectiveFrom;

    private LocalDate effectiveTo;
}
