• 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/nfe310/classes/evento/downloadnf/NFDownloadNFe.java
1
package com.fincatto.documentofiscal.nfe310.classes.evento.downloadnf;
2

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

11
@Root(name = "downloadNFe")
12
@Namespace(reference = "http://www.portalfiscal.inf.br/nfe")
13
public class NFDownloadNFe extends DFBase {
14
    private static final long serialVersionUID = 5595066759407095694L;
15
    
16
    @Attribute(name = "versao")
17
    private String versao;
18
    
19
    @Element(name = "tpAmb")
20
    private DFAmbiente ambiente;
21
    
22
    @Element(name = "xServ")
23
    private String servico;
24
    
25
    @Element(name = "CNPJ")
26
    private String cnpj;
27
    
28
    @Element(name = "chNFe")
29
    private String chave;
30

31
    public NFDownloadNFe() {
×
32
        this.versao = null;
×
33
        this.ambiente = null;
×
34
        this.servico = null;
×
35
        this.cnpj = null;
×
36
        this.chave = null;
×
37
    }
×
38

39
    public String getVersao() {
40
        return this.versao;
×
41
    }
42

43
    public void setVersao(final String versao) {
44
        this.versao = versao;
×
45
    }
×
46

47
    public DFAmbiente getAmbiente() {
48
        return this.ambiente;
×
49
    }
50

51
    public void setAmbiente(final DFAmbiente ambiente) {
52
        this.ambiente = ambiente;
×
53
    }
×
54

55
    public String getServico() {
56
        return this.servico;
×
57
    }
58

59
    public void setServico(final String servico) {
60
        this.servico = servico;
×
61
    }
×
62

63
    public String getCnpj() {
64
        return this.cnpj;
×
65
    }
66

67
    public void setCnpj(final String cnpj) {
68
        DFStringValidador.cnpj(cnpj);
×
69
        this.cnpj = cnpj;
×
70
    }
×
71

72
    public String getChave() {
73
        return this.chave;
×
74
    }
75

76
    public void setChave(final String chave) {
77
        DFStringValidador.exatamente44N(chave, "chave de acesso");
×
78
        this.chave = chave;
×
79
    }
×
80
}
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