Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
d771d44
Merge tag '4.00.34' into develop
Samuel-Oliveira Jun 8, 2024
02b6a75
Tratamento de certificados na camada TLS/SSL em multithreading
jardelnovaes Jul 13, 2024
d3a1f60
Atualizado os Schemas com CRT 4 (MEI)
Samuel-Oliveira Sep 17, 2024
5d39796
Ajusta e move função geraHashCSRT
jardelnovaes Oct 11, 2024
9aaef72
Merge pull request #295 from jardelnovaes/develop_hashCsrt
Samuel-Oliveira Oct 11, 2024
dd9af7a
Merge branch 'Samuel-Oliveira:develop' into develop
jardelnovaes Oct 11, 2024
a924884
Tratamento de certificados na camada TLS/SSL em multithreading
jardelnovaes Jul 13, 2024
f04ec5e
Ajusta e move função geraHashCSRT
jardelnovaes Oct 11, 2024
2f58b4a
Merge remote-tracking branch 'origin/develop' into develop
jardelnovaes Oct 12, 2024
afba6ca
Tratamento de certificados na camada TLS/SSL em multithreading - Ajus…
jardelnovaes Oct 14, 2024
cc86d85
Tratamento de certificados na camada TLS/SSL em multithreading - Ajus…
jardelnovaes Oct 14, 2024
227b44b
Merge pull request #293 from jardelnovaes/develop
Samuel-Oliveira Dec 1, 2024
68c649b
Adicionado multiThread a todos os consumos do servidor.
Samuel-Oliveira Dec 1, 2024
9180fae
tualizado Schemas para PL.009p1
Samuel-Oliveira Dec 1, 2024
705e96c
Adicionado Eventos Insucesso Entrega
Samuel-Oliveira Dec 1, 2024
8b34c22
Adicionado Evento Conciliacao Financeira
Samuel-Oliveira Dec 1, 2024
b420550
Finalizado Versão 35
Samuel-Oliveira Dec 1, 2024
a478370
[maven-release-plugin] prepare release java-nfe-4.00.35
Samuel-Oliveira Dec 1, 2024
2a1e578
[maven-release-plugin] prepare for next development iteration
Samuel-Oliveira Dec 1, 2024
ddbf435
Merge branch 'release/4.00.35'
Samuel-Oliveira Dec 1, 2024
1c7beb0
Merge tag '4.00.35' into develop
Samuel-Oliveira Dec 1, 2024
d850e1d
Mudancas SVC-AN
Samuel-Oliveira Feb 22, 2025
578f460
Atualizado Endereços SVC
Samuel-Oliveira Mar 11, 2025
37a5ee7
Merge branch 'release/4.00.36'
Samuel-Oliveira Mar 11, 2025
ca2fdac
Merge tag '4.00.36' into develop
Samuel-Oliveira Mar 11, 2025
7fb0b02
[maven-release-plugin] prepare release java-nfe-4.00.36
Samuel-Oliveira Mar 11, 2025
746541e
[maven-release-plugin] prepare for next development iteration
Samuel-Oliveira Mar 11, 2025
cf9e3d6
Atualizado Cacert
Samuel-Oliveira Apr 5, 2025
bda6eed
[maven-release-plugin] prepare release java-nfe-4.00.37
Samuel-Oliveira Apr 5, 2025
fca8a87
[maven-release-plugin] prepare for next development iteration
Samuel-Oliveira Apr 5, 2025
84b9131
Merge branch 'release/4.00.37'
Samuel-Oliveira Apr 5, 2025
aa071d5
Merge branch 'master' into SKYW-184-FIX-Atualização-cadeia-certificad…
GlauberF Apr 7, 2025
ccb6cb1
Ajustes POM
GlauberF Apr 7, 2025
2fed41d
remove dependencia desnecessaria
GlauberF Apr 7, 2025
8a49a68
ajuste action
GlauberF Apr 7, 2025
3be842a
Merge pull request #27 from asaasdev/SKYW-184-FIX-Atualização-cadeia-…
GlauberF Apr 7, 2025
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
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
java-version: 8
- name: Cache SonarCloud packages
uses: actions/cache@v1
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
Expand Down
12 changes: 1 addition & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,2 @@
# Notas de versão

- Atualizacao de URL Webservice
- Unificacao SVAN e SVC-AN Em Homologacao
- Urls QRCode Rio de Janeiro
- Add Url Inutilizacao SVC

- Atualizado Cacerts
- Implementado NT2023.004
- Implementado NT2019.001

- Atualizaçao de layout para Schemas PL.009n
- Atualizado Cacert MS
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 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.34/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.37/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.34</version>
<version>4.00.37</version>
</dependency>
```

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

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

# Historico de Versões

## v4.00.37 - 05/04/2025 - Schemas PL.009p1
- Atualizado CACERT

## v4.00.36 - 10/03/2025 - Schemas PL.009p1
- Atualizado Endereços SVC

## v4.00.35 - 01/12/2024 - Schemas PL.009p1
- Atualizado CACERT
- Adicionado modo Multithreading
- Atualizado Schemas para PL.009p1
- Implementado NT2024.001
- Implementado NT2024.003
- Adicionado Evento Insucesso Entrega (NT2023.005)
- Adicionado Evento Cancelamento Insucesso Entrega (NT2023.005)
- Adicionado Evento Conciliacao Financeira (NT2024.002)
- Adicionado Evento Cancelamento Conciliacao Financeira (NT2024.002)

## v4.00.34 - 08/06/2024 - Schemas PL.009n
- Atualizacao de URL Webservice
- Unificacao SVAN e SVC-AN Em Homologacao
Expand Down
7 changes: 3 additions & 4 deletions pom-base.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java-nfe</artifactId>
<version>4.00.35-${versao}-SNAPSHOT</version>
<version>4.00.38-${versao}-SNAPSHOT</version>
<name>Java_NFe</name>
<description>Api java para consumo do webService de nota fiscal eletronica</description>
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>
Expand Down Expand Up @@ -83,7 +82,7 @@
<dependency>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java_certificado</artifactId>
<version>3.6</version>
<version>3.9</version>
</dependency>
<!-- Ini4J -->
<dependency>
Expand Down
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java-nfe</artifactId>
<version>4.00.35-SNAPSHOT</version>
<version>4.00.38-SNAPSHOT</version>
<name>Java_NFe</name>
<description>Api java para consumo do webService de nota fiscal eletronica</description>
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>
Expand Down Expand Up @@ -84,7 +84,7 @@
<dependency>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java_certificado</artifactId>
<version>3.6</version>
<version>3.9</version>
</dependency>
<!-- Ini4J -->
<dependency>
Expand Down
Binary file modified schemas.zip
Binary file not shown.
11 changes: 11 additions & 0 deletions schemas/EventoCancEConf_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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">
<xs:include schemaLocation="leiauteEventoCancEConf_v1.00.xsd"/>
<xs:element name="evento" type="TEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NFe</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
11 changes: 11 additions & 0 deletions schemas/EventoCancInsucessoNFe_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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">
<xs:include schemaLocation="leiauteEventoCancInsucessoNFe_v1.00.xsd"/>
<xs:element name="evento" type="TEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NFe</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
11 changes: 11 additions & 0 deletions schemas/EventoEConf_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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">
<xs:include schemaLocation="leiauteEventoEConf_v1.00.xsd"/>
<xs:element name="evento" type="TEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de Conciliação Financeira</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
11 changes: 11 additions & 0 deletions schemas/EventoInsucessoNFe_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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">
<xs:include schemaLocation="leiauteEventoInsucessoNFe_v1.00.xsd"/>
<xs:element name="evento" type="TEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de Insucesso na entrega da NF-e</xs:documentation>
</xs:annotation>
</xs:element>
</xs:schema>
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
108 changes: 108 additions & 0 deletions schemas/e110192_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<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">
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
<xs:element name="detEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de Comprovante de Entrega da NF-e</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="descEvento">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Insucesso na Entrega da NF-e"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cOrgaoAutor" type="TCOrgaoIBGE"/>
<xs:element name="verAplic" type="TVerAplic">
<xs:annotation>
<xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="dhTentativaEntrega" type="TDateTimeUTC">
<xs:annotation>
<xs:documentation>Data e hora do final da tentativa entrega. Formato AAAA-MMDDThh:mm:ssTZD
</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nTentativa" minOccurs="0">
<xs:simpleType>
<xs:annotation>
<xs:documentation>Número da tentativa de entrega que não teve sucesso</xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:pattern value="[0-9]{1,3}"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="tpMotivo">
<xs:simpleType>
<xs:annotation>
<xs:documentation>Motivo do insucesso - 1 – Recebedor não encontrado
2 – Recusa do recebedor
3 – Endereço inexistente
4 – Outros (exige informar justificativa) </xs:documentation>
</xs:annotation>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="1"/>
<xs:enumeration value="2"/>
<xs:enumeration value="3"/>
<xs:enumeration value="4"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="xJustMotivo" minOccurs="0">
<xs:annotation>
<xs:documentation>Justificativa do motivo do insucesso. Informar apenas para tpMotivo=4 </xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="TString">
<xs:maxLength value="250"/>
<xs:minLength value="25"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="latGPS" type="TLatitude" minOccurs="0">
<xs:annotation>
<xs:documentation>Latitude do ponto de entrega</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="longGPS" type="TLongitude" minOccurs="0">
<xs:annotation>
<xs:documentation>Longitude do ponto de entrega</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="hashTentativaEntrega">
<xs:annotation>
<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)
Observação: 28 caracteres são representados no schema como 20 bytes do tipo base64Binary</xs:documentation>
</xs:annotation>
<xs:simpleType>
<xs:restriction base="xs:base64Binary">
<xs:length value="20"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="dhHashTentativaEntrega" type="TDateTimeUTC" minOccurs="0">
<xs:annotation>
<xs:documentation>Data e hora da geração do hash da tentativa de entrega. Formato AAAA-MMDDThh:mm:ssTZD.
</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="1.00"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
42 changes: 42 additions & 0 deletions schemas/e110193_v1.00.xsd
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSpy v2008 (http://www.altova.com) by sas-softwares@procergs.rs.gov.br (PROCERGS) -->
<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">
<xs:include schemaLocation="tiposBasico_v1.03.xsd"/>
<xs:element name="detEvento">
<xs:annotation>
<xs:documentation>Schema XML de validação do evento de Cancelamento do Comprovante de Entrega da NF-e</xs:documentation>
</xs:annotation>
<xs:complexType>
<xs:sequence>
<xs:element name="descEvento">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:enumeration value="Cancelamento Insucesso na Entrega da NF-e"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="cOrgaoAutor" type="TCOrgaoIBGE"/>
<xs:element name="verAplic" type="TVerAplic">
<xs:annotation>
<xs:documentation>Versão do Aplicativo do Autor do Evento</xs:documentation>
</xs:annotation>
</xs:element>
<xs:element name="nProtEvento" type="TProt">
<xs:annotation>
<xs:documentation>Número do Protocolo de Autorização do Evento da NF-e a que se refere este cancelamento.</xs:documentation>
</xs:annotation>
</xs:element>
</xs:sequence>
<xs:attribute name="versao" use="required">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:whiteSpace value="preserve"/>
<xs:enumeration value="1.00"/>
</xs:restriction>
</xs:simpleType>
</xs:attribute>
</xs:complexType>
</xs:element>
</xs:schema>
Loading
Loading