Skip to content

Commit

Permalink
Correções em anotações nas classes do CT-e 3.00 e 4.00 como Namespace…
Browse files Browse the repository at this point in the history
…, Root e ElementList
  • Loading branch information
evoliti committed Jun 18, 2023
1 parent dfd4ebd commit b7fd2c9
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 5 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<groupId>com.github.wmixvideo</groupId>
<artifactId>nfe</artifactId>
<packaging>jar</packaging>
<version>4.0.25-SNAPSHOT</version>
<version>4.0.24-SNAPSHOT</version>
<name>nfe</name>
<description>Biblioteca de comunicacao de nota fiscal eletronica brasileira</description>
<url>https://github.com/wmixvideo/nfe</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,14 @@
import org.simpleframework.xml.Root;

import java.util.List;
import org.simpleframework.xml.ElementList;

@Root(name = "evCCeCTe")
@Namespace(reference = "http://www.portalfiscal.inf.br/cte")
public class CTeEnviaEventoCartaCorrecao extends CTeTipoEvento {
private static final long serialVersionUID = -6818585208080376005L;

@Element(name = "infCorrecao")
@ElementList(name = "infCorrecao", inline = true, required = true)
private List<CTeInformacaoCartaCorrecao> correcoes;

@Element(name = "xCondUso")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import com.fincatto.documentofiscal.validadores.DFStringValidador;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(name = "infCorrecao")
public class CTeInformacaoCartaCorrecao {
@Element(name = "grupoAlterado")
private String grupoAlterado;
Expand All @@ -13,7 +15,7 @@ public class CTeInformacaoCartaCorrecao {
@Element(name = "valorAlterado")
private String valorAlterado;

@Element(name = "nroItemAlterado")
@Element(name = "nroItemAlterado", required = false)
private Integer numeroItemAlterado;

public String getGrupoAlterado() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,13 @@

import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.cte300.classes.enviolote.consulta.CTeProtocolo;
import org.simpleframework.xml.Namespace;

/**
* Created by Eldevan Nery Junior on 09/10/17.
*/
@Root(name = "cteProc")
@Namespace(reference = "http://www.portalfiscal.inf.br/cte")
public class CTeProcessado extends DFBase {
private static final long serialVersionUID = 7518732714448342954L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@
import org.simpleframework.xml.Root;

import java.util.List;
import org.simpleframework.xml.ElementList;

@Root(name = "evCCeCTe")
@Namespace(reference = CTeConfig.NAMESPACE)
public class CTeEnviaEventoCartaCorrecao extends CTeTipoEvento {
private static final long serialVersionUID = -6818585208080376005L;

@Element(name = "infCorrecao")
@ElementList(name = "infCorrecao", inline = true, required = true)
private List<CTeInformacaoCartaCorrecao> correcoes;

@Element(name = "xCondUso")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import com.fincatto.documentofiscal.validadores.DFStringValidador;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Root;

@Root(name = "infCorrecao")
public class CTeInformacaoCartaCorrecao {
@Element(name = "grupoAlterado")
private String grupoAlterado;
Expand All @@ -13,7 +15,7 @@ public class CTeInformacaoCartaCorrecao {
@Element(name = "valorAlterado")
private String valorAlterado;

@Element(name = "nroItemAlterado")
@Element(name = "nroItemAlterado", required = false)
private Integer numeroItemAlterado;

public String getGrupoAlterado() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,14 @@
import com.fincatto.documentofiscal.cte400.classes.envio.CTeProtocolo;
import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;

/**
* Created by Eldevan Nery Junior on 09/10/17.
*/
@Root(name = "cteProc")
@Namespace(reference = "http://www.portalfiscal.inf.br/cte")
public class CTeProcessado extends DFBase {
private static final long serialVersionUID = -765312048472045116L;

Expand Down

0 comments on commit b7fd2c9

Please sign in to comment.