Skip to content

Commit 413df30

Browse files
Merge pull request #19 from asaasdev/STOR-2159-atualizar-certificado-ms
[STOR-2159] Atualização de Certificado MS
2 parents 5ddf0c5 + c15b94f commit 413df30

File tree

107 files changed

+75824
-72195
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+75824
-72195
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ target/
33
.idea/
44
*.iml
55
/target/
6+
/src/test/java/br/com/swconsultoria/nfe/teste/

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
# Notas de versão
22

3-
- Atualizado Java Certificado
4-
- Correcao Null Pointer quando Lista Repositorio Windows.
3+
- Atualizacao de URL Webservice
4+
- Unificacao SVAN e SVC-AN Em Homologacao
5+
- Urls QRCode Rio de Janeiro
6+
- Add Url Inutilizacao SVC
7+
8+
- Atualizado Cacerts
9+
- Implementado NT2023.004
10+
- Implementado NT2019.001
11+
12+
- Atualizaçao de layout para Schemas PL.009n

README.md

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

44
## Dúvidas, Sugestões ou Consultoria
@@ -17,7 +17,7 @@ Para Iniciar :
1717
<dependency>
1818
<groupId>br.com.swconsultoria</groupId>
1919
<artifactId>java-nfe</artifactId>
20-
<version>4.00.31</version>
20+
<version>4.00.34</version>
2121
</dependency>
2222
```
2323

@@ -29,7 +29,7 @@ repositories {
2929
}
3030
}
3131
dependencies {
32-
implementation "br.com.swconsultoria:java-nfe:4.00.31"
32+
implementation "br.com.swconsultoria:java-nfe:4.00.34"
3333
}
3434
```
3535

@@ -39,6 +39,22 @@ ________________________________________________________________________________
3939

4040
# Historico de Versões
4141

42+
## v4.00.34 - 08/06/2024 - Schemas PL.009n
43+
- Atualizacao de URL Webservice
44+
- Unificacao SVAN e SVC-AN Em Homologacao
45+
- Urls QRCode Rio de Janeiro
46+
- Add Url Inutilizacao SVC
47+
- Atualizado Cacerts
48+
- Implementado NT2023.004
49+
- Implementado NT2019.001
50+
- **Atenção: Atualizaçao de layout para Schemas PL.009n, faça o download dos Schemas Novamente.**
51+
52+
## v4.00.33 - 14/05/2024 - Schemas PL.009k
53+
- Ajustes Busca de URL Contingencia SVC
54+
55+
## v4.00.32 - 19/04/2024 - Schemas PL.009k
56+
- Atualizado Cacert MS (De novo)
57+
4258
## v4.00.31 - 25/03/2024 - Schemas PL.009k
4359
- Atualizado Java Certificado
4460
- Correcao Null Pointer quando Lista Repositorio Windows.

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>br.com.swconsultoria</groupId>
44
<artifactId>java-nfe</artifactId>
5-
<version>4.00.32-SNAPSHOT</version>
5+
<version>4.00.35-SNAPSHOT</version>
66
<name>Java_NFe</name>
77
<description>Api java para consumo do webService de nota fiscal eletronica</description>
88
<url>https://github.com/Samuel-Oliveira/Java_NFe</url>
@@ -84,7 +84,7 @@
8484
<dependency>
8585
<groupId>br.com.swconsultoria</groupId>
8686
<artifactId>java_certificado</artifactId>
87-
<version>3.4</version>
87+
<version>3.6</version>
8888
</dependency>
8989
<!-- Ini4J -->
9090
<dependency>

schemas.zip

5.59 KB
Binary file not shown.

schemas/leiauteConsStatServ_v4.00.xsd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- PL_006f versao com correcoes no xServ para tornar a literal STATUS obrigatoria 21/05/2010 -->
33
<xs:schema xmlns="http://www.portalfiscal.inf.br/nfe" xmlns:xs="http://www.w3.org/2001/XMLSchema"
4-
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
5-
attributeFormDefault="unqualified">
4+
targetNamespace="http://www.portalfiscal.inf.br/nfe" elementFormDefault="qualified"
5+
attributeFormDefault="unqualified">
66
<xs:include schemaLocation="tiposBasico_v4.00.xsd"/>
77
<xs:complexType name="TConsStatServ">
88
<xs:annotation>

schemas/leiauteNFe_v4.00.xsd

Lines changed: 187 additions & 29 deletions
Large diffs are not rendered by default.

sinc_community.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22

33
Para envio das NFe/NFCe utilizamos na camada de comunição o projeto mantido pela comunidade chamado Java_nfe.
44

5-
A comunidade java_nfe tambem mantem o projeto Java_certificado.
5+
A comunidade java_nfe tambem mantém o projeto Java_certificado, que é consumido pelo java_nfe (ver arquivo pom.xml).
6+
Para atualizar a versão dos certificados, basta sincronizar o java_nfe com a versão da comunidade, conforme passos
7+
descritos a seguir.
68

79
### Como sincronizar os projetos com a comunidade:
810

@@ -28,6 +30,14 @@ A comunidade java_nfe tambem mantem o projeto Java_certificado.
2830

2931
- Após a aprovação/merge do branch de desenvolvimento deve-se fazer o merge da branch "relase" para "master_base"
3032

33+
### Atualização dos arquivos xsd
34+
35+
Se a nova versão possuir mudanças nos arquivos .xsd, é necessário também atualizar estes arquivos no bucket
36+
bucket s3:baseerp/producao/xsd. Os arquivos xsd ficam no repositório Java_NFE no diretório /schemas.
37+
38+
1. Faça uma cópia do diretório atual como backup, e a nomeie indicando o mês/dia em que está sendo feita a
39+
atualização. Isto nos permite efetuar um rollback, se necessário.
40+
2. Carregue os novos arquivos no bucket s3:baseerp/producao/xsd.
3141

3242
### Build dos projetos no Jenkins:
3343

src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ public static ConfiguracoesNfe criarConfiguracoes(EstadosEnum estado, AmbienteEn
109109

110110
log.info(String.format("JAVA-NFE | Samuel Oliveira | [email protected] " +
111111
"| VERSAO=%s | DATA_VERSAO=%s | PASTA_SCHEMAS=%s | AMBIENTE=%s | ESTADO=%s",
112-
"4.00.31",
113-
"25/03/2024",
112+
"4.00.34",
113+
"08/06/2024",
114114
pastaSchemas,
115115
ambiente,
116116
estado.getNome().toUpperCase()));

src/main/java/br/com/swconsultoria/nfe/schema_4/consReciNFe/KeyInfoType.java

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,7 @@
11

22
package br.com.swconsultoria.nfe.schema_4.consReciNFe;
33

4-
import javax.xml.bind.annotation.XmlAccessType;
5-
import javax.xml.bind.annotation.XmlAccessorType;
6-
import javax.xml.bind.annotation.XmlAttribute;
7-
import javax.xml.bind.annotation.XmlElement;
8-
import javax.xml.bind.annotation.XmlID;
9-
import javax.xml.bind.annotation.XmlSchemaType;
10-
import javax.xml.bind.annotation.XmlType;
4+
import javax.xml.bind.annotation.*;
115
import javax.xml.bind.annotation.adapters.CollapsedStringAdapter;
126
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
137

@@ -18,16 +12,16 @@
1812
* <p>O seguinte fragmento do esquema especifica o conteúdo esperado contido dentro desta classe.
1913
*
2014
* <pre>
21-
* &lt;complexType name="KeyInfoType"&gt;
22-
* &lt;complexContent&gt;
23-
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType"&gt;
24-
* &lt;sequence&gt;
25-
* &lt;element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/&gt;
26-
* &lt;/sequence&gt;
27-
* &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" /&gt;
28-
* &lt;/restriction&gt;
29-
* &lt;/complexContent&gt;
30-
* &lt;/complexType&gt;
15+
* &lt;complexType name="KeyInfoType">
16+
* &lt;complexContent>
17+
* &lt;restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
18+
* &lt;sequence>
19+
* &lt;element name="X509Data" type="{http://www.w3.org/2000/09/xmldsig#}X509DataType"/>
20+
* &lt;/sequence>
21+
* &lt;attribute name="Id" type="{http://www.w3.org/2001/XMLSchema}ID" />
22+
* &lt;/restriction>
23+
* &lt;/complexContent>
24+
* &lt;/complexType>
3125
* </pre>
3226
*
3327
*

0 commit comments

Comments
 (0)