Skip to content

Commit 2579778

Browse files
Atualizado URL consulta NFCe Goias
1 parent 61de78e commit 2579778

15 files changed

+872
-34
lines changed

README.md

Lines changed: 26 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# 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.14/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/)
1+
# 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.15/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/)
22
Biblioteca Java para consumo do WebService de NFe/NFCe
33

44
## Dúvidas, Sugestões ou Consultoria
@@ -7,7 +7,7 @@ Entre no Discord do Projeto: https://discord.gg/ZXpqnaV
77
## Gostou do Projeto? Dê sua colaboração pelo Pix: 01713390108 <img src="https://swconsultoria.com.br/pix.png" width="200">
88

99
Para Iniciar :
10-
- Caso use Libs baixe o java-nfe-4.00.14.jar (https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.14.jar) e o adicione às bibliotecas de Seu Projeto.
10+
- Caso use Libs baixe o java-nfe-4.00.15.jar (https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.15.jar) e o adicione às bibliotecas de Seu Projeto.
1111

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

@@ -16,7 +16,7 @@ Para Iniciar :
1616
<dependency>
1717
<groupId>br.com.swconsultoria</groupId>
1818
<artifactId>java-nfe</artifactId>
19-
<version>4.00.14</version>
19+
<version>4.00.15</version>
2020
</dependency>
2121
```
2222

@@ -28,7 +28,7 @@ repositories {
2828
}
2929
}
3030
dependencies {
31-
implementation "br.com.swconsultoria:java-nfe:4.00.14"
31+
implementation "br.com.swconsultoria:java-nfe:4.00.15"
3232
}
3333
```
3434

@@ -37,8 +37,26 @@ Veja a Wiki https://github.com/Samuel-Oliveira/Java_NFe/wiki, para ter um Tutori
3737
________________________________________________________________________________________________
3838

3939
# Historico de Versões
40-
41-
## v4.00.15 - SNAPSHOT - 14/06/2021 (G)
40+
[comment]: <> (## v4.00.16 - SNAPSHOT - ? - Schemas PL.009f)
41+
[comment]: <> (- )
42+
[comment]: <> (Snapshot é a versão que se encontra em teste, só use em caso de extrema necessidade.)
43+
[comment]: <> (Para usar, adicione o repositorio de Snapshot ao Maven:)
44+
[comment]: <> (```)
45+
[comment]: <> (<repositories>)
46+
[comment]: <> ( <repository>)
47+
[comment]: <> ( <id>sonatype-nexus-snapshots</id>)
48+
[comment]: <> ( <url>https://oss.sonatype.org/content/repositories/snapshots</url>)
49+
[comment]: <> ( </repository>)
50+
[comment]: <> (</repositories>)
51+
[comment]: <> (<dependency>)
52+
[comment]: <> ( <groupId>br.com.swconsultoria</groupId>)
53+
[comment]: <> ( <artifactId>java-nfe</artifactId>)
54+
[comment]: <> ( <version>4.00.15-SNAPSHOT</version>)
55+
[comment]: <> (</dependency>)
56+
[comment]: <> (```)
57+
[comment]: <> (Ou baixe o Jar aqui: https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.15-SNAPSHOT.jar)
58+
59+
## v4.00.15 - 28/06/2021 - Versão Schemas PL.009f
4260
- Removido Cacert do Projeto, agora o projeto Java Certificados irá gerenciar os Cacerts.
4361
- Atualizado Objetos Schema para NT 2020.006 v1.10
4462
- Alterado nome da propriedade contigenciaSCAN para contigenciaSVC
@@ -50,25 +68,8 @@ ________________________________________________________________________________
5068
- Adicinado possibilidade de enviar Evento Manual sem assinatura.
5169
- Adicionado URLS NFCe de Santa Catarina
5270
- Correção de Status Serviço MS.
53-
54-
(Atualizar os Schemas: https://github.com/Samuel-Oliveira/Java_NFe/raw/master/Schemas_2020.006.zip)
55-
56-
Snapshot é a versão que se encontra em teste, só use em caso de extrema necessidade.
57-
Para usar, adicione o repositorio de Snapshot ao Maven:
58-
```
59-
<repositories>
60-
<repository>
61-
<id>sonatype-nexus-snapshots</id>
62-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
63-
</repository>
64-
</repositories>
65-
<dependency>
66-
<groupId>br.com.swconsultoria</groupId>
67-
<artifactId>java-nfe</artifactId>
68-
<version>4.00.15-SNAPSHOT</version>
69-
</dependency>
70-
```
71-
Ou baixe o Jar aqui: https://github.com/Samuel-Oliveira/Java_NFe/raw/master/java-nfe-4.00.15-SNAPSHOT.jar
71+
- Atualizado URL consulta NFCe Goias
72+
- Atualizado Schemas/Objetos PL.009f
7273

7374
## v4.00.14 - 12/02/2021
7475
- Adicionado 150 - Autorizado Fora do prazo como sucesso na verificação de retorno.

Schemas_2020.006.zip

-68.3 KB
Binary file not shown.
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3-
<xs:include schemaLocation="leiauteInutNFe_v4.00.xsd"/>
4-
<xs:element name="inutNFe" type="TInutNFe">
3+
<xs:include schemaLocation="leiauteEventoCancEntregaNFe_v1.00.xsd"/>
4+
<xs:element name="evento" type="TEvento">
55
<xs:annotation>
6-
<xs:documentation>Schema XML de validação do Pedido de Inutilização de Numeração da Nota Fiscal Eletrônica</xs:documentation>
6+
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NFe</xs:documentation>
77
</xs:annotation>
88
</xs:element>
99
</xs:schema>
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
3-
<xs:include schemaLocation="leiauteNFe_v4.00.xsd"/>
4-
<xs:element name="enviNFe" type="TEnviNFe">
3+
<xs:include schemaLocation="leiauteEventoEntregaNFe_v1.00.xsd"/>
4+
<xs:element name="evento" type="TEvento">
55
<xs:annotation>
6-
<xs:documentation>Schema XML de validação do Pedido de Concessão de Autorização da Nota Fiscal Eletrônica</xs:documentation>
6+
<xs:documentation>Schema XML de validação do evento de comprovante de entrega da NF-e</xs:documentation>
77
</xs:annotation>
88
</xs:element>
99
</xs:schema>

schemas/e110130_v1.00.xsd

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,102 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do evento de Comprovante de Entrega da NF-e</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:simpleType>
13+
<xs:restriction base="xs:string">
14+
<xs:enumeration value="Comprovante de Entrega da NF-e"/>
15+
</xs:restriction>
16+
</xs:simpleType>
17+
</xs:element>
18+
<xs:element name="cOrgaoAutor" type="TCOrgaoIBGE"/>
19+
<xs:element name="tpAutor">
20+
<xs:simpleType>
21+
<xs:annotation>
22+
<xs:documentation>1=Empresa Emitente; 2=Empresa Destinatária; 3=Empresa; 5=Fisco; 6=RFB; 9=Outros;</xs:documentation>
23+
</xs:annotation>
24+
<xs:restriction base="xs:string">
25+
<xs:whiteSpace value="preserve"/>
26+
<xs:enumeration value="1"/>
27+
</xs:restriction>
28+
</xs:simpleType>
29+
</xs:element>
30+
<xs:element name="verAplic" type="TVerAplic">
31+
<xs:annotation>
32+
<xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
33+
</xs:annotation>
34+
</xs:element>
35+
<xs:element name="dhEntrega" type="TDateTimeUTC">
36+
<xs:annotation>
37+
<xs:documentation>Data e hora do final da entrega. Formato AAAA-MMDDThh:mm:ssTZD
38+
</xs:documentation>
39+
</xs:annotation>
40+
</xs:element>
41+
<xs:element name="nDoc">
42+
<xs:simpleType>
43+
<xs:annotation>
44+
<xs:documentation>Número do documento de identificação da pessoa que assinou o Comprovante de Entrega da NF-e</xs:documentation>
45+
</xs:annotation>
46+
<xs:restriction base="xs:string">
47+
<xs:minLength value="2"/>
48+
<xs:maxLength value="20"/>
49+
</xs:restriction>
50+
</xs:simpleType>
51+
</xs:element>
52+
<xs:element name="xNome">
53+
<xs:annotation>
54+
<xs:documentation>Nome da pessoa que assinou o Comprovante de Entrega da NF-e</xs:documentation>
55+
</xs:annotation>
56+
<xs:simpleType>
57+
<xs:restriction base="TString">
58+
<xs:maxLength value="60"/>
59+
<xs:minLength value="2"/>
60+
</xs:restriction>
61+
</xs:simpleType>
62+
</xs:element>
63+
<xs:element name="latGPS" type="TLatitude" minOccurs="0">
64+
<xs:annotation>
65+
<xs:documentation>Latitude do ponto de entrega</xs:documentation>
66+
</xs:annotation>
67+
</xs:element>
68+
<xs:element name="longGPS" type="TLongitude" minOccurs="0">
69+
<xs:annotation>
70+
<xs:documentation>Longitude do ponto de entrega</xs:documentation>
71+
</xs:annotation>
72+
</xs:element>
73+
<xs:element name="hashComprovante">
74+
<xs:annotation>
75+
<xs:documentation>Hash (SHA1) no formato Base64 resultante da concatenação: Chave de acesso da NFe + Base64 da imagem capturada da entrega (Exemplo: imagem capturada da assinatura eletrônica, digital do recebedor, foto, etc)</xs:documentation>
76+
<xs:documentation>O hashCSRT é o resultado das funções SHA-1 e base64 do token CSRT fornecido pelo fisco + chave de acesso do DF-e. (Implementação em futura NT)
77+
Observação: 28 caracteres são representados no schema como 20 bytes do tipo base64Binary</xs:documentation>
78+
</xs:annotation>
79+
<xs:simpleType>
80+
<xs:restriction base="xs:base64Binary">
81+
<xs:length value="20"/>
82+
</xs:restriction>
83+
</xs:simpleType>
84+
</xs:element>
85+
<xs:element name="dhHashComprovante" type="TDateTimeUTC" minOccurs="0">
86+
<xs:annotation>
87+
<xs:documentation>Data e hora da geração do hash do Comprovante de Entrega da NF-e. Formato AAAA-MMDDThh:mm:ssTZD.
88+
</xs:documentation>
89+
</xs:annotation>
90+
</xs:element>
91+
</xs:sequence>
92+
<xs:attribute name="versao" use="required">
93+
<xs:simpleType>
94+
<xs:restriction base="xs:string">
95+
<xs:whiteSpace value="preserve"/>
96+
<xs:enumeration value="1.00"/>
97+
</xs:restriction>
98+
</xs:simpleType>
99+
</xs:attribute>
100+
</xs:complexType>
101+
</xs:element>
102+
</xs:schema>

schemas/e110131_v1.00.xsd

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
5+
<xs:element name="detEvento">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NF-e</xs:documentation>
8+
</xs:annotation>
9+
<xs:complexType>
10+
<xs:sequence>
11+
<xs:element name="descEvento">
12+
<xs:simpleType>
13+
<xs:restriction base="xs:string">
14+
<xs:enumeration value="Cancelamento Comprovante de Entrega da NF-e"/>
15+
</xs:restriction>
16+
</xs:simpleType>
17+
</xs:element>
18+
<xs:element name="cOrgaoAutor" type="TCOrgaoIBGE"/>
19+
<xs:element name="tpAutor">
20+
<xs:simpleType>
21+
<xs:annotation>
22+
<xs:documentation>1=Empresa Emitente; 2=Empresa Destinatária; 3=Empresa; 5=Fisco; 6=RFB; 9=Outros;</xs:documentation>
23+
</xs:annotation>
24+
<xs:restriction base="xs:string">
25+
<xs:whiteSpace value="preserve"/>
26+
<xs:enumeration value="1"/>
27+
</xs:restriction>
28+
</xs:simpleType>
29+
</xs:element>
30+
<xs:element name="verAplic" type="TVerAplic">
31+
<xs:annotation>
32+
<xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
33+
</xs:annotation>
34+
</xs:element>
35+
<xs:element name="nProtEvento" type="TProt">
36+
<xs:annotation>
37+
<xs:documentation>Número do Protocolo de Autorização do Evento da NF-e a que se refere este cancelamento.</xs:documentation>
38+
</xs:annotation>
39+
</xs:element>
40+
</xs:sequence>
41+
<xs:attribute name="versao" use="required">
42+
<xs:simpleType>
43+
<xs:restriction base="xs:string">
44+
<xs:whiteSpace value="preserve"/>
45+
<xs:enumeration value="1.00"/>
46+
</xs:restriction>
47+
</xs:simpleType>
48+
</xs:attribute>
49+
</xs:complexType>
50+
</xs:element>
51+
</xs:schema>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="leiauteEventoCancEntregaNFe_v1.00.xsd"/>
5+
<xs:element name="envEvento" type="TEnvEvento">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do lote de envio do evento de Cancelamento do Comprovante de Entrega da NFe</xs:documentation>
8+
</xs:annotation>
9+
</xs:element>
10+
</xs:schema>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!-- edited with XMLSpy v2008 (http://www.altova.com) by [email protected] (PROCERGS) -->
3+
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified" attributeFormDefault="unqualified">
4+
<xs:include schemaLocation="leiauteEventoEntregaNFe_v1.00.xsd"/>
5+
<xs:element name="envEvento" type="TEnvEvento">
6+
<xs:annotation>
7+
<xs:documentation>Schema XML de validação do lote de envio do evento de Comprovante de Entrega da NFe</xs:documentation>
8+
</xs:annotation>
9+
</xs:element>
10+
</xs:schema>

0 commit comments

Comments
 (0)