org.jrimum.bopepo.view.BoletoInfoViewHSBCNaoRegistrada 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!
package org.jrimum.bopepo.view;
import static org.apache.commons.lang3.StringUtils.EMPTY;
import static org.apache.commons.lang3.StringUtils.leftPad;
import org.jrimum.bopepo.Boleto;
import org.jrimum.bopepo.view.ResourceBundle;
/**
* View para a cobrança não registrada do HSBC.
*
* @author Rômulo Augusto
*/
public class BoletoInfoViewHSBCNaoRegistrada extends AbstractBoletoInfoViewHSBC{
public BoletoInfoViewHSBCNaoRegistrada(ResourceBundle resourceBundle, Boleto boleto) {
super(resourceBundle, boleto);
}
@Override
public String getTextoFcAgenciaCodigoCedente() {
return leftPad(getBoleto().getTitulo().getContaBancaria().getNumeroDaConta().getCodigoDaConta().toString(), 7, "0");
}
@Override
public String getTextoRsAgenciaCodigoCedente() {
return getTextoFcAgenciaCodigoCedente();
}
@Override
public String getTextoFcEspecieDocumento() {
return EMPTY;
}
@Override
public String getTextoFcAceite() {
return EMPTY;
}
@Override
public String getTextoFcCarteira() {
return "CNR";
}
}