package com.ga.core.vo.settle;

import lombok.Data;

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

/**
 * 환수 목록 조회 응답 VO.
 *
 * chargeback 테이블 컬럼 + 조인 필드:
 * - agentName : agent.agent_name
 * - contractNo: contract 식별용 (policy_no 와 동일 역할, 조인 시 포함)
 */
@Data
public class ChargebackResp {
    private Long cbId;
    private Long contractId;
    private Long agentId;
    private String agentName;
    /** contract.policy_no (chargeback.policy_no와 동일 값, 조인으로 확인) */
    private String policyNo;
    /** contract.contractor_name */
    private String contractorName;
    /** 경과월 (months elapsed from contract_date to lapse_date) */
    private Integer lapseMonth;
    private BigDecimal cbRate;
    private BigDecimal cbAmount;
    private BigDecimal paidAmount;
    private BigDecimal remainAmount;
    private String settleMonth;
    private Integer installmentNo;
    private Integer maxInstallments;
    private String status;
    private LocalDateTime createdAt;
}
