Created
September 26, 2017 15:08
-
-
Save guisjlender/b4940d7b241b89feebc5ec288e708d3d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private BoletoFactory gerarBoleto(BoletoDTO boleto) { | |
BoletoFactory boletoReturn = new BoletoFactory(); | |
boletoReturn.setBanco(BoletoFactory.CEF); | |
boletoReturn.setAgencia("0231"); | |
boletoReturn.setCodBeneficiario("436276"); // cta anuidades | |
boletoReturn.setCarteira("24"); | |
boletoReturn.setNossoNumero(boleto.getNossoNumero()); | |
boletoReturn.setLogoBanco("img/caixa.png"); | |
boletoReturn.setAceite("A"); | |
boletoReturn.setEspecieDoc("RC"); | |
boletoReturn.setNumDoc(boleto.getNossoNumero()); | |
try { | |
boletoReturn.setValor(Util.bigDecimalToString(boleto.getValor())); | |
} catch (ParseException e) { | |
e.printStackTrace(); | |
} | |
boletoReturn.setVencimento(boleto.getVencimento()); | |
boletoReturn.setNomeBeneficiario("ORDEM DOS ADVOGADOS DO BRASIL - Seção do Rio de Janeiro"); | |
boletoReturn.setCpfCnpjBeneficiario("33.648.981/0001-37"); | |
boletoReturn.setEnderecoBeneficiario("Avenida Marechal Câmara, 150 - Centro"); | |
boletoReturn.setCidadeBeneficiario(" - Rio de Janeiro"); | |
boletoReturn.setEstadoBeneficiario("RJ"); | |
boletoReturn.setCepBeneficiario("20020080"); | |
boletoReturn.setLocalPagamento("Pagável em qualquer banco até o vencimento"); | |
boletoReturn.setNomePagador(boleto.getNome()); | |
boletoReturn.setCpfCnpjPagador(boleto.getCpfCnpjPagador()); | |
boletoReturn.setEnderecoPagador(boleto.getEnderecoPagador()); | |
boletoReturn.setCidadePagador(" - " + boleto.getCidadePagador()); | |
boletoReturn.setCepPagador(boleto.getCepPagador()); | |
boletoReturn.setEstadoPagador(boleto.getEstadoPagador()); | |
return boletoReturn; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment