package com.ga.core.vo.commission;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * settling_support_ledger — 정착지원금 원장 (V90)
 * net_amount = support_amount - clawback_amount
 */
@Data
public class SettlingSupportLedgerVO {
    private Long ledgerId;
    private Long agentId;
    /** 정산 귀속월 (YYYYMM) */
    private String settleMonth;
    /** 지급액 */
    private BigDecimal supportAmount;
    /** 환수액 (조기해촉 시 support_amount × 잔여약정개월/약정개월) */
    private BigDecimal clawbackAmount;
    /** 실지급액 = support_amount - clawback_amount */
    private BigDecimal netAmount;
    /** CALCULATED / PAID / CLAWED_BACK / CANCELLED */
    private String status;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
}
