RollBack para correção do build
parent
0c0500a1ee
commit
2bd6c18c7a
|
@ -6,4 +6,3 @@
|
||||||
/.settings/org.eclipse.wst.common.project.facet.core.xml
|
/.settings/org.eclipse.wst.common.project.facet.core.xml
|
||||||
/.settings/org.eclipse.wst.validation.prefs
|
/.settings/org.eclipse.wst.validation.prefs
|
||||||
target
|
target
|
||||||
/.settings/
|
|
||||||
|
|
41
pom.xml
41
pom.xml
|
@ -8,41 +8,28 @@
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<name>GeneradorBoletosCNAB</name>
|
<name>GeneradorBoletosCNAB</name>
|
||||||
|
|
||||||
<properties>
|
|
||||||
<maven.compiler.source>1.8</maven.compiler.source>
|
|
||||||
<maven.compiler.target>1.8</maven.compiler.target>
|
|
||||||
<java.version>1.8</java.version>
|
|
||||||
<project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>
|
|
||||||
</properties>
|
|
||||||
|
|
||||||
<distributionManagement>
|
|
||||||
<repository>
|
|
||||||
<id>rj-releases</id>
|
|
||||||
<url>http://52.5.53.15:8081/nexus/content/repositories/releases/</url>
|
|
||||||
</repository>
|
|
||||||
</distributionManagement>
|
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
<sourceDirectory>src</sourceDirectory>
|
||||||
|
<resources>
|
||||||
|
<resource>
|
||||||
|
<directory>src</directory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.java</exclude>
|
||||||
|
</excludes>
|
||||||
|
</resource>
|
||||||
|
</resources>
|
||||||
<plugins>
|
<plugins>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<artifactId>maven-release-plugin</artifactId>
|
|
||||||
<version>3.8.1</version>
|
<version>3.8.1</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<tagNameFormat>@{project.version}</tagNameFormat>
|
<source>1.8</source>
|
||||||
|
<target>1.8</target>
|
||||||
|
<encoding>ISO-8859-1</encoding>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
<finalName>${project.artifactId}</finalName>
|
||||||
<pluginManagement>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.sonarsource.scanner.maven</groupId>
|
|
||||||
<artifactId>sonar-maven-plugin</artifactId>
|
|
||||||
<version>3.9.1</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
</build>
|
</build>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
|
|
|
@ -1,9 +1,20 @@
|
||||||
package com.rjconsultores.ventaboletos.blocos;
|
package com.rjconsultores.ventaboletos.blocos;
|
||||||
|
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
public class CabecalhoRetorno {
|
public class CabecalhoRetorno {
|
||||||
|
|
||||||
private String codEmpresa;
|
private String codEmpresa;
|
||||||
private String numeroDoAvisoBancario;
|
private String numeroDoAvisoBancario;
|
||||||
|
private Integer agencia;
|
||||||
|
private Integer conta;
|
||||||
|
private Integer dacConta;
|
||||||
|
private String nomeEmpresa;
|
||||||
|
private String codigoBanco;
|
||||||
|
private String nomeBanco;
|
||||||
|
private Date dataGeracao;
|
||||||
|
private Integer numeroSequencialRegistro;
|
||||||
|
private Integer numeroSequencialRemessa;
|
||||||
|
|
||||||
public String getCodEmpresa() {
|
public String getCodEmpresa() {
|
||||||
return codEmpresa;
|
return codEmpresa;
|
||||||
|
@ -11,11 +22,65 @@ public class CabecalhoRetorno {
|
||||||
public void setCodEmpresa(String codEmpresa) {
|
public void setCodEmpresa(String codEmpresa) {
|
||||||
this.codEmpresa = codEmpresa;
|
this.codEmpresa = codEmpresa;
|
||||||
}
|
}
|
||||||
|
public Integer getConta() {
|
||||||
|
return conta;
|
||||||
|
}
|
||||||
|
public void setConta(Integer conta) {
|
||||||
|
this.conta = conta;
|
||||||
|
}
|
||||||
|
public Integer getDacConta() {
|
||||||
|
return dacConta;
|
||||||
|
}
|
||||||
|
public void setDacConta(Integer dacConta) {
|
||||||
|
this.dacConta = dacConta;
|
||||||
|
}
|
||||||
|
public String getNomeEmpresa() {
|
||||||
|
return nomeEmpresa;
|
||||||
|
}
|
||||||
|
public void setNomeEmpresa(String nomeEmpresa) {
|
||||||
|
this.nomeEmpresa = nomeEmpresa;
|
||||||
|
}
|
||||||
|
public String getCodigoBanco() {
|
||||||
|
return codigoBanco;
|
||||||
|
}
|
||||||
|
public void setCodigoBanco(String codigoBanco) {
|
||||||
|
this.codigoBanco = codigoBanco;
|
||||||
|
}
|
||||||
|
public String getNomeBanco() {
|
||||||
|
return nomeBanco;
|
||||||
|
}
|
||||||
|
public void setNomeBanco(String nomeBanco) {
|
||||||
|
this.nomeBanco = nomeBanco;
|
||||||
|
}
|
||||||
|
public Date getDataGeracao() {
|
||||||
|
return dataGeracao;
|
||||||
|
}
|
||||||
|
public void setDataGeracao(Date dataGeracao) {
|
||||||
|
this.dataGeracao = dataGeracao;
|
||||||
|
}
|
||||||
|
public Integer getNumeroSequencialRegistro() {
|
||||||
|
return numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
public void setNumeroSequencialRegistro(Integer numeroSequencialRegistro) {
|
||||||
|
this.numeroSequencialRegistro = numeroSequencialRegistro;
|
||||||
|
}
|
||||||
|
public Integer getNumeroSequencialRemessa() {
|
||||||
|
return numeroSequencialRemessa;
|
||||||
|
}
|
||||||
|
public void setNumeroSequencialRemessa(Integer numeroSequencialRemessa) {
|
||||||
|
this.numeroSequencialRemessa = numeroSequencialRemessa;
|
||||||
|
}
|
||||||
public String getNumeroDoAvisoBancario() {
|
public String getNumeroDoAvisoBancario() {
|
||||||
return numeroDoAvisoBancario;
|
return numeroDoAvisoBancario;
|
||||||
}
|
}
|
||||||
public void setNumeroDoAvisoBancario(String numeroDoAvisoBancario) {
|
public void setNumeroDoAvisoBancario(String numeroDoAvisoBancario) {
|
||||||
this.numeroDoAvisoBancario = numeroDoAvisoBancario;
|
this.numeroDoAvisoBancario = numeroDoAvisoBancario;
|
||||||
}
|
}
|
||||||
|
public Integer getAgencia() {
|
||||||
|
return agencia;
|
||||||
|
}
|
||||||
|
public void setAgencia(Integer agencia) {
|
||||||
|
this.agencia = agencia;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,39 +1,11 @@
|
||||||
package com.rjconsultores.ventaboletos.blocos;
|
package com.rjconsultores.ventaboletos.blocos;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
public interface DetalheRetorno {
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import com.rjconsultores.ventaboletos.enuns.MotivoOcorrenciaBradesco;
|
|
||||||
import com.rjconsultores.ventaboletos.enuns.OcorrenciaBradesco;
|
|
||||||
|
|
||||||
public class DetalheRetorno {
|
|
||||||
|
|
||||||
private String numeroControleDoParticipante;
|
|
||||||
private OcorrenciaBradesco ocorrencia;
|
|
||||||
private List<MotivoOcorrenciaBradesco> motivoOcorrencias;
|
|
||||||
|
|
||||||
public String getNumeroControleDoParticipante() {
|
public void setIdBoletoFechamento(Integer id);
|
||||||
return numeroControleDoParticipante;
|
public Integer getIdBoletoFechamento();
|
||||||
}
|
public void setNossoNumero(String nossoNumero);
|
||||||
public void setNumeroControleDoParticipante(String numeroControleDoParticipante) {
|
public String getNossoNumero();
|
||||||
this.numeroControleDoParticipante = numeroControleDoParticipante;
|
public void setNumeroSequencialRegistro(Integer numeroSequencialRegistro);
|
||||||
}
|
|
||||||
public OcorrenciaBradesco getOcorrencia() {
|
|
||||||
return ocorrencia;
|
|
||||||
}
|
|
||||||
public void setOcorrencia(OcorrenciaBradesco ocorrencia) {
|
|
||||||
this.ocorrencia = ocorrencia;
|
|
||||||
}
|
|
||||||
public List<MotivoOcorrenciaBradesco> getMotivoOcorrencias() {
|
|
||||||
return motivoOcorrencias;
|
|
||||||
}
|
|
||||||
public void addMotivoOcorrencia(MotivoOcorrenciaBradesco motivoOcorrencias) {
|
|
||||||
|
|
||||||
if(this.motivoOcorrencias == null){
|
|
||||||
this.motivoOcorrencias = new ArrayList<MotivoOcorrenciaBradesco>();
|
|
||||||
}
|
|
||||||
|
|
||||||
this.motivoOcorrencias.add(motivoOcorrencias);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ import com.rjconsultores.ventaboletos.blocos.DetalheRetorno;
|
||||||
import com.rjconsultores.ventaboletos.blocos.RateioDeCredito;
|
import com.rjconsultores.ventaboletos.blocos.RateioDeCredito;
|
||||||
import com.rjconsultores.ventaboletos.blocos.RodapeRemessa;
|
import com.rjconsultores.ventaboletos.blocos.RodapeRemessa;
|
||||||
import com.rjconsultores.ventaboletos.blocos.RodapeRetorno;
|
import com.rjconsultores.ventaboletos.blocos.RodapeRetorno;
|
||||||
|
import com.rjconsultores.ventaboletos.blocos.bradesco.DetalheRetornoBradesco;
|
||||||
import com.rjconsultores.ventaboletos.enuns.BancoLayout;
|
import com.rjconsultores.ventaboletos.enuns.BancoLayout;
|
||||||
import com.rjconsultores.ventaboletos.enuns.MotivoOcorrenciaBradesco;
|
import com.rjconsultores.ventaboletos.enuns.MotivoOcorrenciaBradesco;
|
||||||
import com.rjconsultores.ventaboletos.enuns.OcorrenciaBradesco;
|
import com.rjconsultores.ventaboletos.enuns.OcorrenciaBradesco;
|
||||||
|
@ -70,7 +71,7 @@ public class BradescoProcessaRetorno extends AbstractFlatFile implements Retorno
|
||||||
|
|
||||||
for (Record record : registrosDeTransacoes) {
|
for (Record record : registrosDeTransacoes) {
|
||||||
|
|
||||||
DetalheRetorno detalheRetorno = new DetalheRetorno();
|
DetalheRetornoBradesco detalheRetorno = new DetalheRetornoBradesco();
|
||||||
|
|
||||||
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
||||||
String codigoDeOcorrencia = record.getValue("CodigoDeOcorrencia");
|
String codigoDeOcorrencia = record.getValue("CodigoDeOcorrencia");
|
||||||
|
|
|
@ -67,7 +67,7 @@ public class SantanderProcessaRetorno extends AbstractFlatFile implements Retorn
|
||||||
List<DetalheRetorno> retornos = new ArrayList<DetalheRetorno>();
|
List<DetalheRetorno> retornos = new ArrayList<DetalheRetorno>();
|
||||||
|
|
||||||
for (Record record : registrosDeTransacoes) {
|
for (Record record : registrosDeTransacoes) {
|
||||||
|
/*
|
||||||
DetalheRetorno detalheRetorno = new DetalheRetorno();
|
DetalheRetorno detalheRetorno = new DetalheRetorno();
|
||||||
|
|
||||||
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
String numeroControleDoParticipante = record.getValue("NumeroControleDoParticipante");
|
||||||
|
@ -77,7 +77,7 @@ public class SantanderProcessaRetorno extends AbstractFlatFile implements Retorn
|
||||||
String codigoDeMotivo3 = record.getValue("CodigoDeMotivo3");
|
String codigoDeMotivo3 = record.getValue("CodigoDeMotivo3");
|
||||||
String codigoDeMotivo4 = record.getValue("CodigoDeMotivo4");
|
String codigoDeMotivo4 = record.getValue("CodigoDeMotivo4");
|
||||||
String codigoDeMotivo5 = record.getValue("CodigoDeMotivo5");
|
String codigoDeMotivo5 = record.getValue("CodigoDeMotivo5");
|
||||||
/*
|
|
||||||
OcorrenciaSantander ocorrencia = OcorrenciaSantander.getInstance(codigoDeOcorrencia);
|
OcorrenciaSantander ocorrencia = OcorrenciaSantander.getInstance(codigoDeOcorrencia);
|
||||||
detalheRetorno.setNumeroControleDoParticipante(numeroControleDoParticipante);
|
detalheRetorno.setNumeroControleDoParticipante(numeroControleDoParticipante);
|
||||||
detalheRetorno.setOcorrencia(ocorrencia);
|
detalheRetorno.setOcorrencia(ocorrencia);
|
||||||
|
@ -105,10 +105,10 @@ public class SantanderProcessaRetorno extends AbstractFlatFile implements Retorn
|
||||||
if(checkIsNullOrBlank(codigoDeMotivo5)){
|
if(checkIsNullOrBlank(codigoDeMotivo5)){
|
||||||
MotivoOcorrenciaSantander motivoOcorrencia = MotivoOcorrenciaSantander.getInstance(ocorrencia, codigoDeMotivo5);
|
MotivoOcorrenciaSantander motivoOcorrencia = MotivoOcorrenciaSantander.getInstance(ocorrencia, codigoDeMotivo5);
|
||||||
detalheRetorno.addMotivoOcorrencia(motivoOcorrencia);
|
detalheRetorno.addMotivoOcorrencia(motivoOcorrencia);
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
|
|
||||||
retornos.add(detalheRetorno);
|
retornos.add(detalheRetorno);
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
return retornos;
|
return retornos;
|
||||||
|
|
Loading…
Reference in New Issue