package com.ga.core.vo.endorse;

import lombok.Data;

import java.time.LocalDateTime;

/**
 * contract_endorsement — 계약 변경 이력 (V48)
 * requires_commission_recalc=true 이면 배치에서 수수료 재계산 트리거.
 */
@Data
public class ContractEndorsementVO {
    private Long endorsementId;
    private Long contractId;
    private Long agentId;
    /** EndorsementType: PREMIUM_CHANGE/BENEFICIARY/INSURED/ADDRESS/OTHER */
    private String endorsementType;
    private LocalDateTime changedAt;
    /** 변경 전 값 (JSON 또는 텍스트) */
    private String oldValue;
    /** 변경 후 값 (JSON 또는 텍스트) */
    private String newValue;
    private String reason;
    private Boolean requiresCommissionRecalc;
    private Boolean processed;
    private LocalDateTime processedAt;
    private LocalDateTime createdAt;
    private Long createdBy;
    private LocalDateTime updatedAt;
}
