Skip to content

Commit

Permalink
Schema e novos Campos - NT2023.004 (#981)
Browse files Browse the repository at this point in the history
* Implementação de serviço de recepção síncrono do MDF-e (MDFeRecepcaoSinc). Serviços Assíncronos serão desativados na data de 30 de Junho de 2024 conforme versa a NT 2024.001.

* Revert "Implementação de serviço de recepção síncrono do MDF-e (MDFeRecepcaoSinc). Serviços Assíncronos serão desativados na data de 30 de Junho de 2024 conforme versa a NT 2024.001."

This reverts commit d597f69.

* Atualização dos schemas e campos conforme NT2023.004.

---------

Co-authored-by: ediva <ediva@emsnote5>
Co-authored-by: Walter Portugal <[email protected]>
  • Loading branch information
3 people authored Jul 9, 2024
1 parent e68a200 commit 149283b
Show file tree
Hide file tree
Showing 60 changed files with 18,100 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ public enum NFOrigemProcesso {
JUSTICA_FEDERAL("1", "Justi\u00e7a Federal"),
JUSTICA_ESTADUAL("2", "Justi\u00e7a Estadual"),
SECEX_RFB("3", "Secex RFB"),
CONFAZ("4", "CONFAZ"),
OUTROS("9", "Outros");

private final String codigo;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
package com.fincatto.documentofiscal.nfe400.classes;

public enum NFTipoDeducaoIcms {

NAO_DEDUZ_VALOR_ITEM("0", "Sem Dedu\u00e7\u00e3o do Valor do Item"),
DEDUZ_VALOR_ITEM("1", "Deduz do Valor do Item");

private final String codigo;
private final String descricao;

NFTipoDeducaoIcms(final String codigo, final String descricao) {
this.codigo = codigo;
this.descricao = descricao;
}

public String getCodigo() {
return this.codigo;
}

public static NFTipoDeducaoIcms valueOfCodigo(final String codigo) {
for (final NFTipoDeducaoIcms tipo : NFTipoDeducaoIcms.values()) {
if (tipo.getCodigo().equals(codigo)) {
return tipo;
}
}
return null;
}

@Override
public String toString() {
return codigo + " - " + descricao;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,12 @@ public class NFNotaInfoCartao extends DFBase {

@Element(name = "cAut", required = false)
private String numeroAutorizacaoOperacaoCartao;

@Element(name = "CNPJReceb", required = false)
private String cnpjBenefPagamento;

@Element(name = "idTermPag", required = false)
private String identificadorTerminalPagamento;

public void setCnpj(final String cnpj) {
DFStringValidador.cnpj(cnpj);
Expand Down Expand Up @@ -53,4 +59,20 @@ public void setTipoIntegracao(final NFTipoIntegracaoPagamento tipoIntegracao) {
this.tipoIntegracao = tipoIntegracao;
}

public String getCnpjBenefPagamento() {
return cnpjBenefPagamento;
}

public void setCnpjBenefPagamento(String cnpjBenefPagamento) {
this.cnpjBenefPagamento = cnpjBenefPagamento;
}

public String getIdentificadorTerminalPagamento() {
return identificadorTerminalPagamento;
}

public void setIdentificadorTerminalPagamento(String identificadorTerminalPagamento) {
this.identificadorTerminalPagamento = identificadorTerminalPagamento;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -5,32 +5,33 @@
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoItemModalidadeBCICMS;
import com.fincatto.documentofiscal.nfe400.classes.NFNotaMotivoDesoneracaoICMS;
import com.fincatto.documentofiscal.nfe400.classes.NFOrigem;
import com.fincatto.documentofiscal.nfe400.classes.NFTipoDeducaoIcms;
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
import org.simpleframework.xml.Element;

import java.math.BigDecimal;
import org.simpleframework.xml.Element;

public class NFNotaInfoItemImpostoICMS20 extends DFBase {

private static final long serialVersionUID = -7632059708755735047L;

@Element(name = "orig")
private NFOrigem origem;

@Element(name = "CST")
private NFNotaInfoImpostoTributacaoICMS situacaoTributaria;

@Element(name = "modBC")
private NFNotaInfoItemModalidadeBCICMS modalidadeBCICMS;

@Element(name = "pRedBC")
private String percentualReducaoBC;

@Element(name = "vBC")
private String valorBCICMS;

@Element(name = "pICMS")
private String percentualAliquota;

@Element(name = "vICMS")
private String valorTributo;

Expand All @@ -49,6 +50,9 @@ public class NFNotaInfoItemImpostoICMS20 extends DFBase {
@Element(name = "motDesICMS", required = false)
private NFNotaMotivoDesoneracaoICMS desoneracao;

@Element(name = "indDeduzDeson", required = false)
private NFTipoDeducaoIcms indicaDeduzDesoneracao;

public void setOrigem(final NFOrigem origem) {
this.origem = origem;
}
Expand Down Expand Up @@ -147,4 +151,12 @@ public String getPercentualFundoCombatePobreza() {
public String getValorFundoCombatePobreza() {
return this.valorFundoCombatePobreza;
}
}

public NFTipoDeducaoIcms getIndicaDeduzDesoneracao() {
return indicaDeduzDesoneracao;
}

public void setIndicaDeduzDesoneracao(NFTipoDeducaoIcms indicaDeduzDesoneracao) {
this.indicaDeduzDesoneracao = indicaDeduzDesoneracao;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,21 @@
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoItemModalidadeBCICMSST;
import com.fincatto.documentofiscal.nfe400.classes.NFNotaMotivoDesoneracaoICMS;
import com.fincatto.documentofiscal.nfe400.classes.NFOrigem;
import com.fincatto.documentofiscal.nfe400.classes.NFTipoDeducaoIcms;
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
import org.simpleframework.xml.Element;

import java.math.BigDecimal;
import org.simpleframework.xml.Element;

public class NFNotaInfoItemImpostoICMS30 extends DFBase {

private static final long serialVersionUID = 5195970258396234982L;

@Element(name = "orig")
private NFOrigem origem;

@Element(name = "CST")
private NFNotaInfoImpostoTributacaoICMS situacaoTributaria;

@Element(name = "modBCST")
private NFNotaInfoItemModalidadeBCICMSST modalidadeBCICMSST;

Expand All @@ -27,13 +28,13 @@ public class NFNotaInfoItemImpostoICMS30 extends DFBase {

@Element(name = "pRedBCST", required = false)
private String percentualReducaoBCICMSST;

@Element(name = "vBCST")
private String valorBCICMSST;

@Element(name = "pICMSST")
private String percentualAliquotaImpostoICMSST;

@Element(name = "vICMSST")
private String valorImpostoICMSST;

Expand All @@ -52,6 +53,9 @@ public class NFNotaInfoItemImpostoICMS30 extends DFBase {
@Element(name = "motDesICMS", required = false)
private NFNotaMotivoDesoneracaoICMS desoneracao;

@Element(name = "indDeduzDeson", required = false)
private NFTipoDeducaoIcms indicaDeduzDesoneracao;

public void setOrigem(final NFOrigem origem) {
this.origem = origem;
}
Expand Down Expand Up @@ -158,4 +162,12 @@ public String getValorBCFundoCombatePobrezaST() {
public String getValorFundoCombatePobrezaST() {
return this.valorFundoCombatePobrezaST;
}
}

public NFTipoDeducaoIcms getIndicaDeduzDesoneracao() {
return indicaDeduzDesoneracao;
}

public void setIndicaDeduzDesoneracao(NFTipoDeducaoIcms indicaDeduzDesoneracao) {
this.indicaDeduzDesoneracao = indicaDeduzDesoneracao;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
import com.fincatto.documentofiscal.nfe400.classes.NFNotaInfoImpostoTributacaoICMS;
import com.fincatto.documentofiscal.nfe400.classes.NFNotaMotivoDesoneracaoICMS;
import com.fincatto.documentofiscal.nfe400.classes.NFOrigem;
import com.fincatto.documentofiscal.nfe400.classes.NFTipoDeducaoIcms;
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
import org.simpleframework.xml.Element;

import java.math.BigDecimal;
import org.simpleframework.xml.Element;

public class NFNotaInfoItemImpostoICMS40 extends DFBase {
private static final long serialVersionUID = -366528394939416671L;
Expand All @@ -23,6 +23,9 @@ public class NFNotaInfoItemImpostoICMS40 extends DFBase {

@Element(name = "motDesICMS", required = false)
private NFNotaMotivoDesoneracaoICMS motivoDesoneracaoICMS;

@Element(name = "indDeduzDeson", required = false)
private NFTipoDeducaoIcms indicaDeduzDesoneracao;

public void setOrigem(final NFOrigem origem) {
this.origem = origem;
Expand Down Expand Up @@ -55,4 +58,12 @@ public String getValorICMSDesoneracao() {
public NFNotaMotivoDesoneracaoICMS getMotivoDesoneracaoICMS() {
return this.motivoDesoneracaoICMS;
}

public NFTipoDeducaoIcms getIndicaDeduzDesoneracao() {
return indicaDeduzDesoneracao;
}

public void setIndicaDeduzDesoneracao(NFTipoDeducaoIcms indicaDeduzDesoneracao) {
this.indicaDeduzDesoneracao = indicaDeduzDesoneracao;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.nfe400.classes.*;
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
import org.simpleframework.xml.Element;

import java.math.BigDecimal;
import org.simpleframework.xml.Element;

public class NFNotaInfoItemImpostoICMS70 extends DFBase {

private static final long serialVersionUID = -5946992423885910972L;

@Element(name = "orig")
private NFOrigem origem;

@Element(name = "CST")
private NFNotaInfoImpostoTributacaoICMS situacaoTributaria;

@Element(name = "modBC")
private NFNotaInfoItemModalidadeBCICMS modalidadeBCICMS;

@Element(name = "pRedBC")
private String percentualReducaoBC;

@Element(name = "vBC")
private String valorBC;

@Element(name = "pICMS")
private String percentualAliquota;

@Element(name = "vICMS")
private String valorTributo;

Expand All @@ -39,7 +39,7 @@ public class NFNotaInfoItemImpostoICMS70 extends DFBase {

@Element(name = "vFCP", required = false)
private String valorFundoCombatePobreza;

@Element(name = "modBCST")
private NFNotaInfoItemModalidadeBCICMSST modalidadeBCICMSST;

Expand All @@ -48,13 +48,13 @@ public class NFNotaInfoItemImpostoICMS70 extends DFBase {

@Element(name = "pRedBCST", required = false)
private String percentualReducaoBCICMSST;

@Element(name = "vBCST")
private String valorBCST;

@Element(name = "pICMSST")
private String percentualAliquotaImpostoICMSST;

@Element(name = "vICMSST")
private String valorICMSST;

Expand All @@ -79,6 +79,9 @@ public class NFNotaInfoItemImpostoICMS70 extends DFBase {
@Element(name = "motDesICMSST", required = false)
private NFNotaMotivoDesoneracaoICMS motivoDesoneracaoICMSST;

@Element(name = "indDeduzDeson", required = false)
private NFTipoDeducaoIcms indicaDeduzDesoneracao;

public void setOrigem(final NFOrigem origem) {
this.origem = origem;
}
Expand Down Expand Up @@ -268,4 +271,13 @@ public String getValorICMSSTDesonerado() {
public NFNotaMotivoDesoneracaoICMS getMotivoDesoneracaoICMSST() {
return motivoDesoneracaoICMSST;
}
}

public NFTipoDeducaoIcms getIndicaDeduzDesoneracao() {
return indicaDeduzDesoneracao;
}

public void setIndicaDeduzDesoneracao(NFTipoDeducaoIcms indicaDeduzDesoneracao) {
this.indicaDeduzDesoneracao = indicaDeduzDesoneracao;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
import com.fincatto.documentofiscal.DFBase;
import com.fincatto.documentofiscal.nfe400.classes.*;
import com.fincatto.documentofiscal.validadores.DFBigDecimalValidador;
import org.simpleframework.xml.Element;

import java.math.BigDecimal;
import org.simpleframework.xml.Element;

public class NFNotaInfoItemImpostoICMS90 extends DFBase {

private static final long serialVersionUID = 5614463736855881160L;

@Element(name = "orig")
private NFOrigem origem;

@Element(name = "CST")
private NFNotaInfoImpostoTributacaoICMS situacaoTributaria;

Expand Down Expand Up @@ -79,6 +79,9 @@ public class NFNotaInfoItemImpostoICMS90 extends DFBase {
@Element(name = "motDesICMSST", required = false)
private NFNotaMotivoDesoneracaoICMS motivoDesoneracaoICMSST;

@Element(name = "indDeduzDeson", required = false)
private NFTipoDeducaoIcms indicaDeduzDesoneracao;

public void setOrigem(final NFOrigem origem) {
this.origem = origem;
}
Expand Down Expand Up @@ -268,4 +271,12 @@ public String getValorICMSSTDesonerado() {
public NFNotaMotivoDesoneracaoICMS getMotivoDesoneracaoICMSST() {
return motivoDesoneracaoICMSST;
}
}

public NFTipoDeducaoIcms getIndicaDeduzDesoneracao() {
return indicaDeduzDesoneracao;
}

public void setIndicaDeduzDesoneracao(NFTipoDeducaoIcms indicaDeduzDesoneracao) {
this.indicaDeduzDesoneracao = indicaDeduzDesoneracao;
}
}
Loading

0 comments on commit 149283b

Please sign in to comment.