package com.ga.core.vo.complaint;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 민원 접수 채널 (V49 complaint.channel)
 */
public enum ComplaintChannel {
    PHONE("전화"),
    EMAIL("이메일"),
    VISIT("방문"),
    ONLINE("온라인"),
    FAX("팩스");

    private final String label;

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

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

    public String getLabel() {
        return label;
    }
}
