Code Monkey home page Code Monkey logo

boleto-bradesco's Introduction

Criador de Boletos do Bradesco

Alunos: Rodrigo, Gustavo

Compilação

git clone https://github.com/PhdTrollSlayer/boleto-bradesco.git
cd boleto-bradesco
cargo build --release
cd target/release
./boleto -h
-h,--help             Show this help message and exit
-r                    Carteira (2 dígitos)
-c                    Conta (7 dígitos)
-v                    Valor (10 dígitos)
-a                    Agência (4 dígitos)
-n                    Nosso Numero (11 dígitos, opcional)
-d                    Data de vecncimento (Formato: dd/mm/aaaa)
-o                    Arquivo a ser criado para código de barras (Padrão:
                      codigo_de_barras.png)
Exemplo de uso
./boleto -r 10 -c 3218 -v 200 -a 4521 -d 13/12/2019 -o tst.png
Saída:
Dados: Code {
    id: "237",
    moeda: "9",
    dg_verificador: Some(
        "1"
    ),
    fator_venci: "8102",
    valor: "0000000200",
    agencia: "4521",
    carteira: "10",
    nosso_numero: "00000000000",
    conta: "0003218",
    zero: "0"
}
Codigo final: 23791810200000002004521100000000000000032180
Código de barras gerado

boleto-bradesco's People

Contributors

hellbound22 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.