package com.ga.core.vo.commission;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 환수채권 상태 코드 (CLAWBACK_RCV_STATUS 그룹, V111)
 * clawback_receivable.status 에서 사용.
 */
public enum ClawbackReceivableStatus {
    OUTSTANDING("미회수"),
    RECOVERING("회수중"),
    CLEARED("상환완료"),
    WRITTEN_OFF("대손");

    private final String label;

    ClawbackReceivableStatus(String label) {
        this.label = label;
    }

    @JsonValue
    public String getCode() {
        return this.name();
    }

    public String getLabel() {
        return label;
    }
}
