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

wmixvideo / nfe / #6582

17 Jul 2025 09:30PM UTC coverage: 51.231% (+24.2%) from 26.996%
#6582

push

web-flow
Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e (#1054)

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

* Adequação do mapeamento de infLocalCarrega e infLocalDescarrega ao xs:choice do schema MDF-e

14006 of 27339 relevant lines covered (51.23%)

0.51 hits per line

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

0.0
/src/main/java/com/fincatto/documentofiscal/mdfe3/classes/nota/evento/MDFeInfoEvento.java
1
package com.fincatto.documentofiscal.mdfe3.classes.nota.evento;
2

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

11
import java.math.BigDecimal;
12
import java.time.ZonedDateTime;
13
import org.simpleframework.xml.Root;
14

15
/**
16
 * Tipo Evento
17
 */
18
@Root(name = "infEvento")
19
public class MDFeInfoEvento extends DFBase {
×
20
    private static final long serialVersionUID = -9002694768514200146L;
21

22
    @Attribute(name = "Id", required = false)
23
    private String id;
24

25
    @Element(name = "cOrgao", required = false)
26
    private String orgao;
27

28
    @Element(name = "tpAmb")
29
    private DFAmbiente ambiente;
30

31
    @Element(name = "CNPJ", required = false)
32
    private String cnpj;
33

34
    @Element(name = "chMDFe")
35
    private String chave;
36

37
    @Element(name = "dhEvento")
38
    private ZonedDateTime dataHoraEvento;
39

40
    @Element(name = "tpEvento")
41
    private String codigoEvento;
42

43
    @Element(name = "nSeqEvento")
44
    private Integer numeroSequencialEvento;
45

46
    @Element(name = "verEvento", required = false)
47
    private String versaoEvento;
48

49
    /**
50
     * Detalhamento do evento específico (cancelamento, encerramento, registro de passagem).
51
     */
52
    @Element(name = "detEvento")
53
    private MDFeDetalhamentoEvento detEvento;
54

55
    public void setOrgao(final String orgao) {
56
        this.orgao = orgao;
×
57
    }
×
58

59
    public void setVersaoEvento(final BigDecimal versaoEvento) {
60
        this.versaoEvento = DFBigDecimalValidador.tamanho5Com2CasasDecimais(versaoEvento, "Versao do Evento");
×
61
    }
×
62

63
    public String getId() {
64
        return this.id;
×
65
    }
66

67
    public void setId(final String id) {
68
        DFStringValidador.exatamente54(id, "Info Evento  ID");
×
69
        this.id = id;
×
70
    }
×
71

72
    public DFAmbiente getAmbiente() {
73
        return this.ambiente;
×
74
    }
75

76
    public void setAmbiente(final DFAmbiente ambiente) {
77
        this.ambiente = ambiente;
×
78
    }
×
79

80
    public String getCnpj() {
81
        return this.cnpj;
×
82
    }
83

84
    public void setCnpj(final String cnpj) {
85
        DFStringValidador.cnpj(cnpj);
×
86
        this.cnpj = cnpj;
×
87
    }
×
88

89
    public String getChave() {
90
        return this.chave;
×
91
    }
92

93
    public void setChave(final String chave) {
94
        DFStringValidador.exatamente44N(chave, "Info Evento Cancelamento Chave");
×
95
        this.chave = chave;
×
96
    }
×
97

98
    public ZonedDateTime getDataHoraEvento() {
99
        return this.dataHoraEvento;
×
100
    }
101

102
    public void setDataHoraEvento(final ZonedDateTime dataHoraEvento) {
103
        this.dataHoraEvento = dataHoraEvento;
×
104
    }
×
105

106
    public String getCodigoEvento() {
107
        return this.codigoEvento;
×
108
    }
109

110
    public void setCodigoEvento(final String codigoEvento) {
111
        DFStringValidador.exatamente6N(codigoEvento, "Info Evento Cancelamento Codigo");
×
112
        this.codigoEvento = codigoEvento;
×
113
    }
×
114

115
    public int getNumeroSequencialEvento() {
116
        return this.numeroSequencialEvento;
×
117
    }
118

119
    public void setNumeroSequencialEvento(final int numeroSequencialEvento) {
120
        DFIntegerValidador.tamanho1a2(numeroSequencialEvento, "Numero Sequencial Evento");
×
121
        this.numeroSequencialEvento = numeroSequencialEvento;
×
122
    }
×
123

124
    public String getVersaoEvento() {
125
        return this.versaoEvento;
×
126
    }
127

128
    public String getOrgao() {
129
        return this.orgao;
×
130
    }
131

132
    public void setNumeroSequencialEvento(final Integer numeroSequencialEvento) {
133
        this.numeroSequencialEvento = numeroSequencialEvento;
×
134
    }
×
135

136
    public void setVersaoEvento(final String versaoEvento) {
137
        this.versaoEvento = versaoEvento;
×
138
    }
×
139

140
    public MDFeDetalhamentoEvento getDetEvento() {
141
        return this.detEvento;
×
142
    }
143

144
    public void setDetEvento(final MDFeDetalhamentoEvento detEvento) {
145
        this.detEvento = detEvento;
×
146
    }
×
147
}
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