package com.ga.core.vo.withdraw;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 출금 신청 상태 (V53 withdraw_request.status)
 */
public enum WithdrawStatus {
    REQUESTED("신청"),
    APPROVED("결재완료"),
    SENT("펌뱅킹송신"),
    COMPLETED("입금완료"),
    FAILED("실패"),
    CANCELLED("취소");

    private final String label;

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

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

    public String getLabel() {
        return label;
    }
}
