tmp.BoletoTeste Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bpp-cobranca Show documentation
Show all versions of bpp-cobranca Show documentation
This is a fork and merge from JRimum ( http://www.jrimum.org ),
- Bopepo: https://github.com/jrimum/bopepo
- Texgit: https://github.com/jrimum/texgit
- Valia: https://github.com/jrimum/vallia
- Utilix: https://github.com/jrimum/utilix
- Domkee: https://github.com/jrimum/domkee
For Brazillian Boleto Payment Method. So much thanks for original authors:
Gilmar P. S. L, Misael Barreto and Rômulo Augusto.
The newest version!
/*
* Copyright 2023 strike.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package tmp;
import com.github.braully.boleto.BoletoCobranca;
import org.jrimum.bopepo.view.BoletoViewer;
/**
*
* @author strike
*/
public class BoletoTeste {
public static void main(String... args) {
// BoletoCobranca boleto = new BoletoCobranca();
// boleto.sacado("CHESP - COMPANHIA HIDROELETRICA (RGR)").sacadoCnpj("01.377.555/0001-10");
// boleto.banco("1").agencia("3180-1").conta("3595376");//.conta("12495-8");
// boleto.cedente("EMP BRASILEIRA DE PARTICIPACOES - ENBPAR").cedenteCnpj("43.913.162/0001-23");
//// boleto.carteira("00012495-8");
// boleto.carteira("17");
// boleto.numeroDocumento("30400024-01")
// .nossoNumero("35953760000000113")
// .valor(1956.13).dataVencimento("30/08/2023");
//
// boleto.gerarLinhaDigitavel();
// BoletoViewer create = BoletoViewer.create(boleto);
// create.getPdfAsFile("./target/teste.pdf");
BoletoCobranca boleto = new BoletoCobranca();
boleto.sacado("NEOENERGIA DISTRIBUICAO BRASILIA (PROINFA)").sacadoCnpj("07.522.669/0001-92");
boleto.banco("1").agencia("3180-1").conta("3592216");//
boleto.cedente("EMP BRASILEIRA DE PARTICIPACOES - ENBPAR").cedenteCnpj("43.913.162/0001-23");
// boleto.carteira("00012495-8");
boleto.carteira("17");
boleto.numeroDocumento("0000001-01")
.nossoNumero("35922160000001390")
.valor(6379157.18).dataVencimento("10/08/2023");
boleto.gerarLinhaDigitavel();
BoletoViewer create = BoletoViewer.create(boleto);
create.getPdfAsFile("./target/teste2.pdf");
}
}