• 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/cte300/classes/nota/CTeNotaInfoRemetente.java
1
package com.fincatto.documentofiscal.cte300.classes.nota;
2

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

9
/**
10
 * @author Caio
11
 * @info Informações do Remetente das mercadorias transportadas pelo CT-e<br>
12
 *       Poderá não ser informado para os CT-e de redespacho intermediário e serviço vinculado a multimodal. Nos demais casos deverá sempre ser informado.
13
 */
14

15
@Root(name = "rem")
16
@Namespace(reference = "http://www.portalfiscal.inf.br/cte")
17
public class CTeNotaInfoRemetente extends DFBase {
18
    private static final long serialVersionUID = -6678523041232814382L;
19

20
    @Element(name = "CNPJ", required = false)
21
    private String cnpj;
22

23
    @Element(name = "CPF", required = false)
24
    private String cpf;
25

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

32
    @Element(name = "xFant", required = false)
33
    private String nomeFantasia;
34

35
    @Element(name = "fone", required = false)
36
    private String telefone;
37
    
38
    @Element(name = "enderReme")
39
    private CTeNotaEndereco endereco;
40

41
    @Element(name = "email", required = false)
42
    private String email;
43

44
    public CTeNotaInfoRemetente() {
×
45
        this.cnpj = null;
×
46
        this.cpf = null;
×
47
        this.inscricaoEstadual = null;
×
48
        this.razaoSocial = null;
×
49
        this.nomeFantasia = null;
×
50
        this.telefone = null;
×
51
        this.endereco = null;
×
52
        this.email = null;
×
53
    }
×
54

55
    public String getCnpj() {
56
        return this.cnpj;
×
57
    }
58

59
    /**
60
     * Número do CNPJ<br>
61
     * Em caso de empresa não estabelecida no Brasil, será informado o CNPJ com zeros. Informar os zeros não significativos.
62
     */
63
    public void setCnpj(final String cnpj) {
64
        DFStringValidador.cnpj(cnpj);
×
65
        this.cnpj = cnpj;
×
66
    }
×
67

68
    public String getCpf() {
69
        return this.cpf;
×
70
    }
71

72
    /**
73
     * Número do CPF<br>
74
     * Informar os zeros não significativos.
75
     */
76
    public void setCpf(final String cpf) {
77
        DFStringValidador.cpf(cpf);
×
78
        this.cpf = cpf;
×
79
    }
×
80

81
    public String getInscricaoEstadual() {
82
        return this.inscricaoEstadual;
×
83
    }
84

85
    /**
86
     * Inscrição Estadual<br>
87
     * Informar a IE do remetente ou ISENTO se remetente é contribuinte do ICMS isento de inscrição no cadastro de contribuintes do ICMS. Caso o remetente não seja contribuinte do ICMS não informar a tag.
88
     */
89
    public void setInscricaoEstadual(final String inscricaoEstadual) {
90
        DFStringValidador.inscricaoEstadual(inscricaoEstadual);
×
91
        this.inscricaoEstadual = inscricaoEstadual;
×
92
    }
×
93

94
    public String getRazaoSocial() {
95
        return this.razaoSocial;
×
96
    }
97

98
    /**
99
     * Razão social ou nome do remetente
100
     */
101
    public void setRazaoSocial(final String razaoSocial) {
102
        DFStringValidador.tamanho2ate60(razaoSocial, "Razão social ou nome do remetente");
×
103
        this.razaoSocial = razaoSocial;
×
104
    }
×
105

106
    public String getNomeFantasia() {
107
        return this.nomeFantasia;
×
108
    }
109

110
    /**
111
     * Nome fantasia
112
     */
113
    public void setNomeFantasia(final String nomeFantasia) {
114
        DFStringValidador.tamanho2ate60(nomeFantasia, "Nome fantasia");
×
115
        this.nomeFantasia = nomeFantasia;
×
116
    }
×
117

118
    public String getTelefone() {
119
        return this.telefone;
×
120
    }
121

122
    /**
123
     * Telefone
124
     */
125
    public void setTelefone(final String telefone) {
126
        DFStringValidador.telefone(telefone);
×
127
        this.telefone = telefone;
×
128
    }
×
129

130
    public CTeNotaEndereco getEndereco() {
131
        return this.endereco;
×
132
    }
133

134
    /**
135
     * Dados do endereço
136
     */
137
    public void setEndereco(final CTeNotaEndereco endereco) {
138
        this.endereco = endereco;
×
139
    }
×
140

141
    public String getEmail() {
142
        return this.email;
×
143
    }
144

145
    /**
146
     * Endereço de email
147
     */
148
    public void setEmail(final String email) {
149
        DFStringValidador.tamanho60(email, "Endereço de email");
×
150
        DFStringValidador.email(email);
×
151
        this.email = email;
×
152
    }
×
153
}
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