• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

wmixvideo / nfe / #6266

21 Mar 2025 11:46AM UTC coverage: 52.671% (+25.7%) from 26.996%
#6266

push

luciano.antunes
Nota Fiscal Fácil

0 of 21 new or added lines in 2 files covered. (0.0%)

2924 existing lines in 401 files now uncovered.

14002 of 26584 relevant lines covered (52.67%)

0.53 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

58.7
/src/main/java/com/fincatto/documentofiscal/nfe400/classes/evento/NFInfoEvento.java
1
package com.fincatto.documentofiscal.nfe400.classes.evento;
2

3
import com.fincatto.documentofiscal.DFAmbiente;
4
import com.fincatto.documentofiscal.DFBase;
5
import com.fincatto.documentofiscal.DFUnidadeFederativa;
6
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
7
import com.fincatto.documentofiscal.validadores.DFIntegerValidador;
8
import com.fincatto.documentofiscal.validadores.DFStringValidador;
9
import org.simpleframework.xml.Attribute;
10
import org.simpleframework.xml.Element;
11

12
import java.math.BigDecimal;
13
import java.time.ZonedDateTime;
14

15
public class NFInfoEvento extends DFBase {
1✔
16
    private static final long serialVersionUID = 8878652860997939767L;
17
    
18
    @Attribute(name = "Id")
19
    private String id;
20
    
21
    @Element(name = "cOrgao")
22
    private DFUnidadeFederativa orgao;
23
    
24
    @Element(name = "tpAmb")
25
    private DFAmbiente ambiente;
26

27
    @Element(name = "CNPJ", required = false)
28
    private String cnpj;
29

30
    @Element(name = "CPF", required = false)
31
    private String cpf;
32
    
33
    @Element(name = "chNFe")
34
    private String chave;
35
    
36
    @Element(name = "dhEvento")
37
    private ZonedDateTime dataHoraEvento;
38
    
39
    @Element(name = "tpEvento")
40
    private String codigoEvento;
41
    
42
    @Element(name = "nSeqEvento")
43
    private Integer numeroSequencialEvento;
44
    
45
    @Element(name = "verEvento")
46
    private String versaoEvento;
47
    
48
    @Element(name = "detEvento")
49
    private NFTipoEvento dadosEvento;
50

51
    public void setOrgao(final DFUnidadeFederativa orgao) {
52
        this.orgao = orgao;
1✔
53
    }
1✔
54

55
    public void setVersaoEvento(final BigDecimal versaoEvento) {
56
        this.versaoEvento = DFBigDecimalValidador.tamanho5Com2CasasDecimais(versaoEvento, "Info Evento Versao");
1✔
57
    }
1✔
58

59
    public String getId() {
60
        return this.id;
×
61
    }
62

63
    public void setId(final String id) {
64
        DFStringValidador.exatamente54(id, "Info Evento ID");
1✔
65
        this.id = id;
1✔
66
    }
1✔
67

68
    public DFAmbiente getAmbiente() {
69
        return this.ambiente;
×
70
    }
71

72
    public void setAmbiente(final DFAmbiente ambiente) {
73
        this.ambiente = ambiente;
1✔
74
    }
1✔
75

76
    public String getCnpj() {
77
        return this.cnpj;
×
78
    }
79

80
    public void setCnpj(final String cnpj) {
81
        if (this.cpf != null) {
1✔
82
            throw new IllegalStateException("CPF ja foi setado");
×
83
        }
84
        DFStringValidador.cnpj(cnpj);
1✔
85
        this.cnpj = cnpj;
1✔
86
    }
1✔
87

88
    public String getCpf() {
89
        return this.cpf;
×
90
    }
91

92
    public void setCpf(final String cpf) {
UNCOV
93
        if (this.cnpj != null) {
×
94
            throw new IllegalStateException("CNPJ ja foi setado");
×
95
        }
UNCOV
96
        DFStringValidador.cpf(cpf);
×
97
        this.cpf = cpf;
×
98
    }
×
99

100
    public String getChave() {
101
        return this.chave;
×
102
    }
103

104
    public void setChave(final String chave) {
105
        DFStringValidador.exatamente44N(chave, "Info Evento Chave");
1✔
106
        this.chave = chave;
1✔
107
    }
1✔
108

109
    public ZonedDateTime getDataHoraEvento() {
110
        return this.dataHoraEvento;
×
111
    }
112

113
    public void setDataHoraEvento(final ZonedDateTime dataHoraEvento) {
114
        this.dataHoraEvento = dataHoraEvento;
1✔
115
    }
1✔
116

117
    public String getCodigoEvento() {
118
        return this.codigoEvento;
×
119
    }
120

121
    public void setTipoEvento(final String tipoEvento) {
122
        DFStringValidador.exatamente6N(tipoEvento, "Tipo Evento");
1✔
123
        this.codigoEvento = tipoEvento;
1✔
124
    }
1✔
125

126
    public int getNumeroSequencialEvento() {
127
        return this.numeroSequencialEvento;
×
128
    }
129

130
    public void setNumeroSequencialEvento(final int numeroSequencialEvento) {
131
        DFIntegerValidador.tamanho1a2(numeroSequencialEvento, "Numero Sequencial Evento");
1✔
132
        this.numeroSequencialEvento = numeroSequencialEvento;
1✔
133
    }
1✔
134

135
    public String getVersaoEvento() {
136
        return this.versaoEvento;
×
137
    }
138

139
    public NFTipoEvento getDadosEvento() {
140
        return this.dadosEvento;
×
141
    }
142

143
    public void setDadosEvento(final NFTipoEvento cartaCorrecao) {
144
        this.dadosEvento = cartaCorrecao;
1✔
145
    }
1✔
146

147
    public DFUnidadeFederativa getOrgao() {
148
        return this.orgao;
×
149
    }
150

151
    public void setCodigoEvento(final String codigoEvento) {
152
        this.codigoEvento = codigoEvento;
×
153
    }
×
154
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc