package com.ga.core.vo.approval;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 결재 요청 상태 (V50 approval_request.status)
 */
public enum ApprovalStatus {
    PENDING("진행중"),
    APPROVED("최종승인"),
    REJECTED("반려"),
    CANCEL("취소");

    private final String label;

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

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

    public String getLabel() {
        return label;
    }
}
