All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.fincatto.documentofiscal.nfe310.classes.NFFormaPagamentoPrazo Maven / Gradle / Ivy

There is a newer version: 4.0.75
Show newest version
package com.fincatto.documentofiscal.nfe310.classes;

public enum NFFormaPagamentoPrazo {

    A_VISTA("0", "\u00c0 vista"),
    A_PRAZO("1", "A prazo"),
    OUTROS("2", "Outros");

    private final String codigo;
    private final String descricao;

    NFFormaPagamentoPrazo(final String codigo, final String descricao) {
        this.codigo = codigo;
        this.descricao = descricao;
    }

    public String getCodigo() {
        return this.codigo;
    }

    public String getDescricao() {
        return this.descricao;
    }

    public static NFFormaPagamentoPrazo valueOfCodigo(final String codigo) {
        for (NFFormaPagamentoPrazo formaPagamento : NFFormaPagamentoPrazo.values()) {
            if (formaPagamento.getCodigo().equals(codigo)) {
                return formaPagamento;
            }
        }
        return null;
    }

    @Override
    public String toString() {
        return codigo + " - " + descricao;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy