Skip to content

Instantly share code, notes, and snippets.

@lucastex
Created April 29, 2011 22:01
Show Gist options
  • Save lucastex/949115 to your computer and use it in GitHub Desktop.
Save lucastex/949115 to your computer and use it in GitHub Desktop.
Possível maneira de se criar boletos com o plugin do Grails-Stella
def boleto = new BoletoBuilder()
boleto.build(100.00, "itau") {
datas {
vencimento xxx
documento xxx
processamento xxx
}
cedente {
nome xxx
agencia xxx, x
conta xxx, x
convenio xxx
carteira xxx
nossoNumero xxx, x
operacao xxx
}
sacado {
nome xxx
cpf xxx
cnpj xxx
endereco xxx
bairo xxx
cep xxx
cidade xxx, xx
}
documento xxx
pagamento local1, local2
instrucoes linha1, linha2, linha3
informacoes info1, info2, info3, info4, info5
}
boleto.render "PNG", response
//boleto.render "PDF", response
@fcy
Copy link

fcy commented May 2, 2011

Isso me faz ter vontade de ter um Groovy for iOS :)

@lucastex
Copy link
Author

lucastex commented May 2, 2011

haha :)

@marcotulioaraujo
Copy link

Poxa estava procurando aqui uma coisa parecida com isso.
Uma pergunta funciona com as versoes atuais do GRAILS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment