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

wmixvideo / nfe / #9106

22 May 2026 12:03PM UTC coverage: 50.605% (+23.6%) from 26.996%
#9106

push

web-flow
feat: suporte a CNPJ alfanumérico em chaves NF-e, CT-e e campos CNPJ (#1165)

* feat: adicionando schema 1.14 para cte 4.00

* feat: removendo validacao de apenas numerico no identificador

* feat: removendo validacao de apenas numerico no identificador

* test: adicionando teste

* test: adicionando teste

* test: adicionando teste

* feat: cnpj, chave de cte e nfe para aceitar alfanumerico

---------

Co-authored-by: Matteus Colins Moreira <matteuscolins@Colinss-MacBook-Pro.local>
Co-authored-by: Matteus Colins <matteusc.moreira@gmail.com>
Co-authored-by: Diego Fincatto <58352+fincatto@users.noreply.github.com>

39 of 84 new or added lines in 75 files covered. (46.43%)

2960 existing lines in 403 files now uncovered.

14856 of 29357 relevant lines covered (50.6%)

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

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

11
import java.math.BigDecimal;
12
import java.time.LocalDate;
13

14
@Root(name = "infDocRef")
15
@Namespace(reference = CTeConfig.NAMESPACE)
16
public class CTeOSInfoCTeNormalInfoDocumentos extends DFBase {
×
17
    private static final long serialVersionUID = 8490041070801837687L;
18

19
    @Element(name = "nDoc", required = false)
20
    private String numeroDocumento;
21

22
    @Element(name = "serie", required = false)
23
    private String serie;
24

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

28
    @Element(name = "dEmi", required = false)
29
    private LocalDate dataEmissao;
30

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

34
    @Element(name = "chBPe", required = false)
35
    private String chaveBilhetePassagem;
36

37
    public String getNumeroDocumento() {
38
        return numeroDocumento;
×
39
    }
40

41
    public void setNumeroDocumento(final String numeroDocumento) {
42
        DFStringValidador.tamanho20(numeroDocumento, "Numero Documento");
×
43
        this.numeroDocumento = numeroDocumento;
×
44
    }
×
45

46
    public String getSerie() {
47
        return serie;
×
48
    }
49

50
    public void setSerie(final String serie) {
51
        DFStringValidador.tamanho3(serie, "Serie");
×
52
        this.serie = serie;
×
53
    }
×
54

55
    public String getSubserie() {
56
        return subserie;
×
57
    }
58

59
    public void setSubserie(final String subserie) {
60
        DFStringValidador.tamanho3(subserie, "Subserie");
×
61
        this.subserie = subserie;
×
62
    }
×
63

64
    public LocalDate getDataEmissao() {
65
        return dataEmissao;
×
66
    }
67

68
    public void setDataEmissao(final LocalDate dataEmissao) {
69
        this.dataEmissao = dataEmissao;
×
70
    }
×
71

72
    public String getValorDocumento() {
73
        return valorDocumento;
×
74
    }
75

76
    public void setValorDocumento(final BigDecimal valorDocumento) {
77
        this.valorDocumento = DFBigDecimalValidador.tamanho15Com2CasasDecimais(valorDocumento, "Valor Documento");
×
78
    }
×
79

80
    public String getChaveBilhetePassagem() {
81
        return chaveBilhetePassagem;
×
82
    }
83

84
    public void setChaveBilhetePassagem(String chaveBilhetePassagem) {
NEW
85
        DFStringValidador.exatamente44(chaveBilhetePassagem, "Chave de acesso do Bilhete de Passagem Eletrônico");
×
86
        this.chaveBilhetePassagem = chaveBilhetePassagem;
×
87
    }
×
88
}
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