-
Notifications
You must be signed in to change notification settings - Fork 384
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Diego Fincatto <[email protected]>
- Loading branch information
1 parent
c0b8c27
commit 0b41457
Showing
5 changed files
with
398 additions
and
0 deletions.
There are no files selected for viewing
49 changes: 49 additions & 0 deletions
49
...ocumentofiscal/nfe400/classes/evento/averbacaoexportacao/NFEventoAverbacaoExportacao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package com.fincatto.documentofiscal.nfe400.classes.evento.averbacaoexportacao; | ||
|
||
import java.math.BigDecimal; | ||
|
||
import org.simpleframework.xml.Attribute; | ||
import org.simpleframework.xml.Element; | ||
|
||
import com.fincatto.documentofiscal.DFBase; | ||
import com.fincatto.documentofiscal.nfe400.classes.nota.assinatura.NFSignature; | ||
import com.fincatto.documentofiscal.validadores.BigDecimalValidador; | ||
|
||
public class NFEventoAverbacaoExportacao extends DFBase { | ||
|
||
private static final long serialVersionUID = 2970383461949905568L; | ||
|
||
@Attribute(name = "versao") | ||
private String versao; | ||
|
||
@Element(name = "infEvento") | ||
private NFInfoEventoAverbacaoExportacao infoEvento; | ||
|
||
@Element(name = "Signature", required = false) | ||
private NFSignature assinatura; | ||
|
||
public void setVersao(final BigDecimal versao) { | ||
this.versao = BigDecimalValidador.tamanho5Com2CasasDecimais(versao, "Versao"); | ||
} | ||
|
||
public NFInfoEventoAverbacaoExportacao getInfoEvento() { | ||
return this.infoEvento; | ||
} | ||
|
||
public String getVersao() { | ||
return this.versao; | ||
} | ||
|
||
public void setInfoEvento(final NFInfoEventoAverbacaoExportacao infoEvento) { | ||
this.infoEvento = infoEvento; | ||
} | ||
|
||
public void setAssinatura(final NFSignature assinatura) { | ||
this.assinatura = assinatura; | ||
} | ||
|
||
public NFSignature getAssinatura() { | ||
return this.assinatura; | ||
} | ||
|
||
} |
72 changes: 72 additions & 0 deletions
72
.../documentofiscal/nfe400/classes/evento/averbacaoexportacao/NFInfoAverbacaoExportacao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
package com.fincatto.documentofiscal.nfe400.classes.evento.averbacaoexportacao; | ||
|
||
import java.util.List; | ||
|
||
import org.simpleframework.xml.Attribute; | ||
import org.simpleframework.xml.Element; | ||
import org.simpleframework.xml.ElementList; | ||
|
||
import com.fincatto.documentofiscal.DFBase; | ||
import com.fincatto.documentofiscal.validadores.ListValidador; | ||
|
||
public class NFInfoAverbacaoExportacao extends DFBase { | ||
|
||
private static final long serialVersionUID = 2593936397273523676L; | ||
|
||
@Attribute(name = "versao") | ||
private String versao; | ||
|
||
@Element(name = "descEvento") | ||
private String descricaoEvento; | ||
|
||
@Element(name = "tpAutor") | ||
private Integer codigoAutorEvento; | ||
|
||
@Element(name = "verAplic") | ||
private String versaoAplicativoAutorEvento; | ||
|
||
@ElementList(entry = "itensAverbados", inline = true) | ||
private List<NFInfoItemAverbacaoExportacao> itensAverbados; | ||
|
||
public String getVersao() { | ||
return versao; | ||
} | ||
|
||
public void setVersao(String versao) { | ||
this.versao = versao; | ||
} | ||
|
||
public String getDescricaoEvento() { | ||
return descricaoEvento; | ||
} | ||
|
||
public void setDescricaoEvento(String descricaoEvento) { | ||
this.descricaoEvento = descricaoEvento; | ||
} | ||
|
||
public Integer getCodigoAutorEvento() { | ||
return codigoAutorEvento; | ||
} | ||
|
||
public void setCodigoAutorEvento(Integer codigoAutorEvento) { | ||
this.codigoAutorEvento = codigoAutorEvento; | ||
} | ||
|
||
public String getVersaoAplicativoAutorEvento() { | ||
return versaoAplicativoAutorEvento; | ||
} | ||
|
||
public void setVersaoAplicativoAutorEvento(String versaoAplicativoAutorEvento) { | ||
this.versaoAplicativoAutorEvento = versaoAplicativoAutorEvento; | ||
} | ||
|
||
public List<NFInfoItemAverbacaoExportacao> getItensAverbados() { | ||
ListValidador.tamanho990(itensAverbados, "Itens Averbados"); | ||
return itensAverbados; | ||
} | ||
|
||
public void setItensAverbados(List<NFInfoItemAverbacaoExportacao> itensAverbados) { | ||
this.itensAverbados = itensAverbados; | ||
} | ||
|
||
} |
135 changes: 135 additions & 0 deletions
135
...entofiscal/nfe400/classes/evento/averbacaoexportacao/NFInfoEventoAverbacaoExportacao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,135 @@ | ||
package com.fincatto.documentofiscal.nfe400.classes.evento.averbacaoexportacao; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.ZonedDateTime; | ||
|
||
import org.simpleframework.xml.Attribute; | ||
import org.simpleframework.xml.Element; | ||
|
||
import com.fincatto.documentofiscal.DFAmbiente; | ||
import com.fincatto.documentofiscal.DFBase; | ||
import com.fincatto.documentofiscal.DFUnidadeFederativa; | ||
import com.fincatto.documentofiscal.validadores.BigDecimalValidador; | ||
import com.fincatto.documentofiscal.validadores.IntegerValidador; | ||
import com.fincatto.documentofiscal.validadores.StringValidador; | ||
|
||
public class NFInfoEventoAverbacaoExportacao extends DFBase { | ||
|
||
private static final long serialVersionUID = 2460706933290434169L; | ||
|
||
@Attribute(name = "Id") | ||
private String id; | ||
|
||
@Element(name = "cOrgao") | ||
private DFUnidadeFederativa orgao; | ||
|
||
@Element(name = "tpAmb") | ||
private DFAmbiente ambiente; | ||
|
||
@Element(name = "CNPJ", required = false) | ||
private String cnpj; | ||
|
||
@Element(name = "chNFe") | ||
private String chave; | ||
|
||
@Element(name = "dhEvento") | ||
private ZonedDateTime dataHoraEvento; | ||
|
||
@Element(name = "tpEvento") | ||
private String codigoEvento; | ||
|
||
@Element(name = "nSeqEvento") | ||
private Integer numeroSequencialEvento; | ||
|
||
@Element(name = "verEvento") | ||
private String versaoEvento; | ||
|
||
@Element(name = "detEvento") | ||
private NFInfoAverbacaoExportacao averbacaoExportacao; | ||
|
||
public String getId() { | ||
return this.id; | ||
} | ||
|
||
public void setId(final String id) { | ||
StringValidador.exatamente54(id, "Info Evento Averbacao Exportacao ID"); | ||
this.id = id; | ||
} | ||
|
||
public DFUnidadeFederativa getOrgao() { | ||
return this.orgao; | ||
} | ||
|
||
public void setOrgao(final DFUnidadeFederativa orgao) { | ||
this.orgao = orgao; | ||
} | ||
|
||
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) { | ||
StringValidador.cnpj(cnpj); | ||
this.cnpj = cnpj; | ||
} | ||
|
||
public String getChave() { | ||
return this.chave; | ||
} | ||
|
||
public void setChave(final String chave) { | ||
StringValidador.exatamente44N(chave, "Info Evento Averbacao Exportacao Chave"); | ||
this.chave = chave; | ||
} | ||
|
||
public ZonedDateTime getDataHoraEvento() { | ||
return this.dataHoraEvento; | ||
} | ||
|
||
public void setDataHoraEvento(final ZonedDateTime dataHoraEvento) { | ||
this.dataHoraEvento = dataHoraEvento; | ||
} | ||
|
||
public String getCodigoEvento() { | ||
return this.codigoEvento; | ||
} | ||
|
||
public void setCodigoEvento(final String codigoEvento) { | ||
StringValidador.exatamente6N(codigoEvento, "Info Evento Averbacao Exportacao Codigo"); | ||
this.codigoEvento = codigoEvento; | ||
} | ||
|
||
public int getNumeroSequencialEvento() { | ||
return this.numeroSequencialEvento; | ||
} | ||
|
||
public void setNumeroSequencialEvento(final int numeroSequencialEvento) { | ||
IntegerValidador.tamanho1a2(numeroSequencialEvento, "Numero Sequencial Evento"); | ||
this.numeroSequencialEvento = numeroSequencialEvento; | ||
} | ||
|
||
public String getVersaoEvento() { | ||
return this.versaoEvento; | ||
} | ||
|
||
public void setVersaoEvento(final BigDecimal versaoEvento) { | ||
this.versaoEvento = BigDecimalValidador.tamanho5Com2CasasDecimais(versaoEvento, "Versao do Evento"); | ||
} | ||
|
||
public NFInfoAverbacaoExportacao getAverbacaoExportacao() { | ||
return this.averbacaoExportacao; | ||
} | ||
|
||
public void setAverbacaoExportacao(final NFInfoAverbacaoExportacao averbacaoExportacao) { | ||
this.averbacaoExportacao = averbacaoExportacao; | ||
} | ||
|
||
} |
92 changes: 92 additions & 0 deletions
92
...umentofiscal/nfe400/classes/evento/averbacaoexportacao/NFInfoItemAverbacaoExportacao.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
package com.fincatto.documentofiscal.nfe400.classes.evento.averbacaoexportacao; | ||
|
||
import java.math.BigDecimal; | ||
import java.time.ZonedDateTime; | ||
|
||
import org.simpleframework.xml.Element; | ||
|
||
import com.fincatto.documentofiscal.DFBase; | ||
import com.fincatto.documentofiscal.validadores.BigDecimalValidador; | ||
|
||
public class NFInfoItemAverbacaoExportacao extends DFBase { | ||
|
||
private static final long serialVersionUID = 8935624336087331066L; | ||
|
||
@Element(name = "dhEmbarque") | ||
private ZonedDateTime dataHoraEmbarque; | ||
|
||
@Element(name = "dhAverbacao") | ||
private ZonedDateTime dataHoraAverbacao; | ||
|
||
@Element(name = "nDue") | ||
private String numeroDue; | ||
|
||
@Element(name = "nItem") | ||
private Integer numeroItemNFe; | ||
|
||
@Element(name = "nItemDue") | ||
private Integer numeroItemDue; | ||
|
||
@Element(name = "qItem") | ||
private String quantidadeAverbada; | ||
|
||
@Element(name = "motAlteracao") | ||
private Integer motivoAlteracao; | ||
|
||
public ZonedDateTime getDataHoraEmbarque() { | ||
return dataHoraEmbarque; | ||
} | ||
|
||
public void setDataHoraEmbarque(ZonedDateTime dataHoraEmbarque) { | ||
this.dataHoraEmbarque = dataHoraEmbarque; | ||
} | ||
|
||
public ZonedDateTime getDataHoraAverbacao() { | ||
return dataHoraAverbacao; | ||
} | ||
|
||
public void setDataHoraAverbacao(ZonedDateTime dataHoraAverbacao) { | ||
this.dataHoraAverbacao = dataHoraAverbacao; | ||
} | ||
|
||
public String getNumeroDue() { | ||
return numeroDue; | ||
} | ||
|
||
public void setNumeroDue(String numeroDue) { | ||
this.numeroDue = numeroDue; | ||
} | ||
|
||
public Integer getNumeroItemNFe() { | ||
return numeroItemNFe; | ||
} | ||
|
||
public void setNumeroItemNFe(Integer numeroItemNFe) { | ||
this.numeroItemNFe = numeroItemNFe; | ||
} | ||
|
||
public Integer getNumeroItemDue() { | ||
return numeroItemDue; | ||
} | ||
|
||
public void setNumeroItemDue(Integer numeroItemDue) { | ||
this.numeroItemDue = numeroItemDue; | ||
} | ||
|
||
public String getQuantidadeAverbada() { | ||
return quantidadeAverbada; | ||
} | ||
|
||
public void setQuantidadeAverbada(BigDecimal quantidadeAverbada) { | ||
this.quantidadeAverbada = BigDecimalValidador.tamanho15Com4CasasDecimais(quantidadeAverbada, "Quantidade Averbada"); | ||
} | ||
|
||
public Integer getMotivoAlteracao() { | ||
return motivoAlteracao; | ||
} | ||
|
||
public void setMotivoAlteracao(Integer motivoAlteracao) { | ||
this.motivoAlteracao = motivoAlteracao; | ||
} | ||
|
||
} |
Oops, something went wrong.