Skip to content

Commit

Permalink
- Atualizado Objeto e XSD NT 2023.001 1.20
Browse files Browse the repository at this point in the history
- Adicionado Validacao XML Manual
  • Loading branch information
Samuel-Oliveira committed Apr 25, 2023
1 parent 0628a17 commit 8de4db7
Show file tree
Hide file tree
Showing 24 changed files with 887 additions and 229 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# Notas de versão

- Correção de Build Maven
- Atualizado Objeto e XSD NT 2023.001 1.20
- Adicionado Validacao XML Manual
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Java-NFe [![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_NFe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_NFe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.22/jar)
# Java-NFe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.23/jar)
Biblioteca Java para consumo do WebService de NFe/NFCe

## Dúvidas, Sugestões ou Consultoria
Expand All @@ -17,7 +17,7 @@ Para Iniciar :
<dependency>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java-nfe</artifactId>
<version>4.00.22</version>
<version>4.00.23</version>
</dependency>
```

Expand All @@ -29,7 +29,7 @@ repositories {
}
}
dependencies {
implementation "br.com.swconsultoria:java-nfe:4.00.22"
implementation "br.com.swconsultoria:java-nfe:4.00.23"
}
```

Expand All @@ -39,6 +39,10 @@ ________________________________________________________________________________

# Historico de Versões

## v4.00.23 - 25/04/2023 - Schemas PL.009k
- Atualizado Objeto e XSD NT 2023.001 1.20
- Adicionado Validacao XML Manual

## v4.00.22 - 22/03/2023 - Schemas PL.009k
- Correções Build Maven

Expand Down
8 changes: 4 additions & 4 deletions docs/docs/index.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_NFe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_NFe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.22/jar) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/context:java) [![Total alerts](https://img.shields.io/lgtm/alerts/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/alerts/)
[![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_NFe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_NFe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_NFe.svg) ](https://github.com/Samuel-Oliveira/Java_NFe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-nfe.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-nfe/4.00.23/jar) [![Language grade: Java](https://img.shields.io/lgtm/grade/java/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/context:java) [![Total alerts](https://img.shields.io/lgtm/alerts/g/Samuel-Oliveira/Java_NFe.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/Samuel-Oliveira/Java_NFe/alerts/)

***Biblioteca Java para consumo do WebService de NFe/NFCe***

Expand All @@ -11,7 +11,7 @@
</p>

Para Iniciar :
- Caso use Libs baixe o [java-nfe-4.00.22.jar](https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.22.jar) e o adicione às bibliotecas de Seu Projeto.
- Caso use Libs baixe o [java-nfe-4.00.23.jar](https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.23.jar) e o adicione às bibliotecas de Seu Projeto.

- Baixe o [Schemas.rar](https://github.com/Samuel-Oliveira/Java_NFe/raw/master/schemas.zip) e extraia na sua Máquina.

Expand All @@ -20,7 +20,7 @@ Para Iniciar :
<dependency>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java-nfe</artifactId>
<version>4.00.22</version>
<version>4.00.23</version>
</dependency>
```

Expand All @@ -32,7 +32,7 @@ repositories {
}
}
dependencies {
implementation "br.com.swconsultoria:java-nfe:4.00.22"
implementation "br.com.swconsultoria:java-nfe:4.00.23"
}
```

Binary file modified schemas.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions schemas/consReciNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
<xs:element name="consReciNFe" type="TConsReciNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/consStatServ_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteConsStatServ_v4.00.xsd"/>
<xs:element name="consStatServ" type="TConsStatServ">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/enviNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
<xs:element name="enviNFe" type="TEnviNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/inutNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteInutNFe_v4.00.xsd"/>
<xs:element name="inutNFe" type="TInutNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/leiauteConsultaCadastro_v2.00.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<!-- PL_006f versao com correcoes no xServ para tornar a literal CONS-CAD obrigatoria 21/05/2010 -->
<!-- PL_006c versao com correcoes 24/12/2009 -->
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
<xs:complexType name="TConsCad">
<xs:annotation>
Expand Down
41 changes: 33 additions & 8 deletions schemas/leiauteNFe_v4.00.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
<!-- PL_009-v5a implementado alterações da NT -->
<!-- PL_009k_NT2023_001_v100 implementado alterações da NT 2023.001 -->
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe"
elementFormDefault="qualified" attributeFormDefault="unqualified">
xmlns:xs="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.portalfiscal.inf.br/nfe"
elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema_v1.01.xsd"/>
<xs:include schemaLocation="tiposBasico_v4.00.xsd"/>
<xs:complexType name="TNFe">
Expand Down Expand Up @@ -1934,7 +1934,7 @@ ambiente.</xs:documentation>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="pBio" type="TDec_0304Max100Opc" minOccurs="0">
<xs:element name="pBio" type="TDec_03v00a04Max100Opc" minOccurs="0">
<xs:annotation>
<xs:documentation>Percentual do índice de mistura do Biodiesel (B100) no Óleo Diesel B instituído pelo órgão regulamentador</xs:documentation>
</xs:annotation>
Expand Down Expand Up @@ -1962,7 +1962,7 @@ ambiente.</xs:documentation>
<xs:documentation>UF de origem do produtor ou do importado</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="pOrig" type="TDec_0304Max100Opc">
<xs:element name="pOrig" type="TDec_03v00a04Max100Opc">
<xs:annotation>
<xs:documentation>Percentual originário para a UF</xs:documentation>
</xs:annotation>
Expand Down Expand Up @@ -2807,21 +2807,46 @@ A exigência do preenchimento das informações do ICMS diferido fica à critér
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="qBCMonoDif" type="TDec_1104v" minOccurs="0">
<xs:element name="qBCMono" type="TDec_1104v" minOccurs="0">
<xs:annotation>
<xs:documentation>Quantidade tributada diferida.</xs:documentation>
<xs:documentation>Quantidade tributada.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="adRemICMSDif" type="TDec_0302a04" minOccurs="0">
<xs:element name="adRemICMS" type="TDec_0302a04" minOccurs="0">
<xs:annotation>
<xs:documentation>Alíquota ad rem do imposto diferido</xs:documentation>
<xs:documentation>Alíquota ad rem do imposto.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="vICMSMonoOp" type="TDec_1302" minOccurs="0">
<xs:annotation>
<xs:documentation>Valor do ICMS da operação</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="pDif" type="TDec_0302a04Max100" minOccurs="0">
<xs:annotation>
<xs:documentation>Percentual do diferemento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="vICMSMonoDif" type="TDec_1302" minOccurs="0">
<xs:annotation>
<xs:documentation>Valor do ICMS diferido</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="vICMSMono" type="TDec_1302" minOccurs="0">
<xs:annotation>
<xs:documentation>Valor do ICMS próprio devido</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="qBCMonoDif" type="TDec_1104v" minOccurs="0">
<xs:annotation>
<xs:documentation>Quantidade tributada diferida.</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="adRemICMSDif" type="TDec_0302a04" minOccurs="0">
<xs:annotation>
<xs:documentation>Alíquota ad rem do imposto diferido</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
Expand Down
4 changes: 2 additions & 2 deletions schemas/nfe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
<xs:element name="NFe" type="TNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/procInutNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteInutNFe_v4.00.xsd"/>
<xs:element name="ProcInutNFe" type="TProcInutNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/procNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
<xs:element name="nfeProc" type="TNfeProc">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/retConsReciNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
<xs:element name="retConsReciNFe" type="TRetConsReciNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/retConsSitNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteConsSitNFe_v4.00.xsd"/>
<xs:element name="retConsSitNFe" type="TRetConsSitNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/retConsStatServ_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteConsStatServ_v4.00.xsd"/>
<xs:element name="retConsStatServ" type="TRetConsStatServ">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/retEnviNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
<xs:element name="retEnviNFe" type="TRetEnviNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/retInutNFe_v4.00.xsd
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="leiauteInutNFe_v4.00.xsd"/>
<xs:element name="retInutNFe" type="TRetInutNFe">
<xs:annotation>
Expand Down
4 changes: 2 additions & 2 deletions schemas/tiposBasico_v4.00.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -189,13 +189,13 @@
<xs:pattern value="0(\.[0-9]{4})?|100(\.00)?|[1-9]{1}[0-9]{0,1}(\.[0-9]{4})?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TDec_0304Max100Opc">
<xs:simpleType name="TDec_03v00a04Max100Opc">
<xs:annotation>
<xs:documentation>Tipo Decimal com 3 inteiros (no máximo 100), com 4 decimais, não aceita valor zero</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:pattern value="0(\.[0-9]{3})([1-9]{1})?|100(\.00)?|[1-9]{1}[0-9]{0,1}(\.[0-9]{4})?"/>
<xs:pattern value="0(\.[1-9][0-9]{0,3})|0(\.[0][1-9][0-9]{0,2})|0(\.[0][0][1-9][0-9]{0,1})|0(\.[0][0][0][1-9])|100(\.[0]{1,4})?|[1-9]{1}[0-9]{0,1}(\.[0-9]{1,4})?"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="TDec_0302a04Max100">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public static ConfiguracoesNfe criarConfiguracoes(EstadosEnum estado, AmbienteEn

if (Logger.getLogger("").isLoggable(Level.SEVERE)) {
System.err.println("####################################################################");
System.err.println(" Api Java Nfe - Versão 4.00.22 - 22/03/2023");
System.err.println(" Api Java Nfe - Versão 4.00.23 - 25/04/2023");
if (Logger.getLogger("").isLoggable(Level.WARNING)) {
System.err.println(" Samuel Olivera - [email protected] ");
}
Expand Down
Loading

0 comments on commit 8de4db7

Please sign in to comment.