package com.ga.core.vo.commission;

import com.fasterxml.jackson.annotation.JsonValue;

/**
 * 납입주기 코드 (V41 collection_commission_rule.payment_cycle)
 */
public enum PaymentCycle {
    MONTHLY("월납"),
    QUARTERLY("분기납"),
    SEMI("반기납"),
    ANNUAL("연납");

    private final String label;

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

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

    public String getLabel() {
        return label;
    }
}
