package com.ga.core.vo.commission;

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

import java.math.BigDecimal;

/**
 * settling_support_ledger 등록 요청.
 * net_amount 는 Service가 계산 후 VO에 set.
 */
@Data
public class SettlingSupportLedgerSaveReq {

    @NotNull
    private Long agentId;

    @NotBlank
    private String settleMonth;

    @NotNull
    @Positive
    private BigDecimal supportAmount;

    @DecimalMin("0")
    private BigDecimal clawbackAmount;
}
