package com.ga.core.vo.endorse;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 계약 변경 유형 (V48 contract_endorsement.endorsement_type)
 */
public enum EndorsementType {
    PREMIUM_CHANGE("보험료변경"),
    BENEFICIARY("수익자변경"),
    INSURED("피보험자변경"),
    ADDRESS("주소변경"),
    OTHER("기타");

    private final String label;

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

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

    public String getLabel() {
        return label;
    }
}
