package com.ga.core.vo.attachment;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 첨부파일 참조 도메인 유형 (V52 attachment.ref_type)
 */
public enum AttachmentRefType {
    AGENT_CONTRACT("위촉계약"),
    COMPLAINT("민원"),
    APPROVAL_REQUEST("결재요청"),
    WITHDRAW_REQUEST("출금신청"),
    NOTICE("공지사항"),
    DISPUTE("이의신청"),
    INCENTIVE("시책"),
    AGENT_LICENSE("자격증"),
    AGENT_TRAINING("보수교육");

    private final String label;

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

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

    public String getLabel() {
        return label;
    }
}
