package com.ga.core.vo.commission;

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

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

@Data
public class CollectionCommissionLedgerSaveReq {
    @NotNull
    private Long contractId;

    @NotNull
    private Long agentId;

    @NotBlank
    private String settleMonth;

    @NotNull
    @Positive
    private BigDecimal premiumAmount;

    @NotNull
    private BigDecimal commissionRate;

    @NotBlank
    private String paymentCycle;

    @NotNull
    private LocalDate paidAt;
}
