• 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

74.29
/src/main/java/com/fincatto/documentofiscal/cte300/classes/nota/CTeNotaInfoEmitente.java
1
package com.fincatto.documentofiscal.cte300.classes.nota;
2

3
import com.fincatto.documentofiscal.DFBase;
4
import com.fincatto.documentofiscal.cte300.classes.CTTipoRegimeTributario;
5
import com.fincatto.documentofiscal.validadores.DFStringValidador;
6
import org.simpleframework.xml.Element;
7
import org.simpleframework.xml.Namespace;
8
import org.simpleframework.xml.Root;
9

10
/**
11
 * @author Caio
12
 * @info Identificação do Emitente do CT-e
13
 */
14

15
@Root(name = "emit")
16
@Namespace(reference = "http://www.portalfiscal.inf.br/cte")
17
public class CTeNotaInfoEmitente extends DFBase {
18
    private static final long serialVersionUID = -316869143177543788L;
19
    
20
    @Element(name = "CNPJ")
21
    private String cnpj;
22
    
23
    @Element(name = "IE")
24
    private String inscricaoEstadual;
25

26
    @Element(name = "IEST", required = false)
27
    private String inscricaoEstadualST;
28
    
29
    @Element(name = "xNome")
30
    private String razaoSocial;
31

32
    @Element(name = "xFant", required = false)
33
    private String nomeFantasia;
34
    
35
    @Element(name = "enderEmit")
36
    private CTeNotaEnderecoEmitente endereco;
37

38
    @Element(name = "CRT", required = false)
39
    private CTTipoRegimeTributario tipoRegimeTributario;
40

41
    public CTeNotaInfoEmitente() {
1✔
42
        this.cnpj = null;
1✔
43
        this.inscricaoEstadual = null;
1✔
44
        this.inscricaoEstadualST = null;
1✔
45
        this.razaoSocial = null;
1✔
46
        this.nomeFantasia = null;
1✔
47
        this.endereco = null;
1✔
48
        this.tipoRegimeTributario = null;
1✔
49
    }
1✔
50

51
    public String getCnpj() {
52
        return this.cnpj;
×
53
    }
54

55
    /**
56
     * CNPJ do emitente<br>
57
     * Informar zeros não significativos
58
     */
59
    public void setCnpj(final String cnpj) {
60
        DFStringValidador.cnpj(cnpj);
1✔
61
        this.cnpj = cnpj;
1✔
62
    }
1✔
63

64
    public String getInscricaoEstadual() {
65
        return this.inscricaoEstadual;
×
66
    }
67

68
    /**
69
     * Inscrição Estadual do Emitente
70
     */
71
    public void setInscricaoEstadual(final String inscricaoEstadual) {
72
        DFStringValidador.inscricaoEstadualSemIsencao(inscricaoEstadual);
1✔
73
        this.inscricaoEstadual = inscricaoEstadual;
1✔
74
    }
1✔
75

76
    public String getInscricaoEstadualST() {
77
        return this.inscricaoEstadualST;
×
78
    }
79

80
    /**
81
     * Inscrição Estadual do Substituto Tributário
82
     */
83
    public void setInscricaoEstadualST(final String inscricaoEstadualST) {
84
        DFStringValidador.tamanho14N(inscricaoEstadualST, "Inscrição Estadual do Substituto Tributário");
1✔
85
        this.inscricaoEstadualST = inscricaoEstadualST;
1✔
86
    }
1✔
87

88
    public String getRazaoSocial() {
89
        return this.razaoSocial;
×
90
    }
91

92
    /**
93
     * Razão social ou Nome do emitente
94
     */
95
    public void setRazaoSocial(final String xNome) {
96
        DFStringValidador.tamanho2ate60(xNome, "Razão social ou Nome do emitente");
1✔
97
        this.razaoSocial = xNome;
1✔
98
    }
1✔
99

100
    public String getNomeFantasia() {
101
        return this.nomeFantasia;
×
102
    }
103

104
    /**
105
     * Nome fantasia
106
     */
107
    public void setNomeFantasia(final String xFant) {
108
        DFStringValidador.tamanho2ate60(xFant, "Nome fantasia");
1✔
109
        this.nomeFantasia = xFant;
1✔
110
    }
1✔
111

112
    public CTeNotaEnderecoEmitente getEnderEmit() {
113
        return this.endereco;
×
114
    }
115

116
    /**
117
     * Endereço do emitente
118
     */
119
    public void setEnderEmit(final CTeNotaEnderecoEmitente enderEmit) {
120
        this.endereco = enderEmit;
1✔
121
    }
1✔
122

123
    public CTTipoRegimeTributario getTipoRegimeTributario() {
124
        return tipoRegimeTributario;
×
125
    }
126

127
    public CTeNotaInfoEmitente setTipoRegimeTributario(CTTipoRegimeTributario tipoRegimeTributario) {
128
        this.tipoRegimeTributario = tipoRegimeTributario;
×
129
        return this;
×
130
    }
131
}
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

© 2026 Coveralls, Inc