package com.ga.core.vo.commission;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 단계마감 단계코드 (STEP_CODE 그룹, V97)
 * settlement_step_close.step_code 에서 사용.
 * 순서: RECEIVE(1) → CALC(2) → VERIFY(3) → PAY(4)
 */
public enum StepCode {
    RECEIVE("수신마감"),
    CALC("계산마감"),
    VERIFY("검증마감"),
    PAY("지급마감");

    private final String label;

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

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

    public String getLabel() {
        return label;
    }
}
