Skip to content

Commit

Permalink
Merge branch 'release/4.00.9'
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel-Oliveira committed Jun 8, 2024
2 parents ab6e8a5 + 714173e commit 10f0d3d
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 17 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Notas de versão

- Correcao Eventos MS - Uso de prefixo de namespace nao permitido - status 404
- Atualizado nova versao Java Certificado
- Atualizado Cacert
- Corrigido erro conversao TRetConsSitCTe
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Java-CTe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.8/jar)
# Java-CTe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.9/jar)
API Java para consumo do WebService de CTe

## Dúvidas, Sugestões ou Consultoria
Expand All @@ -18,14 +18,14 @@ Para Iniciar :
<dependency>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java-cte</artifactId>
<version>4.00.8</version>
<version>4.00.9</version>
</dependency>
```

- Gradle :
```groovy
dependencies {
implementation "br.com.swconsultoria:java-cte:4.00.8"
implementation "br.com.swconsultoria:java-cte:4.00.9"
}
```

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

# Historico de Versões

## v4.00.9 - 08/06/2024
- Atualizado Cacert
- Corrigido erro conversao TRetConsSitCTe

## v4.00.8 - 19/04/2024
- Atualizado nova versao Java Certificado

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 @@
# Java-CTe [![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_CTe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_CTe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.8/jar)
# Java-CTe [![Build Status](https://travis-ci.org/Samuel-Oliveira/Java_CTe.svg?branch=master)](https://travis-ci.org/Samuel-Oliveira/Java_CTe) [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.9/jar)
API Java para consumo do WebService de CTe

## Dúvidas, Sugestões ou Consultoria
Expand All @@ -8,7 +8,7 @@ API Java para consumo do WebService de CTe
<img src="https://swconsultoria.com.br/pix.png" width="200">

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

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

Expand All @@ -17,14 +17,14 @@ Para Iniciar :
<dependency>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java-cte</artifactId>
<version>4.00.8</version>
<version>4.00.9</version>
</dependency>
```

- Gradle :
```groovy
dependencies {
implementation "br.com.swconsultoria:java-cte:4.00.8"
implementation "br.com.swconsultoria:java-cte:4.00.9"
}
```

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-cte</artifactId>
<version>4.00.9-SNAPSHOT</version>
<version>4.00.10-SNAPSHOT</version>
<name>Java_CTe</name>
<description>API Java para consumo do WebService de CTe</description>
<url>https://github.com/Samuel-Oliveira/Java_CTe</url>
Expand Down Expand Up @@ -85,7 +85,7 @@
<dependency>
<groupId>br.com.swconsultoria</groupId>
<artifactId>java_certificado</artifactId>
<version>3.5</version>
<version>3.6</version>
</dependency>

<!-- Ini4J -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ public static ConfiguracoesCte criarConfiguracoes(EstadosEnum estado, AmbienteEn

log.info(String.format("JAVA-CTE | Samuel Oliveira | [email protected] " +
"| VERSAO=%s | DATA_VERSAO=%s | PASTA_SCHEMAS=%s | AMBIENTE=%s | ESTADO=%s",
"4.00.8",
"19/04/2024",
"4.00.9",
"08/06/2024",
pastaSchemas,
ambiente,
estado.getNome().toUpperCase()));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "", namespace = "http://www.portalfiscal.inf.br/cte", propOrder = {
@XmlType(propOrder = {
"tpAmb",
"verAplic",
"cStat",
Expand All @@ -89,7 +89,7 @@
"protCTe",
"procEventoCTe"
})
@XmlRootElement(name = "TRetConsSitCTe")
@XmlRootElement(name = "retConsSitCTe", namespace = "http://www.portalfiscal.inf.br/cte")
public class TRetConsSitCTe {

@XmlElement(namespace = "http://www.portalfiscal.inf.br/cte", required = true)
Expand Down
6 changes: 4 additions & 2 deletions src/test/java/br/com/swconsultoria/cte/TesteConsultaCte.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,10 @@ public static void main(String[] args) {

//Resultado
log.info("# Status: " + retorno.getCStat() + " - " + retorno.getXMotivo());
TProtCTe.InfProt infProt = ObjetoCTeUtil.elementToObject(retorno.getProtCTe().getAny(),TProtCTe.InfProt.class);
log.info("# Protocolo: " +infProt.getNProt());
if(retorno.getProtCTe() != null){
TProtCTe.InfProt infProt = ObjetoCTeUtil.elementToObject(retorno.getProtCTe().getAny(),TProtCTe.InfProt.class);
log.info("# Protocolo: " +infProt.getNProt());
}

} catch (Exception e) {
log.log(Level.SEVERE, "Erro ao consultar XML", e);
Expand Down

0 comments on commit 10f0d3d

Please sign in to comment.