Rev 182 |
Blame |
Compare with Previous |
Last modification |
View Log
| Download
| RSS feed
package br.com.ec.domain.model.tipos;
public enum TipoNotaFiscal
{
NFCE_EMITIDA
("E",
"NFCE EMITIDA",
"1"),
NFE_EMITIDA
("N",
"NFE EMITIDA",
"1"),
NFE_RECEBIDA
("R",
"NFE RECEBIDA",
null),
NFE_REMESSA
("M",
"NFE REMESSA",
"0");
private String tipo
;
private String descricao
;
private String serie
;
private TipoNotaFiscal
(String tipo,
String descricao,
String serie
) {
this.
tipo = tipo
;
this.
descricao = descricao
;
this.
serie = serie
;
}
public String getDescricao
() {
return descricao
;
}
public String getValor
() {
return tipo
;
}
public String getSerie
() {
return serie
;
}
public static TipoNotaFiscal parse
(String tipo
) {
for (TipoNotaFiscal item : TipoNotaFiscal.
values()) {
if (item.
getValor().
equals(tipo
)) {
return item
;
}
}
return null;
}
}