Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distribuição MDFe #1017

Merged
merged 16 commits into from
Dec 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
public class CTeNotaInfoCTeNormalInfoModalAquaviarioConteinerInfoDocumentos extends DFBase {
private static final long serialVersionUID = 2746254923817166298L;

@ElementList(name = "infNF", inline = true)
@ElementList(name = "infNF", inline = true, required = false)
private List<CTeNotaInfoCTeNormalInfoModalAquaviarioConteinerInfoDocumentosNF> infoDocumentosNF;

@ElementList(name = "infNFe", inline = true)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.fincatto.documentofiscal.mdfe.classes.distribuicao;

import org.simpleframework.xml.Element;

import com.fincatto.documentofiscal.DFBase;

public class MDFeDistribuicaoConsultaNSU extends DFBase {

private static final long serialVersionUID = -582191692175285331L;

@Element(name = "NSU")
private String nsu;

public String getNsu() {
return this.nsu;
}

public MDFeDistribuicaoConsultaNSU setNsu(final String nsu) {
this.nsu = nsu;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
package com.fincatto.documentofiscal.mdfe.classes.distribuicao;

import java.util.List;

import org.simpleframework.xml.ElementList;

import com.fincatto.documentofiscal.DFBase;

public class MDFeDistribuicaoDFeLote extends DFBase {
private static final long serialVersionUID = 5213446895183202408L;

@ElementList(name = "docZip", inline = true, required = false)
private List<MDFeDistribuicaoDocumentoZip> docZip;

public List<MDFeDistribuicaoDocumentoZip> getDocZip() {
return this.docZip;
}

public MDFeDistribuicaoDFeLote setDocZip(final List<MDFeDistribuicaoDocumentoZip> docZip) {
this.docZip = docZip;
return this;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package com.fincatto.documentofiscal.mdfe.classes.distribuicao;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Root;
import org.simpleframework.xml.Text;

import com.fincatto.documentofiscal.DFBase;

@Root(name = "docZip")
public class MDFeDistribuicaoDocumentoZip extends DFBase {
private static final long serialVersionUID = -6656266954109936292L;

@Text
private String value;

@Attribute(name = "NSU")
private String nsu;

@Attribute(name = "schema")
private String schema;

public String getValue() {
return this.value;
}

public String getNsu() {
return this.nsu;
}

public MDFeDistribuicaoDocumentoZip setNsu(final String nsu) {
this.nsu = nsu;
return this;
}

public String getSchema() {
return this.schema;
}

public MDFeDistribuicaoDocumentoZip setSchema(final String schema) {
this.schema = schema;
return this;
}

public MDFeDistribuicaoDocumentoZip setValue(final String value) {
this.value = value;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
package com.fincatto.documentofiscal.mdfe.classes.distribuicao;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;

import com.fincatto.documentofiscal.DFAmbiente;
import com.fincatto.documentofiscal.DFBase;

@Root(name = "distDFeInt")
@Namespace(reference = "http://www.portalfiscal.inf.br/mdfe")
public class MDFeDistribuicaoInt extends DFBase {
private static final long serialVersionUID = -7079002577486035141L;

@Attribute(name = "versao")
private String versao;

@Element(name = "tpAmb")
private DFAmbiente ambiente;

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

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

@Element(name = "distNSU", required = false)
private MDFeDistribuicaoNSU distribuicao;

@Element(name = "consNSU", required = false)
private MDFeDistribuicaoConsultaNSU consulta;

public String getVersao() {
return this.versao;
}

public void setVersao(final String versao) {
this.versao = versao;
}

public DFAmbiente getAmbiente() {
return this.ambiente;
}

public void setAmbiente(final DFAmbiente ambiente) {
this.ambiente = ambiente;
}

public String getCnpj() {
return this.cnpj;
}

public void setCnpj(final String cnpj) {
this.cnpj = cnpj;
}

public String getCpf() {
return this.cpf;
}

public void setCpf(final String cpf) {
this.cpf = cpf;
}

public MDFeDistribuicaoNSU getDistribuicao() {
return this.distribuicao;
}

public void setDistribuicao(final MDFeDistribuicaoNSU distribuicao) {
this.distribuicao = distribuicao;
}

public MDFeDistribuicaoConsultaNSU getConsulta() {
return this.consulta;
}

public void setConsulta(final MDFeDistribuicaoConsultaNSU consulta) {
this.consulta = consulta;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
package com.fincatto.documentofiscal.mdfe.classes.distribuicao;

import org.simpleframework.xml.Attribute;
import org.simpleframework.xml.Element;
import org.simpleframework.xml.Namespace;
import org.simpleframework.xml.Root;

import com.fincatto.documentofiscal.DFAmbiente;
import com.fincatto.documentofiscal.DFBase;

@Root(name = "retDistDFeInt")
@Namespace(reference = "http://www.portalfiscal.inf.br/mdfe")
public class MDFeDistribuicaoIntRetorno extends DFBase {
private static final long serialVersionUID = 8390916638871236156L;

@Attribute(name = "versao")
private String versao;

@Element(name = "tpAmb")
private DFAmbiente ambiente;

@Element(name = "verAplic")
private String versaoAplicativo;

@Element(name = "cStat")
private String codigoStatusReposta;

@Element(name = "xMotivo")
private String motivo;

@Element(name = "dhResp")
private String dataHoraResposta;

@Element(name = "ultNSU")
private String ultimoNSU;

@Element(name = "maxNSU")
private String maximoNSU;

@Element(name = "loteDistDFeInt", required = false)
private MDFeDistribuicaoDFeLote lote;

public String getVersao() {
return this.versao;
}

public void setVersao(final String versao) {
this.versao = versao;
}

public DFAmbiente getAmbiente() {
return this.ambiente;
}

public void setAmbiente(final DFAmbiente ambiente) {
this.ambiente = ambiente;
}

public String getVersaoAplicativo() {
return this.versaoAplicativo;
}

public void setVersaoAplicativo(final String versaoAplicativo) {
this.versaoAplicativo = versaoAplicativo;
}

public String getCodigoStatusReposta() {
return this.codigoStatusReposta;
}

public void setCodigoStatusReposta(final String codigoStatusReposta) {
this.codigoStatusReposta = codigoStatusReposta;
}

public String getMotivo() {
return this.motivo;
}

public void setMotivo(final String motivo) {
this.motivo = motivo;
}

public String getDataHoraResposta() {
return this.dataHoraResposta;
}

public void setDataHoraResposta(final String dataHoraResposta) {
this.dataHoraResposta = dataHoraResposta;
}

public String getUltimoNSU() {
return this.ultimoNSU;
}

public void setUltimoNSU(final String ultimoNSU) {
this.ultimoNSU = ultimoNSU;
}

public String getMaximoNSU() {
return this.maximoNSU;
}

public void setMaximoNSU(final String maximoNSU) {
this.maximoNSU = maximoNSU;
}

public MDFeDistribuicaoDFeLote getLote() {
return this.lote;
}

public void setLote(final MDFeDistribuicaoDFeLote lote) {
this.lote = lote;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
package com.fincatto.documentofiscal.mdfe.classes.distribuicao;

import org.simpleframework.xml.Element;

import com.fincatto.documentofiscal.DFBase;

public class MDFeDistribuicaoNSU extends DFBase {
private static final long serialVersionUID = -50569062199740836L;

@Element(name = "ultNSU")
private String ultimoNSU;

public java.lang.String getUltimoNSU() {
return this.ultimoNSU;
}

public MDFeDistribuicaoNSU setUltimoNSU(final java.lang.String ultimoNSU) {
this.ultimoNSU = ultimoNSU;
return this;
}

}
Loading
Loading